/* ============================================================
   CursorChat 官网样式（功能向 · 多动画版）
   深色「石墨蓝」/ 浅色「暖纸面」，单一青色强调
   ============================================================ */

:root {
  --teal: #2dd4bf;
  --teal-2: #5eead4;
  --teal-press: #14b8a6;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --maxw: 1160px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 22px 60px -16px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 28px -12px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] {
  --bg: #0e1217; --bg-2: #11161e; --surface: #151b24; --surface-2: #1b2230; --surface-3: #222b3a;
  --border: rgba(148, 163, 184, 0.16); --border-2: rgba(148, 163, 184, 0.28);
  --t1: #eef1f6; --t2: #c6cdd8; --t3: #8b95a7;
  --primary: var(--teal); --primary-ink: #04211d;
  --nav-bg: rgba(14, 18, 23, 0.72); --glow: rgba(45, 212, 191, 0.20); --glow-2: rgba(56, 189, 248, 0.12);
}
html[data-theme="light"] {
  --bg: #f4f3ef; --bg-2: #efeee8; --surface: #ffffff; --surface-2: #faf9f5; --surface-3: #f1efe8;
  --border: rgba(28, 32, 36, 0.1); --border-2: rgba(28, 32, 36, 0.18);
  --t1: #181c20; --t2: #3c434b; --t3: #76808c;
  --primary: #0d9488; --primary-ink: #ffffff;
  --nav-bg: rgba(244, 243, 239, 0.8); --glow: rgba(13, 148, 136, 0.16); --glow-2: rgba(14, 165, 233, 0.08);
  --shadow: 0 22px 60px -20px rgba(28, 32, 36, 0.22); --shadow-sm: 0 10px 28px -14px rgba(28, 32, 36, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font); background: var(--bg); color: var(--t2);
  line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
h1, h2, h3, h4 { color: var(--t1); line-height: 1.16; font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
strong, b { color: var(--t1); font-weight: 700; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ---------- 滚动进度条 ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110; background: transparent; pointer-events: none; }
.progress__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-2), var(--primary), var(--teal-press)); box-shadow: 0 0 12px var(--glow); transition: width 0.1s linear; }

/* ---------- 按钮 ---------- */
.btn {
  --h: 44px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  user-select: none; overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn--lg { --h: 53px; padding: 0 30px; font-size: 1.04rem; }
.btn--primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--primary) 72%, transparent); }
.btn--primary:hover { background: var(--teal-2); transform: translateY(-2px); box-shadow: 0 18px 38px -10px color-mix(in srgb, var(--primary) 72%, transparent); }
html[data-theme="light"] .btn--primary:hover { background: #0fb5a6; }
.btn--ghost { background: color-mix(in srgb, var(--t1) 4%, transparent); color: var(--t1); border-color: var(--border-2); }
.btn--ghost:hover { background: color-mix(in srgb, var(--t1) 8%, transparent); border-color: var(--primary); transform: translateY(-2px); }
.btn.is-disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
/* 高光扫过 */
.btn--shine::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg);
}
.btn--shine:hover::after { animation: shine 0.9s var(--ease); }
@keyframes shine { to { left: 130%; } }

.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--t1) 4%, transparent); border: 1px solid var(--border); border-radius: 12px; color: var(--t2); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
#themeToggle .icon-moon { display: none; }
html[data-theme="light"] #themeToggle .icon-sun { display: none; }
html[data-theme="light"] #themeToggle .icon-moon { display: block; }

