/* ===================================================================
   v2 样式。结构：令牌 → 基础 → 排版 → 区块 → 组件 → 页面模板 → 动效 → 响应式
   设计依据见 DESIGN.md
   =================================================================== */

@font-face {
  font-family: "Echo Serif";
  src: url("../fonts/echo-serif.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- 令牌 ---------- */
:root {
  --bg-0: #04070a;          /* 品牌段：首屏、履历、加入、页脚 */
  --bg-1: #090e13;          /* 证据段 */
  --bg-2: #0e151c;          /* 卡片 */
  --bg-3: #141d27;          /* 卡片高亮 */
  --line: rgba(226, 236, 244, .10);
  --line-2: rgba(226, 236, 244, .18);
  --ink: #e9eef2;
  --ink-2: rgba(233, 238, 242, .74);
  --ink-3: rgba(233, 238, 242, .52);
  --ivory: #f2ede3;
  --on-ivory: #0b1116;
  --accent: #46d0e8;
  --accent-soft: rgba(70, 208, 232, .12);
  --strike: rgba(255, 96, 82, .75);
  --signal: linear-gradient(90deg, #1e90ff, #00d8ff 15%, #00c853 32%, #c6e000 48%, #ffb300 62%, #ff3d00 80%, #d500f9);

  --serif: "Echo Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(84px, 10vw, 128px);
  --header-h: 64px;
  --r: 14px;
  --r-btn: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg-0); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--ivory); color: var(--on-ivory); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-weight: 900; }

/* ---------- 排版 ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 900; margin: 0; letter-spacing: .01em; text-wrap: pretty; }
.nw { white-space: nowrap; }
.d1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.12; }
@media (min-width: 700px) { .title-line { white-space: nowrap; } }
.d2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.2; }
.d3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; }
.title-line { display: block; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.lede { font-size: clamp(16.5px, 1.45vw, 18.5px); line-height: 1.85; color: var(--ink-2); max-width: 30em; margin: 0; }
.lede b { color: var(--ink); font-weight: 500; }
.muted { color: var(--ink-3); }

/* ---------- 区块 ---------- */
.sec { position: relative; padding: var(--sec) 0; }
.sec--0 { background: var(--bg-0); }
.sec--1 { background: var(--bg-1); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px 64px; align-items: end; margin-bottom: 56px; }
.sec-head > p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; max-width: 30em; }
.sec-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 质感：噪点 + 雷达距离圈 */
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.rings::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 78% 46%, transparent 0 119px, rgba(226, 236, 244, .045) 120px, transparent 121px);
  -webkit-mask-image: radial-gradient(60% 70% at 78% 46%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 78% 46%, #000, transparent 75%);
}
.sec > .wrap, .hero > .wrap, .page-head > .wrap { position: relative; z-index: 1; }

