/**
 * [INPUT]: 依赖 Google Fonts (Instrument Serif / Geist / Geist Mono) via @import
 * [OUTPUT]: 全站视觉系统 — Editorial Engineer Dark. 被 index.html / workflow.html 引用
 * [POS]: 全站唯一 CSS 真源, 手写为主, Tailwind CDN 只做罕见工具类
 * [PROTOCOL]: 变更时更新此头部, 然后检查 ../../CLAUDE.md
 *
 * 设计方向: Editorial Engineer Dark
 *   - 冷峻精度 + 编辑级排印 + 工程美学
 *   - 大字号衬线斜体作为 display, Geist 作为正文, Geist Mono 作为元信息
 *   - 单一强调色 (acid lime #c5f04c), 永远不渐变文字
 *   - 12 列刚性网格, 发丝线 (hairline) 切分
 *   - 编号/标签/目录号体系贯穿始终
 */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600&family=Geist:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* ═══════════════════════════════════════════════════════════════
   0. Design Tokens
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* colors */
  --bg:         #0a0a0b;        /* near-black, slightly warm */
  --bg-2:       #0f0f10;        /* cards/surfaces */
  --bg-3:       #15151650;      /* subtle elevation, semi-transparent */
  --ink:        #ebe7dc;        /* bone / parchment, not pure white */
  --ink-2:      #c9c5ba;        /* secondary text */
  --mute:       #6e6a61;        /* tertiary / meta */
  --dim:        #3a3834;        /* deep mute */
  --rule:       #24221e;        /* hairline borders */
  --rule-hi:    #3a3732;        /* hairline hover */
  --hot:        #c5f04c;        /* THE accent — acid lime */
  --hot-dim:    #5a6d22;
  --hot-glow:   rgba(197, 240, 76, 0.16);

  /* type scale */
  --f-display:  'Instrument Serif', 'Source Han Serif SC', 'Songti SC', serif;
  --f-body:     'Geist', -apple-system, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --f-mono:     'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* grid */
  --col-max:    1360px;
  --gutter:     clamp(20px, 4vw, 48px);
  --nav-h:      64px;

  /* motion */
  --ease:       cubic-bezier(0.2, 0.85, 0.25, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur:        440ms;
}

/* ═══════════════════════════════════════════════════════════════
   1. Reset & Base
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(197, 240, 76, 0.035), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(197, 240, 76, 0.025), transparent 60%),
    var(--bg);
}

::selection { background: var(--hot); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 2px solid var(--bg); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--rule-hi); }

/* ═══════════════════════════════════════════════════════════════
   2. Layout Primitives
   ═══════════════════════════════════════════════════════════════ */
