/* ============================================================
   mini-render — 落地页样式
   深色底 + 橙(Rust)/青双色强调，无外部字体、无框架依赖。
   动效一律只动 transform / opacity / background-position（不触发重排），
   prefers-reduced-motion 下全部停住（见文件末尾）。
   ============================================================ */

:root {
  --bg:        #07090d;
  --bg-2:      #0b0e14;
  --bg-3:      #10141c;
  --surface:   rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .14);

  --text:  #e8ebf1;
  --dim:   #a6b0c0;
  --faint: #75808f;

  --acc:    #ff7a2f;
  --acc-2:  #38bdf8;
  --acc-3:  #34d399;
  --acc-dim: rgba(255, 122, 47, .14);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --wrap: 1180px;
  --head: 60px;

  /* 强调字、标题渐变的亮端、几种浅色的状态字：深色底上是亮的，浅色主题里换成深的（见文件末尾「背景主题」） */
  --strong:      #fff;
  --title-2:     #c9d3e3;
  --soft-red:    #ff9d97;
  --soft-green:  #6ee7b7;
  --soft-cyan:   #7dd3fc;
  --soft-orange: #ffb98c;
  --chip-new:    #ffe1cc;
  --code-fg:     #ffd9c2;
  --grid-dot:    rgba(255, 255, 255, .085);
  color-scheme: dark;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
          "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--acc-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.015em; font-weight: 700; }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .38em;
  color: var(--code-fg);
  white-space: nowrap;
}

b, strong { color: var(--strong); font-weight: 650; }

:focus-visible {
  outline: 2px solid var(--acc-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; inset: 12px auto auto 12px; z-index: 100;
  background: var(--acc); color: #1a0d04; font-weight: 700;
  padding: 10px 16px; border-radius: var(--r-sm);
}

/* 渐变字：色带首尾同色、背景宽 200%，平移一整个周期正好接上（不跳色） */
.grad {
  background: linear-gradient(100deg, var(--acc), #ffb066 25%, var(--acc-2) 50%, #ffb066 75%, var(--acc));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* 顶部阅读进度条（app.js 写 --p） */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--acc), #ff4d6d, var(--acc-2));
  box-shadow: 0 0 12px rgba(255, 122, 47, .6);
}

/* ─────────────  头部  ───────────── */

.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.head-inner { display: flex; align-items: center; gap: 24px; height: 100%; }

.brand { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(140deg, var(--acc), #ff4d6d 55%, var(--acc-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 4px 14px rgba(255, 122, 47, .35);
}
.brand-name { font-family: var(--mono); font-size: 15px; letter-spacing: -.02em; }

/* 导航文字在别的语言里长得多：不折行，放不下就横向滚（滚动条藏起来），不把头部撑高 */
.head-nav { display: flex; gap: 2px; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.head-nav::-webkit-scrollbar { display: none; }
/* 被截断的最后一项不要硬切：右侧 28px 渐隐，提示还能横向滚 */
html:not([lang="en"]):not([lang^="zh"]) .head-nav {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.head-nav a { white-space: nowrap; flex: none; }
.head-nav a {
  color: var(--dim); font-size: 14px; padding: 6px 10px; border-radius: 999px;
  transition: color .18s, background .18s;
}
.head-nav a:hover { color: var(--strong); background: var(--surface-2); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 15px; font-weight: 600; padding: 11px 20px;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .16s, background .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--acc), #ff5f57);
  color: #1a0c03;
  box-shadow: 0 8px 26px -8px rgba(255, 122, 47, .7);
}
.btn-primary:hover { box-shadow: 0 12px 34px -8px rgba(255, 122, 47, .9); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-2); }
.head-cta { padding: 7px 15px; font-size: 14px; flex: none; }

/* 语言切换：默认英文，其余语言由 assets/i18n.js 换文案（结构只有一份）。
   一个按钮（地球 + 当前语言的自称）展开一列菜单，16 种语言放不进两个并排的按钮了 */
.lang-switch { position: relative; flex: none; margin-left: 10px; }
.lang-cur {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  color: var(--dim); cursor: pointer; white-space: nowrap;
  padding: 7px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  transition: color .18s, background .18s;
}
.lang-cur:hover, .lang-cur[aria-expanded="true"] { color: var(--strong); background: var(--surface-2); }
.lang-cur:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.lang-caret { transition: transform .18s; }
.lang-cur[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  list-style: none; margin: 0; padding: 6px; min-width: 190px;
  max-height: min(70vh, 460px); overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .55);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  width: 100%; text-align: left; font: inherit; font-size: 13px; line-height: 1.2;
  color: var(--dim); background: none; border: 0; cursor: pointer;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
}
.lang-menu button:hover, .lang-menu button:focus-visible { color: var(--strong); background: var(--surface-2); outline: none; }
.lang-menu button[aria-pressed="true"] { color: var(--acc); background: var(--acc-dim); }
@media (max-width: 1020px) {
  .head-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .head-cta { margin-left: 10px; }
}
@media (max-width: 560px) {
  /* 头部三件东西（品牌 / 语言 / GitHub）在 390px 上会挤出屏幕：
     24px 的 gap 与内边距先收一收 */
  .head-inner { gap: 12px; }
  .lang-switch { margin-left: auto; }
  .lang-cur { padding: 6px 9px; }
  .head-cta { margin-left: 0; padding: 7px 12px; }
}
@media (max-width: 430px) {
  /* 再窄就优先保住语言切换：GitHub 只留图标（链接语义由 aria-label 兜着） */
  .cta-label { display: none; }
  /* 当前语言名只留给读屏（按钮剩地球图标） */
  .lang-cur-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .head-cta { padding: 8px 10px; }
}

/* ─────────────  Hero  ───────────── */

.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); overflow: hidden; isolation: isolate; }

