-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
84 lines (79 loc) · 1.77 KB
/
style.css
File metadata and controls
84 lines (79 loc) · 1.77 KB
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
/* 1. 全局字体优化 */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
line-height: 1.6;
}
/* 2. 标题样式:添加渐变色和阴影 */
h1, h2, h3 {
color: #2c3e50;
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
h1 {
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* 3. 图表容器:增加卡片式效果 */
.figure {
margin: 2rem auto;
max-width: 90%;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
overflow: hidden;
transition: transform 0.3s ease; /* 鼠标悬停动画 */
}
.figure:hover {
transform: translateY(-5px);
}
/* 4. 表格美化:斑马纹 + 圆角 */
table {
border-collapse: separate;
border-spacing: 0;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
th, td {
padding: 14px 16px;
text-align: left;
}
th {
background-color: #4a6fa5;
color: white;
font-weight: 600;
}
tr:nth-child(even) {
background-color: #f8f9fa;
}
tr:hover {
background-color: #e3f2fd;
}
/* 5. 信息卡 (Value Box) 样式 */
.value-box {
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
text-align: center;
padding: 20px;
margin-bottom: 20px;
transition: all 0.3s ease;
}
.value-box:hover {
transform: scale(1.02);
}
/* 6. 自定义按钮或链接 */
.btn-custom {
display: inline-block;
padding: 10px 20px;
background: #2575fc;
color: white;
text-decoration: none;
border-radius: 50px;
box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
transition: all 0.3s ease;
}
.btn-custom:hover {
background: #1a5ed1;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(37, 117, 252, 0.6);
}