.wrap {
  width: 100%;
  max-width: var(--col-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
}

/* monospace meta labels — small caps tracked */
.meta {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.meta strong { color: var(--ink); font-weight: 500; }

/* 页面进入动画 */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger > * { opacity: 0; animation: fade-up 900ms var(--ease-out) forwards; }
.stagger > *:nth-child(1) { animation-delay: 40ms; }
.stagger > *:nth-child(2) { animation-delay: 140ms; }
.stagger > *:nth-child(3) { animation-delay: 240ms; }
.stagger > *:nth-child(4) { animation-delay: 340ms; }
.stagger > *:nth-child(5) { animation-delay: 440ms; }
.stagger > *:nth-child(6) { animation-delay: 540ms; }

/* ═══════════════════════════════════════════════════════════════
   3. Top Bar
   ═══════════════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--hot);
  transform: translateY(-1px);
}
.brand-name { color: var(--ink); }
.brand-sub { color: var(--mute); font-weight: 400; }
.brand-sub::before { content: '— '; }

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topnav a {
  color: var(--mute);
  position: relative;
  padding: 4px 0;
  transition: color 200ms var(--ease);
}
.topnav a:hover,
.topnav a.is-active { color: var(--ink); }
.topnav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--hot);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.dot-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 12px var(--hot-glow);
  animation: live-pulse 2.4s var(--ease) infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ═══════════════════════════════════════════════════════════════
   4. Hero (首页)
   ═══════════════════════════════════════════════════════════════ */
.hero {
  padding: clamp(80px, 14vh, 180px) 0 clamp(60px, 8vh, 120px);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: end;
  position: relative;
}
.hero-slug {
  grid-column: 1 / span 7;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-slug .meta strong { color: var(--hot); }

.hero-h1 {
  grid-column: 1 / span 10;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 10px;
}
.hero-h1 em {
  font-style: italic;
  color: var(--ink);
}
.hero-h1 .caret {
  display: inline-block;
  width: 0.42em;
  height: 0.1em;
  background: var(--hot);
  margin-left: 0.1em;
  vertical-align: middle;
  animation: caret-blink 1.6s steps(2) infinite;
}
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-sub {
  grid-column: 1 / span 6;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 48ch;
  margin-top: clamp(20px, 3vh, 40px);
}
.hero-aside {
  grid-column: 9 / span 4;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-align: right;
  line-height: 1.8;
  padding-left: 24px;
  border-left: 1px solid var(--rule);
  margin-top: clamp(20px, 3vh, 40px);
}
.hero-aside b { color: var(--ink); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   5. Section Header (编号标题)
   ═══════════════════════════════════════════════════════════════ */
.section-head {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: baseline;
  gap: 32px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
}
.section-index {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute);
  text-transform: uppercase;
}
.section-index b { color: var(--hot); font-weight: 500; }
.section-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 36px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}
.section-count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   6. Filter Bar
   ═══════════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 36px;
}
.filter-btn {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--rule);
  background: transparent;
  transition: all 220ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-btn::before {
  content: '[ ';
  color: var(--dim);
  transition: color 220ms var(--ease);
}
.filter-btn::after {
  content: ' ]';
  color: var(--dim);
  transition: color 220ms var(--ease);
}
.filter-btn:hover {
  color: var(--ink);
  border-color: var(--rule-hi);
}
.filter-btn:hover::before,
.filter-btn:hover::after { color: var(--mute); }
.filter-btn.is-active {
  color: var(--hot);
  border-color: var(--hot);
  background: var(--hot-glow);
}
.filter-btn.is-active::before,
.filter-btn.is-active::after { color: var(--hot); }

/* ═══════════════════════════════════════════════════════════════
   7. Workflow Cards (首页瀑布流)
   ═══════════════════════════════════════════════════════════════ */
.wf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.wf-card {
  grid-column: span 4;
  position: relative;
  display: block;
  padding: 28px 28px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background 420ms var(--ease);
  min-height: 420px;
}
.wf-card:nth-child(3n) { border-right: 1px solid var(--rule); }

/* 左侧第一列不设右边框对齐感更强 */
.wf-card:hover {
  background: var(--bg-2);
}
.wf-card:hover .wf-card-cover { border-color: var(--rule-hi); }
.wf-card:hover .wf-card-arrow { transform: translate(4px, -4px); color: var(--hot); }

.wf-card-tag {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}
.wf-card-tag .num { color: var(--dim); }
.wf-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0 -4px 22px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  transition: border-color 320ms var(--ease);
}
.wf-card-cover img,
.wf-card-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), opacity 320ms var(--ease);
}
.wf-card-cover video {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.wf-card:hover .wf-card-cover img { transform: scale(1.04); opacity: 0.55; }
.wf-card:hover .wf-card-cover video { opacity: 1; }

/* 目录号悬浮右下 */
.wf-card-cover::after {
  content: attr(data-num);
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--bg);
  padding: 3px 8px;
  border: 1px solid var(--rule);
  text-transform: uppercase;
}

