/* ============================================================
   智能视觉设计 · 2026 作品集
   1. tokens / 2. base / 3. header / 4. hero / 5. works
   6. process / 7. about / 8. footer / 9. viewer / 10. motion
   ============================================================ */

/* ---------- 1. tokens ---------- */
:root {
  --paper: #f2efe8;
  --paper-2: #e8e4d9;
  --card: #faf8f1;
  --ink: #14130f;
  --ink-soft: #35322b;
  --muted: #6f6a5e;
  --line: rgba(20, 19, 15, .14);
  --line-strong: rgba(20, 19, 15, .38);
  --accent: #cf4426;
  --accent-soft: rgba(207, 68, 38, .12);
  --foot-bg: #14130f;
  --foot-fg: #f2efe8;
  --shadow: 0 30px 80px -40px rgba(20, 19, 15, .55);

  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-disp: "Archivo Black", "Arial Black", var(--font-sans);
  --font-mono: "Space Grotesk", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1520px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

[data-theme="dark"] {
  --paper: #0c0c0b;
  --paper-2: #1a1917;
  --card: #131311;
  --ink: #f1ede3;
  --ink-soft: #d9d4c8;
  --muted: #918c80;
  --line: rgba(241, 237, 227, .16);
  --line-strong: rgba(241, 237, 227, .42);
  --accent: #ff6a45;
  --accent-soft: rgba(255, 106, 69, .14);
  --foot-bg: #131311;
  --foot-fg: #f1ede3;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .005em;
  overflow-x: hidden;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

body.is-locked { overflow: hidden; }

img, video, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .06; }

/* ---------- 3. header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  transition: transform .5s var(--ease), border-color .4s, background-color .45s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-102%); }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  font-family: var(--font-disp);
  font-size: 20px;
  letter-spacing: .02em;
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13.5px;
  padding: 4px 0;
}
.nav a span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover span { color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 8px; }

.theme-btn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
.theme-btn:hover { border-color: var(--line-strong); transform: rotate(18deg); }
.theme-btn svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }

.menu-btn { display: none; }

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 80;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--pad);
  background: var(--paper);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
  letter-spacing: -.02em;
}
.mobile-nav a span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 4. hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 132px var(--pad) 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -18vh; right: -10vw;
  width: 62vw; height: 62vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 66%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%, 100% 160px;
  opacity: .5;
  mask-image: linear-gradient(to bottom, transparent, #000 34%, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%, #000 72%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 48px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vw, 52px);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.6s var(--ease-io) infinite;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(52px, 11.4vw, 176px);
  line-height: .98;
  letter-spacing: -.05em;
  margin: 0 0 clamp(28px, 4vw, 52px);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(106%);
  transition: transform 1.1s var(--ease);
}
body.is-ready .hero-title .word { transform: translateY(0); }
body.is-ready .hero-title .line:nth-child(2) .word { transition-delay: .1s; }

.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  margin-left: .12em;
}
[data-theme="dark"] .hero-title .outline { -webkit-text-stroke-width: 1.2px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.lede {
  max-width: 44ch;
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.85;
  color: var(--ink-soft);
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 40px; justify-self: end; }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-facts dd { font-size: 13px; letter-spacing: -.01em; }

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 6vw, 80px);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  position: relative;
  display: block;
  width: 1px; height: 34px;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: drip 2.2s var(--ease-io) infinite;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px 0; }
.hero-tags li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px;
  border-right: 1px solid var(--line);
}
.hero-tags li:last-child { border-right: 0; padding-right: 0; }

.marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track i { color: var(--accent); font-style: normal; font-size: 7px; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- 5. works ---------- */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 7vw, 104px) var(--pad) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-no {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .18em;
}
.section-title .cn {
  font-size: .26em;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--muted);
}
.section-note {
  max-width: 34ch;
  justify-self: end;
  text-align: right;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.filters { display: flex; gap: 6px; flex-wrap: wrap; justify-self: end; }
.filter {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .3s, border-color .3s, background-color .3s;
}
.filter:hover { color: var(--ink); border-color: var(--line-strong); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(18px, 2.4vw, 32px);
  align-items: start;
}
.card {
  grid-column: span 6;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.card:nth-child(even) { padding-top: clamp(0px, 3vw, 44px); }
html.js .card { opacity: 0; transform: translateY(24px); }
html.js .card.in { opacity: 1; transform: none; }
.card--wide { grid-column: span 6; }
.card.is-hidden { display: none; }
.card.is-fading { opacity: 0; transform: translateY(10px); }

.card-link { display: block; }
.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 7, .45), transparent 42%);
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.005);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.card:hover .card-cover img { transform: scale(1.045); }
.card:hover .card-cover::after { opacity: 1; }