/* 三团慢慢飘的极光（只动 transform） */
.hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.hero-glow i {
  position: absolute; width: 58vw; height: 58vw; max-width: 820px; max-height: 820px;
  border-radius: 50%; animation: drift 24s ease-in-out infinite alternate; will-change: transform;
}
.hero-glow i:nth-child(1) { background: radial-gradient(circle, rgba(255, 122, 47, .30), transparent 62%); top: -26%; left: -12%; }
.hero-glow i:nth-child(2) { background: radial-gradient(circle, rgba(56, 189, 248, .24), transparent 62%); top: -30%; right: -14%; animation-duration: 28s; animation-delay: -7s; }
.hero-glow i:nth-child(3) { background: radial-gradient(circle, rgba(168, 85, 247, .18), transparent 62%); top: 24%; left: 28%; animation-duration: 32s; animation-delay: -14s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 3vw, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 6vw, 0) scale(.94); }
}

/* 像素点阵底纹：「像素出」的那块画布 */
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 25%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.eyebrow {
  margin: 0 0 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--acc);
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 122, 47, .32); background: rgba(255, 122, 47, .07);
  letter-spacing: .1em;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--acc-3);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  letter-spacing: -.04em; margin-bottom: 22px;
}
/* 英文 / 中文的标题短；别的语言同一句长出一截（日语、德语、俄语…），按原字号会折成五六行、只剩一个字挂在行尾 */
html:not([lang="en"]):not([lang^="zh"]) .hero h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.02em; }

.lede { color: var(--dim); font-size: clamp(15.5px, 1.35vw, 17.5px); margin: 0 0 20px; max-width: 62ch; }

.hero-nots { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 30px; }
.hero-nots li {
  font-size: 13.5px; color: var(--dim);
  border: 1px dashed var(--line-2); border-radius: 999px; padding: 5px 13px;
  background: var(--surface);
}
.hero-nots li::before { content: "✕ "; color: #ff5f57; font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.platforms { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 28px; }
.platforms-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.platforms ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.platforms li {
  font-size: 12.5px; font-weight: 600; color: var(--dim);
  padding: 3px 10px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
.platforms li:hover { color: var(--strong); border-color: rgba(255, 122, 47, .45); background: rgba(255, 122, 47, .08); }

/* 手机外框 */

.hero-shots { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 1.6vw, 20px); }

.phone { margin: 0; text-align: center; }
.phone figcaption { font-size: 12.5px; color: var(--faint); margin-top: 12px; }

.phone-screen,
.shot .phone-screen {
  container-type: size;
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 375 / 667;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow:
    0 0 0 5px #16181d,
    0 0 0 6px rgba(255, 255, 255, .10),
    0 28px 60px -24px rgba(0, 0, 0, .9);
}
.phone-screen img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  transition: transform 7.5s cubic-bezier(.33, 0, .35, 1);
}
.phone:hover .phone-screen img,
.shot:hover .phone-screen img,
.shot:focus-visible .phone-screen img { transform: translateY(calc(100cqh - 100%)); }

/* 自动慢慢滚到底再回来（截图比屏幕高的那截）；指上去就停住 */
.autoscroll img { animation: autoscroll var(--d, 16s) ease-in-out infinite; }
.autoscroll:hover img { animation-play-state: paused; }
@keyframes autoscroll {
  0%, 14%  { transform: translateY(0); }
  50%, 64% { transform: translateY(calc(100cqh - 100%)); }
  100%     { transform: translateY(0); }
}

/* 主屏开场的「光栅化」：一块带扫描线的暗幕往下扫，扫过的地方露出画面 */
.raster {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #121722, #0b0e14);
  animation: raster 2.1s cubic-bezier(.55, .05, .35, 1) .45s forwards;
}
.raster::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, #ffd2b0 20%, var(--acc-2) 80%, transparent);
  box-shadow: 0 0 22px 5px rgba(255, 122, 47, .65);
}
@keyframes raster { to { transform: translateY(102%); } }
.phone-main .autoscroll img { animation-delay: 2.8s; }

.phone-main { width: clamp(180px, 24vw, 262px); position: relative; }
.phone-main::before {
  content: ""; position: absolute; inset: 8% -18% 12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 47, .32), transparent);
  filter: blur(8px);
}
.phone-side { width: clamp(120px, 16.5vw, 186px); opacity: .86; }
.phone-side:first-child  { transform: rotate(-2.5deg) translateY(-6px); }
.phone-side:last-child   { transform: rotate(2.5deg)  translateY(-6px); }
.phone-side { transition: opacity .3s, transform .3s; }
.phone-side:hover { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shots { order: 2; }
  .hero h1 br { display: none; }
}
@media (max-width: 560px) {
  .phone-side { display: none; }
  .phone-main { width: min(72vw, 260px); }
  .eyebrow-pill { font-size: 11px; letter-spacing: .06em; }
}

/* 数字条 */

/* 列数写死而不用 auto-fit：6 项能被 6 / 3 / 2 整除，最后一行永远不会留出
   露着分隔线底色的空格子（auto-fit 只收掉整列全空的轨道，管不了半行）。 */
