File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /* 动态背景 */
2+ @keyframes pearl-shimmer {
3+ 0% {
4+ background-position : 0% 50% ;
5+ }
6+
7+ 50% {
8+ background-position : 100% 50% ;
9+ }
10+
11+ 100% {
12+ background-position : 0% 50% ;
13+ }
14+ }
15+
16+ body {
17+ margin : 0 ;
18+ padding : 0 ;
19+ min-height : 100vh ;
20+ background : linear-gradient (135deg ,
21+ # fff5f5 0% ,
22+ # f0f5ff 25% ,
23+ # f5fff0 50% ,
24+ # fff0f5 75% ,
25+ # f5f0ff 100% );
26+ background-size : 400% 400% ;
27+ animation : pearl-shimmer 20s ease infinite;
28+ font-family : 'Segoe UI' , sans-serif;
29+ }
30+
31+ /* 导航栏 */
32+ .nav {
33+ background : rgba (255 , 255 , 255 , 0.9 );
34+ backdrop-filter : blur (10px );
35+ padding : 1rem 2rem ;
36+ box-shadow : 0 2px 10px rgba (0 , 0 , 0 , 0.1 );
37+ }
38+
39+ .nav a {
40+ color : # 8a297f ;
41+ text-decoration : none;
42+ font-size : 1.2rem ;
43+ }
44+
45+ /* 卡片容器 */
46+ .container {
47+ max-width : 1200px ;
48+ margin : 2rem auto;
49+ padding : 0 1rem ;
50+ }
51+
52+ /* 卡片样式 */
53+ .card {
54+ background : rgba (255 , 255 , 255 , 0.85 );
55+ backdrop-filter : blur (5px );
56+ border-radius : 15px ;
57+ padding : 2rem ;
58+ margin : 2rem 0 ;
59+ box-shadow : 0 4px 20px rgba (0 , 0 , 0 , 0.08 );
60+ transition : transform 0.3s ease;
61+ }
62+
63+ /* 标题样式 */
64+ h1 {
65+ color : # 8a297f ;
66+ font-size : 3rem ;
67+ text-align : center;
68+ margin : 2rem 0 ;
69+ text-shadow : 2px 2px 4px rgba (0 , 0 , 0 , 0.1 );
70+ }
71+
72+ h2 {
73+ color : # 6b205f ;
74+ border-left : 4px solid # 8a297f ;
75+ padding-left : 1rem ;
76+ margin : 1.5rem 0 ;
77+ }
78+
79+ /* 外号列表 */
80+ .nickname-list {
81+ list-style : none;
82+ padding : 0 ;
83+ display : flex;
84+ flex-wrap : wrap;
85+ gap : 1rem ;
86+ }
87+
88+ .nickname-list li {
89+ background : # f8e3f5 ;
90+ padding : 0.5rem 1.2rem ;
91+ border-radius : 20px ;
92+ font-weight : 500 ;
93+ }
94+
95+ /* 响应式设计 */
96+ @media (max-width : 768px ) {
97+ .container {
98+ padding : 0 0.5rem ;
99+ }
100+
101+ .card {
102+ padding : 1.5rem ;
103+ margin : 1rem 0 ;
104+ }
105+
106+ h1 {
107+ font-size : 2.2rem ;
108+ }
109+ }
You can’t perform that action at this time.
0 commit comments