/* ---------- 导航 ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s; }
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--t1); }
.brand__logo { border-radius: 9px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-size: 1.08rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 4px; margin-left: 10px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; color: var(--t2); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--t1); background: color-mix(in srgb, var(--t1) 5%, transparent); }
.nav__links a.is-active { color: var(--primary); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__burger { display: none; flex-direction: column; gap: 4px; }
.nav__burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 68px 0 auto 0; z-index: 99; display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); animation: slideDown 0.28s var(--ease); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 8px; color: var(--t1); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { border: none; margin-top: 10px; justify-content: center; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 116px) 0 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.9; }
.blob--1 { width: 560px; height: 560px; top: -200px; right: -120px; background: radial-gradient(circle, var(--glow), transparent 65%); animation: drift1 16s ease-in-out infinite; }
.blob--2 { width: 440px; height: 440px; bottom: -160px; left: -120px; background: radial-gradient(circle, var(--glow-2), transparent 65%); animation: drift2 20s ease-in-out infinite; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 40px) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.1); } }
.grid-fade { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 70%); opacity: 0.5; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--t2); background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); padding: 7px 14px; border-radius: 999px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); animation: pulse 1.8s ease-in-out infinite; }
.hero__title { position: relative; font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; margin: 22px 0 18px; letter-spacing: -0.03em; }
.grad { background: linear-gradient(110deg, var(--teal-2), var(--primary) 40%, var(--teal-press) 60%, var(--teal-2)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s ease infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero__loop { position: absolute; left: 0; bottom: -14px; width: 200px; height: 50px; color: var(--primary); opacity: 0.5; }
.hero__loop path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLoop 4.5s var(--ease) infinite; }
@keyframes drawLoop { 0% { stroke-dashoffset: 1; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--t2); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 500; color: var(--t2); background: var(--surface); border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* 产品窗口 */
.hero__visual { position: relative; }
.appwin { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.appwin__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl--r { background: #ff5f57; } .tl--y { background: #febc2e; } .tl--g { background: #28c840; }
.appwin__title { margin-left: 10px; font-size: 0.82rem; color: var(--t3); font-weight: 500; }
.appwin__badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; color: var(--primary); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.appwin__body { display: grid; grid-template-columns: 132px 1fr; min-height: 272px; }
.appwin__side { border-right: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); }
.side-item { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: var(--t2); padding: 7px 8px; border-radius: 8px; }
.side-item--active { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--t1); font-weight: 600; }
.side-item--muted { color: var(--t3); margin-top: auto; }
.side-item .pin { margin-left: auto; color: var(--primary); font-size: 0.7rem; }
.led { width: 6px; height: 6px; border-radius: 50%; background: var(--t3); opacity: 0.45; flex: none; }
.led--on { background: var(--primary); opacity: 1; animation: pulse 2.4s ease-in-out infinite; }
.appwin__chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 9px 13px; border-radius: 13px; font-size: 0.78rem; line-height: 1.55; }
.bubble--ai { background: var(--surface-3); color: var(--t2); border-top-left-radius: 4px; align-self: flex-start; }
.bubble--me { background: var(--primary); color: var(--primary-ink); border-top-right-radius: 4px; align-self: flex-end; font-weight: 500; }
.bubble--typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px 14px; }
.bubble--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--t3); animation: blink 1.2s infinite; }
.bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.appwin__input { margin-top: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); border-radius: 11px; padding: 9px 12px; color: var(--t3); font-size: 0.76rem; }
.appwin__input .send { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; background: var(--primary); flex: none; position: relative; }
.appwin__input .send::after { content: "↑"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary-ink); font-weight: 700; font-size: 0.74rem; }
.float-card { position: absolute; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; backdrop-filter: blur(6px); animation: floaty 5s ease-in-out infinite; }
.float-card--retry { right: -18px; top: 24px; width: 184px; }
.float-card--renew { left: -26px; bottom: 30px; width: 206px; animation-delay: 1.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.fc__title { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.fc__spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); border-top-color: var(--primary); animation: spin 0.9s linear infinite; }
.fc__inf { width: 16px; height: 12px; position: relative; }
.fc__inf::before { content: "∞"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); font-size: 1rem; font-weight: 700; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.fc__row { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--t2); padding: 2px 0; }
.fc__row .ok { color: var(--primary); font-weight: 700; }
.fc__row .run { color: #fbbf24; font-weight: 600; }
.fc__d { font-size: 0.72rem; color: var(--t3); }

/* ---------- 跑马灯 ---------- */
.marquee { margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; -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: inline-flex; align-items: center; gap: 26px; white-space: nowrap; padding: 16px 0; animation: marquee 26s linear infinite; }
.marquee__track span { font-size: 1.05rem; font-weight: 700; color: var(--t1); letter-spacing: 0.01em; }
.marquee__track i { color: var(--primary); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 区块通用 ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.sec-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; position: relative; }
.eyebrow::after { content: ""; display: block; width: 30px; height: 2px; margin: 8px auto 0; background: var(--primary); border-radius: 2px; opacity: 0.5; }
.sec-head h2 { font-size: clamp(1.75rem, 3.7vw, 2.55rem); margin-bottom: 14px; }
.sec-head p { color: var(--t2); font-size: 1.06rem; }

/* ---------- 功能特性 ---------- */
.grid { display: grid; gap: 18px; }
.grid--feat { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s var(--ease); }
.card:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.f-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent); transition: transform 0.35s var(--ease), background 0.3s; }
.f-ic svg { width: 26px; height: 26px; }
.card:hover .f-ic { transform: translateY(-2px) rotate(-4deg) scale(1.06); background: color-mix(in srgb, var(--primary) 18%, transparent); }
/* 图标描边「画出来」：进入视口时绘制 */
.f-ic svg path, .f-ic svg rect, .step3__ic svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
.card.is-in .f-ic svg path, .card.is-in .f-ic svg rect, .step3.is-in .step3__ic svg path { stroke-dashoffset: 0; }
.card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.card p { font-size: 0.92rem; color: var(--t2); }