.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; margin: clamp(44px, 6vw, 76px) 0 0;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(255, 122, 47, .35);
}
@media (max-width: 1040px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats > div { background: var(--bg-2); padding: 20px 18px; transition: background .3s; }
.stats > div:hover { background: var(--bg-3); }
.stats dt { font-size: 12.5px; color: var(--faint); letter-spacing: .02em; }
.stats dd {
  margin: 4px 0 2px; font-size: clamp(26px, 3vw, 34px); font-weight: 750;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--strong), var(--title-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats dd small { font-size: .45em; font-weight: 600; color: var(--faint); margin-left: 3px; -webkit-text-fill-color: var(--faint); }
.stats p { margin: 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; }

/* ─────────────  区块通用  ───────────── */

.band { padding: clamp(64px, 8vw, 116px) 0; border-top: 1px solid var(--line); position: relative; }
.band.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.sec-head { max-width: 78ch; margin: 0 0 clamp(36px, 4.5vw, 56px); }
.sec-head h2 { font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -.03em; }
.sec-lede { color: var(--dim); margin: 18px 0 0; font-size: clamp(15px, 1.2vw, 16.5px); }

.note { color: var(--faint); font-size: 14.5px; line-height: 1.7; }
.note.center { text-align: center; max-width: 78ch; margin-left: auto; margin-right: auto; }
.mini-head { font-size: 15px; color: var(--acc); margin-bottom: 10px; letter-spacing: .01em; }
.mt { margin-top: 26px; }
.mt-lg { margin-top: 22px; }

/* minmax 里一律套 min(…, 100%)：光写 minmax(300px, 1fr) 时，视口窄到容器
   只剩 272px（320px 屏减去两侧 24px 内边距）轨道仍按 300px 算，整页就横向溢出，
   而 body 上的 overflow-x:hidden 会把超出的部分直接切掉、连滑都滑不到。 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr)); gap: 16px; }
.gap-lg { gap: 22px; }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 22px 24px;
  transition: border-color .22s, background .22s, transform .22s;
}
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card h3 { font-size: 16.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.card h3 small { font-weight: 500; color: var(--faint); font-size: 12.5px; }
.card p { color: var(--dim); font-size: 14.5px; margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card .bad {
  color: var(--faint); font-size: 13.5px; border-left: 2px solid #ff5f57;
  padding-left: 12px; margin-top: 14px;
}

.card.num { padding-top: 26px; }
.card.num h3 { padding-right: 36px; }   /* 右上角的描边序号不压标题 */
.card.num::before {
  content: attr(data-n);
  position: absolute; top: 16px; right: 18px;
  font-family: var(--mono); font-size: 34px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
}

/* 跟着指针走的一团光（app.js 写 --mx / --my） */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 47, .11), transparent 42%);
}
.spot:hover::after { opacity: 1; }

.facts { margin-top: 16px; }
.facts b { color: var(--acc); font-variant-numeric: tabular-nums; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(30px, 4vw, 52px); }

/* ─────────────  表格  ───────────── */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; }

.cmp { font-size: 14.5px; min-width: 640px; }
.cmp th, .cmp td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: var(--bg-3); font-weight: 600; }
.cmp tbody th { color: var(--strong); font-weight: 650; white-space: nowrap; }
.cmp td { color: var(--dim); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: var(--surface); }

.tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; margin-right: 6px; white-space: nowrap;
}
.tag.no   { background: rgba(255, 95, 87, .16);  color: var(--soft-red); }
.tag.yes  { background: rgba(52, 211, 153, .16); color: var(--soft-green); }
.tag.near { background: rgba(56, 189, 248, .16); color: var(--soft-cyan); }

.kv { font-size: 14.5px; }
.kv th, .kv td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { color: var(--strong); font-weight: 600; padding-right: 18px; }
.kv td { color: var(--dim); }
.kv th small, .kv td small { display: block; color: var(--faint); font-weight: 400; font-size: 12.5px; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
/* 宿主接口一节：能力 × 三个平台。勾 / 横居中，格子里的开关名换行写小字 */
.host-kv thead th { font-size: 12.5px; color: var(--faint); font-weight: 600; padding: 0 6px 8px; text-align: center; }
.host-kv thead th:first-child { padding-left: 0; }
.host-kv tbody th { font-weight: 500; font-size: 14px; }
.host-kv td { text-align: center; padding: 11px 6px; color: var(--strong); white-space: nowrap; }
.host-kv td small { font-size: 11px; }
.chips li small { color: var(--faint); }
.host-stack { display: grid; gap: 16px; }
.host-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.host-kv { width: 100%; min-width: 560px; }
.kv b { color: var(--acc); font-variant-numeric: tabular-nums; }
/* 窄卡片里的表：标签列给够宽，不然「Rust tests」都要折成两行 */
.grid-3 .kv th { width: 50%; }
.grid-3 .kv td { font-variant-numeric: tabular-nums; }

/* ─────────────  管线  ───────────── */

/* 9 张卡（八步 + 06′ 动画），3 列正好三行，同样避免半行空格子。 */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--bg-2); padding: 24px 22px 26px; transition: background .22s; }
.steps li:hover { background: var(--bg-3); }
.step-no {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--acc); background: var(--acc-dim);
  border-radius: 6px; padding: 3px 8px; display: inline-block; margin-bottom: 14px;
}
.steps h3 { font-size: 16.5px; margin-bottom: 9px; }
.steps p { color: var(--dim); font-size: 14px; margin: 0; }

/* 数据流：每段连线上跑一个光点，一段接一段 */
.flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin: 0 0 clamp(28px, 3.5vw, 40px);
}
.flow span {
  font-family: var(--mono); font-size: 12.5px; color: var(--dim);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; background: var(--surface);
}
.flow .flow-out {
  color: #1a0c03; background: linear-gradient(135deg, var(--acc), #ffab5e); border-color: transparent; font-weight: 700;
  box-shadow: 0 0 24px -4px rgba(255, 122, 47, .7);
}
.flow i { position: relative; width: 26px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--acc)); flex: none; }
.flow i::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 6px; height: 5px; border-radius: 50%;
  background: #ffd2b0; box-shadow: 0 0 8px 2px rgba(255, 122, 47, .85); opacity: 0;
  animation: pulse-run 2.4s linear infinite; animation-delay: calc(var(--k, 0) * .4s);
}
@keyframes pulse-run {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: 1; }
  30%  { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(20px); opacity: 0; }
}