/* ---------- 按钮与链接 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: var(--r-btn); border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--ink);
  background: transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--ink-3); }
.btn--primary { background: var(--ivory); color: var(--on-ivory); border-color: var(--ivory); }
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn .arr, .more .arr { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arr, .more:hover .arr, a:hover > .more .arr { transform: translateX(3px); }
.more { font-size: 14px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.link { color: var(--accent); border-bottom: 1px solid rgba(70, 208, 232, .35); }
.link:hover { border-bottom-color: var(--accent); }

/* ---------- 页眉 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(4, 7, 10, .74); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal); opacity: .9; }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .mark { font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: .06em; }
.brand .sub { display: flex; flex-direction: column; line-height: 1.25; font-size: 11.5px; color: var(--ink-3); }
.brand .sub b { color: var(--ink-2); font-weight: 500; font-size: 12.5px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.nav a { position: relative; padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.pill { height: 32px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; color: var(--ink-2); }
.pill:hover { color: var(--ink); border-color: var(--ink-3); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; } .menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: rgba(4, 7, 10, .97); padding: 24px var(--gut); overflow: auto; }
.mobile-nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 900; font-size: 24px; }
.mobile-nav .btn { margin-top: 24px; width: 100%; justify-content: center; font-family: var(--sans); font-size: 15px; }
body.menu-open { overflow: hidden; }
.demo-badge { position: fixed; right: 14px; bottom: 14px; z-index: 60; font-family: var(--mono); font-size: 11.5px; color: var(--on-ivory); background: var(--ivory); border-radius: 999px; padding: 5px 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--bg-0); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 65% at 74% 48%, rgba(70, 208, 232, .13), transparent 70%), radial-gradient(40% 50% at 6% 100%, rgba(0, 0, 0, .55), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; min-height: min(800px, calc(100vh - var(--header-h))); padding-top: 64px; padding-bottom: 72px; }
.hero h1 { margin: 6px 0 28px; }
.hero h1 em { font-style: normal; background: var(--signal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.follow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; font-size: 13.5px; color: var(--ink-3); }
.follow .lab { margin-right: 6px; }
.follow a { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; font-size: 13px; color: var(--ink-2); }
.follow a:hover { color: var(--ink); border-color: var(--ink-3); }
.hero-art { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1; justify-self: end; }
.hero-art .glyph {
  position: absolute; right: 0; top: 2%; z-index: 0; margin: 0;
  font-family: var(--serif); font-weight: 900; font-size: clamp(150px, 19vw, 280px); line-height: .92; letter-spacing: -.02em;
  color: var(--ivory); opacity: .92; user-select: none;
}
.hero-art .glyph span { display: block; }
.hero-art .glyph span:last-child { padding-left: .5em; }
.radar { position: absolute; left: 0; bottom: 0; z-index: 1; width: 78%; aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line-2); background: #05090d; }
.radar canvas { width: 100%; height: 100%; border-radius: 50%; }
.radar .hud { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .08em; white-space: nowrap; }

/* ---------- 履历轴 ---------- */
.career { position: relative; background: var(--bg-0); border-top: 1px solid var(--line); padding: 34px 0 42px; }
.career .lab { font-size: 13px; color: var(--ink-3); margin: 0 0 22px; }
.career .lab b { color: var(--accent); font-weight: 500; margin-right: 10px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); position: relative; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line-2); }
.tl li { position: relative; padding: 26px 16px 0 0; }
.tl li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--bg-0); }
.tl li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl .y { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.tl .t { display: block; font-family: var(--serif); font-weight: 900; font-size: 19px; line-height: 1.4; margin-top: 2px; }
.tl .d { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }

/* ---------- 证据带 ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.stat { padding: 30px 24px 28px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat .n { font-family: var(--serif); font-weight: 900; font-size: clamp(36px, 4vw, 52px); line-height: 1.1; }
.stat .n sup { font-size: .42em; color: var(--accent); margin-left: 3px; vertical-align: top; position: relative; top: .25em; }
.stat .l { display: block; font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.names { border-top: 1px solid var(--line); padding: 26px 0; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }
.names .lab { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.names span { font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--ink-2); }
.quotes-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 22px; font-size: 13px; color: var(--ink-3); }
.quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quote { margin: 0; padding: 0 24px 0 0; display: flex; flex-direction: column; }
.quote + .quote { padding-left: 24px; border-left: 1px solid var(--line); }
.quote .about { font-size: 12.5px; color: var(--accent); }
.quote blockquote { margin: 10px 0 20px; font-size: 15px; line-height: 1.8; color: var(--ink); flex: 1; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 15px; color: var(--ink-2); }
.who b { font-family: var(--serif); font-weight: 900; font-size: 14.5px; display: block; }
.who small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* ---------- 图廊 ---------- */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 0 var(--gut) 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gallery figure { flex: 0 0 clamp(260px, 30vw, 400px); margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 代表作 ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .25s; }
.feature:hover { border-color: rgba(226, 236, 244, .3); }
.feature .cover img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.feature .panel { padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); }
.feature h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; margin: 10px 0 12px; }
.feature p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .03em; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); transition: transform .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.card h3 { font-size: 21px; line-height: 1.4; margin: 8px 0 8px; }
.card p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 12px; }

