|
17 | 17 | --muted: #b4a488; |
18 | 18 | --dim: #86775d; |
19 | 19 | --radius: 16px; |
| 20 | + --glass-bg: linear-gradient(140deg, rgba(255, 252, 244, .62), rgba(255, 249, 240, .30)); |
| 21 | + --glass-line: rgba(255, 246, 230, .8); |
| 22 | + --glass-text: #3a2f1e; |
| 23 | + --glass-muted: #5b4f38; |
| 24 | + --glass-dim: #7f7054; |
20 | 25 | } |
21 | 26 | * { margin: 0; padding: 0; box-sizing: border-box; } |
22 | 27 | html { scroll-behavior: smooth; } |
23 | 28 | body { |
24 | 29 | background: var(--bg); |
25 | 30 | background-image: |
26 | | - radial-gradient(72% 54% at 16% 12%, rgba(217, 174, 107, .20), transparent 62%), |
27 | | - radial-gradient(62% 48% at 86% 72%, rgba(201, 139, 111, .15), transparent 60%), |
28 | | - radial-gradient(120% 80% at 50% 0%, #251a0c 0%, transparent 62%); |
| 31 | + radial-gradient(72% 54% at 16% 12%, rgba(228, 186, 116, .32), transparent 62%), |
| 32 | + radial-gradient(62% 48% at 86% 72%, rgba(211, 150, 120, .26), transparent 60%), |
| 33 | + radial-gradient(120% 80% at 50% 0%, #2a1d0d 0%, transparent 62%); |
29 | 34 | color: var(--text); |
30 | 35 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; |
31 | 36 | line-height: 1.8; |
|
39 | 44 |
|
40 | 45 | .glass { |
41 | 46 | position: relative; |
42 | | - background: linear-gradient(140deg, rgba(255, 248, 235, .10), rgba(255, 248, 235, .035)); |
43 | | - border: 1px solid var(--line); |
| 47 | + background: var(--glass-bg); |
| 48 | + border: 1px solid var(--glass-line); |
44 | 49 | border-radius: var(--radius); |
45 | | - -webkit-backdrop-filter: blur(18px) saturate(170%); |
46 | | - backdrop-filter: blur(18px) saturate(170%); |
47 | | - box-shadow: 0 12px 44px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 -16px 30px rgba(255, 255, 255, .03); |
| 50 | + -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.12); |
| 51 | + backdrop-filter: blur(24px) saturate(200%) brightness(1.12); |
| 52 | + box-shadow: 0 18px 50px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -16px 32px rgba(255, 255, 255, .3); |
| 53 | + color: var(--glass-text); |
48 | 54 | } |
49 | 55 | .glass::before { |
50 | 56 | content: ""; |
51 | | - position: absolute; left: 14%; right: 14%; top: 0; height: 1px; |
52 | | - background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); |
| 57 | + position: absolute; left: 10%; right: 10%; top: 0; height: 1px; |
| 58 | + background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); |
53 | 59 | } |
54 | 60 |
|
55 | 61 | /* ===== 导航 ===== */ |
56 | 62 | header { position: sticky; top: 0; z-index: 30; padding: 14px 0; |
57 | | - background: rgba(22, 18, 13, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); } |
| 63 | + background: linear-gradient(180deg, rgba(255, 252, 244, .78), rgba(255, 252, 244, .4)); |
| 64 | + -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%); |
| 65 | + border-bottom: 1px solid var(--glass-line); } |
58 | 66 | .nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 6px 0; } |
59 | 67 | .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: .5px; } |
60 | 68 | .brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; } |
|
159 | 167 | .stagger-box > * { opacity: 0; transform: translateY(30px); transition: opacity .95s cubic-bezier(.22,.68,.28,1), transform .95s cubic-bezier(.22,.68,.28,1); } |
160 | 168 | .stagger-box > *.is-visible { opacity: 1; transform: none; } |
161 | 169 |
|
| 170 | + /* ===== 浅色玻璃内容文字(深色字体保证可读) ===== */ |
| 171 | + header .brand { color: var(--glass-text); } |
| 172 | + header .nav-links a { color: rgba(70, 56, 36, .78); } |
| 173 | + header .nav-links a:hover { color: var(--glass-text); } |
| 174 | + .glass h3 { color: var(--glass-text); } |
| 175 | + .glass p { color: var(--glass-muted); } |
| 176 | + .glass summary { color: var(--glass-text); } |
| 177 | + .glass .a { color: var(--glass-muted); } |
| 178 | + .glass .tag { color: var(--glass-dim); } |
| 179 | + .glass .feat p, .glass .person p, .glass .tech-item p { color: var(--glass-muted); } |
| 180 | + |
162 | 181 | @media (max-width: 820px) { |
163 | 182 | .nav-links { display: none; } |
164 | 183 | .hero { padding: 90px 0 110px; } |
|
0 commit comments