/* ─────────────  Skyline 对齐  ───────────── */

/* 夹在 why（普通）与 pipeline（alt）之间：用自己的底色与光晕，而不是给后面每一节翻 alt */
/* overflow 用 clip 而不是 hidden：hidden 会让这一节变成滚动容器，右边的手机就吸不住顶了（旧浏览器退回 hidden，只是不吸顶） */
.sky-band {
  overflow: hidden; overflow: clip; isolation: isolate;
  background: linear-gradient(180deg, rgba(56, 189, 248, .045), var(--bg) 62%);
}
.sky-band::before {
  content: ""; position: absolute; inset: -12% auto auto -14%; width: 64vw; height: 64vw; max-width: 820px; max-height: 820px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(56, 189, 248, .12), transparent 62%);
}
.sky-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
@media (max-width: 1020px) { .sky-grid { grid-template-columns: 1fr; } }
.sky-main { display: grid; gap: 16px; min-width: 0; }

/* 3 格写死：3 / 1 列都是整行 */
.sky-cov {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
@media (max-width: 560px) { .sky-cov { grid-template-columns: 1fr; } }
.sky-cov > div { background: var(--bg-2); padding: 18px 18px 20px; transition: background .3s; }
.sky-cov > div:hover { background: var(--bg-3); }
.sky-cov dt { font-size: 12.5px; color: var(--faint); }
.sky-cov dd {
  margin: 6px 0 4px; font-size: clamp(28px, 3vw, 36px); font-weight: 750; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
  background: linear-gradient(100deg, var(--strong) 20%, var(--soft-cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sky-cov dd small { font-size: .5em; font-weight: 600; margin-left: 2px; -webkit-text-fill-color: var(--faint); color: var(--faint); }
.sky-cov p { margin: 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; }

/* 六组标签：2 列三行 / 1 列 */
.tagset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .tagset { grid-template-columns: 1fr; } }
.tag-group { padding: 16px 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .22s; }
.tag-group:hover { border-color: var(--line-2); }
.tag-group h3 { font-size: 14px; margin-bottom: 11px; display: flex; align-items: baseline; gap: 8px; }
.tag-group h3 small { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--soft-cyan); }
.tag-sub { margin: -4px 0 10px; font-size: 12px; color: var(--faint); }
.tag-sub code { font-size: 11.5px; }

/* 状态不只靠颜色区分：每种都带一个符号（✦ 新加 / ◐ 写明降级 / ⧉ 同层 / 虚线框 占位），图例在下面 */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-family: var(--mono); font-size: 12px; line-height: 1.2; padding: 5px 8px; border-radius: 6px;
  color: var(--dim); background: var(--surface); border: 1px solid var(--line);
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.chips li.new { color: var(--chip-new); background: var(--acc-dim); border-color: rgba(255, 122, 47, .42); }
.chips li.new::before { content: "✦ "; color: var(--acc); }
.chips li.part::after { content: " ◐"; color: #fbbf24; }
.chips li.same { box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .55); }
.chips li.same::after { content: " ⧉"; color: var(--soft-cyan); }
.chips li.part.same::after { content: " ◐⧉"; }
.chips li.ph { border-style: dashed; border-color: var(--line-2); background: transparent; }
.chips li.ph.new { color: var(--chip-new); }
.chip-legend { gap: 8px 10px; }
.chip-legend li { font-family: var(--sans); font-size: 12.5px; color: var(--faint); }
.chip-legend li.new { color: var(--chip-new); }

/* 三台手机并排，中间那台往下错一点；窄屏一行放不下就收成两台 */
/* 左边标签墙比三台手机高得多：手机吸顶跟着走，免得右边下半截空着 */
.sky-shots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start;
  position: sticky; top: calc(var(--head) + 24px);
}
.sky-shots .phone:nth-child(2) { margin-top: 34px; }
.sky-shots .phone-screen { border-radius: 16px; }
@media (max-width: 1020px) { .sky-shots { position: static; max-width: 640px; margin: 0 auto; width: 100%; } }
@media (max-width: 480px) {
  .sky-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sky-shots .phone:nth-child(3) { display: none; }
  .sky-shots .phone:nth-child(2) { margin-top: 0; }
}

/* ─────────────  真机  ───────────── */

.device-band { overflow: hidden; }
.device-band::before {
  content: ""; position: absolute; inset: 10% -20% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(52, 211, 153, .10), transparent 60%);
}
.device-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(20px, 3vw, 36px); align-items: start;
}
.device-main { display: grid; gap: 16px; min-width: 0; }
.device-side { display: grid; gap: 22px; position: sticky; top: calc(var(--head) + 20px); }
@media (max-width: 980px) {
  .device-grid { grid-template-columns: 1fr; }
  .device-side { position: static; }
}

