File size: 2,766 Bytes
8ede856
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/* 自定义滚动条样式 - 紫色主题 */

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(160, 60, 254, 0.75);
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 51, 234, 0.85);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: rgba(147, 51, 234, 0.95);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* 深色主题滚动条样式 */
.v-theme--PurpleThemeDark {
  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.2);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 132, 252, 0.85);
    box-shadow: 0 2px 8px rgba(192, 132, 252, 0.4);
  }

  ::-webkit-scrollbar-thumb:active {
    background: rgba(192, 132, 252, 0.95);
  }
}

/* 细滚动条变体 */
.thin-scrollbar {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.75);
    border: none;
  }
}

.v-theme--PurpleThemeDark .thin-scrollbar {
  ::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.75);
  }
}

/* 聊天区域滚动条 */
.chat-scrollbar {
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(147, 51, 234, 0.08);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.75);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.85);
  }
}

.v-theme--PurpleThemeDark .chat-scrollbar {
  ::-webkit-scrollbar-track {
    background: rgba(192, 132, 252, 0.08);
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 132, 252, 0.85);
  }
}

/* 隐藏滚动条变体 */
.hidden-scrollbar {
  ::-webkit-scrollbar {
    width: 0px;
    height: 0px;
  }
  
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Firefox 兼容性 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 51, 234, 0.75) rgba(0, 0, 0, 0.05);
}

.v-theme--PurpleThemeDark * {
  scrollbar-color: rgba(192, 132, 252, 0.75) rgba(255, 255, 255, 0.05);
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 移动端触摸滚动优化 */
* {
  -webkit-overflow-scrolling: touch;
}