.wf-card-name {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.wf-card-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wf-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.wf-card-foot .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.wf-card-foot .chip { color: var(--ink-2); }
.wf-card-foot .chip::before { content: '· '; color: var(--dim); }
.wf-card-foot .chip:first-child::before { content: ''; }
.wf-card-arrow {
  display: inline-block;
  color: var(--mute);
  font-size: 14px;
  transition: transform 320ms var(--ease), color 320ms var(--ease);
  line-height: 1;
}

.wf-grid-empty {
  grid-column: 1 / -1;
  padding: 80px 40px;
  text-align: center;
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}

/* ═══════════════════════════════════════════════════════════════
   8. Detail Page
   ═══════════════════════════════════════════════════════════════ */
.detail {
  padding: clamp(40px, 6vh, 80px) 0 120px;
}
.detail-breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.detail-breadcrumb a { color: var(--mute); transition: color 220ms; }
.detail-breadcrumb a:hover { color: var(--ink); }
.detail-breadcrumb .sep { color: var(--dim); }

.detail-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-bottom: 48px;
}
.detail-num {
  grid-column: 1 / span 2;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 10px;
}
.detail-num b { color: var(--hot); font-weight: 500; }
.detail-title {
  grid-column: 3 / span 8;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(42px, 6.5vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.detail-title em { font-style: italic; }
.detail-tagline {
  grid-column: 3 / span 7;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
}

.detail-video {
  position: relative;
  border: 1px solid var(--rule);
  background: #000;
  margin-bottom: 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.detail-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.detail-video-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 12px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.detail-video-caption b { color: var(--ink); font-weight: 500; }

/* Meta strip */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.detail-meta-cell {
  padding: 24px 28px 28px 0;
  border-right: 1px solid var(--rule);
}
.detail-meta-cell:last-child { border-right: 0; padding-right: 0; }
.detail-meta-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
.detail-meta-value {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}
.detail-meta-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
  margin-top: 4px;
}

/* Description block */
.detail-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  padding: 72px 0 48px;
}
.detail-body-label {
  grid-column: 1 / span 2;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.detail-body-text {
  grid-column: 3 / span 8;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 58ch;
}
.detail-body-text::first-letter {
  font-family: var(--f-display);
  font-size: 1.6em;
  font-style: italic;
  line-height: 1;
  padding-right: 4px;
}

/* Tools & Outputs strip */
.detail-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.detail-strip-block { grid-column: span 6; }
.detail-strip-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
}
.detail-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--rule);
  text-transform: uppercase;
  transition: all 220ms var(--ease);
}
.chip-mono::before { content: '['; color: var(--mute); padding-right: 4px; }
.chip-mono::after  { content: ']'; color: var(--mute); padding-left: 4px; }
.chip-mono:hover { border-color: var(--hot); color: var(--hot); }
.chip-mono:hover::before, .chip-mono:hover::after { color: var(--hot); }
.chip-mono.accent {
  color: var(--hot);
  border-color: var(--hot-dim);
  background: var(--hot-glow);
}
.chip-mono.accent::before, .chip-mono.accent::after { color: var(--hot); }

/* Timeline */
.detail-timeline {
  padding: 64px 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}
.timeline-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: baseline;
  padding-bottom: 48px;
}
.timeline-head .eyebrow {
  grid-column: 1 / span 2;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.timeline-head h2 {
  grid-column: 3 / span 9;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.timeline-list { list-style: none; }
.timeline-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: background 320ms var(--ease);
}
.timeline-row:last-child { border-bottom: 1px solid var(--rule); }
.timeline-row:hover { background: var(--bg-2); }
.timeline-row:hover .timeline-num { color: var(--hot); }

.timeline-num {
  grid-column: 1 / span 2;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute);
  padding-top: 6px;
  transition: color 320ms var(--ease);
}
.timeline-num .dash { color: var(--dim); padding-right: 6px; }
.timeline-content { grid-column: 3 / span 7; }
.timeline-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.timeline-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 58ch;
}
.timeline-tool {
  grid-column: 11 / span 2;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-transform: uppercase;
  padding-top: 6px;
  text-align: right;
}
.timeline-tool b { color: var(--ink); font-weight: 500; }
.timeline-image {
  margin-top: 12px;
  border-radius: 6px;
  max-width: 100%;
  border: 1px solid var(--rule);
}

/* ═══════════════════════════════════════════════════════════════
   8b. About Page
   ═══════════════════════════════════════════════════════════════ */
.about-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(32px, 5vw, 64px);
}

.about-col {}

.about-h3 {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hot);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.about-col p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

.about-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  grid-column: 1 / -1;
}

