-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
66 lines (58 loc) · 3.33 KB
/
style.css
File metadata and controls
66 lines (58 loc) · 3.33 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
/* 全局基础设置保持不变 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background-color: #f8f6f4;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
display: flex; justify-content: center; align-items: center; height: 100vh; overflow: hidden;
}
.card {
background-color: #ffffff;
aspect-ratio: 3 / 4;
width: 100%;
max-width: min(95vw, calc(95vh * 0.75), 860px);
padding: clamp(30px, 6cqi, 50px) clamp(30px, 8cqi, 60px);
display: flex; flex-direction: column;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
border-radius: clamp(16px, 4cqi, 24px);
overflow: hidden; position: relative;
}
/* 顶部与内容区样式保持不变 */
.card-header { display: flex; justify-content: space-between; align-items: baseline; flex-shrink: 0; margin-bottom: clamp(20px, 4cqi, 40px); }
.header-brand { display: flex; align-items: baseline; }
.brand-link { font-size: clamp(9px, 2.2cqi, 11px); font-weight: normal; color: #aaaaaa; text-decoration: none; letter-spacing: 1px; transition: color 0.3s; }
.brand-link:hover { color: #888888; }
.card-id { font-size: clamp(9px, 2.2cqi, 11px); color: #cccccc; letter-spacing: 1px; }
.card-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
#question-display { font-size: clamp(22px, 6.5cqi, 34px); line-height: 1.35; color: #111111; font-weight: 600; letter-spacing: 1px; margin-top: auto; margin-bottom: clamp(16px, 3cqi, 24px); }
.divider { width: 32px; height: 3px; background-color: #111111; margin-bottom: 24px; flex-shrink: 0; }
#extension-display { font-size: clamp(13px, 3.5cqi, 16px); line-height: 1.8; color: #444444; text-align: justify; min-height: 120px; }
.progress-container { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.card-date-bottom { font-size: clamp(9px, 2.2cqi, 11px); color: #888888; letter-spacing: 1px; margin-bottom: 2px; }
.progress-text { font-size: 10px; color: #888888; margin-bottom: 4px; }
.progress-grid { display: grid; width: 100%; gap: 1px; grid-template-columns: repeat(73, minmax(0, 1fr)); grid-template-rows: repeat(5, 1fr); grid-auto-flow: column; }
.progress-cell { width: 100%; aspect-ratio: 1; background-color: #ebedf0; }
.progress-cell.filled { background-color: #aceebb; }
/* 底部区域:位置保持 flex-end 不变 */
.card-footer {
display: flex; justify-content: space-between; align-items: flex-end;
padding-top: 16px; margin-top: 20px; border-top: 1px solid #f2f2f2; flex-shrink: 0;
}
.footer-share-link {
font-size: clamp(11px, 2.8cqi, 13px); color: #bbbbbb;
text-decoration: none; transition: color 0.3s;
}
.footer-share-link:hover { color: #888888; }
/* 核心修改:确保图标与文字在底部基线上精准对齐 */
.footer-right { display: flex; align-items: baseline; gap: 15px; }
.footer-info { display: flex; flex-direction: column; align-items: flex-end; }
.footer-note {
font-size: clamp(11px, 2.8cqi, 13px);
color: #bbbbbb;
text-decoration: none;
}
/* 下载按钮:移除多余 padding 干扰对齐,使用 line-height: 0 确保重心稳定 */
.action-btn {
background: none; border: none; color: #cccccc; cursor: pointer;
padding: 0; transition: 0.3s; line-height: 0;
}
.action-btn:hover { color: #111111; }