/* =========================================================
   李星辰 · 个人网站 — 设计系统
   纯 CSS，无构建步骤。深色极光主题 + 浅色降级。
   ========================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #070711;
  --bg-2: #0c0c18;
  --surface: rgba(255, 255, 255, .04);
  --card: rgba(255, 255, 255, .035);
  --text: #ecebff;
  --muted: #9b9ab8;
  --line: rgba(255, 255, 255, .10);
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #ff6ec7;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 52%, #ff6ec7 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .14) 55%, rgba(255, 110, 199, .16));

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .8);

  --font-display: "Sora", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

[data-theme="light"] {
  --bg: #f5f4ff;
  --bg-2: #ebe9ff;
  --surface: rgba(20, 15, 50, .03);
  --card: rgba(255, 255, 255, .72);
  --text: #14122b;
  --muted: #5b5878;
  --line: rgba(20, 15, 50, .12);
  --shadow: 0 30px 70px -45px rgba(60, 40, 140, .45);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- 背景层：极光 + 颗粒 ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  will-change: transform;
}
.orb--1 { width: 46vw; height: 46vw; left: -10vw; top: -12vw;
  background: radial-gradient(circle, #7c5cff, transparent 65%); animation: float1 18s ease-in-out infinite; }
.orb--2 { width: 40vw; height: 40vw; right: -8vw; top: 18vh;
  background: radial-gradient(circle, #22d3ee, transparent 65%); animation: float2 22s ease-in-out infinite; }
.orb--3 { width: 38vw; height: 38vw; left: 28vw; bottom: -14vw;
  background: radial-gradient(circle, #ff6ec7, transparent 65%); opacity: .4; animation: float3 26s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(8vw, 6vh) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-6vw, 4vh) scale(1.08); } }
@keyframes float3 { 50% { transform: translate(4vw, -6vh) scale(1.12); } }

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, .10), transparent 60%),
    radial-gradient(1000px 500px at 0% 100%, rgba(34, 211, 238, .08), transparent 60%);
}

.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 100% { transform: translate(-20px, 15px); }
}

/* ---------- 自定义光标 ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; transform: translate3d(-100px, -100px, 0); mix-blend-mode: difference; }
.cursor--dot { width: 7px; height: 7px; background: #fff; }
.cursor--ring { width: 38px; height: 38px; border: 1.5px solid #fff; transition: width .25s, height .25s, opacity .25s; opacity: .7; }
.cursor--ring.is-hover { width: 64px; height: 64px; opacity: 1; }
@media (hover: hover) and (pointer: fine) { body { cursor: none; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }

/* ---------- 滚动进度条 ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 90; }
.scroll-progress span { display: block; height: 100%; width: 0;
  background: var(--grad); box-shadow: 0 0 14px rgba(124, 92, 255, .7); }

/* ---------- 通用 ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 48px); }
.section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__index { font-family: var(--font-mono); font-size: 14px; color: var(--accent-2); letter-spacing: .15em; }
.section__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 5vw, 56px); letter-spacing: -.02em; line-height: 1.05; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 滚动揭示（JS 触发 .is-visible） */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 按钮 / 磁性 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 100px; font-weight: 600; font-size: 15px;
  overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn span { position: relative; z-index: 2; display: inline-block; transition: transform .3s var(--ease); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 14px 40px -16px rgba(124, 92, 255, .8); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, #22d3ee, #ff6ec7); opacity: 0; transition: opacity .35s; }
.btn--primary:hover { box-shadow: 0 20px 50px -16px rgba(124, 92, 255, .95); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); background: var(--grad-soft); }