.flow-step {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: clamp(16px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-step:first-child { border-radius: 8px 0 0 8px; }
.flow-step:last-child  { border-radius: 0 8px 8px 0; }

.flow-num {
  font-family: var(--f-mono);
  color: var(--hot);
  font-size: 0.8rem;
  font-weight: 600;
}

.flow-label {
  font-family: var(--f-body);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.flow-desc {
  font-family: var(--f-mono);
  color: var(--mute);
  font-size: 0.75rem;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 clamp(8px, 1.5vw, 16px);
  font-family: var(--f-mono);
  color: var(--mute);
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════════
   9. Footer (Status Line)
   ═══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 56px;
  margin-top: 80px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: uppercase;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}
.footer-col { grid-column: span 3; }
.footer-col:first-child { grid-column: span 4; }
.footer-title { color: var(--ink); margin-bottom: 14px; letter-spacing: 0.12em; }
.footer-col p { line-height: 1.9; }
.footer-col .hot { color: var(--hot); }
.footer-bot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   10. Loading / Error
   ═══════════════════════════════════════════════════════════════ */
.loading,
.error {
  padding: 120px 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.error { color: #e26868; }
.loading::before {
  content: '● ';
  color: var(--hot);
  animation: live-pulse 1.4s infinite;
}

/* ═══════════════════════════════════════════════════════════════
   11a. Auth — Topbar 状态
   ═══════════════════════════════════════════════════════════════ */
.auth-topbar-btn {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hot);
  border: 1px solid var(--hot-dim);
  padding: 5px 14px;
  background: transparent;
  transition: all 220ms var(--ease);
  text-decoration: none;
  display: inline-block;
}
.auth-topbar-btn:hover {
  background: var(--hot-glow);
  border-color: var(--hot);
}

.auth-user-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.auth-admin-link {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hot);
  text-decoration: none;
  margin-right: 12px;
  transition: opacity 220ms;
}
.auth-admin-link:hover { opacity: 0.7; }

/* ═══════════════════════════════════════════════════════════════
   11b. Login Page
   ═══════════════════════════════════════════════════════════════ */
.login-page {
  padding: clamp(60px, 10vh, 140px) 0 120px;
  display: flex;
  justify-content: center;
}

.login-card {
  max-width: 440px;
  width: 100%;
}

.login-head { margin-bottom: 48px; }

.login-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 12px;
}
.login-title em { font-style: italic; }

.login-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38ch;
}

.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.login-tab {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  transition: all 220ms var(--ease);
  margin-bottom: -1px;
}
.login-tab:hover { color: var(--ink); }
.login-tab.is-active {
  color: var(--hot);
  border-bottom-color: var(--hot);
}

.login-field { margin-bottom: 20px; }

.login-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}

.login-input {
  width: 100%;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  outline: none;
  transition: border-color 220ms var(--ease);
}
.login-input:focus { border-color: var(--hot); }
.login-input::placeholder { color: var(--dim); }

.login-input-code {
  font-family: var(--f-mono);
  font-size: 28px;
  letter-spacing: 0.4em;
  text-align: center;
  padding: 18px 16px;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--hot);
  border: 1px solid var(--hot);
  padding: 14px 28px;
  cursor: pointer;
  transition: all 220ms var(--ease);
  margin-top: 8px;
  text-decoration: none;
}
.login-btn:hover { background: #d4ff5c; }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.login-btn-arrow { font-size: 14px; transition: transform 220ms var(--ease); }
.login-btn:hover .login-btn-arrow { transform: translateX(4px); }

.login-back {
  display: block;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
  transition: color 220ms;
}
.login-back:hover { color: var(--ink); }

.login-msg {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  min-height: 20px;
}
.login-msg.is-error { color: #e26868; }
.login-msg.is-ok { color: var(--hot); }

/* ═══════════════════════════════════════════════════════════════
   11c. Gate Overlay (详情页门控)
   ═══════════════════════════════════════════════════════════════ */
.gate-overlay {
  text-align: center;
  padding: 80px 20px 100px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  margin: 24px 0 48px;
}

.gate-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.gate-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--ink);
  margin-bottom: 12px;
}

.gate-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0 auto 28px;
}

.gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--hot);
  border: 1px solid var(--hot);
  padding: 14px 32px;
  text-decoration: none;
  transition: all 220ms var(--ease);
}
.gate-btn:hover { background: #d4ff5c; }

.gate-contact {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.gate-contact b { color: var(--hot); }

.detail-cover-preview {
  border: 1px solid var(--rule);
  overflow: hidden;
  margin-bottom: 0;
}
.detail-cover-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   11d. Admin Page
   ═══════════════════════════════════════════════════════════════ */
.admin-page {
  padding: clamp(40px, 6vh, 80px) 0 120px;
}

.admin-denied {
  text-align: center;
  padding: 120px 20px;
  color: var(--mute);
}
.admin-denied h2 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 36px;
  color: var(--ink);
  margin: 16px 0 12px;
}

.admin-head { margin-bottom: 48px; }

.admin-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}

.admin-section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
}

.admin-search-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.admin-search-row .login-input { flex: 1; }