/* ---------- 判断时间线 ---------- */
.calls { position: relative; padding-left: 30px; }
.calls::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.call { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) 210px; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.call::before { content: ""; position: absolute; left: -30px; top: 36px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--bg-1); }
.call .date { font-family: var(--serif); font-weight: 900; font-size: 17px; }
.call .field { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.call .tag { display: inline-block; margin-top: 10px; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.call h3 { font-size: 21px; line-height: 1.45; margin: 0 0 8px; }
.call p { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; }
.call .was { color: var(--ink-3); font-size: 13.5px; }
.call .was s { text-decoration-color: var(--strike); }
.ev .lab { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.ev a { display: block; font-size: 13.5px; color: var(--accent); margin-bottom: 4px; }
.ev a:hover { text-decoration: underline; }
.call.featured { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 30px 30px 26px; margin: 14px 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.call.featured::before { left: -30px; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.call.featured h3 { font-size: 25px; }
.pull { border-left: 2px solid var(--accent); padding-left: 14px; margin: 12px 0 14px; font-family: var(--serif); font-weight: 900; font-size: 18px; line-height: 1.65; color: var(--ink); }

/* ---------- 文章列表 ---------- */
.posts { border-top: 1.5px solid var(--line-2); }
.post { display: grid; grid-template-columns: 110px minmax(0, 1fr) 24px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.post .d { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.post h3 { font-size: 19px; line-height: 1.5; margin: 0 0 4px; transition: color .2s; }
.post p { margin: 0; font-size: 14px; color: var(--ink-3); }
.post .go { color: var(--ink-3); }
.post:hover h3 { color: var(--accent); }

/* ---------- 合作档位 ---------- */
.tiers { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.tier { border: 1px solid var(--line-2); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .015); }
.tier .k { font-size: 12.5px; color: var(--ink-3); }
.tier h3 { font-size: 25px; }
.tier p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.tier .facts-inline { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin: 6px 0 4px; }
.tier .facts-inline b { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--ink); margin-right: 4px; }
.tier .go { margin-top: auto; padding-top: 10px; }
.tier.hl { background: var(--ivory); color: var(--on-ivory); border-color: var(--ivory); }
.tier.hl .k, .tier.hl .facts-inline { color: rgba(11, 17, 22, .55); }
.tier.hl p { color: rgba(11, 17, 22, .74); }
.tier.hl .facts-inline b { color: var(--on-ivory); }
.tier.hl .btn { background: var(--on-ivory); color: var(--ivory); border-color: var(--on-ivory); }
.banner { margin-top: 16px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 26px; display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.banner b { font-family: var(--serif); font-weight: 900; font-size: 17px; margin-right: 12px; }
.banner span { color: var(--ink-3); font-size: 14px; }

/* ---------- 结尾大句 ---------- */
.finale { text-align: center; }
.finale h2 { font-size: clamp(34px, 5vw, 66px); line-height: 1.25; }
.finale p { color: var(--ink-2); margin: 22px auto 30px; max-width: 32em; }
.finale .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-0); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.f-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.f-brand { display: flex; gap: 16px; align-items: flex-start; }
.f-brand .mark { font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1.1; }
.f-brand b { display: block; font-size: 14px; }
.f-brand p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); max-width: 28em; line-height: 1.7; }
.f-contact { text-align: right; font-size: 13.5px; color: var(--ink-2); }
.f-contact .lab { font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 6px; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }
.f-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.f-links a:hover { color: var(--ink); }
.f-copy { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }

/* ---------- 子页页头 ---------- */
.page-head { position: relative; overflow: hidden; background: var(--bg-0); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.15; margin: 0 0 18px; }
.page-head .lede { max-width: 36em; }
.crumb { display: inline-flex; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-bottom: 26px; }
.crumb:hover { color: var(--ink); }
.head-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }

/* 事实格（关于页） */
.facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.facts > div { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts .k { font-size: 12px; color: var(--ink-3); }
.facts .v { font-family: var(--serif); font-weight: 900; font-size: 16px; margin-top: 4px; }

/* 合作页：三种起点、判断规则、范围 */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: var(--bg-2); display: flex; flex-direction: column; gap: 10px; }
.step .top { display: flex; justify-content: space-between; align-items: center; }
.step .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--mono); font-size: 14px; }
.step .no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.step h3 { font-size: 21px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.step .fit { color: var(--ink-3); font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.rules li { display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 20px 0; border-bottom: 1px solid var(--line); }
.rules li::before { counter-increment: r; content: counter(r, decimal-leading-zero); font-family: var(--mono); color: var(--ink-3); font-size: 12.5px; padding-top: 5px; }
.rules b { font-family: var(--serif); font-weight: 900; font-size: 18px; display: block; margin-bottom: 4px; }
.rules span { font-size: 14.5px; color: var(--ink-3); }
.scope { margin-top: 24px; border-radius: var(--r); padding: 24px 28px; background: var(--accent-soft); border: 1px solid rgba(70, 208, 232, .25); }
.scope b { font-family: var(--serif); font-weight: 900; font-size: 17px; display: block; margin-bottom: 6px; }
.scope p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }

/* 筛选 + 卡片网格（作品索引） */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 13.5px; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg-0); border-color: var(--ink); }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); transition: transform .25s var(--ease), border-color .25s; }
.tcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tcard .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tcard h3 { font-size: 20px; line-height: 1.45; }
.tcard p { margin: 0; font-size: 14px; color: var(--ink-2); }
.tcard .tags { margin-top: auto; padding-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tcard .tags span { font-size: 11.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* ---------- 文章 / 案例详情 ---------- */
.article { max-width: calc(812px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.article-head { padding: 56px 0 8px; }
.article-head h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.25; margin: 0 0 16px; }
.article-head .meta { margin-bottom: 4px; }
.article-head .dek { font-size: 17px; color: var(--ink-2); margin: 16px 0 0; line-height: 1.85; }
.prose { font-size: 17px; line-height: 1.9; color: #cdd5dc; padding: 32px 0 16px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 25px; line-height: 1.4; margin: 64px 0 16px; }
.prose h2 .no { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-right: 10px; font-weight: 400; }
.prose h3 { font-size: 19px; margin: 36px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(70, 208, 232, .35); }
.prose blockquote { margin: 28px 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--accent); font-family: var(--serif); font-weight: 900; font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-3); padding: 1px 6px; border-radius: 5px; }
.prose figure { margin: 32px 0; }
.prose figure img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.prose figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink-3); font-weight: 500; }
.box { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 20px 26px 6px; margin: 0 0 30px; }
.box--tldr { border-left: 3px solid var(--accent); }
.box .lab { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; margin: 0 0 8px; }
.box--note .lab { color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 32px; }
.tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.tile .v { font-family: var(--serif); font-weight: 900; font-size: 32px; line-height: 1.2; color: var(--ink); }
.tile .l { font-size: 14px; color: var(--ink); margin-top: 4px; }
.tile .n { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 28px 0 8px; margin-top: 48px; }
.pager a { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .2s; }
.pager a:hover { border-color: var(--line-2); }
.pager .k { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.pager b { font-family: var(--serif); font-weight: 900; font-size: 16px; }
.pager .next { text-align: right; grid-column: 2; }
.endnote { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--mono); color: var(--accent); letter-spacing: .2em; }

