/*
 * 文件功能：VanceAI Editor 产品页样式
 *          暗场剪辑台美学 —— 衬线大标题（Instrument Serif）+ 等宽时间码（JetBrains Mono）
 *          + 播放头橙红单一强调色；时间线刻度作为全站视觉母题（分隔线、章节时间码）
 *          字体全部自托管（fonts.googleapis.com 在中国大陆不可达）
 * 作者：Claude
 */

/* ───────── 字体 ───────── */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-regular-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ───────── 设计令牌 ───────── */
:root {
  color-scheme: dark;
  --ink: #0b0c0e;
  --ink-2: #111318;
  --panel: #15171c;
  --line: rgba(236, 231, 223, 0.09);
  --line-2: rgba(236, 231, 223, 0.17);
  --text: #ece7df;
  --muted: #a09a91;
  --dim: #6f6a63;
  --accent: #ff5a1f;
  --accent-ink: #160803;
  --accent-soft: rgba(255, 90, 31, 0.16);
  --teal: #2e7f7a;
  --steel: #3e5c9a;
  --ochre: #8c6a2e;
  --rose: #b4523f;
  --f-display: "Instrument Serif", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif;
  --f-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 14px;
  --hw: 56px; /* 时间线轨道头宽度 */
}

/* ───────── 基础 ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 88% -8%, rgba(255, 90, 31, 0.13), transparent 70%),
    radial-gradient(50vw 50vw at -10% 30%, rgba(62, 92, 154, 0.08), transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--f-mono); letter-spacing: 0.02em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* 胶片颗粒：固定层 + 分步抖动，模拟放映时的颗粒闪烁 */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><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%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ───────── 导航 ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(var(--ink) 20%, rgba(11, 12, 14, 0.78));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand em { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.2em; color: var(--muted); }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  background: transparent;
  font: 500 12px/1 var(--f-mono);
}
.lang span { padding: 6px 9px; border-radius: 999px; color: var(--dim); transition: background 0.2s, color 0.2s; }
html[lang^="zh"] .lang [data-lang="zh"],
html[lang="en"] .lang [data-lang="en"] { background: var(--text); color: var(--ink); }

/* ───────── 按钮 ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -12px rgba(255, 90, 31, 0.75); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.os-ico { display: inline-flex; width: 18px; height: 18px; }
.os-ico:empty { display: none; }
.os-ico svg, .dl-ico svg { width: 100%; height: 100%; }

/* ───────── Hero ───────── */
.hero { position: relative; padding-block: clamp(40px, 8vw, 104px) 0; }
.channel-banner {
  display: inline-block;
  margin-bottom: 28px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 90, 31, 0.5);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 12px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 28px; }
.eyebrow .sep { color: var(--dim); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.3; } }
.display { font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 9.4vw, 138px); line-height: 0.94; letter-spacing: -0.02em; }
.display .it { font-style: italic; color: var(--accent); }
html[lang^="zh"] .display { font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; font-size: clamp(48px, 8.6vw, 124px); }
/* 中文模式下大标题是「拉丁衬线 + 中文黑体」混排：衬线只有 400 常规/斜体两个字面，中文字体没有斜体。
   禁止浏览器合成粗体/斜体——拉丁字母保持真实衬线，中文用黑体自带的真粗体、不做伪斜体 */
html[lang^="zh"] .display,
html[lang^="zh"] .sec-head h2,
html[lang^="zh"] .state.soon { font-synthesis: none; }
.lede { max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); margin: 28px 0 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin-top: 18px; font-size: 12px; color: var(--dim); }
.hero-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; padding-bottom: 10px; }
.tc-label { font-size: 11px; letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; }
.tc-big {
  font: 500 clamp(30px, 4.4vw, 58px)/1 var(--f-mono);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 231, 223, 0.5);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tc-big b { font-weight: 500; color: var(--accent); -webkit-text-stroke: 0; }
.tc-fps { font-size: 12px; color: var(--dim); }