/* =========================================================
   导航
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 80; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px); border-color: var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px clamp(20px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.nav__logo-mark { color: var(--accent); filter: drop-shadow(0 0 8px rgba(124, 92, 255, .7)); }
.nav__logo-text em { color: var(--accent-2); font-style: normal; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; font-size: 15px; color: var(--muted); transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); transition: border-color .25s, background .25s, transform .4s; }
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 75; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.menu__links a { font-family: var(--font-display); font-size: clamp(32px, 9vw, 52px); font-weight: 800; color: var(--text); transition: color .25s; }
.menu__links a:hover { color: var(--accent-2); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 5vw, 48px) 80px; max-width: var(--maxw); margin: 0 auto; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__content { position: relative; z-index: 2; max-width: 880px; }
.hero__eyebrow { font-family: var(--font-mono); font-size: 14px; letter-spacing: .12em; color: var(--accent-2); margin-bottom: 18px; }
.hero__title { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin-bottom: 22px; }
.hero__line { display: block; font-size: clamp(54px, 13vw, 150px); }
.hero__line--sub { font-size: clamp(22px, 4.4vw, 46px); font-weight: 600; color: var(--muted); margin-top: 6px; }
.hero__line--sub .amp { color: var(--accent); font-style: italic; }
.hero__type { font-size: clamp(16px, 2.4vw, 22px); color: var(--text); margin-bottom: 22px; min-height: 1.6em; }
.hero__type-static { color: var(--muted); }
.hero__type-text { color: var(--accent-2); font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__desc { max-width: 540px; color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); margin-bottom: 34px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; letter-spacing: .15em; }
.hero__scroll-mouse { width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.hero__scroll-mouse span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent-2); animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================
   跑马灯
   ========================================================= */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; background: var(--surface); }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 3vw, 34px); white-space: nowrap; color: var(--text); opacity: .85; }
.marquee__track .dot { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about__statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 34px); line-height: 1.3; letter-spacing: -.01em; margin-bottom: 24px; }
.about__statement em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__body { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.about__body strong { color: var(--text); }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.about__tags span { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }

.about__bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bento__card {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--card);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 150px;
  transition: transform .4s var(--ease), background .4s;
}
.bento__card--wide { grid-column: span 2; }
.bento__card--accent { background: var(--grad-soft); }
/* 渐变描边 */
.bento__card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.5), transparent 38%, transparent 60%, rgba(124,92,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
/* 高光 */
.bento__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.14), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.bento__card:hover::after { opacity: 1; }
.bento__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento__label { font-size: 14px; color: var(--muted); }

/* =========================================================
   WORK（横向滚动）
   ========================================================= */