/* ---------- 功能演示 ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.show--rev .show__text { order: 2; }
.show__num { font-family: var(--mono); font-size: 0.9rem; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); padding: 4px 12px; border-radius: 8px; }
.show__text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 16px 0 12px; }
.show__text p { color: var(--t2); font-size: 1.02rem; max-width: 460px; }
.ticks { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; color: var(--t2); font-size: 0.96rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 16%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 7px; height: 4px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }

.show__visual { display: flex; justify-content: center; }
.demo { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px; }

/* demo: 永续循环 */
.demo--loop { position: relative; min-height: 280px; display: grid; place-items: center; }
.loop-ring { position: absolute; width: 230px; height: 230px; }
.loop-ring circle { fill: none; stroke: var(--border-2); stroke-width: 2; }
.loop-ring__run { stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.25 0.75; animation: ringRun 3.4s linear infinite; transform-origin: center; }
@keyframes ringRun { to { stroke-dashoffset: -1; } }
.loop-chat { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; width: 220px; }
.lc { font-size: 0.8rem; padding: 9px 13px; border-radius: 12px; opacity: 0; animation: lcIn 3.4s ease infinite; }
.lc--ai { background: var(--surface-3); color: var(--t2); align-self: flex-start; border-top-left-radius: 4px; }
.lc--me { background: var(--primary); color: var(--primary-ink); align-self: flex-end; border-top-right-radius: 4px; font-weight: 500; }
.lc:nth-child(1) { animation-delay: 0s; }
.lc:nth-child(2) { animation-delay: 1.1s; }
.lc:nth-child(3) { animation-delay: 2.2s; }
@keyframes lcIn { 0% { opacity: 0; transform: translateY(8px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.loop-tag { position: absolute; bottom: 8px; font-size: 0.74rem; font-weight: 700; color: var(--primary); }

/* demo: 批量 */
.demo--batch { display: flex; flex-direction: column; gap: 12px; }
.brow { display: flex; align-items: center; gap: 12px; }
.bname { font-size: 0.8rem; color: var(--t2); width: 58px; flex: none; }
.bbar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal-2), var(--primary)); animation: fill 2.4s var(--ease) infinite; animation-delay: var(--d); }
@keyframes fill { 0% { width: 0; } 45%, 100% { width: 100%; } }
.bst { font-size: 0.72rem; font-weight: 700; width: 50px; flex: none; text-align: right; }
.bst.ok { color: var(--primary); }
.bst.run { color: #fbbf24; }
.bst.wait { color: var(--t3); }

/* demo: 重试 */
.demo--retry { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 22px; }
.retry-ic { width: 76px; height: 76px; display: grid; place-items: center; color: var(--primary); }
.retry-ic svg { width: 64px; height: 64px; animation: spin 2.6s linear infinite; }
.retry-log { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.rl { font-size: 0.82rem; color: var(--t3); padding: 9px 13px; border-radius: 10px; background: var(--surface-3); opacity: 0; transform: translateX(-8px); animation: rlIn 0.5s var(--ease) forwards; }
.demo--retry.is-in .rl:nth-child(1) { animation-delay: 0.2s; }
.demo--retry.is-in .rl:nth-child(2) { animation-delay: 0.7s; }
.demo--retry.is-in .rl:nth-child(3) { animation-delay: 1.25s; }
.rl--ok { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); font-weight: 700; }
@keyframes rlIn { to { opacity: 1; transform: none; } }

/* ---------- 三步上手 ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step3 { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: transform 0.25s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.step3:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.step3__n { position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: color-mix(in srgb, var(--primary) 40%, transparent); }
.step3__ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent); transition: transform 0.35s var(--ease); }
.step3__ic svg { width: 28px; height: 28px; }
.step3:hover .step3__ic { transform: translateY(-3px) scale(1.06); }
.step3 h3 { font-size: 1.12rem; margin-bottom: 9px; }
.step3 p { font-size: 0.92rem; color: var(--t2); }
.start__tip { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 24px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent); border-radius: var(--radius); padding: 16px 22px; }
.start__tip svg { color: var(--primary); flex: none; }
.start__tip p { font-size: 0.94rem; color: var(--t2); }

/* ---------- 下载 ---------- */
.grid--dl { grid-template-columns: repeat(3, 1fr); }
.dlcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: transform 0.25s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.dlcard:hover { box-shadow: var(--shadow-sm); }
.dlcard--primary { border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent), var(--shadow-sm); }
.dlcard__os { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dlcard__os svg { color: var(--primary); flex: none; }
.dlcard__os h3 { font-size: 1.22rem; }
.dlcard__os span { font-size: 0.82rem; color: var(--t3); }
.dlcard__desc { font-size: 0.92rem; color: var(--t2); margin-bottom: 20px; flex: 1; }
.dlcard__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dlcard__btns .btn { flex: 1; min-width: 120px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.3s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--t1); font-size: 1.02rem; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.chev { width: 11px; height: 11px; border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3); transform: rotate(45deg); transition: transform 0.25s, border-color 0.25s; flex: none; }
.faq__item[open] .chev { transform: rotate(-135deg); border-color: var(--primary); }
.faq__a { padding: 0 22px 20px; }
.faq__a p { font-size: 0.94rem; color: var(--t2); }