.admin-results { margin-top: 16px; }

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-bottom: 0;
  background: transparent;
  text-align: left;
  transition: background 220ms var(--ease);
  cursor: pointer;
}
.admin-user-row:last-child { border-bottom: 1px solid var(--rule); }
.admin-user-row:hover { background: var(--bg-2); }

.admin-user-name {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}
.admin-user-phone {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.admin-user-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--rule);
  padding: 3px 8px;
}
.admin-user-arrow {
  color: var(--mute);
  transition: transform 220ms var(--ease);
}
.admin-user-row:hover .admin-user-arrow { transform: translateX(4px); color: var(--hot); }

.admin-user-info { margin-bottom: 20px; }
.admin-user-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--hot-dim);
  background: var(--hot-glow);
}
.admin-user-name-big {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
}

.admin-enroll-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}
.admin-select {
  flex: 1;
  font-family: var(--f-body);
  font-size: 14px;
  appearance: auto;
}

.admin-enroll-row-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-bottom: 0;
  font-size: 14px;
  color: var(--ink);
}
.admin-enroll-row-item:last-child { border-bottom: 1px solid var(--rule); }

.admin-revoke-btn {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e26868;
  border: 1px solid rgba(226, 104, 104, 0.3);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 220ms;
  margin-left: auto;
}
.admin-revoke-btn:hover { background: rgba(226, 104, 104, 0.1); border-color: #e26868; }

.admin-empty, .admin-loading {
  padding: 24px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
  border: 1px solid var(--rule);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.admin-stat {
  padding: 24px 20px;
  border: 1px solid var(--rule);
  border-right: 0;
  text-align: center;
}
.admin-stat:last-child { border-right: 1px solid var(--rule); }
.admin-stat-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 42px;
  color: var(--hot);
  line-height: 1;
  margin-bottom: 8px;
}
.admin-stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mute);
}

/* ═══════════════════════════════════════════════════════════════
   12. Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-h1 { grid-column: 1 / span 12; font-size: clamp(44px, 11vw, 82px); }
  .hero-sub, .hero-aside, .hero-slug { grid-column: 1 / span 12; }
  .hero-aside { text-align: left; border-left: 0; border-top: 1px solid var(--rule); padding: 20px 0 0 0; margin-top: 30px; }

  .wf-card { grid-column: span 6; }

  .detail-title { grid-column: 1 / span 12; font-size: clamp(40px, 9vw, 68px); }
  .detail-num, .detail-tagline { grid-column: 1 / span 12; }
  .detail-num { padding-top: 0; margin-bottom: 16px; }

  .detail-meta { grid-template-columns: repeat(2, 1fr); }
  .detail-meta-cell:nth-child(2n) { border-right: 0; }
  .detail-meta-cell { border-bottom: 1px solid var(--rule); }
  .detail-meta-cell:nth-child(n+3) { border-bottom: 0; padding-top: 24px; }

  .detail-body-label, .detail-body-text { grid-column: 1 / span 12; }
  .detail-body-label { margin-bottom: 14px; }

  .detail-strip-block { grid-column: span 12; padding-bottom: 24px; }
  .timeline-head .eyebrow,
  .timeline-head h2 { grid-column: 1 / span 12; }
  .timeline-head .eyebrow { margin-bottom: 16px; }

  .timeline-num { grid-column: 1 / span 12; }
  .timeline-content { grid-column: 1 / span 12; }
  .timeline-tool { grid-column: 1 / span 12; text-align: left; padding-top: 14px; }

  .section-head { grid-template-columns: 1fr; gap: 12px; }

  .about-body { grid-template-columns: 1fr; }
  .about-flow { flex-direction: column; }
  .flow-step:first-child { border-radius: 8px 8px 0 0; }
  .flow-step:last-child  { border-radius: 0 0 8px 8px; }
  .flow-arrow {
    justify-content: center;
    padding: 8px 0;
    transform: rotate(90deg);
  }

  .footer-col { grid-column: span 6; }
  .footer-col:first-child { grid-column: span 12; }
}

@media (max-width: 640px) {
  .wf-card { grid-column: span 12; min-height: unset; }
  .topnav { gap: 18px; }
  .status-line span:not(.auth-topbar-btn):not(.auth-user-label):not(.auth-admin-link) { display: none; }
  .status-line { gap: 8px; }
  .flow-step { padding: 12px 16px; }
}