.work { padding-top: clamp(80px, 12vw, 140px); }
.work__head { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.work__hint { color: var(--muted); font-family: var(--font-mono); font-size: 13px; margin-top: 8px; }

/* 默认（无 scroll-timeline 支持 / 移动端 / reduced-motion）：纵向堆叠 */
.work__scroll { padding: 30px clamp(20px, 5vw, 48px) 60px; }
.work__track { display: flex; flex-direction: column; gap: 22px; max-width: var(--maxw); margin: 0 auto; }

.proj {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card);
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 320px;
  transition: transform .4s var(--ease);
}
.proj::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.45), transparent 40%, transparent 60%, rgba(34,211,238,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.proj__media { position: relative; min-height: 220px; }
.proj__media--a { background: linear-gradient(135deg, #7c5cff, #22d3ee); }
.proj__media--b { background: linear-gradient(135deg, #ff6ec7, #7c5cff); }
.proj__media--c { background: linear-gradient(135deg, #22d3ee, #34d399); }
.proj__media--d { background: linear-gradient(135deg, #f59e0b, #ff6ec7); }
.proj__media--e { background: linear-gradient(135deg, #22d3ee, #7c5cff); }
.proj__tag { position: absolute; top: 16px; left: 16px; font-family: var(--font-mono); font-size: 12px;
  padding: 6px 12px; border-radius: 100px; background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(6px); }
.proj__body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.proj__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); }
.proj__desc { color: var(--muted); font-size: 15px; }
.proj__stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.proj__stack li { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.proj__links { display: flex; gap: 18px; margin-top: 6px; }
.proj__links a { font-size: 14px; font-weight: 600; color: var(--accent-2); transition: color .2s; }
.proj__links a:hover { color: var(--accent-3); }

/* 支持 scroll-timeline 的浏览器：横向滚动体验 */
@supports (animation-timeline: view()) {
  .work__scroll { height: 460vh; view-timeline: --work block; padding: 0; }
  .work__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
  .work__track { flex-direction: row; width: max-content; gap: clamp(20px, 2.4vw, 38px);
    padding: 0 clamp(20px, 5vw, 48px); max-width: none; margin: 0;
    animation: work-pan linear both; animation-timeline: --work; }
  .proj { width: min(520px, 82vw); flex: none; }
  @keyframes work-pan { to { transform: translateX(calc(-100% + 100vw)); } }
}

/* =========================================================
   SKILLS
   ========================================================= */
.skills__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 30px); }
.skill { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.skill__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 600; }
.skill__pct { font-family: var(--font-mono); color: var(--accent-2); }
.skill__bar { height: 8px; border-radius: 100px; background: var(--surface); overflow: hidden; }
.skill__bar span { display: block; height: 100%; width: 0; border-radius: 100px; background: var(--grad);
  transition: width 1.3s var(--ease); }
.skill.is-visible .skill__bar span { width: var(--v); }
.skills__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.skills__chips span { font-family: var(--font-mono); font-size: 13px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); transition: border-color .25s, color .25s, background .25s; }
.skills__chips span:hover { border-color: var(--accent); color: var(--text); background: var(--grad-soft); }

/* =========================================================
   JOURNEY 时间线
   ========================================================= */
.timeline { position: relative; padding-left: 34px; }
.timeline__line { position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline__line span { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--grad); box-shadow: 0 0 12px rgba(124,92,255,.6); }
.timeline__item { position: relative; padding: 0 0 clamp(36px, 5vw, 56px); }
.timeline__item::before { content: ""; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.timeline__year { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); letter-spacing: .05em; }
.timeline__role { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.4vw, 26px); margin: 6px 0 8px; }
.timeline__desc { color: var(--muted); max-width: 620px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { text-align: center; }
.contact__inner { max-width: 760px; margin: 0 auto; }
.contact__eyebrow { font-family: var(--font-mono); color: var(--accent-2); letter-spacing: .15em; font-size: 13px; margin-bottom: 16px; }
.contact__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 7vw, 72px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 18px; }
.contact__desc { color: var(--muted); font-size: 17px; margin-bottom: 40px; }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; max-width: 640px; margin: 0 auto 30px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: span 2; }
.field label { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .25s, box-shadow .25s; width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field__err { color: #ff8095; font-size: 12px; min-height: 14px; }
.field.invalid input, .field.invalid textarea { border-color: #ff8095; }
.contact__form .btn { grid-column: span 2; justify-self: start; }
.contact__ok { grid-column: span 2; color: #5ee0a0; font-size: 14px; }

.contact__socials { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; }
.contact__socials a { font-weight: 600; color: var(--muted); transition: color .25s; }
.contact__socials a:hover { color: var(--accent-2); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 30px clamp(20px, 5vw, 48px); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer__logo { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.footer__logo em { color: var(--accent-2); font-style: normal; }
.footer__top { color: var(--accent-2); font-weight: 600; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; }
  .proj__media { min-height: 180px; }
  .skills__grid { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .field--full, .contact__form .btn, .contact__ok { grid-column: span 1; }
}
@media (max-width: 560px) {
  .about__bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
  .hero__cta { width: 100%; }
  .btn { flex: 1; }
}

/* =========================================================
   减弱动效（无障碍）
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .grain, .orb { animation: none !important; }
  .work__scroll { height: auto !important; padding: 30px clamp(20px,5vw,48px) 60px !important; }
  .work__pin { position: static !important; height: auto !important; overflow: visible !important; display: block !important; }
  .work__track { flex-direction: column !important; width: auto !important; animation: none !important; transform: none !important; }
  .proj { width: auto !important; }
}