/* ---------- CTA ---------- */
.cta { padding: clamp(64px, 9vw, 104px) 0; }
.cta__inner { position: relative; overflow: hidden; text-align: center; background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 16%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: var(--radius-lg); padding: clamp(42px, 6vw, 72px) 24px; box-shadow: var(--shadow-sm); }
.cta__inner::before { content: ""; position: absolute; top: -60%; left: 50%; width: 480px; height: 480px; transform: translateX(-50%); background: radial-gradient(circle, var(--glow), transparent 60%); pointer-events: none; }
.cta__inner h2 { position: relative; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.cta__inner p { position: relative; color: var(--t2); font-size: 1.1rem; margin-bottom: 26px; }
.cta__btns { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__brand p { color: var(--t3); font-size: 0.9rem; max-width: 320px; margin-top: 14px; }
.footer__col h4 { font-size: 0.85rem; color: var(--t1); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--t2); font-size: 0.92rem; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--t3); }

/* ---------- 卡片 3D 倒影（JS 控制） ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- 滚动揭示（含错峰） ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.grid--feat .card:nth-child(1) { transition-delay: 0.04s; }
.grid--feat .card:nth-child(2) { transition-delay: 0.1s; }
.grid--feat .card:nth-child(3) { transition-delay: 0.16s; }
.grid--feat .card:nth-child(4) { transition-delay: 0.22s; }
.grid--feat .card:nth-child(5) { transition-delay: 0.04s; }
.grid--feat .card:nth-child(6) { transition-delay: 0.1s; }
.grid--feat .card:nth-child(7) { transition-delay: 0.16s; }
.grid--feat .card:nth-child(8) { transition-delay: 0.22s; }
.steps3 .step3:nth-child(2) { transition-delay: 0.1s; }
.steps3 .step3:nth-child(3) { transition-delay: 0.2s; }
.grid--dl .dlcard:nth-child(2) { transition-delay: 0.1s; }
.grid--dl .dlcard:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--t1); color: var(--bg); font-weight: 600; font-size: 0.9rem; padding: 11px 20px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); z-index: 300; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .grid--feat { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 520px; margin: 0 auto; }
  .show { grid-template-columns: 1fr; gap: 28px; }
  .show--rev .show__text { order: 0; }
  .show__text { text-align: center; }
  .show__text p, .ticks { margin-left: auto; margin-right: auto; }
  .ticks { display: inline-flex; text-align: left; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .steps3 { grid-template-columns: 1fr; }
  .grid--dl { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .grid--feat { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .float-card--retry { right: 2px; top: 8px; transform: scale(0.88); }
  .float-card--renew { left: 2px; bottom: 12px; transform: scale(0.88); }
  .nav__actions .btn--sm[href="#download"] { display: none; }
}

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .pulse, .float-card, .fc__spin, .bubble--typing span, .grad, .hero__loop path,
  .marquee__track, .loop-ring__run, .lc, .bbar i, .retry-ic svg, .led--on { animation: none !important; }
  .lc { opacity: 1; }
  .bbar i { width: 100%; }
  .rl { opacity: 1; transform: none; animation: none; }
  .btn:hover, .card:hover, .dlcard:hover, .step3:hover, .tilt { transform: none !important; }
  .f-ic svg path, .f-ic svg rect, .step3__ic svg path { stroke-dashoffset: 0; }
}