/* ───────── 编辑器示意图 ───────── */
.stage { position: relative; margin-top: clamp(40px, 6vw, 80px); perspective: 2000px; }
.stage::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -50px;
  height: 90px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.28), transparent);
  filter: blur(24px);
}
.mock {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #0e1014;
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotateX(7deg);
  transform-origin: 50% 0;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage:hover .mock { transform: rotateX(0deg); }
.mock-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d34; }
.mock-bar .file { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-bar .exp { margin-left: auto; background: var(--accent); color: var(--accent-ink); padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 18% minmax(0, 1fr) 20%; height: clamp(210px, 30vw, 380px); border-bottom: 1px solid var(--line); }
.mock-lib { border-right: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.thumb { aspect-ratio: 16 / 9; border-radius: 5px; background: var(--g); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.mock-prev { position: relative; background: #07080a; border-right: 1px solid var(--line); }
.scene {
  position: absolute;
  inset: 12px 12px 42px;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(180deg, #0f1530 0%, #2d2447 34%, #9c4a3e 60%, #e98a45 74%, #f6b35e 80%, #22160f 80.5%, #0d0a08 100%);
}
.sun {
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  left: calc(22% + var(--p, 0.27) * 46%);
  top: calc(62% - var(--p, 0.27) * 16%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 45%, #fff1c9, #ffb35c 55%, #ff7a2e 72%);
  box-shadow: 0 0 60px 24px rgba(255, 140, 60, 0.35);
}
.hill { position: absolute; left: 0; right: 0; bottom: 0; }
.h1 { height: 36%; background: #1b1411; clip-path: polygon(0 60%, 14% 38%, 30% 55%, 48% 30%, 66% 52%, 82% 36%, 100% 50%, 100% 100%, 0 100%); }
.h2 { height: 22%; background: #0b0908; clip-path: polygon(0 45%, 20% 70%, 38% 40%, 58% 64%, 76% 35%, 100% 60%, 100% 100%, 0 100%); }
.ttl {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 3.4vw, 44px);
  line-height: 1.1;
  color: #fff6e8;
  white-space: nowrap;
  padding: 0.1em 0.35em;
  outline: 1px dashed rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.35s;
}
.stage.ttl-on .ttl { opacity: 1; }
.hd { position: absolute; width: 7px; height: 7px; background: #fff; border: 1px solid var(--accent); }
.hd.tl { left: -4px; top: -4px; }
.hd.tr { right: -4px; top: -4px; }
.hd.bl { left: -4px; bottom: -4px; }
.hd.br { right: -4px; bottom: -4px; }
.pip {
  position: absolute;
  right: 5%;
  bottom: 9%;
  width: 26%;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background: linear-gradient(160deg, #3e5c9a, #141b33);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}
.stage.pip-on .pip { opacity: 1; transform: none; }
.transport { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 22px; display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.play { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.play::after { content: ""; position: absolute; left: 7px; top: 5px; border-left: 6px solid var(--accent-ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: calc(var(--p, 0.27) * 100%); background: var(--accent); }
.mock-insp { padding: 12px; display: flex; flex-direction: column; gap: 9px; font-size: 10px; color: var(--dim); overflow: hidden; }
.ih { color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.row { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; }
.row em { font-style: normal; }
.sl { position: relative; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.sl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); background: rgba(236, 231, 223, 0.45); border-radius: 2px; }
.sl::after { content: ""; position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 10px; height: 10px; border-radius: 50%; background: var(--text); transform: translate(-50%, -50%); }

.mock-tl { position: relative; padding-bottom: 10px; }
.ruler {
  display: flex;
  height: 24px;
  margin-left: var(--hw);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  color: var(--dim);
  background-image:
    repeating-linear-gradient(90deg, rgba(236, 231, 223, 0.28) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(90deg, rgba(236, 231, 223, 0.12) 0 1px, transparent 1px 2%);
  background-size: 100% 9px, 100% 5px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
}
.ruler span { flex: 1; padding: 3px 0 0 4px; }
.trk { display: flex; height: 34px; border-bottom: 1px solid rgba(236, 231, 223, 0.04); }
.trk-h { width: var(--hw); flex: none; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--dim); border-right: 1px solid var(--line); }
.lane { position: relative; flex: 1; }
.clip {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: var(--x);
  width: var(--w);
  border-radius: 5px;
  overflow: hidden;
  padding: 3px 6px;
  font-size: 9px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.clip.v { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 34px), linear-gradient(180deg, #3a938d, var(--teal)); }
.clip.v.b { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 34px), linear-gradient(180deg, #5174bd, var(--steel)); }
.clip.t { background: linear-gradient(180deg, #c8634e, var(--rose)); }
.clip.a { background: linear-gradient(180deg, #a07d3a, var(--ochre)); padding: 0; }
.clip.sel { box-shadow: inset 0 0 0 1.5px var(--text); }
.xf { position: absolute; top: 5px; bottom: 5px; left: var(--x); width: 6%; z-index: 1; border-radius: 4px; background: linear-gradient(90deg, transparent, rgba(236, 231, 223, 0.55), transparent); }
.wave { position: absolute; inset: 4px; display: flex; align-items: center; gap: 1px; }
.wave i { flex: 1; height: var(--h); background: rgba(255, 255, 255, 0.55); border-radius: 1px; }
.playhead {
  position: absolute;
  top: 0;
  bottom: 10px;
  left: calc(var(--hw) + (100% - var(--hw)) * var(--p, 0.27));
  width: 1.5px;
  z-index: 3;
  background: var(--accent);
}
.playhead::before { content: ""; position: absolute; top: 0; left: 50%; width: 11px; height: 12px; transform: translateX(-50%); background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }

/* ───────── 章节 ───────── */
.rule {
  height: 22px;
  border-top: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, rgba(236, 231, 223, 0.18) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(236, 231, 223, 0.07) 0 1px, transparent 1px 16px);
  background-size: 100% 12px, 100% 6px;
  background-repeat: no-repeat;
}
.hero + .rule { margin-top: clamp(72px, 10vw, 140px); }
.sec { padding-block: clamp(64px, 10vw, 140px); }
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: baseline; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-tc { font-size: 12px; color: var(--accent); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.sec-kicker { font-size: 12px; color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.02em; }
html[lang^="zh"] .sec-head h2 { font-weight: 700; letter-spacing: -0.03em; font-size: clamp(32px, 4.8vw, 64px); }

/* ───────── 功能 bento ───────── */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--line-2); }
.card.span2 { grid-column: span 2; }
.card h3 { margin-top: auto; padding-top: 28px; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; max-width: 42em; }
.card .idx { font-size: 11px; color: var(--dim); }
.card .stat { font-family: var(--f-display); font-style: italic; font-size: clamp(64px, 7.4vw, 108px); line-height: 0.9; color: var(--accent); }
.card .stat small { font-size: 0.36em; font-style: normal; font-family: var(--f-mono); color: var(--muted); margin-left: 6px; }
.mini-tl { position: relative; height: 30px; margin-bottom: 20px; border-radius: 6px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.mini-tl i { position: absolute; top: 5px; bottom: 5px; left: var(--x); width: var(--w); border-radius: 4px; background: linear-gradient(180deg, #3a938d, var(--teal)); }
.mini-tl i:nth-child(2) { background: linear-gradient(180deg, #5174bd, var(--steel)); }
.mini-tl i:nth-child(3) { background: linear-gradient(180deg, #c8634e, var(--rose)); }
.mini-tl b { position: absolute; top: -4px; bottom: -4px; left: 58%; width: 1.5px; background: var(--accent); }
.card:hover .mini-tl b { animation: nudge 1.4s ease-in-out infinite alternate; }
@keyframes nudge { to { left: 76%; } }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 12px; }
.flow span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); background: var(--ink); }
.flow span:first-child { border-color: rgba(255, 90, 31, 0.55); background: var(--accent-soft); }
.flow b { font-weight: 400; color: var(--dim); }

/* ───────── 下载 ───────── */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.dl-card.detected { border-color: rgba(255, 90, 31, 0.55); box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.2), 0 30px 80px -40px rgba(255, 90, 31, 0.5); }
.dl-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dl-ico { display: inline-flex; width: 26px; height: 26px; color: var(--text); }
.dl-top h3 { font-size: 24px; letter-spacing: -0.01em; }
.you { font-size: 11px; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.ver-badge { margin-left: auto; font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.req { font-size: 13px; color: var(--dim); }
.files { display: flex; flex-direction: column; gap: 10px; }
.file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color 0.2s, background 0.2s;
}
.file:hover { border-color: var(--accent); background: #1a120e; }
.file-name { font-weight: 600; font-size: 15px; }
.file-meta { grid-column: 1; font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.file-go { grid-row: 1 / span 2; grid-column: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.sha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 4px; padding: 2px; border: 0; background: none; font-size: 11px; color: var(--dim); text-align: left; }
.sha code { font-family: var(--f-mono); color: var(--muted); }
.sha em { font-style: normal; color: var(--accent); }
.sha:hover code { color: var(--text); }
.state { font-size: 14px; color: var(--muted); }
.state.soon { font-family: var(--f-display); font-style: italic; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; color: var(--text); padding-block: 18px; }
html[lang^="zh"] .state.soon { font-style: normal; font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); }
.retry { align-self: flex-start; }
.skeleton { height: 66px; border-radius: 10px; background: linear-gradient(90deg, var(--ink-2), #1c1f26, var(--ink-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.skeleton.short { height: 44px; width: 70%; }
@keyframes sk { to { background-position: -200% 0; } }
.dl-note { margin-top: 20px; font-size: 13px; color: var(--dim); max-width: 62em; }

/* ───────── 更新日志 ───────── */
.log { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr); gap: 24px 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.log-ver { font-family: var(--f-display); font-style: italic; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; }
.log-date { font-size: 12px; color: var(--dim); margin-top: 10px; }
.log-notes { font-size: 17px; line-height: 1.8; white-space: pre-line; }

/* ───────── 页脚 ───────── */
.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--dim); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot .wordmark { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--text); }
.foot a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot a:hover { color: var(--text); }
.noscript { margin: 0; padding: 12px var(--gutter); background: var(--accent); color: var(--accent-ink); text-align: center; }

/* ───────── 入场动效（仅 JS 可用时启用，避免脚本失败导致内容不可见）───────── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .stage.rv.in .mock { transform: rotateX(7deg); }
.js .stage.rv.in:hover .mock { transform: rotateX(0deg); }

/* ───────── 响应式 ───────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-aside { flex-direction: row; flex-wrap: wrap; align-items: baseline; text-align: left; gap: 8px 16px; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-lib, .mock-insp { display: none; }
  .mock-prev { border-right: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --hw: 34px; }
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .nav-right .btn-sm { display: none; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .mock { transform: none; }
  .js .stage.rv.in .mock { transform: none; }
  .mock-bar .file { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card.span2 { grid-column: auto; }
  .card { min-height: 0; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .log { grid-template-columns: minmax(0, 1fr); }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
}