.card-no {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 9px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink);
}
.card-open {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11.5px;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.card-open i { font-style: normal; color: var(--accent); }
.card:hover .card-open, .card:focus-within .card-open { opacity: 1; transform: translateY(0); }

.card-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  opacity: 0;
  transition: opacity .45s var(--ease);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.card-play i {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(10, 9, 7, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card-play i::before {
  content: "";
  width: 0; height: 0;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.card:hover .card-play { opacity: 1; }

.card-body {
  display: grid;
  gap: 5px;
  padding-top: 16px;
}
.card-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .5em;
  font-size: clamp(21px, 2.3vw, 31px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  transition: color .3s;
}
.card-title span {
  font-size: .45em;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--muted);
}
.card:hover .card-title { color: var(--accent); }
.card-line { font-size: 13.5px; color: var(--muted); }

.grid-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 6. process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.step {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
}
.step-no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--accent);
}
.step h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.step p { font-size: 13.5px; line-height: 1.8; color: var(--muted); max-width: 34ch; }

.stack-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stack-strip span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 7. about ---------- */
.about { padding-bottom: clamp(56px, 7vw, 96px); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  align-items: start;
  margin-top: clamp(20px, 4vw, 40px);
}
.about-lead .section-no { margin-bottom: 20px; }
.about-copy p { font-size: clamp(14px, 1.15vw, 16px); line-height: 1.9; color: var(--ink-soft); }
.about-copy p + p { margin-top: 16px; }
.about-sign {
  font-family: var(--font-serif);
  color: var(--muted) !important;
  font-size: 14px !important;
  padding-top: 8px;
}
.about-facts { display: grid; gap: 14px; }
.about-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.about-facts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.about-facts dd { font-size: 13px; text-align: right; }

/* ---------- 8. footer ---------- */
.site-footer {
  position: relative;
  background: var(--foot-bg);
  color: var(--foot-fg);
  padding: clamp(48px, 7vw, 90px) var(--pad) 28px;
  overflow: hidden;
}
.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(242, 239, 232, .2);
}
[data-theme="dark"] .footer-top { border-bottom-color: rgba(241, 237, 227, .16); }
.footer-kicker { font-size: 14px; opacity: .72; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.to-top i {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(242, 239, 232, .3);
  border-radius: 50%;
  font-style: normal;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.to-top:hover i { transform: translateY(-3px); background: var(--foot-fg); color: var(--foot-bg); }

.footer-big {
  font-family: var(--font-disp);
  font-size: clamp(40px, 10.2vw, 156px);
  line-height: .84;
  letter-spacing: -.035em;
  padding: clamp(28px, 5vw, 56px) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .18em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 232, .55);
}
[data-theme="dark"] .footer-big { -webkit-text-stroke-color: rgba(241, 237, 227, .42); }
.footer-big span {
  color: var(--foot-fg);
  -webkit-text-stroke: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 239, 232, .2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
}
[data-theme="dark"] .footer-bottom { border-top-color: rgba(241, 237, 227, .16); }

/* ---------- 9. viewer ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(0px, 2.4vw, 32px);
}
.viewer[hidden] { display: none; }
.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 7, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade .35s var(--ease);
}
.viewer-shell {
  position: relative;
  width: min(1440px, 100%);
  height: min(92vh, 940px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise .5s var(--ease);
}
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 12px 22px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.viewer-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
}
.viewer-tools { display: flex; gap: 6px; }
.viewer-btn {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.viewer-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.viewer-close { font-size: 12px; }

.viewer-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}
.viewer-info {
  padding: clamp(22px, 2.4vw, 38px);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.viewer-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.viewer-title {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
}
.viewer-sub {
  display: block;
  margin-top: 6px;
  font-size: .5em;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.4;
  color: var(--muted);
}
.viewer-tag {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.viewer-copy { display: grid; gap: 12px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.viewer-copy .work-note {
  color: var(--ink-soft);
  padding: 10px 12px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-size: 12.5px;
}
.spec-list { display: grid; gap: 8px; margin-top: 4px; }
.spec-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.spec-list b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.viewer-actions {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .02em;
  transition: background-color .3s, color .3s, gap .3s;
}
.btn:hover { background: transparent; color: var(--ink); gap: 14px; }
.btn i { font-style: normal; }
.viewer-hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.viewer-stage {
  position: relative;
  background: #0b0b0a;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.viewer-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0b0a;
}
.viewer-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0b0a;
}
.stage-note {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .58);
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent);
  pointer-events: none;
}
.stage-loading {
  display: grid;
  gap: 10px;
  place-items: center;
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.stage-loading i {
  width: 26px; height: 26px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ---------- 10. motion ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal {
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
@keyframes slide {
  to { transform: translateX(-50%); }
}
@keyframes drip {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(.992); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
/* 笔记本等较矮的屏幕：压紧首屏，保证滚动提示与跑马灯在首屏内 */
@media (min-width: 861px) and (max-height: 860px) {
  .hero { padding-top: 104px; }
  .eyebrow { margin-bottom: 26px; }
  .hero-title { font-size: clamp(48px, 10.4vw, 150px); margin-bottom: 30px; }
  .hero-foot { margin-top: 34px; }
  .hero-grid { padding-top: 18px; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-facts { justify-self: start; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-facts { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .about-facts div { flex-direction: column; justify-content: flex-start; gap: 4px; border-bottom: 0; }
  .about-facts dd { text-align: left; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .menu-btn span {
    width: 15px; height: 1px;
    background: currentColor;
    transition: transform .35s var(--ease), opacity .3s;
  }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .card, .card--wide { grid-column: 1 / -1; padding-top: 0; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .filters { justify-self: start; }
  .section-note { text-align: left; justify-self: start; }

  .viewer { padding: 0; }
  .viewer-shell { width: 100%; height: 100%; border: 0; }
  .viewer-body { grid-template-columns: 1fr; grid-template-rows: 40vh minmax(0, 1fr); }
  .viewer-stage { order: -1; }
  .viewer-stage img { width: 100%; height: 100%; object-fit: cover; }
  .viewer-info { border-right: 0; border-top: 1px solid var(--line); }
  .stage-note.is-mobile { padding: 30px 14px 10px; font-size: 10px; line-height: 1.5; letter-spacing: 0; }
  .viewer-actions { margin-top: 8px; }
  .site-footer { padding-bottom: 22px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 116px; }
  .brand-sub { display: none; }
  .hero-title { letter-spacing: -.06em; }
  .hero-foot { gap: 18px; }
  .hero-tags li { padding: 0 10px; }
  .card-title { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
  .footer-big { font-size: clamp(32px, 13vw, 60px); }
  .viewer-body { grid-template-rows: 34vh minmax(0, 1fr); }
  .viewer-info { padding: 20px; }
  .card-open {
    opacity: 1;
    transform: none;
    right: 10px;
    bottom: 10px;
    padding: 6px 11px;
    font-size: 11px;
    background: rgba(12, 12, 11, .62);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-color: rgba(255, 255, 255, .18);
  }
  .card-open i { color: #fff; }
  .hero-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .hero-tags::-webkit-scrollbar { display: none; }
  .hero-tags li { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-title .word { transform: none; }
  html.js .reveal, html.js .card { opacity: 1; transform: none; }
}