/* ---------- 动效（尊重“减少动态效果”） ---------- */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-rise].in { opacity: 1; transform: none; }
@keyframes mark-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.js .hero-art .glyph { animation: mark-in 1.2s var(--ease) .15s both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}

/* ---------- 补充 ---------- */
.sec .gallery { margin-top: 56px; padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline-start: max(var(--gut), calc((100vw - var(--wrap)) / 2)); }
.now-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.now-grid .step .k { font-size: 12.5px; }
.now-grid .step .more { margin-top: auto; }
.chart-slot { border: 1px dashed var(--line-2); border-radius: 12px; padding: 48px 20px; margin: 24px 0; text-align: center; color: var(--ink-3); font-family: var(--mono); font-size: 13px; line-height: 1.7; }
@media (max-width: 620px) { .now-grid { grid-template-columns: 1fr; } }

/* ---------- 首屏小字、开源状态、荣誉 ---------- */
.hero .note { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin: 14px 0 0; letter-spacing: .02em; }
.step .top h3 { font-size: 19px; }
.st { font-family: var(--mono); font-size: 11.5px; padding: 1px 9px; border-radius: 999px; color: #04140b; background: #3ddc84; white-space: nowrap; }
.st.wait { background: transparent; color: #ffb020; border: 1px solid #ffb020; }
.honor-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; }
.honor-list li { border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px; font-size: 15px; background: var(--bg-2); }
.honor-list .y { font-family: var(--mono); font-size: 12.5px; color: var(--accent); margin-right: 14px; }
.sub-note { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-top: 16px; }

/* ---------- 交互图表（详情页，配 assets/js/charts.js） ---------- */
.chart-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 12px; margin: 28px 0; }
.prose .chart-title { font-weight: 700; color: var(--ink); font-size: 16px; margin: 0 0 2px; line-height: 1.5; }
.prose .chart-sub { color: var(--ink-3); font-size: 13px; margin: 0 0 10px; line-height: 1.6; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin: 0 0 6px; line-height: 1.6; }
.legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.chart { position: relative; width: 100%; min-height: 240px; touch-action: pan-y; }
.chart svg { display: block; font-family: var(--sans); }
.tip { position: absolute; display: none; pointer-events: none; background: #141c26; border: 1px solid #2b3a49; border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 1.6; color: var(--ink); white-space: nowrap; z-index: 5; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.tip .th { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.tip i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.tip b { margin-left: 12px; font-variant-numeric: tabular-nums; }
details.data { margin-top: 8px; }
details.data summary { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.prose details.data table { margin: 10px 0 4px; font-size: 13px; }
.prose details.data th, .prose details.data td { text-align: right; font-variant-numeric: tabular-nums; padding: 5px 8px; }
.prose details.data th:first-child, .prose details.data td:first-child { text-align: left; }
.prose .caveat, .prose .caveat li { color: var(--ink-3); font-size: 14.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .call { grid-template-columns: 96px minmax(0, 1fr); }
  .call .ev { grid-column: 2; }
}
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .quote:nth-child(3) { border-left: 0; padding-left: 0; }
  .tiers, .steps, .grid-cards { grid-template-columns: 1fr 1fr; }
  .tiers .tier.hl { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav, .header-actions .pill, .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; padding-bottom: 64px; gap: 8px; }
  .hero-art { order: -1; justify-self: center; max-width: 420px; }
  .sec-head, .head-grid, .split { grid-template-columns: 1fr; gap: 16px; }
  .sec-head { margin-bottom: 40px; }
  .tl { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .tl::before { display: none; }
  .feature { grid-template-columns: 1fr; }
  .feature .cover img { min-height: 0; aspect-ratio: 16 / 10; }
  .feature .panel { padding: 26px; }
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .call, .call.featured { grid-template-columns: 1fr; gap: 10px; }
  .call .ev { grid-column: auto; }
  .call.featured { padding: 22px; }
  .post { grid-template-columns: 1fr 20px; gap: 6px 14px; }
  .post .d { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .hero h1 { font-size: clamp(30px, 9.2vw, 44px); }
  .hero h1 .title-line { white-space: nowrap; }
}
@media (max-width: 620px) {
  .quotes, .tiers, .steps, .grid-cards, .facts { grid-template-columns: 1fr; }
  .quote + .quote { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .facts > div:nth-child(odd) { border-right: 0; }
  .facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .f-contact { text-align: left; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
}
