/* ==========================================================================
   Code API 落地页
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-opsz-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: dark;
  --bg: oklch(14.5% 0 0);
  --fg: oklch(98.5% 0 0);
  --muted: oklch(26.9% 0 0);
  --muted-fg: oklch(70.8% 0 0);
  --border: oklch(100% 0 0 / .1);
  --destructive: oklch(70.4% .191 22.216);
  --c1: oklch(48.8% .243 264.376);      /* 蓝 */
  --c2: oklch(69.6% .17 162.48);        /* 绿 */
  --c3: oklch(76.9% .188 70.08);        /* 琥珀 */
  --c4: oklch(62.7% .265 303.9);        /* 紫 */
  --c5: oklch(64.5% .246 16.439);       /* 玫红 */
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --page: 700ms;                         /* 翻一屏用多久 */
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); margin: 0; padding: 0; }   /* 默认边框色和参照页一致：白 10% */
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: var(--sans); }
body { line-height: inherit; background: var(--bg); color: var(--fg); }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, pre, samp { font-family: var(--mono); font-size: 1em; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; background: transparent; border-radius: 0; }
ul, ol { list-style: none; }
svg { display: block; vertical-align: middle; }
::selection { background: color-mix(in oklab, var(--c1) 40%, transparent); }

/* 线性图标：细线、圆头 */
.ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fill { fill: currentColor; }
.fg { color: var(--fg); }

