@@ -27,8 +27,10 @@ body {
2727 font-family : 'Segoe UI' , sans-serif;
2828}
2929
30- html {
31- scroll-behavior : smooth;
30+ .logo img {
31+ width : 50px ;
32+ height : auto;
33+
3234}
3335
3436.welcome-page {
@@ -67,20 +69,6 @@ html {
6769 background-color : # f2e3f6 ;
6870}
6971
70- # quotepad {
71- min-height : 100vh ;
72- width : 50vw ;
73- border-radius : 5vh ;
74- display : flex;
75- justify-content : center;
76- align-items : center;
77- flex-direction : column;
78- padding : 10vh ;
79- margin : 20vh auto;
80- background-color : rgba (247 , 244 , 251 , 0.9 );
81- box-shadow : 0px 8px 16px 0px rgba (0 , 0 , 0 , 0.2 );
82- }
83-
8472# footer {
8573 height : 20vh ;
8674 width : 100vw ;
@@ -115,12 +103,6 @@ h2 {
115103 opacity : 1 ;
116104}
117105
118- # quote-list {
119- list-style : none;
120- padding : 0 ;
121- font-size : 3vh ;
122- }
123-
124106# back-to-top {
125107 position : fixed;
126108 bottom : -50px ;
212194 color : # fff ;
213195 text-decoration : none;
214196 border-radius : 5px ;
215- transition : background-color 0.3s ;
197+ transition : transform 0.3 s , background-color 0.3s , box-shadow 0.4 s ;
216198 cursor : pointer;
217199 border : none;
218200 font-size : inherit;
221203
222204.dropdown-btn : hover {
223205 background-color : # 8a407f ;
206+ box-shadow : 0px 8px 16px 0px rgba (0 , 0 , 0 , 0.2 );
224207}
225208
226209.dropdown-content {
@@ -249,4 +232,124 @@ h2 {
249232
250233.dropdown : hover .dropdown-content {
251234 display : block;
235+ }
236+
237+
238+ .card {
239+ border-radius : 2em ;
240+ /* min-height: 100vh; */
241+ /* width: 50vw; */
242+ border-radius : 5vh ;
243+ display : flex;
244+ justify-content : center;
245+ align-items : center;
246+ flex-direction : column;
247+ padding : 10vh ;
248+ background-color : rgba (247 , 244 , 251 , 0.9 );
249+ box-shadow : 0px 8px 16px 0px rgba (0 , 0 , 0 , 0.2 );
250+
251+ }
252+
253+ /* ------------------------- */
254+
255+ # more-contents h2 {
256+ margin-bottom : 30px ;
257+ font-size : 2rem ;
258+ color : # 333 ;
259+ }
260+
261+ # more-contents {
262+ padding : 40px 20px ;
263+ max-width : 800px ;
264+ /* 限制最大宽度,让长条不要太长 */
265+ margin : 0 auto;
266+ /* 居中 */
267+ }
268+
269+ .card-container {
270+ display : flex;
271+ flex-direction : column;
272+ /* 关键:纵向堆叠 */
273+ gap : 20px ;
274+ /* 卡片之间的间距 */
275+ }
276+
277+ .nav-card {
278+ /* 保留之前的布局样式 */
279+ display : flex;
280+ align-items : center;
281+ background : # fff ;
282+ padding : 20px 30px ;
283+ border-radius : 15px ;
284+ text-decoration : none;
285+ color : inherit;
286+ box-shadow : 0 4px 10px rgba (0 , 0 , 0 , 0.05 );
287+ border : 1px solid rgba (0 , 0 , 0 , 0.05 );
288+ margin-bottom : 20px ;
289+ /* 确保卡片间有间距 */
290+
291+ /* --- 核心动画初始状态 --- */
292+ opacity : 0 ;
293+ /* 初始透明 */
294+ transform : translateX (-50px );
295+ /* 初始向下偏移 50px */
296+ transition : opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
297+ /* 增加 transform和opacity 的过渡 */
298+ }
299+
300+ .nav-card .show {
301+ opacity : 1 ;
302+ /* 变回不透明 */
303+ transform : translateX (0 );
304+ /* 回到原位 */
305+ }
306+
307+ .nav-card : nth-child (1 ) {
308+ transition-delay : 0.1s ;
309+ }
310+
311+ .nav-card : nth-child (2 ) {
312+ transition-delay : 0.2s ;
313+ }
314+
315+ .nav-card : nth-child (3 ) {
316+ transition-delay : 0.3s ;
317+ }
318+
319+ .nav-card : hover {
320+ transition-delay : 0s !important ; /* 关键:划掉之前的等待时间,立刻响应 */
321+ transition-duration : 0.2s !important ; /* 关键:Hover 动画通常要比入场动画快,0.2s 比较跟手 */
322+ }
323+
324+ .nav-card .show : hover {
325+ transform : translateX (10px );
326+ /* 仅在显示后允许向右滑动 */
327+ box-shadow : 0 6px 15px rgba (0 , 0 , 0 , 0.1 );
328+ border-color : # 8000ff ;
329+ /* 可选:悬停时边框变色 */
330+ }
331+
332+ .card-icon {
333+ font-size : 3rem ;
334+ margin-bottom : 15px ;
335+ }
336+
337+ .nav-card h3 {
338+ margin : 10px 0 ;
339+ font-size : 1.5rem ;
340+ color : # 2c3e50 ;
341+ }
342+
343+ .nav-card p {
344+ font-size : 0.9rem ;
345+ color : # 666 ;
346+ line-height : 1.5 ;
347+ }
348+
349+ /* 手机端适配 */
350+ @media (max-width : 768px ) {
351+ .nav-card {
352+ width : 100% ;
353+ /* 手机端占满宽度 */
354+ }
252355}
0 commit comments