|
75 | 75 | } |
76 | 76 |
|
77 | 77 | /* 隐藏导航栏中的完整菜单,使用汉堡菜单代替 */ |
78 | | - .VPNavBar .menu { |
| 78 | + .VPNavBar .menu, |
| 79 | + .VPNavBar .custom-toggles { |
79 | 80 | display: none !important; |
80 | 81 | } |
81 | 82 |
|
| 83 | + .VPNavBarTitle .title { |
| 84 | + max-width: calc(100vw - 156px); |
| 85 | + white-space: nowrap; |
| 86 | + overflow: hidden; |
| 87 | + text-overflow: ellipsis; |
| 88 | + } |
| 89 | + |
82 | 90 | /* 首页 hero 区域适配 */ |
83 | 91 | .VPHero { |
84 | | - padding-top: 48px !important; |
85 | | - padding-bottom: 32px !important; |
| 92 | + padding-top: 32px !important; |
| 93 | + padding-bottom: 24px !important; |
| 94 | + } |
| 95 | + |
| 96 | + .VPHero .container, |
| 97 | + .VPHero .main { |
| 98 | + width: 100% !important; |
86 | 99 | } |
87 | 100 |
|
88 | | - /* 缩小移动端 hero 图片区域,避免图片占据过多屏幕空间 */ |
89 | 101 | .VPHero .image { |
90 | | - margin: -40px -24px -36px !important; |
| 102 | + margin: 0 auto 8px !important; |
| 103 | + order: -1; |
91 | 104 | } |
92 | 105 |
|
93 | 106 | .VPHero .image-container { |
94 | | - width: 200px !important; |
95 | | - height: 200px !important; |
| 107 | + width: min(64vw, 260px) !important; |
| 108 | + height: min(64vw, 260px) !important; |
96 | 109 | } |
97 | 110 |
|
98 | 111 | .VPHero .image-bg { |
99 | | - width: 140px !important; |
100 | | - height: 140px !important; |
| 112 | + width: min(44vw, 180px) !important; |
| 113 | + height: min(44vw, 180px) !important; |
101 | 114 | } |
102 | 115 |
|
103 | 116 | .VPHero .name { |
104 | | - font-size: 32px !important; |
105 | | - line-height: 1.2 !important; |
| 117 | + font-size: clamp(28px, 8vw, 36px) !important; |
| 118 | + line-height: 1.15 !important; |
106 | 119 | } |
107 | 120 |
|
108 | 121 | .VPHero .text { |
109 | | - font-size: 22px !important; |
110 | | - line-height: 1.3 !important; |
| 122 | + font-size: clamp(22px, 7vw, 30px) !important; |
| 123 | + line-height: 1.2 !important; |
111 | 124 | } |
112 | 125 |
|
113 | 126 | .VPHero .tagline { |
114 | | - font-size: 14px !important; |
115 | | - line-height: 1.5 !important; |
| 127 | + font-size: 15px !important; |
| 128 | + line-height: 1.7 !important; |
116 | 129 | margin-top: 12px !important; |
117 | | - padding: 0 12px !important; |
| 130 | + padding: 0 8px !important; |
| 131 | + max-width: 100% !important; |
118 | 132 | } |
119 | 133 |
|
120 | 134 | .VPHero .actions { |
121 | 135 | display: flex !important; |
122 | 136 | flex-direction: column !important; |
123 | 137 | gap: 12px !important; |
124 | | - padding: 0 24px !important; |
| 138 | + padding: 0 !important; |
125 | 139 | margin-top: 20px !important; |
126 | 140 | } |
127 | 141 |
|
|
134 | 148 | width: 100% !important; |
135 | 149 | display: flex !important; |
136 | 150 | justify-content: center !important; |
137 | | - padding: 10px 20px !important; |
138 | | - font-size: 15px !important; |
| 151 | + padding: 12px 20px !important; |
| 152 | + font-size: 16px !important; |
139 | 153 | height: auto !important; |
140 | 154 | line-height: 1.5 !important; |
| 155 | + border-radius: 999px !important; |
141 | 156 | } |
142 | 157 |
|
143 | 158 | /* 首页 feature 卡片全宽显示 */ |
| 159 | + .VPHomeFeatures, |
| 160 | + .VPFeatures, |
144 | 161 | .VPFeatures .container { |
145 | 162 | max-width: 100% !important; |
| 163 | + padding-left: 0 !important; |
| 164 | + padding-right: 0 !important; |
146 | 165 | } |
147 | 166 |
|
148 | 167 | .VPFeatures .items { |
149 | 168 | display: flex !important; |
150 | 169 | flex-direction: column !important; |
| 170 | + gap: 16px !important; |
151 | 171 | } |
152 | 172 |
|
153 | 173 | .VPFeatures .items .item { |
|
157 | 177 | } |
158 | 178 |
|
159 | 179 | .VPFeature { |
160 | | - padding: 20px 24px !important; |
| 180 | + padding: 20px !important; |
| 181 | + border-radius: 24px !important; |
| 182 | + } |
| 183 | +} |
| 184 | + |
| 185 | +@media (max-width: 480px) { |
| 186 | + .VPNavBarTitle .title { |
| 187 | + max-width: calc(100vw - 132px); |
| 188 | + } |
| 189 | + |
| 190 | + .VPHero .container { |
| 191 | + padding-left: 24px !important; |
| 192 | + padding-right: 24px !important; |
| 193 | + } |
| 194 | + |
| 195 | + .VPFeature { |
| 196 | + padding: 18px !important; |
161 | 197 | } |
162 | 198 | } |
163 | 199 |
|
|
0 commit comments