.strip-card h3 { font-size: 15.5px; margin-bottom: 18px; }
.strip-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 58px; align-items: center; gap: 14px; margin-bottom: 12px; }
.strip-label { font-size: 13px; color: var(--faint); }
.strip { position: relative; display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px; }
.strip i { border-radius: 2px; background: rgba(52, 211, 153, .5); }
.strip i.rep { background: #ff5f57; box-shadow: 0 0 8px rgba(255, 95, 87, .75); }
/* 播放头一秒扫一遍：正好是这 90 格代表的那一秒 */
.strip::after {
  content: ""; position: absolute; top: -5px; bottom: -5px; left: 0; width: 2px; border-radius: 2px;
  background: #fff; box-shadow: 0 0 12px 2px rgba(255, 255, 255, .7);
  animation: playhead 1s linear infinite;
}
@keyframes playhead { to { left: calc(100% - 2px); } }
.strip-val { font-family: var(--mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.bad-val  { color: var(--soft-red); }
.good-val { color: var(--soft-green); }
.strip-card .note { margin: 6px 0 0; font-size: 13px; }
@media (max-width: 560px) {
  .strip { gap: 1px; height: 28px; }
  .strip-row { grid-template-columns: 1fr auto; }
  .strip-row .strip { grid-column: 1 / -1; grid-row: 2; }
}

/* 9 张：3 列正好三行；2 列时最后一张单出来，让它占满一行 */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1140px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics > .metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px)  { .metrics { grid-template-columns: 1fr; } }
.metric {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 18px 20px; overflow: hidden; transition: border-color .22s, transform .22s;
}
.metric:hover { border-color: rgba(255, 122, 47, .35); }
.metric-num {
  display: block; font-family: var(--mono); font-size: clamp(18px, 1.7vw, 22px); font-weight: 750;
  letter-spacing: -.02em; white-space: nowrap; margin-bottom: 8px;
  background: linear-gradient(100deg, var(--strong) 10%, var(--acc) 70%, #ffb066);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric h3 { font-size: 15px; margin-bottom: 6px; }
.metric p { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.6; }

.phone-device { position: relative; width: min(100%, 270px); margin: 0 auto; }
.hz-badge {
  position: absolute; top: -12px; right: -14px; z-index: 3;
  font-family: var(--mono); font-size: 12px; font-weight: 800; color: #06210f;
  background: linear-gradient(135deg, #a7f3d0, var(--acc-3));
  padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 8px 22px -6px rgba(52, 211, 153, .85);
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-4px); } }

/* ─────────────  双后端  ───────────── */

.twin {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center;
  gap: clamp(10px, 2vw, 28px); max-width: 960px; margin: 0 auto clamp(34px, 4vw, 52px);
}
.twin-tile { margin: 0; text-align: center; min-width: 0; }
.twin-tile .phone-screen, .stack3d, .diff-screen { width: 100%; max-width: 230px; margin: 0 auto; aspect-ratio: 375 / 667; }
.twin-tile .phone-screen img { transition: none; }
.twin figcaption { margin-top: 16px; font-size: 13px; color: var(--dim); font-weight: 600; }
.twin-op { font-family: var(--mono); font-size: 30px; color: var(--faint); line-height: 1; }
@media (max-width: 760px) {
  .twin { grid-template-columns: 1fr; }
  .twin-op { justify-self: center; }
  .twin-tile .phone-screen, .stack3d, .diff-screen { max-width: 190px; }
}

/* 三张图层斜着叠起来：页面 / tabBar / fixed，指上去拉开 */
.stack3d { position: relative; perspective: 900px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.plate {
  position: absolute; inset: 6% 4%; border-radius: 16px;
  transform: rotateX(54deg) rotateZ(-36deg) translateZ(calc(var(--z, 0) * 1px));
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.plate code { position: absolute; left: 8px; top: 8px; font-size: 10.5px; z-index: 1; }
.plate-page { --z: 0; background: #fff; overflow: hidden; box-shadow: 0 34px 50px -18px rgba(0, 0, 0, .9); }
.plate-page img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.plate-tab { --z: 40; background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .6); }
.plate-tab .plate-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 10%; border-radius: 0 0 15px 15px; background: rgba(56, 189, 248, .55); }
.plate-fixed { --z: 80; background: rgba(255, 122, 47, .05); border: 1px solid rgba(255, 122, 47, .65); }
.plate-fixed .plate-fab {
  position: absolute; right: 10%; bottom: 16%; width: 20%; aspect-ratio: 1; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 22px rgba(255, 122, 47, .95);
}
.twin-tile:hover .plate-tab { --z: 72; }
.twin-tile:hover .plate-fixed { --z: 144; }

.diff-screen {
  position: relative; display: grid; place-content: center; justify-items: center; overflow: hidden;
  border-radius: 22px; background-color: #040507;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 5px #16181d, 0 0 0 6px rgba(255, 255, 255, .10), 0 28px 60px -24px rgba(0, 0, 0, .9);
}
.diff-screen b {
  font-family: var(--mono); font-size: clamp(60px, 7vw, 88px); line-height: 1; position: relative;
  background: linear-gradient(135deg, #a7f3d0, var(--acc-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.diff-screen small { color: var(--faint); font-size: 12.5px; margin-top: 8px; position: relative; }
.diff-screen::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(110, 231, 183, .12), transparent);
  animation: scan 3.4s linear infinite;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

.be-points { max-width: 900px; margin: 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; }
@media (max-width: 760px) { .be-points { grid-template-columns: 1fr; } }

/* ─────────────  画廊  ───────────── */

/* 画廊上方一条慢慢流过的截图带（app.js 从下面的卡片里复制，装饰用，读屏跳过） */
.marquee {
  overflow: hidden; margin: 0 0 clamp(36px, 4vw, 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 18px; width: max-content; padding: 10px 0 24px; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  width: 120px; height: 214px; object-fit: cover; object-position: top; flex: none;
  border-radius: 14px; border: 1px solid var(--line-2); background: #fff;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .95);
  transition: transform .3s;
}
.marquee-track img:hover { transform: translateY(-6px) scale(1.04); }
@keyframes marquee { to { transform: translateX(-50%); } }

.shots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.shot { display: block; color: inherit; }
.shot:hover { text-decoration: none; }
.shot .phone-screen { border-radius: 18px; transition: transform .3s, box-shadow .3s; }
.shot:hover .phone-screen { transform: translateY(-5px); box-shadow: 0 0 0 5px #16181d, 0 0 0 6px rgba(255, 122, 47, .45), 0 32px 60px -22px rgba(0, 0, 0, .95); }
.shot-cap { display: block; margin-top: 14px; font-size: 12.5px; color: var(--faint); line-height: 1.55; }
.shot-cap b { display: block; color: var(--text); font-size: 14px; font-weight: 650; margin-bottom: 1px; }

/* ─────────────  性能条  ───────────── */

.bars { display: grid; gap: 14px; }
.bar-row {
  display: grid; grid-template-columns: minmax(min(190px, 100%), 280px) minmax(0, 1fr);
  gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 22px;
}
.bar-label { font-size: 14.5px; font-weight: 600; }
.bar-label small { display: block; color: var(--faint); font-weight: 400; font-size: 12.5px; line-height: 1.5; }
.bar-track { display: grid; gap: 7px; }
.bar-before, .bar-after {
  display: flex; align-items: center; justify-content: flex-end;
  height: 26px; border-radius: 6px; padding: 0 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  width: var(--w); min-width: max-content;
  transition: width 1.1s cubic-bezier(.2, .7, .3, 1);
}
.bar-before { background: var(--surface-2); color: var(--faint); }
.bar-after  {
  background: linear-gradient(90deg, rgba(255, 122, 47, .55), var(--acc)); color: #1a0c03;
  box-shadow: 0 0 18px -6px rgba(255, 122, 47, .8);
}
.js-anim .bar-before, .js-anim .bar-after { width: 0; }
.js-anim .is-in .bar-before, .js-anim .is-in .bar-after { width: var(--w); }

@media (max-width: 640px) {
  .bar-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ─────────────  列表  ───────────── */

.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li, .crosses li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--dim); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 9px; height: 5px; border: 2px solid var(--acc-3);
  border-top: 0; border-right: 0; transform: rotate(-45deg);
}
.crosses li::before { content: "✕"; position: absolute; left: 2px; top: 0; color: #ff5f57; font-size: 13px; font-weight: 700; }

.ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.ol li { color: var(--dim); font-size: 14.5px; }
.ol li::marker { color: var(--acc); font-weight: 700; }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--acc-3); box-shadow: 0 0 12px var(--acc-3); }
.dot.no { background: #ff5f57; box-shadow: 0 0 12px #ff5f57; }
.panel-yes { border-color: rgba(52, 211, 153, .22); }
.panel-no  { border-color: rgba(255, 95, 87, .20); }

.callout {
  margin-top: 22px; padding: 24px 26px;
  background: linear-gradient(135deg, rgba(255, 122, 47, .10), rgba(255, 122, 47, .02));
  border: 1px solid rgba(255, 122, 47, .28); border-radius: var(--r);
}
.callout h3 { font-size: 16.5px; margin-bottom: 10px; color: var(--soft-orange); }
.callout p { margin: 0; color: var(--dim); font-size: 14.5px; }
.callout b { color: var(--acc); }
/* 内存「之前 → 现在」对照表：之前划灰，现在用强调色，数字等宽对齐 */
.callout .mt { margin-top: 14px; }
.mem-cmp { min-width: 520px; font-size: 14px; }
.mem-cmp th, .mem-cmp td { padding: 10px 16px; }
.mem-cmp tbody th small { display: block; color: var(--faint); font-weight: 400; font-size: 12px; white-space: normal; }
.mem-cmp td { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mem-cmp td.before { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 95, 87, .55); }
.mem-cmp td.after { color: var(--acc); font-weight: 650; }
.mem-cmp td.delta { color: var(--soft-green); font-weight: 650; }

/* ─────────────  依赖  ───────────── */

/* 15 个依赖：5 列三行 / 3 列五行，都是整行（2 列会剩半行空格子露出底色）。 */
.deps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
@media (max-width: 1080px) { .deps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .deps { grid-template-columns: 1fr; } }
/* 名字、版本、用途竖着排：「rustls + webpki-roots」这种长名字和「=0.23.42 / =1.0.9」并排时两边都挤成三行 */
.deps li { background: var(--bg-2); padding: 15px 18px; display: grid; align-content: start; gap: 4px; transition: background .2s; }
.deps li:hover { background: var(--bg-3); }
.deps b { font-family: var(--mono); font-size: 14px; letter-spacing: -.01em; }
.deps span { justify-self: start; font-family: var(--mono); font-size: 11.5px; color: var(--acc); background: var(--acc-dim); border-radius: 5px; padding: 1px 7px; }
.deps i { font-style: normal; font-size: 13px; color: var(--faint); line-height: 1.55; }

/* ─────────────  Tabs + 代码  ───────────── */

.tabs { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); margin-bottom: 22px; }
.tablist { display: flex; gap: 4px; padding: 10px 12px 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.tablist button {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  color: var(--dim); font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 10px 16px; border-radius: 9px 9px 0 0; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .18s, background .18s, border-color .18s;
}
.tablist button:hover { color: var(--strong); background: var(--surface); }
.tablist button[aria-selected="true"] { color: var(--acc); border-bottom-color: var(--acc); background: var(--bg-2); }

.tabpanel { position: relative; }
.tabpanel[hidden] { display: none; }

pre {
  margin: 0; padding: 22px 24px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.78;
  color: #d7dee9; tab-size: 4;
}
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; white-space: pre; }

.copy {
  position: absolute; top: 12px; right: 14px;
  appearance: none; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--dim);
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 7px;
  opacity: 0; transition: opacity .2s, color .2s, border-color .2s;
}
.tabpanel:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { color: var(--strong); border-color: var(--line-2); }
.copy.done { color: var(--acc-3); border-color: rgba(52, 211, 153, .45); opacity: 1; }

/* ─────────────  文档卡  ───────────── */

/* 10 张卡：3 列里首尾两张各占两格，凑成整整四行（不留孤零零的一格）；再窄就一列 */
.docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.docs-grid .doc-wide { grid-column: span 2; }
@media (max-width: 820px) {
  .docs-grid { grid-template-columns: 1fr; }
  .docs-grid .doc-wide { grid-column: auto; }
}
.doc {
  display: block; color: inherit; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .22s, background .22s, transform .22s;
}
.doc:hover { text-decoration: none; border-color: rgba(255, 122, 47, .4); background: var(--surface-2); transform: translateY(-2px); }
.doc h3 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.doc h3::after { content: "→"; color: var(--acc); transition: transform .22s; }
.doc:hover h3::after { transform: translateX(4px); }
.doc p { margin: 0; color: var(--faint); font-size: 13.5px; line-height: 1.65; }

/* ─────────────  CTA / 页脚  ───────────── */

.cta { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 460px; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 122, 47, .22), transparent 70%);
}
/* 一圈慢慢转的光环 */
.cta-ring {
  position: absolute; left: 50%; top: 50%; width: 860px; height: 860px; z-index: -1; pointer-events: none;
  translate: -50% -50%; border-radius: 50%; opacity: .85;
  background: conic-gradient(from 0deg, transparent, rgba(255, 122, 47, .22), transparent 28%, rgba(56, 189, 248, .2), transparent 58%, rgba(168, 85, 247, .16), transparent 86%);
  -webkit-mask-image: radial-gradient(circle, transparent 54%, #000 55%, #000 68%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 54%, #000 55%, #000 68%, transparent 70%);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.cta-inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 30px; }
.cta h2 { font-size: clamp(26px, 4vw, 46px); letter-spacing: -.03em; }
.cta .hero-actions { justify-content: center; }

.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; background: var(--bg-2); }
.foot-inner { display: grid; gap: 6px; color: var(--faint); font-size: 13.5px; }
.foot-inner p { margin: 0; }
.foot-links { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }

/* ─────────────  入场动画  ───────────── */

.js-anim .reveal { opacity: 0; transform: translateY(18px); }
/* --tilt 由 assets/fx.js 在指针悬停时写（卡片跟着指针微微倾斜）；平时是 none */
.js-anim .reveal.is-in {
  opacity: 1; transform: var(--tilt, none);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

/* 不要动画的人：一律停在终态。只缩短时长不够 —— 无限循环的动画会以 0.01ms 一圈狂闪，
   所以循环次数也压成 1（自动滚动停在顶上、光栅幕已经扫走、跑马灯不动） */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
  }
  .js-anim .reveal { opacity: 1; transform: none; }
  .js-anim .bar-before, .js-anim .bar-after { width: var(--w); }
  .phone:hover .phone-screen img,
  .shot:hover .phone-screen img,
  .shot:focus-visible .phone-screen img { transform: none; }
  .autoscroll img, .marquee-track, .strip::after, .flow i::after, .diff-screen::after { animation: none !important; }
  .flow i::after, .diff-screen::after, .strip::after { display: none; }
  .raster { display: none; }
}

/* ─────────────  背景主题（assets/theme.js 在 <html> 上设 data-theme）  ─────────────
   深色是默认（上面 :root 那一组）；午夜蓝只换底色；浅色把底、线、字、几种状态色整组换掉。
   代码块与手机外框在浅色主题里仍是深色：在那块里把变量改回深色那一组（变量按作用域继承） */
html[data-theme="midnight"] {
  --bg:   #060a1a;
  --bg-2: #0a1026;
  --bg-3: #101833;
  --surface:   rgba(148, 163, 255, .045);
  --surface-2: rgba(148, 163, 255, .08);
  --line:      rgba(148, 163, 255, .12);
  --line-2:    rgba(148, 163, 255, .2);
  --dim:   #a9b3d6;
  --faint: #7480a6;
  --acc-2: #60a5fa;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg:   #f7f8fb;
  --bg-2: #eef1f6;
  --bg-3: #e5e9f1;
  --surface:   rgba(15, 23, 42, .035);
  --surface-2: rgba(15, 23, 42, .065);
  --line:      rgba(15, 23, 42, .1);
  --line-2:    rgba(15, 23, 42, .17);
  --text:  #141a24;
  --dim:   #4a5565;
  --faint: #677284;
  --acc:   #e2560a;
  --acc-2: #0284c7;
  --acc-3: #059669;
  --acc-dim: rgba(226, 86, 10, .1);
  --strong:      #0b1220;
  --title-2:     #475569;
  --soft-red:    #c62828;
  --soft-green:  #047857;
  --soft-cyan:   #0369a1;
  --soft-orange: #c2410c;
  --chip-new:    #9a3412;
  --code-fg:     #b4410c;
  --grid-dot:    rgba(15, 23, 42, .1);
}
html[data-theme="light"] .tabs {
  color-scheme: dark;
  --bg-2: #0f141d; --bg-3: #161c27;
  --surface: rgba(255, 255, 255, .035); --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .14);
  --text: #e8ebf1; --dim: #a6b0c0; --strong: #fff; --acc: #ff7a2f;
}
html[data-theme="light"] .hero-glow { opacity: .55; }
/* 换主题时底色、字色过渡一下，不是一闪（只在切换那一刻挂上，平时不给每个元素加 transition） */
html.theme-fade, html.theme-fade * {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
}
/* 主题切换：几个色块（午夜蓝 / 深色 / 浅色 / 跟随系统），窄屏只留当前那个、点一下换下一个 */
.theme-switch {
  display: flex; gap: 4px; flex: none; margin-left: 8px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
}
.theme-switch button {
  width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--sw);
  box-shadow: inset 0 0 0 2px var(--bg);
  transition: transform .16s, border-color .16s;
}
.theme-switch button:hover { transform: scale(1.08); }
.theme-switch button[aria-pressed="true"] { border-color: var(--acc); box-shadow: inset 0 0 0 2px var(--bg), 0 0 0 2px var(--acc-dim); }
.theme-switch button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.theme-switch [data-theme-pick="dark"]     { --sw: #0b0e14; }
.theme-switch [data-theme-pick="midnight"] { --sw: #101a3d; }
.theme-switch [data-theme-pick="light"]    { --sw: #f2f4f8; }
.theme-switch [data-theme-pick="auto"]     { --sw: linear-gradient(135deg, #f2f4f8 50%, #0b0e14 50%); }
@media (max-width: 560px) {
  .theme-switch { margin-left: 0; padding: 2px; }
  .theme-switch button:not([aria-pressed="true"]) { display: none; }
}

/* ─────────────  全平台：每个平台一张卡，上面是那个平台的「样子」（手机 / 窗口 / 终端 / 代码）  ───────────── */
.plat-band { position: relative; }
.plat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .plat-grid { grid-template-columns: 1fr; } }
.plat {
  position: relative; display: grid; grid-template-rows: 230px auto; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .22s, transform .22s;
}
.plat:hover { border-color: color-mix(in srgb, var(--pc) 55%, transparent); transform: translateY(-3px); }
.plat-mock {
  position: relative; display: grid; place-items: center; overflow: hidden; padding: 18px 18px 0;
  background: radial-gradient(80% 70% at 50% 100%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.plat-info { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.plat-info h3 { font-size: 16.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 10px var(--pc); flex: none; }
.plat-st {
  margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 650; font-family: var(--mono);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.plat-st.ok  { color: var(--soft-green); background: rgba(52, 211, 153, .12); }
.plat-st.src { color: var(--soft-cyan); background: rgba(56, 189, 248, .12); }
.plat-st.wip { color: #fbbf24; background: rgba(251, 191, 36, .12); }
html[data-theme="light"] .plat-st.wip { color: #b45309; }
.plat-how, .plat-gpu { margin: 0; font-size: 13.5px; line-height: 1.55; }
.plat-how { color: var(--dim); }
.plat-gpu { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.plat-note { margin: 22px 0 0; font-size: 13.5px; color: var(--faint); max-width: 90ch; }
.plat-ios     { --pc: #a1a1aa; }
.plat-android { --pc: #3ddc84; }
.plat-harmony { --pc: #ff4d4f; }
.plat-macos   { --pc: #60a5fa; }
.plat-windows { --pc: #38bdf8; }
.plat-linux   { --pc: #fbbf24; }
.plat-flutter { --pc: #22d3ee; }
.plat-web     { --pc: #ff7a2f; }
/* 手机：沿用首页的 phone-screen，截一截露在卡片里 */
.os-phone { width: 128px; align-self: end; margin-bottom: -40px; }
.os-phone .phone-screen { border-radius: 18px; }
.plat:hover .os-phone .phone-screen img { transform: translateY(calc(100cqh - 100%)); }
/* 窗口：标题栏三个圆点 + 内容 */
.os-win, .os-term {
  width: 100%; align-self: end; margin-bottom: -1px; border-radius: 10px 10px 0 0; overflow: hidden;
  border: 1px solid var(--line-2); border-bottom: 0; background: #fff;
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .7);
}
.os-win-bar {
  display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  background: #e9ebef; color: #4b5563; font-size: 11px; font-family: var(--mono);
}
.os-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.os-win-bar i:nth-child(2) { background: #febc2e; }
.os-win-bar i:nth-child(3) { background: #28c840; }
.os-win-bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Windows：按钮在右边，方角 */
.os-win.winos { border-radius: 6px 6px 0 0; }
.os-win.winos .os-win-bar { flex-direction: row-reverse; background: #f3f3f3; }
.os-win.winos .os-win-bar i { width: 10px; height: 2px; border-radius: 0; background: #6b7280; }
.os-win.winos .os-win-bar span { margin: 0 auto 0 0; }
.os-win.web .os-win-bar span { background: #fff; border-radius: 6px; padding: 1px 8px; color: #6b7280; }
.os-win-body { height: 182px; overflow: hidden; container-type: size; }
.os-win-body img { width: 64%; margin: 0 auto; transition: transform 6s cubic-bezier(.33, 0, .35, 1); }
.plat:hover .os-win-body img { transform: translateY(calc(100cqh - 100%)); }
.os-term { background: #0c0f14; }
.os-term .os-win-bar { background: #1b2029; color: #9ca3af; }
.os-term pre, .os-code pre { margin: 0; padding: 12px 14px; font-size: 11.5px; line-height: 1.65; color: #d7dee9; height: 182px; overflow: hidden; white-space: pre; }
.os-term .p { color: #fbbf24; } .os-term .g { color: #6ee7b7; }
.os-code {
  width: 100%; align-self: end; border-radius: 10px 10px 0 0; overflow: hidden;
  background: #0c0f14; border: 1px solid var(--line-2); border-bottom: 0;
}
.os-code pre { height: 206px; padding-top: 16px; }
.os-code .c { color: #7b8496; } .os-code .s { color: #ffb98c; }
.hero .platforms li.soon { border-style: dashed; }