/* ---------- 整屏翻页：768px 以上一次滚一屏，以下各屏竖向排列 ---------- */
#fp { position: relative; }
html.fp { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.fp body { height: 100%; overflow: clip; }           /* 用 clip 而不是 hidden：body 不会变成可以滚动的容器 */
html.fp .sec { flex: none; }
/* 翻页全靠这个容器上的位移动画。带 # 的地址打开时浏览器会想自己滚一下，由 app.js 立刻归零 */
html.fp #fp { height: 100%; transition: transform var(--page) cubic-bezier(.65, .05, .36, 1); will-change: transform; }
html.fp.no-anim #fp { transition: none; }
.sec { position: relative; display: flex; align-items: center; justify-content: center; height: 100vh; min-height: 100vh; overflow: hidden; }
html.fp .sec { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
html.fp .sec::-webkit-scrollbar { display: none; }
@media (width < 48rem) {
  .sec { height: auto; padding: 4rem 0; }
}

/* 背景层 */
.layer { position: absolute; inset: 0; pointer-events: none; }
.base { background: var(--bg); }
.grid { background-image: linear-gradient(oklch(100% 0 0 / .03) 1px, transparent 1px), linear-gradient(90deg, oklch(100% 0 0 / .03) 1px, transparent 1px); background-size: 60px 60px; }
.spot { background: radial-gradient(80% 50%, oklch(48.8% .243 264.376 / .08) 0%, transparent 70%); }
.halo { background: radial-gradient(ellipse 60% 50% at 50% 50%, oklch(48.8% .243 264.376 / .1) 0%, transparent 60%); }
.noise { opacity: .03; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- 版心和文字 ---------- */
.sec-body { position: relative; z-index: 1; width: 100%; }
.container { width: 100%; margin-inline: auto; padding-inline: 16px; }
@media (width >= 40rem) { .container { max-width: 40rem; } }
@media (width >= 48rem) { .container { max-width: 48rem; } }
@media (width >= 64rem) { .container { max-width: 64rem; } }
@media (width >= 80rem) { .container { max-width: 80rem; } }
@media (width >= 96rem) { .container { max-width: 96rem; } }

.xs { font-size: 12px; line-height: 16px; }
.sm { font-size: 14px; line-height: 20px; }
.muted { color: var(--muted-fg); }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap2 { gap: 8px; }
.gap3 { gap: 12px; }
.mb2 { margin-bottom: 8px; }
.mb3 { margin-bottom: 12px; }
.mb4 { margin-bottom: 16px; }
.mb8 { margin-bottom: 32px; }
.mb12 { margin-bottom: 48px; }
.mt1 { margin-top: 4px; }
.p4 { padding: 16px; }
.p6 { padding: 24px; }
.col { display: flex; flex-direction: column; gap: 24px; }
.v2 { display: flex; flex-direction: column; gap: 8px; }
.v4 { display: flex; flex-direction: column; gap: 16px; }
.baseline { display: flex; align-items: baseline; gap: 4px; }
.h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 16px; }
.row .h3 { margin-bottom: 0; }
.h3.lg { font-size: 18px; line-height: 28px; margin-bottom: 0; font-weight: 700; }
.h3.xl { font-size: 20px; line-height: 28px; margin-bottom: 0; font-weight: 700; }

h2, .h2 { margin-bottom: 16px; font-size: 30px; line-height: 36px; font-weight: 700; }
@media (width >= 48rem) { h2, .h2 { font-size: 36px; line-height: 40px; } }
@media (width >= 64rem) { h2, .h2 { font-size: 48px; line-height: 1; } }
.lead { max-width: 42rem; margin-inline: auto; font-size: 18px; line-height: 28px; color: var(--muted-fg); }
.sec-head { margin-bottom: 48px; text-align: center; }
.badge { display: inline-block; margin-bottom: 16px; padding: 6px 16px; border: 1px solid color-mix(in oklab, var(--c) 30%, transparent); border-radius: 9999px; background: color-mix(in oklab, var(--c) 10%, transparent); color: var(--c); font-size: 14px; line-height: 20px; font-weight: 500; }

/* ---------- 卡片和网格 ---------- */
.glass { border: 1px solid oklch(100% 0 0 / .08); background: oklch(18% 0 0 / .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.rlg { border-radius: 10px; }
.r2xl { border-radius: 16px; }
.r3xl { border-radius: 24px; }
.clip { overflow: hidden; }
.two-col { display: grid; gap: 32px; }
.three-col { display: grid; gap: 24px; }
@media (width >= 48rem) { .three-col { grid-template-columns: repeat(3, 1fr); } }
@media (width >= 64rem) { .two-col { grid-template-columns: repeat(2, 1fr); } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-row.two { grid-template-columns: repeat(2, 1fr); gap: 16px; }

.pill { padding: 2px 6px; border-radius: 9999px; background: color-mix(in oklab, var(--c) 20%, transparent); color: var(--c); font-size: 10px; line-height: 15px; }
.num { color: var(--c); font-size: 30px; line-height: 36px; font-weight: 700; }
.unit { font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.num3 { color: var(--c); font-size: 30px; line-height: 36px; font-weight: 700; }
.num4 { color: var(--c); font-size: 36px; line-height: 40px; font-weight: 700; }
.big5 { color: var(--c); font-size: 48px; line-height: 1; font-weight: 700; }

.tile { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: color-mix(in oklab, var(--c) 20%, transparent); color: var(--c); }
.tile .ln { width: 20px; height: 20px; }
.tile.lg { width: 48px; height: 48px; border-radius: 12px; }
.tile.lg .ln { width: 24px; height: 24px; }
.tile svg:not(.ln) { width: 20px; height: 20px; }

/* 对勾清单的三种样子：光秃秃的对勾 / 圆底对勾 / 单行 */
.checks { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.checks li { display: flex; align-items: flex-start; gap: 8px; }
.checks .ck { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: currentColor; color: var(--c); }
.checks.ring li { gap: 12px; }
.checks.ring .ring { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 9999px; background: color-mix(in oklab, var(--c) 20%, transparent); }
.checks.ring .ck { width: 12px; height: 12px; margin: 0; }
.checks.line { gap: 8px; color: color-mix(in oklab, var(--fg) 80%, transparent); }
.checks.line li { align-items: center; gap: 8px; }
.checks.line .ck { margin: 0; }

/* ---------- 首页 ---------- */
.hero-body { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; padding: 0 24px; text-align: center; }
.logo-box { margin-bottom: 32px; }
.logo { color: var(--fg); }
/* 标志的三笔依次「画」出来 */
.lp { fill: currentColor; stroke: currentColor; stroke-width: 3; stroke-dasharray: 3000; stroke-dashoffset: 3000px; fill-opacity: 0; animation: logo-draw 2s cubic-bezier(.4, 0, .2, 1) forwards; }
.lp2 { animation-delay: .2s; }
.lp3 { animation-delay: .4s; }
h1 { margin-bottom: 16px; font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.025em; }
@media (width >= 48rem) { h1 { font-size: 72px; } }
@media (width >= 64rem) { h1 { font-size: 96px; } }
.tagline { margin-bottom: 40px; font-size: 20px; line-height: 28px; color: var(--muted-fg); }
@media (width >= 48rem) { .tagline { font-size: 24px; line-height: 32px; } }
.hero-actions { display: flex; flex-direction: column; gap: 16px; }
@media (width >= 40rem) { .hero-actions { flex-direction: row; } }

.glow-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 32px; border-radius: 14px; background: oklch(98% 0 0); color: oklch(20.5% 0 0); font-size: 18px; line-height: 28px; font-weight: 500; transition: all .3s; }
.glow-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(90deg, var(--c1) 0%, var(--c2) 33%, var(--c3) 66%, var(--c1) 100%) 0 0 / 300% 100%; opacity: 0; transition: opacity .3s; }
.glow-btn:hover { color: #fff; background: transparent; transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 40px oklch(48.8% .243 264.376 / .3); }
.glow-btn:hover::before { opacity: 1; animation: gradient-flow 4s linear infinite; }
.glow-btn:active { transform: translateY(0) scale(.98); }
.ghost-btn { padding: 16px 32px; border: 1px solid color-mix(in oklab, var(--border) 50%, transparent); border-radius: 14px; background: color-mix(in oklab, var(--bg) 50%, transparent); color: var(--fg); font-size: 18px; line-height: 28px; font-weight: 500; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: all .15s, scale .2s; }
.ghost-btn:hover { background: color-mix(in oklab, var(--muted) 50%, transparent); scale: 1.02; }
.ghost-btn:active { scale: .98; }
.scroll-hint { position: absolute; bottom: 16px; left: 50%; z-index: 10; translate: -50% 0; color: color-mix(in oklab, var(--muted-fg) 50%, transparent); }
.bounce { display: block; animation: bounce-y 2s ease-in-out infinite; }
#tunnel canvas, #globe canvas { display: block; width: 100%; height: 100%; }

/* 加载时就播的入场动画 */
.a-pop, .a-up, .a-fade, .a-right { opacity: 0; animation: .6s ease-out fade-in-up both; }
.a-pop { animation-name: fade-in-scale; animation-duration: .8s; }
.a-fade { animation-name: fade-in; animation-duration: .5s; }
.a-right { animation-name: fade-in-right; animation-delay: .2s; }

/* ---------- 滚到才出现的元素 ---------- */
.rv { opacity: 0; transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv-sec { transform: translateY(40px); transition-duration: .8s; }
.rv-up { transform: translateY(20px); }
.rv-card { transform: translateY(30px); }
.rv-left { transform: translateX(-20px); }
.rv-right { transform: translateX(20px); }
.rv-fade { transition-duration: .6s; }

/* 延迟：既管上面的入场动画，也管滚到才出现的过渡 */
.d2 { animation-delay: .2s; transition-delay: .2s; }
.d3 { animation-delay: .3s; }
.d5 { animation-delay: .5s; transition-delay: .5s; }
.d9 { animation-delay: .9s; }
.d15 { animation-delay: 1.5s; }
.rv-chip { transform: translateY(10px); transition-duration: .4s; transition-delay: calc(.3s + var(--d, 0s)); }

/* ---------- 第 2 屏：协议转换的拓扑图 ---------- */
.bleed { margin-inline: -16px; }
.topology { position: relative; width: 100%; height: 400px; overflow: hidden; }
@media (width >= 64rem) { .topology { height: 500px; } }
.topology canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tp { position: absolute; top: 0; left: 0; pointer-events: none; }
/* IR 中心的圆点：原尺寸显示 */
.tp-ir { display: grid; place-items: center; width: 80px; height: 80px; border: 2px solid rgba(168, 85, 247, .3); border-radius: 9999px; background: color-mix(in oklab, var(--bg) 80%, transparent); box-shadow: 0 0 20px rgba(168, 85, 247, .2); transition: box-shadow .5s; }
.tp-ir span { font-size: 30px; line-height: 36px; font-weight: 700; color: #c084fc; }
.tp-ir.hot { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; box-shadow: 0 0 30px rgba(168, 85, 247, .5); }
@media (width < 48rem) { .tp-ir { width: 64px; height: 64px; } .tp-ir span { font-size: 24px; line-height: 32px; } }
/* 厂商图标和代码小窗：整体缩到约 64% */
.tp-ico, .tp-code { scale: .637738; }                 /* 以自身中心缩放，中心点留在投影位置上 */
.tp-ico { width: 48px; height: 48px; }
.tp-ico svg { width: 100%; height: 100%; fill: currentColor; }
@media (width < 48rem) { .tp-ico { width: 40px; height: 40px; } }
.tp-code { width: 192px; height: 128px; overflow: hidden; border: 1px solid; border-radius: 8px; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@media (width < 48rem) { .tp-code { width: 160px; } }
.tp-code-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-bottom: 1px solid color-mix(in oklab, var(--border) 30%, transparent); }
.tp-code-bar i { width: 6px; height: 6px; border-radius: 9999px; }
.tp-code-bar i:nth-child(1) { background: rgba(239, 68, 68, .6); }
.tp-code-bar i:nth-child(2) { background: rgba(234, 179, 8, .6); }
.tp-code-bar i:nth-child(3) { background: rgba(34, 197, 94, .6); }
.tp-code-body { height: calc(100% - 24px); padding: 8px; overflow-y: auto; scrollbar-width: none; }
.tp-code-body::-webkit-scrollbar { display: none; }
.tp-code pre { font-size: 10px; line-height: 1.25; color: var(--muted-fg); white-space: pre; }
@media (width < 48rem) { .tp-code pre { font-size: 9px; } }
.tp-code .k { color: #7dd3fc; }
.tp-code .s { color: #86efac; }
.tp-code .n { color: #fcd34d; }
.tp-code .b { color: #c4b5fd; }
.tp-code .cur { color: oklch(92.2% 0 0); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }

/* ---------- 第 3 屏：请求链路 ---------- */
.trace-bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid color-mix(in oklab, var(--border) 30%, transparent); }
.trace-bar .live { width: 8px; height: 8px; border-radius: 9999px; background: oklch(72.3% .219 149.579); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.trace-list { padding: 16px; }
.tstep + .tstep, .tarw { margin-top: 4px; }
.trow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; opacity: .4; transition: background-color .15s, opacity .3s; }
.tico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9999px; background: var(--muted); color: var(--muted-fg); transition: background-color .15s, color .15s; }
.tico svg { grid-area: 1 / 1; width: 16px; height: 16px; }
.tico .ok { display: none; }
.tlb { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted-fg); transition: color .15s; }
.pulse, .tstate { display: none; margin-left: auto; }
.pulse { width: 8px; height: 8px; border-radius: 9999px; background: var(--c2); }
.tstate { font-size: 12px; line-height: 16px; color: color-mix(in oklab, var(--c2) 60%, transparent); }
.tstep.cur .trow { background: color-mix(in oklab, var(--c2) 20%, transparent); opacity: 1; }
.tstep.done .trow { background: color-mix(in oklab, var(--c2) 5%, transparent); opacity: 1; }
.tstep.cur .tico { background: var(--c2); color: var(--bg); }
.tstep.done .tico { background: color-mix(in oklab, var(--c2) 30%, transparent); color: var(--c2); }
.tstep.done .tico svg:not(.ok) { display: none; }
.tstep.done .tico .ok { display: block; }
.tstep.cur .tlb { color: var(--c2); }
.tstep.done .tlb { color: var(--fg); }
.tstep.cur .pulse { display: block; animation: pulse-scale .5s ease-in-out infinite; }
.tstep.done .tstate { display: inline; }
.tarw { display: flex; align-items: center; height: 16px; margin-left: 24px; color: color-mix(in oklab, var(--muted-fg) 30%, transparent); transition: color .3s; }
.tarw.past { color: color-mix(in oklab, var(--c2) 40%, transparent); }
.tarw svg { width: 12px; height: 12px; }

/* ---------- 第 4 屏：专线 ---------- */
.globe-card { position: relative; height: 320px; }
@media (width >= 64rem) { .globe-card { height: auto; } }
.globe { position: absolute; inset: 0; }
.track { height: 8px; overflow: hidden; border-radius: 9999px; background: var(--muted); }
.fill { height: 100%; width: 0; border-radius: 9999px; animation: 1s ease-out grow forwards; }
.w80 { --w: 80%; background: color-mix(in oklab, var(--destructive) 60%, transparent); animation-delay: .3s; }
.w20 { --w: 20%; background: var(--c); animation-delay: .5s; }

/* ---------- 第 5 屏：路由和容灾 ---------- */
.route { position: relative; width: 100%; height: 256px; }
@media (width >= 64rem) { .route { height: 320px; } }
.route svg { width: 100%; height: 100%; overflow: visible; }
.route .box { fill: oklch(26.9% 0 0); stroke: oklch(100% 0 0 / 20%); stroke-width: 1; }
.route .rbox { fill: oklch(20.5% 0 0); stroke: var(--c1); stroke-width: 2; transition: all .5s; }
.route .t12 { font-size: 12px; font-weight: 500; fill: var(--fg); }
.route .t14 { font-size: 14px; font-weight: 500; fill: var(--fg); }
.route .dim { font-weight: 400; fill: var(--muted-fg); }
.route .dash { stroke: oklch(100% 0 0 / 30%); stroke-width: 2; stroke-dasharray: 4 4; animation: dash-flow 1s linear infinite; }
.route .link { fill: none; stroke: oklch(100% 0 0 / 15%); stroke-width: 1; stroke-dasharray: 4 4; transition: opacity .3s, stroke .3s, stroke-width .3s; }
.route .pbox { stroke: var(--pc); transition: all .3s; }
.route .st { fill: oklch(69.6% .17 162.48); transform-box: fill-box; transform-origin: center; transition: fill .3s, transform .3s; }
.route .cur { opacity: 0; transform-box: fill-box; transform-origin: center; }
.prov.active .link { stroke: var(--pc); stroke-width: 2; stroke-dasharray: 0; }
.prov.active .pbox { stroke: var(--pc); stroke-width: 2; }
.prov.active .cur { animation: scale-in .3s cubic-bezier(.34, 1.56, .64, 1) both; }
.prov[data-status="failing"] { animation: shake .1s ease-in-out infinite; }
.prov[data-status="failing"] .pbox { animation: stroke-blink .3s ease-in-out infinite; }
.prov[data-status="failing"] .st { fill: var(--c3); animation: pulse-scale 2s ease-in-out infinite; }
.prov[data-status="unhealthy"] { opacity: .4; }
.prov[data-status="unhealthy"] .link { opacity: .3; }
.prov[data-status="unhealthy"] .pbox { stroke: var(--c5); }
.route[data-state="switching"] .router { filter: url(#route-glow); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.route[data-state="switching"] .rbox { stroke-width: 3; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 9999px; background: var(--c); }

/* ---------- 第 7 屏：价格 ---------- */
/* 照参照页的实际效果：标题底色和图标底色只有带 data-tint 的卡片才有（参照页上另外两张的类名没生效，是透明的） */
.price-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom-width: 1px; }
.price[data-tint] .price-head { background: color-mix(in oklab, var(--c) 5%, transparent); }
.price .tile { background: none; }
.price[data-tint] .tile { background: color-mix(in oklab, var(--c) 20%, transparent); }
.price-list > * + * { border-top: 1px solid color-mix(in oklab, var(--border) 30%, transparent); }
.price-row { padding: 16px 24px; }
.price-row .name { margin-bottom: 8px; font-weight: 500; }
.prices { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 4px; font-size: 14px; line-height: 20px; }
.prices i { font-style: normal; color: var(--muted-fg); }
.prices b { font-weight: 500; color: var(--c); }
.note { margin-top: 32px; }

/* ---------- 第 8 屏：注册引导和页脚 ---------- */
.cta-body { position: relative; z-index: 1; }
.chips { display: grid; gap: 16px; max-width: 56rem; margin-inline: auto; }
@media (width >= 40rem) { .chips { grid-template-columns: repeat(2, 1fr); } }
@media (width >= 64rem) { .chips { grid-template-columns: repeat(4, 1fr); } }
.emoji { margin-bottom: 8px; font-size: 24px; line-height: 32px; }
.chip-lb { font-weight: 500; }
.foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid color-mix(in oklab, var(--border) 30%, transparent); }
.foot-row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; }
@media (width >= 40rem) { .foot-row { flex-direction: row; } }
.brand { font-weight: 500; }

/* 没有可用动画时（或不支持 WebGL），3D 层保持隐藏，不影响版面 */
[hidden] { display: none !important; }

/* ---------- 关键帧 ---------- */
@keyframes logo-draw { 0% { stroke-dashoffset: 3000px; fill-opacity: 0; } 60% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade-in-scale { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-in-right { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bounce-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes gradient-flow { from { background-position: 0% 0; } to { background-position: 300% 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes pulse-scale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes scale-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translate(0); } 25% { transform: translate(3px); } 75% { transform: translate(-3px); } }
@keyframes stroke-blink { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .3; } }
@keyframes dash-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -16px; } }
@keyframes grow { to { width: var(--w); } }

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.fp #fp { transition: none; }
  .a-pop, .a-up, .a-fade, .a-right, .rv { opacity: 1; transform: none; }
  .lp { stroke-dashoffset: 0; fill-opacity: 1; animation: none; }
  .fill { width: var(--w); animation: none; }
}
