/* ═══════════════════════════════════════════════════════════
   花花工具箱 · 官网样式（金渐层小猫品牌重塑 + 白天/黑夜双模）
   ═══════════════════════════════════════════════════════════ */
:root {
  --font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", "MiSans", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --free: #119D6A;
  --trial: #D9821E;
  --paid: #7C5CFF;
  --danger: #E0485A;
}

/* ───── 白天模式（暖纸金渐层默认 + 强调色微调） ───── */
[data-mode="day"] {
  color-scheme: light;
  --bg: #FCF8F1;
  --bg2: #F3EAD9;
  --surface: #FFFFFF;
  --surface2: #FAF4E8;
  --ink: #221B13;
  --muted: #6C6053;
  --line: rgba(45, 32, 16, .11);
  --accent: #D9822B;
  --accent2: #E85D4A;
  --accent-soft: #FDEBD2;
  --shadow: 42, 26, 8;
}
[data-mode="day"][data-accent="lilac"] {
  --bg: #F7F5FE; --bg2: #ECE7FB; --surface2: #F3F0FD;
  --ink: #1D1A2E; --muted: #666183; --line: rgba(29, 26, 46, .11);
  --accent: #7C5CFF; --accent2: #D957E5; --accent-soft: #E9E2FF; --shadow: 40, 20, 90;
}
[data-mode="day"][data-accent="mint"] {
  --bg: #F2F9F4; --bg2: #E2F1E7; --surface2: #ECF6EF;
  --ink: #14221A; --muted: #566B5E; --line: rgba(20, 34, 26, .11);
  --accent: #119D6A; --accent2: #0EA5E9; --accent-soft: #D6F3E5; --shadow: 10, 42, 25;
}
[data-mode="day"][data-accent="fog"] {
  --bg: #F2F3F6; --bg2: #E5E7ED; --surface2: #ECEEF3;
  --ink: #191D24; --muted: #5F6775; --line: rgba(25, 29, 36, .12);
  --accent: #4E5E78; --accent2: #C88346; --accent-soft: #E2E7F0; --shadow: 20, 25, 35;
}

/* ───── 黑夜模式（深炭琥珀金猫，高对比度护眼） ───── */
[data-mode="night"] {
  color-scheme: dark;
  --bg: #100F14;
  --bg2: #191721;
  --surface: #211E2A;
  --surface2: #2A2635;
  --ink: #F6F1E7;
  --muted: #B0A89E;
  --line: rgba(255, 232, 194, .12);
  --accent: #F4B04A;
  --accent2: #FF785A;
  --accent-soft: rgba(244, 176, 74, .16);
  --shadow: 0, 0, 0;
  --free: #28D091;
  --trial: #F7B448;
  --paid: #A68EFF;
  --danger: #FF6B7D;
}
[data-mode="night"][data-accent="lilac"] {
  --accent: #9E86FF; --accent2: #EE7BF8; --accent-soft: rgba(158, 134, 255, .17);
}
[data-mode="night"][data-accent="mint"] {
  --accent: #2AD092; --accent2: #38BDF8; --accent-soft: rgba(42, 208, 146, .16);
}
[data-mode="night"][data-accent="fog"] {
  --accent: #8FA3C4; --accent2: #E8A664; --accent-soft: rgba(143, 163, 196, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background .45s var(--ease), color .45s var(--ease);
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-mode="night"] .grain { mix-blend-mode: screen; opacity: .18; }
main, .footer, .nav { position: relative; z-index: 2; }

/* ───── 通用按钮 ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), background .25s, color .25s;
  white-space: nowrap; flex-shrink: 0; position: relative; isolation: isolate;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn-xs { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { box-shadow: 0 10px 28px -10px rgba(var(--shadow), .55); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -10px var(--accent); }
[data-mode="night"] .btn-accent { color: #19120A; font-weight: 700; }
.btn-accent::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(120deg, var(--accent), var(--accent2)); opacity: 0; transition: opacity .35s;
}
.btn-accent:hover::before { opacity: 1; }
.btn-accent:hover { box-shadow: 0 16px 34px -12px var(--accent2); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent); }
.btn-soft:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.btn-light { background: #fff; color: #1E1710; }
.btn-light:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); }
.btn-outline-light { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(8px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .24); }
.btn-free { background: var(--free); color: #fff; }
[data-mode="night"] .btn-free { color: #091D15; font-weight: 700; }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); color: var(--ink); transition: transform .3s var(--spring), background .2s; flex-shrink: 0; }
.icon-btn:hover { transform: rotate(90deg); background: var(--accent-soft); color: var(--accent); }
.link { color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.link:hover { text-decoration: underline; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }

/* ───── 顶部单行导航（严格零折行） ───── */
.nav {
  position: sticky; top: 10px; z-index: 50; margin: 10px auto 0;
  width: min(1340px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(18px) saturate(1.45);
  box-shadow: 0 0 0 1px var(--line), 0 12px 36px -18px rgba(var(--shadow), .38);
  transition: background .35s, transform .35s var(--ease);
}
.nav.hide { transform: translateY(-130%); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.brand-logo-img {
  width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex-shrink: 0; display: block;
  box-shadow: 0 4px 12px -4px rgba(var(--shadow), .38), 0 0 0 1px rgba(255, 224, 165, .25);
  transition: transform .32s var(--spring), box-shadow .32s var(--ease);
}
.brand-logo-img.sm { width: 34px; height: 34px; border-radius: 8px; }
.brand-logo-img.xs { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; display: inline-block; vertical-align: -3px; margin-right: 5px; }
.brand:hover .brand-logo-img { transform: scale(1.07) rotate(-3deg); box-shadow: 0 8px 18px -6px rgba(var(--shadow), .45), 0 0 0 1.5px var(--accent); }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text { font-size: 15px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; color: var(--ink); }
.brand-sub { font-size: 10.5px; font-weight: 500; color: var(--muted); margin-top: 2px; letter-spacing: .01em; white-space: nowrap; }
.footer-brand-row { display: inline-flex; align-items: center; gap: 10px; }

.nav-links { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-mobile-only { display: none; }
.nav-links a {
  padding: 7px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s; white-space: nowrap; flex-shrink: 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--bg2); }

.nav-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.kbd-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 10px;
  border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: 12.5px;
  transition: color .2s, background .2s; white-space: nowrap; flex-shrink: 0;
}
.kbd-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex-shrink: 0; }
.kbd-btn:hover { color: var(--ink); background: var(--accent-soft); }

/* 白天 / 黑夜胶囊切换器 + 色调微调弹出 */
.mode-switch-wrap { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.daynight-switch {
  display: inline-flex; align-items: center; padding: 3px; border-radius: 999px;
  background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); flex-shrink: 0;
}
.daynight-switch button {
  height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); transition: background .25s var(--ease), color .25s, box-shadow .25s;
  white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px;
}
.daynight-switch button:hover { color: var(--ink); }
.daynight-switch button.active {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 2px 8px -2px rgba(var(--shadow), .28), 0 0 0 1px var(--line);
}
[data-mode="night"] .daynight-switch button.active {
  background: var(--accent); color: #1A120A; box-shadow: 0 2px 10px -2px var(--accent);
}

.accent-menu-wrap { position: relative; flex-shrink: 0; }
.accent-trigger {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg2);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center;
  transition: transform .25s var(--spring), background .2s;
}
.accent-trigger:hover { transform: scale(1.08); background: var(--accent-soft); }
.accent-trigger i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); display: block; }
.accent-popover {
  position: absolute; top: calc(100% + 10px); right: 0; padding: 10px 12px; border-radius: 16px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 20px 44px -16px rgba(var(--shadow), .45);
  opacity: 0; transform: translateY(-6px) scale(.96); pointer-events: none; transition: .22s var(--ease); z-index: 80;
}
.accent-popover.show { opacity: 1; transform: none; pointer-events: auto; }
.accent-pop-title { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-bottom: 8px; white-space: nowrap; }
.theme-dots { display: flex; gap: 8px; }
.theme-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .65); transition: transform .25s var(--spring), box-shadow .25s; position: relative; }
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }

.nav-pill-btn {
  height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-pill-btn:hover { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.nav-auth-btn { max-width: 132px; overflow: hidden; }
.nav-auth-btn span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav-auth-btn.logged-in { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.nav-auth-btn .role-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--free); display: inline-block; flex-shrink: 0; }
.nav-auth-btn.is-admin .role-dot { background: var(--accent); }

.nav-burger { display: none; width: 38px; height: 38px; border-radius: 50%; background: var(--bg2); flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex-shrink: 0; }
.nav-burger i { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ───── Hero ───── */
.hero {
  width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 44px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 40px; align-items: center; min-height: calc(100vh - 88px);
}
.hero > * { min-width: 0; }
.hero-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; color: var(--muted); transition: box-shadow .25s; white-space: nowrap; }
.pill:hover { box-shadow: 0 0 0 1px var(--accent); }
.pill b { color: var(--ink); background: var(--bg2); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--free); box-shadow: 0 0 0 4px color-mix(in srgb, var(--free) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }

.conn-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 600;
  color: var(--muted); transition: .25s; white-space: nowrap;
}
.conn-pill:hover { box-shadow: 0 0 0 1px var(--accent); color: var(--ink); }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--trial); display: inline-block; }
.conn-pill.live .conn-dot { background: var(--free); box-shadow: 0 0 0 3px color-mix(in srgb, var(--free) 25%, transparent); }
.conn-pill.live { color: var(--free); }

/* Hero 标题：稳定 2 行、零孤字 */
.hero-title {
  font-family: var(--display); font-size: clamp(38px, 4.2vw, 66px); line-height: 1.14;
  font-weight: 900; letter-spacing: -.03em; margin: 22px 0 20px;
}
.hero-title .line { display: block; white-space: nowrap; }
.bloom {
  position: relative; display: inline-block;
  background: linear-gradient(100deg, #E89624, #FF6B4A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .06em;
}
[data-mode="night"] .bloom { background: linear-gradient(100deg, #FFD275, #FF845B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bloom svg { position: absolute; left: 0; bottom: -.08em; width: 100%; height: .26em; overflow: visible; }
.bloom path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.3s .7s var(--ease) forwards; opacity: .7; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-sub { font-size: 17px; color: var(--muted); max-width: 540px; line-height: 1.68; }
.hero-sub b { color: var(--ink); }

.hero-tier-strip {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin-top: 18px; padding: 8px 14px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  font-size: 13px; color: var(--muted);
}
.ts-item b { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 14.5px; }
.ts-free b { color: var(--free); }
.ts-trial b { color: var(--trial); }
.ts-paid b { color: var(--paid); }
.ts-dl b { color: var(--accent); }
.ts-sep { opacity: .4; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 22px; }
.hero-cta .btn-lg { height: 48px; padding: 0 20px; font-size: 14.5px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 13px; }
.hero-meta li { display: flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; flex-shrink: 0; }

/* Hero 右侧交互预览窗（上下浮卡独立物理轨道，绝对零遮挡！） */
.hero-visual { position: relative; perspective: 1600px; padding: 52px 8px 56px 8px; max-width: 100%; }
.app-window {
  border-radius: 20px; background: var(--surface); overflow: hidden; max-width: 100%;
  box-shadow: 0 0 0 1px var(--line), 0 42px 86px -34px rgba(var(--shadow), .42), 0 16px 32px -22px rgba(var(--shadow), .28);
  transform: rotateY(-5deg) rotateX(2.5deg); transform-style: preserve-3d; transition: transform .7s var(--ease);
}
.hero-visual:hover .app-window { transform: rotateY(-1deg) rotateX(.5deg); }
.aw-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: var(--bg2); border-bottom: 1px solid var(--line); font-size: 12px; }
.aw-dots { display: flex; gap: 6px; flex-shrink: 0; }
.aw-dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.aw-dots i:nth-child(2) { background: #FEBC2E; } .aw-dots i:nth-child(3) { background: #28C840; }
.aw-title { flex: 1; text-align: center; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-mode { padding: 3px 10px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: .2s; white-space: nowrap; flex-shrink: 0; color: var(--ink); font-weight: 600; }
.aw-mode:hover { box-shadow: 0 0 0 1px var(--accent); color: var(--accent); }
.aw-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); height: 416px; }
.aw-side { padding: 12px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: var(--surface2); min-width: 0; }
.aw-side button {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; font-size: 12.5px;
  color: var(--muted); text-align: left; transition: .25s var(--ease); position: relative;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aw-side button .ico { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; background: var(--bg2); font-size: 12.5px; transition: .25s; flex-shrink: 0; }
.aw-side button .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-side button:hover { color: var(--ink); background: var(--bg2); }
.aw-side button.active { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgba(var(--shadow), .25); font-weight: 700; }
.aw-side button.active .ico { background: var(--gc); color: #fff; }
.aw-side .progress { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gc); transform-origin: left; transform: scaleX(0); }
.aw-side button.active .progress.run { animation: fill 4s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.aw-side .sep { margin-top: auto; padding: 10px; border-radius: 12px; background: var(--accent-soft); font-size: 11px; color: var(--ink); line-height: 1.5; }
.aw-side .sep b { display: block; font-size: 12.5px; color: var(--accent); }
.aw-main { padding: 16px 16px; overflow: hidden; min-width: 0; }
.aw-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.aw-head small { display: block; font-family: var(--display); font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.aw-head strong { font-size: 19px; color: var(--ink); }
.aw-search { font-size: 12px; color: var(--muted); padding: 5px 11px; border-radius: 999px; background: var(--bg2); cursor: pointer; white-space: nowrap; }
.aw-search:hover { color: var(--ink); background: var(--accent-soft); }
.aw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.aw-card { min-width: 0; padding: 10px; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); cursor: pointer; animation: cardIn .45s var(--ease) both; transition: transform .25s var(--spring), box-shadow .25s; min-height: 92px; }
.aw-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--gc), 0 10px 20px -12px var(--gc); }
.aw-card .i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14px; margin-bottom: 7px; }
.aw-card b { display: block; font-size: 12px; line-height: 1.35; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-card small { font-size: 10.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.38; margin-top: 3px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* 浮卡：位于独立上下安全轨道，彻底告别遮挡！ */
.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line), 0 16px 34px -16px rgba(var(--shadow), .42); font-size: 12.5px;
  animation: bob 6s ease-in-out infinite; pointer-events: none;
}
.float-card b { display: block; color: var(--ink); line-height: 1.25; }
.float-card small { color: var(--muted); font-size: 11px; }
.fc-2 { right: 16px; top: -4px; animation-delay: -3s; }
.fc-1 { left: 14px; bottom: 0px; }
.fc-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--free); color: #fff; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
.fc-avatars { display: flex; }
.fc-avatars i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 11.5px; display: grid; place-items: center; font-weight: 700; margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
.fc-avatars i:first-child { margin-left: 0; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* 精致原创金渐层小猫交互桌宠 */
.hero-pet { position: absolute; right: 2px; bottom: -10px; cursor: pointer; z-index: 6; outline: none; }
.cat-pet-stage { width: 112px; height: 104px; animation: petIdle 3.4s ease-in-out infinite; transform-origin: bottom center; filter: drop-shadow(0 12px 18px rgba(var(--shadow), .28)); }
.golden-cat-svg { width: 100%; height: 100%; overflow: visible; }
.cat-tail { transform-origin: 83px 84px; animation: tailWag 2.8s ease-in-out infinite; }
.cat-ear { transform-origin: 58px 26px; transition: transform .25s var(--spring); }
.hero-pet:hover .ear-l { transform: rotate(-7deg); }
.hero-pet:hover .ear-r { transform: rotate(7deg); }
.cat-eyes-blink { transform-origin: 58px 45.5px; animation: blink 4.6s infinite; }
.cat-pupil { transition: transform .08s linear; }
.hero-pet.jump .cat-pet-stage { animation: petJump .62s var(--spring); }
.hero-pet.jump .cat-tail { animation: tailWag .45s ease-in-out 3; }
@keyframes petIdle { 50% { transform: translateY(-4px) scale(1.01, 1.02); } }
@keyframes petJump { 30% { transform: translateY(-24px) scale(1.04, .96); } 65% { transform: translateY(0) scale(1.08, .92); } }
@keyframes tailWag { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(11deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.pet-bubble {
  position: absolute; bottom: 106px; right: 6px; white-space: nowrap; padding: 8px 13px;
  border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--bg);
  font-size: 12.5px; font-weight: 600; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(6px) scale(.92); transform-origin: bottom right;
  transition: .3s var(--spring); pointer-events: none;
}
.hero-pet:hover .pet-bubble, .hero-pet.talk .pet-bubble, .hero-pet:focus-visible .pet-bubble { opacity: 1; transform: none; }

/* ───── 数字统计 ───── */
.stats {
  width: min(1280px, calc(100% - 32px)); margin: 16px auto 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden;
}
.stat { padding: 26px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.stat:nth-child(4) b::after, .stat:nth-child(5) b::after { content: "+"; color: var(--accent); font-size: .58em; vertical-align: .38em; margin-left: 2px; }
.stat span { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }

.marquee { margin: 48px 0 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding: 9px 17px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: .2s; }
.marquee-track span:hover { color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.marquee-track span::before { content: "✦"; margin-right: 7px; color: var(--accent); font-size: 11px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ───── Section 基础 ───── */
.section { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 108px 0 0; }
.section-tint { width: 100%; padding: 108px max(16px, calc((100% - 1280px) / 2)) 108px; margin-top: 108px; background: var(--bg2); }
.section-tint + .section { padding-top: 108px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head.left { text-align: left; margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .12em; margin-bottom: 12px; }
.eyebrow::before { content: "🐾 "; }
.section-head h2, .modes h2, .final h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 50px); line-height: 1.16; letter-spacing: -.028em; font-weight: 900; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16.5px; text-wrap: balance; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.sync-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--muted); }
.sync-badge.live { color: var(--free); box-shadow: 0 0 0 1px color-mix(in srgb, var(--free) 40%, transparent); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ───── Bento ───── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 224px; gap: 16px; }
.bento-card {
  position: relative; border-radius: var(--r-lg); padding: 24px; background: var(--surface); overflow: hidden; cursor: pointer;
  box-shadow: 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s; text-align: left;
  display: flex; flex-direction: column; isolation: isolate;
}
.bento-card:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.bento-card:nth-child(2), .bento-card:nth-child(3), .bento-card:nth-child(4), .bento-card:nth-child(5) { grid-column: span 3; }
.bento-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gc) 16%, transparent), transparent 45%); opacity: 0; transition: opacity .35s; }
.bento-card:hover::before { opacity: 1; }
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 50%, transparent), 0 28px 54px -28px color-mix(in srgb, var(--gc) 55%, transparent); }
.bento-top { display: flex; align-items: center; justify-content: space-between; }
.bento-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: color-mix(in srgb, var(--gc) 14%, transparent); color: var(--gc); }
.bento-count { font-family: var(--display); font-size: 13px; color: var(--muted); }
.bento-count b { font-size: 26px; color: var(--ink); font-weight: 800; margin-right: 4px; }
.bento-card h3 { font-size: 21px; margin-top: 16px; display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.bento-card h3 small { font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gc); font-weight: 700; }
.bento-card p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 420px; }
.bento-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.bento-tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); color: var(--ink); transition: .2s; }
.bento-card:hover .bento-tags span { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 35%, transparent); }
.bento-arrow { position: absolute; right: 20px; bottom: 20px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transform: scale(.6) rotate(-45deg); opacity: 0; transition: .4s var(--spring); }
.bento-card:hover .bento-arrow { opacity: 1; transform: none; }
.bento-hero-mock { position: absolute; right: -50px; bottom: -34px; width: 54%; transform: rotate(-5deg); transition: transform .5s var(--ease); pointer-events: none; }
.bento-card:hover .bento-hero-mock { transform: rotate(-2deg) translateY(-6px); }
.bento-card:nth-child(1) .bento-tags { max-width: 46%; }

/* ───── 软件库工具栏 ───── */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.search { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s; }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent), 0 10px 28px -14px var(--accent); }
.search svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--ink); }
.chips { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); flex-wrap: wrap; }
.chip { height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: .22s var(--ease); white-space: nowrap; }
.chip:hover { color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); }
.chip[data-filter="free_forever"].active { background: var(--free); color: #fff; }
.chip[data-filter="trial_then_paid"].active { background: var(--trial); color: #fff; }
.chip[data-filter="paid_only"].active { background: var(--paid); color: #fff; }
[data-mode="night"] .chip[data-filter="free_forever"].active,
[data-mode="night"] .chip[data-filter="trial_then_paid"].active { color: #111; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tab { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; font-size: 13.5px; color: var(--muted); box-shadow: inset 0 0 0 1px transparent; transition: .2s; white-space: nowrap; }
.tab:hover { color: var(--ink); background: var(--surface); }
.tab.active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--gc, var(--ink)); font-weight: 700; }
.tab .n { font-family: var(--display); font-size: 12px; padding: 0 7px; border-radius: 999px; background: var(--bg2); color: var(--ink); }
.result-count { font-size: 13px; color: var(--muted); margin: 8px 2px 16px; }

/* ───── 工具卡片与三档收费标签 ───── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 15px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 19px; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s; cursor: pointer; overflow: hidden; isolation: isolate;
  animation: cardIn .45s var(--ease) both; transform-style: preserve-3d; will-change: transform;
}
.tool-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--gc) 14%, transparent), transparent 50%); opacity: 0; transition: opacity .3s; }
.tool-card:hover::after { opacity: 1; }
.tool-card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 48%, transparent), 0 24px 48px -26px color-mix(in srgb, var(--gc) 65%, transparent); }
.tc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tc-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: color-mix(in srgb, var(--gc) 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 25%, transparent); transition: transform .45s var(--spring); flex-shrink: 0; }
.tool-card:hover .tc-ico { transform: rotate(-7deg) scale(1.07); }
.tc-badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tag-free { background: color-mix(in srgb, var(--free) 15%, transparent); color: var(--free); }
.tag-trial { background: color-mix(in srgb, var(--trial) 16%, transparent); color: var(--trial); }
.tag-paid { background: color-mix(in srgb, var(--paid) 16%, transparent); color: var(--paid); }
.tag-dl { background: var(--ink); color: var(--bg); }
.tag-new { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.tag-soft { background: var(--bg2); color: var(--muted); font-weight: 600; }
.tag-cloud { background: color-mix(in srgb, #0EA5E9 15%, transparent); color: #0284C7; }
[data-mode="night"] .tag-cloud { color: #38BDF8; }
.tool-card h3 { font-size: 16.5px; margin: 14px 0 6px; line-height: 1.35; color: var(--ink); }
.tool-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.tool-card mark { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 2px; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.tc-foot .go { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); transition: gap .3s var(--spring); white-space: nowrap; }
.tool-card:hover .tc-foot .go { gap: 9px; color: var(--gc); }
.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.empty-pet { font-size: 46px; animation: bob 3s infinite; }
.empty p { margin: 10px 0 18px; }

/* ───── 独立下载中心 ───── */
.dl-switch { position: relative; display: flex; width: fit-content; max-width: 100%; margin: 0 auto 32px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow-x: auto; }
.dl-switch button { position: relative; z-index: 1; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .3s; white-space: nowrap; }
.dl-switch button.active { color: var(--bg); }
.dl-switch button span { font-family: var(--display); font-size: 12px; opacity: .75; margin-left: 4px; }
.dl-switch-ind { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); transition: left .4s var(--spring), width .4s var(--spring); }
.dl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dl-item {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--r);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: .3s var(--ease); animation: cardIn .4s var(--ease) both;
}
.dl-item:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 45%, transparent), 0 16px 32px -22px color-mix(in srgb, var(--gc) 55%, transparent); transform: translateY(-2px); }
.dl-item.selected { box-shadow: 0 0 0 2px var(--free); }
.check { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; transition: .25s var(--spring); flex-shrink: 0; }
.check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .25s .04s; }
.check.on { background: var(--free); box-shadow: none; transform: scale(1.06); }
.check.on svg { stroke-dashoffset: 0; }
.check.lock { opacity: .35; cursor: not-allowed; }
.dl-item .tc-ico { width: 44px; height: 44px; font-size: 19px; }
.dl-info { min-width: 0; cursor: pointer; }
.dl-info b { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 15px; color: var(--ink); }
.dl-info small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dl-info .meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; opacity: .88; }
.dl-btn { position: relative; min-width: 102px; overflow: hidden; }
.dl-btn .fillbar { position: absolute; inset: 0; background: rgba(255, 255, 255, .28); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear; z-index: -1; }
.batch-bar {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 22px; padding: 9px 10px 9px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
  transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .45s var(--spring), visibility 0s .45s;
}
.batch-bar.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--spring), visibility 0s; }
.batch-bar > div { display: flex; gap: 8px; }
.batch-bar .btn-ghost { color: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bg) 35%, transparent); }

/* ───── 双模架构（白天/黑夜均高级清晰） ───── */
.modes {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; padding: 52px;
  border-radius: var(--r-xl); background: #1D1814; color: #F9F4EB; overflow: hidden; position: relative;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .45);
}
[data-mode="night"] .modes {
  background: linear-gradient(155deg, #1E1B28, #16141D);
  box-shadow: 0 0 0 1px rgba(244, 176, 74, .24), 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.modes::before { content: ""; position: absolute; width: 580px; height: 580px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 36%, transparent), transparent 65%); transition: background .6s; pointer-events: none; }
.modes[data-mode="server"]::before { background: radial-gradient(circle, color-mix(in srgb, var(--accent2) 40%, transparent), transparent 65%); }
.modes .eyebrow { color: #F5B754; }
.modes-desc { margin: 16px 0 24px; color: rgba(249, 244, 235, .78); font-size: 15.5px; min-height: 76px; }
.mode-toggle { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .11); }
.mode-toggle button { position: relative; z-index: 1; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .74); transition: opacity .3s, color .3s; white-space: nowrap; }
.mode-toggle button.active { color: #1B1510; }
.mode-toggle i { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: #FFF8EC; transition: left .4s var(--spring), width .4s var(--spring); }
.mode-points { list-style: none; margin-top: 24px; display: grid; gap: 11px; }
.mode-points li { display: flex; gap: 11px; font-size: 14px; color: rgba(249, 244, 235, .9); animation: cardIn .45s var(--ease) both; }
.mode-points li::before { content: "✓"; flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #1A120A; font-size: 12px; font-weight: 900; }
.modes-diagram { position: relative; height: 370px; }
.diagram-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.diagram-lines path { fill: none; stroke: rgba(255, 244, 224, .3); stroke-width: 1.5; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
.modes[data-mode="server"] .diagram-lines path { stroke: var(--accent2); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.node { position: absolute; transform: translate(-50%, -50%); padding: 13px 16px; border-radius: 15px; text-align: center; background: rgba(255, 248, 236, .09); box-shadow: inset 0 0 0 1px rgba(255, 248, 236, .2); backdrop-filter: blur(6px); min-width: 130px; color: #FFF8EC; transition: .5s var(--ease); }
.node b { display: block; font-size: 14.5px; }
.node small { font-family: var(--mono); font-size: 11px; opacity: .72; }
.node-center { left: 50%; top: 50%; background: var(--accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 54px var(--accent); color: #19120A; animation: breathe 3s ease-in-out infinite; }
.node-center small { opacity: .88; font-weight: 700; }
@keyframes breathe { 50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 74px var(--accent); } }
.n1 { left: 21%; top: 21%; } .n2 { left: 79%; top: 21%; } .n3 { left: 21%; top: 79%; } .n4 { left: 79%; top: 79%; }
.node.flip { animation: flip .55s var(--ease); }
@keyframes flip { 40% { transform: translate(-50%, -50%) rotateX(90deg); } }

/* ───── 会员与积分 ───── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.plan:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line), 0 28px 56px -32px rgba(var(--shadow), .48); }
.plan.hot { background: #1F1914; color: #FBF5EA; box-shadow: 0 28px 56px -26px rgba(var(--shadow), .6); }
[data-mode="night"] .plan.hot { background: linear-gradient(160deg, #2D2419, #1E1C28); color: #FBF5EA; box-shadow: 0 0 0 1.5px var(--accent), 0 24px 50px -24px rgba(0, 0, 0, .7); }
.plan.hot .plan-sub, .plan.hot li { color: rgba(251, 245, 234, .78); }
.plan-ribbon { position: absolute; top: -12px; left: 22px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.plan h3 { font-size: 17px; }
.plan-sub { font-size: 13px; color: var(--muted); }
.plan-price { margin: 20px 0 6px; display: flex; align-items: baseline; gap: 5px; }
.plan-price .cur { font-size: 19px; font-weight: 700; }
.plan-price b { font-family: var(--display); font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.plan-price span { font-size: 13.5px; color: var(--muted); }
.plan.hot .plan-price span { color: rgba(251, 245, 234, .65); }
.plan-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 18px; }
.plan-kpis div { padding: 8px 6px; border-radius: 10px; background: var(--bg2); text-align: center; }
.plan.hot .plan-kpis div { background: rgba(255, 255, 255, .1); }
.plan-kpis b { display: block; font-family: var(--display); font-size: 14.5px; }
.plan-kpis small { font-size: 11px; opacity: .7; }
.plan ul { list-style: none; display: grid; gap: 9px; font-size: 13.5px; color: var(--muted); margin-bottom: 24px; flex: 1; }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: "✓"; flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 900; }
.plan .btn { width: 100%; }
.plan.hot .btn-ink { background: var(--accent); color: #1A120A; font-weight: 700; }

.packs { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.packs-head b { display: block; font-size: 16px; color: var(--ink); } .packs-head span { font-size: 12.5px; color: var(--muted); }
.packs-list { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pack { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 14px; border-radius: 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--ink); transition: .25s var(--spring); }
.pack:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--accent); }
.pack b { font-family: var(--display); font-size: 16px; color: var(--accent); }
.pack em { font-style: normal; color: var(--free); font-weight: 700; }
.redeem { display: flex; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.redeem input { border: 0; outline: 0; background: transparent; font-family: var(--mono); font-size: 13px; width: 210px; text-transform: uppercase; color: var(--ink); }
.redeem.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.compare { margin-top: 18px; }
.compare-toggle { display: block; margin: 0 auto; font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 18px; border-radius: 999px; transition: .2s; }
.compare-toggle:hover { color: var(--ink); background: var(--surface); }
.compare-toggle span { display: inline-block; transition: transform .35s var(--spring); }
.compare.open .compare-toggle span { transform: rotate(180deg); }
.compare-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.compare.open .compare-body { grid-template-rows: 1fr; }
.compare-body > div { overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); font-size: 14px; }
.compare th, .compare td { padding: 12px 15px; text-align: center; border-bottom: 1px solid var(--line); color: var(--ink); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare thead th { background: var(--bg2); font-size: 13px; }
.compare .y { color: var(--free); font-weight: 900; } .compare .n { color: var(--muted); opacity: .45; }

/* ───── 时间线 ───── */
.timeline { list-style: none; position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 120px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent2), transparent); }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 34px; padding-bottom: 36px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 114px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--accent); transition: .3s; }
.tl-item:first-child::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.tl-date { text-align: right; padding-right: 10px; }
.tl-date b { display: block; font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--ink); }
.tl-date small { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.tl-card { padding: 18px 22px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: .3s; }
.tl-card:hover { box-shadow: 0 0 0 1px var(--accent); transform: translateX(4px); }
.tl-card h4 { font-size: 16.5px; margin-bottom: 10px; color: var(--ink); }
.tl-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.tl-card li { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: var(--bg2); color: var(--muted); }

/* ───── FAQ ───── */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: 104px; }
.faq { display: grid; gap: 11px; }
.faq-item { border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .3s; }
.faq-item.open { box-shadow: 0 0 0 1.5px var(--accent); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 22px; text-align: left; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.faq-q i { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bg2); position: relative; transition: .35s var(--spring); }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: .35s var(--spring); }
.faq-q i::after { transform: rotate(90deg); }
.faq-item.open .faq-q i { background: var(--accent); transform: rotate(180deg); }
.faq-item.open .faq-q i::before, .faq-item.open .faq-q i::after { background: #fff; }
.faq-item.open .faq-q i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ───── Final CTA（金渐层暖琥珀渐变 + 矢量猫爪印装饰） ───── */
.final {
  width: min(1280px, calc(100% - 32px)); margin: 108px auto 0; padding: 84px 36px; border-radius: var(--r-xl);
  text-align: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(125deg, #D9822B, #E85D4A 70%, #C54B6C);
}
[data-mode="night"] .final { background: linear-gradient(125deg, #B56918, #9C3A32 70%, #5B2E6E); box-shadow: 0 0 0 1px rgba(244, 176, 74, .28); }
.final-inner { position: relative; z-index: 1; }
.final p { opacity: .9; margin: 14px 0 30px; font-size: 16.5px; }
.final-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.final-btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final-meta { font-size: 12.5px; opacity: .82; font-family: var(--mono); }
.sha-copy-btn {
  padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .2); color: rgba(255, 255, 255, .92);
  font-size: 12px; font-family: var(--mono); transition: background .2s;
}
.sha-copy-btn:hover { background: rgba(0, 0, 0, .35); }
.final-paws .fp { position: absolute; fill: #fff; opacity: .12; pointer-events: none; animation: pawFloat 18s ease-in-out infinite; }
.final-paws .fp1 { width: 140px; left: -18px; top: -22px; transform: rotate(-18deg); }
.final-paws .fp2 { width: 190px; right: 5%; bottom: -46px; transform: rotate(22deg); animation-delay: -6s; }
.final-paws .fp3 { width: 92px; right: -10px; top: 18px; transform: rotate(35deg); animation-delay: -11s; }
.final-paws .fp4 { width: 88px; left: 12%; bottom: -18px; opacity: .16; animation-delay: -3s; }
@keyframes pawFloat { 50% { transform: translateY(-12px) rotate(10deg); } }

/* ───── Footer ───── */
.footer { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 38px; display: grid; grid-template-columns: 1fr auto; gap: 36px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer-brand .brand-text { font-weight: 800; }
.footer-status { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.footer-cols { display: flex; gap: 54px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-cols b { margin-bottom: 4px; color: var(--ink); }
.footer-cols a { color: var(--muted); transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.footer-copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ═════════ 浮层：详情抽屉与模态框 ═════════ */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(12, 9, 5, .52); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 90; width: min(620px, calc(100% - 24px)); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 34px 70px -24px rgba(0, 0, 0, .52); transform: translateX(calc(100% + 28px)); visibility: hidden; will-change: transform; transition: transform .24s cubic-bezier(.2, .9, .2, 1), visibility 0s .24s; overflow: hidden; }
.drawer.show { transform: translateX(0); visibility: visible; transition: transform .24s cubic-bezier(.2, .9, .2, 1), visibility 0s; }
.drawer-close { position: absolute; top: 16px; right: 16px; z-index: 5; }
.drawer-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.drawer-scroll::-webkit-scrollbar { width: 6px; } .drawer-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.d-hero { position: relative; padding: 26px 26px 0; background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 14%, var(--surface)), var(--surface)); }
.d-crumb { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.d-crumb i { width: 8px; height: 8px; border-radius: 50%; background: var(--gc); }
.d-title { display: flex; gap: 14px; align-items: center; margin: 16px 0 10px; }
.d-title .tc-ico { width: 60px; height: 60px; font-size: 28px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 12px 24px -14px var(--gc); }
.d-title h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.d-tagline { font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.d-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.d-shot { border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 -10px 40px -20px var(--gc); background: var(--surface); }
.d-shot .aw-bar { height: 32px; }
.d-shot .aw-dots i { width: 9px; height: 9px; }
.d-body { padding: 24px 26px 124px; }
.d-body h4 { font-size: 12.5px; letter-spacing: .12em; color: var(--muted); margin: 24px 0 11px; font-weight: 700; }
.d-body h4:first-child { margin-top: 0; }
.d-desc { font-size: 14.5px; color: var(--ink); opacity: .88; line-height: 1.7; }
.d-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.d-feat { display: flex; gap: 10px; padding: 13px; border-radius: 13px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 1.5; color: var(--ink); }
.d-feat span { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--gc) 16%, transparent); color: var(--gc); font-weight: 800; font-size: 11.5px; font-family: var(--display); }
.d-specs { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.d-specs div { padding: 11px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d-specs div:nth-child(3n) { border-right: 0; }
.d-specs div:nth-last-child(-n+3) { border-bottom: 0; }
.d-specs small { display: block; font-size: 11.5px; color: var(--muted); }
.d-specs b { font-size: 13.5px; color: var(--ink); }
.d-related { display: flex; gap: 8px; flex-wrap: wrap; }
.d-related button { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--ink); transition: .2s; }
.d-related button:hover { box-shadow: 0 0 0 1.5px var(--gc); transform: translateY(-2px); }
.d-cta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.d-cta .price { flex: 1; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.d-cta .price b { display: block; font-size: 16.5px; color: var(--ink); }
.d-cta .price b.free { color: var(--free); }
.d-cta .price b.trial { color: var(--trial); }

/* 通用 Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(12, 9, 5, .52); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-card { width: min(560px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); padding: 28px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, .55); transform: translateY(18px) scale(.97); transition: transform .4s var(--spring); position: relative; }
.modal.show .modal-card { transform: none; }
.modal-auth { width: min(500px, 100%); }
.modal-wide { width: min(960px, 100%); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.modal-sm { width: min(420px, 100%); }

/* ───── 收银台 ───── */
.co-head h3 { font-size: 21px; padding-right: 36px; }
.co-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.co-plans { display: grid; gap: 8px; margin: 18px 0; }
.co-plan { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); text-align: left; transition: .2s; color: var(--ink); }
.co-plan:hover { box-shadow: 0 0 0 1px var(--ink); }
.co-plan.active { box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.co-plan .radio { width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); transition: .2s; flex-shrink: 0; }
.co-plan.active .radio { box-shadow: inset 0 0 0 5px var(--accent); }
.co-plan .nm { flex: 1; } .co-plan .nm b { display: block; font-size: 14.5px; } .co-plan .nm small { color: var(--muted); font-size: 12px; }
.co-plan .pr { font-family: var(--display); font-weight: 800; font-size: 19px; }
.co-label { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .1em; margin-bottom: 8px; }
.co-pay { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.co-pay button { position: relative; padding: 9px 4px; border-radius: 12px; font-size: 12px; box-shadow: 0 0 0 1px var(--line); transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ink); }
.co-pay button i { width: 20px; height: 20px; border-radius: 7px; background: var(--c); }
.co-pay button.active { box-shadow: 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.co-pay button.ch-off { opacity: .6; }
.co-pay button .ch-st { font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.co-pay button .ch-st.on { background: color-mix(in srgb, var(--free) 16%, transparent); color: var(--free); font-weight: 700; }
.api-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.api-quick button { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: .2s; }
.api-quick button:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.co-qr { display: flex; gap: 18px; align-items: center; margin: 18px 0; padding: 15px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.qr { width: 144px; height: 144px; flex-shrink: 0; border-radius: 12px; background: #fff; padding: 8px; display: grid; grid-template-columns: repeat(21, 1fr); gap: 0; box-shadow: 0 0 0 1px var(--line); position: relative; }
.qr.real-qr { display: flex; align-items: center; justify-content: center; padding: 6px; }
.qr.real-qr::after { display: none; }
.qr.real-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr i { background: #111; } .qr i.o { background: transparent; }
.qr::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 8px; background: var(--c, var(--accent)); box-shadow: 0 0 0 3px #fff; }
.co-qr-info { min-width: 0; flex: 1; }
.co-qr-info b { font-family: var(--display); font-size: 28px; display: block; color: var(--ink); }
.co-qr-info small { color: var(--muted); font-size: 12px; display: block; }
.co-qr-info .timer { font-family: var(--mono); color: var(--accent); margin-top: 6px; font-size: 12.5px; }
.co-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }
.co-success { text-align: center; padding: 20px 0; }
.co-success .big { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; background: var(--free); display: grid; place-items: center; animation: pop .55s var(--spring); }
.co-success .big svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .25s forwards; }
@keyframes pop { from { transform: scale(0); } }

/* ───── 统一账号弹窗（登录 / 注册 / 微信扫码绑手机 / 后端设置） ───── */
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: var(--bg2); margin: 16px 0 18px; }
.auth-tabs button { height: 36px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); transition: .2s; white-space: nowrap; }
.auth-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(var(--shadow), .25); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; }
.auth-hint { padding: 10px 12px; border-radius: 12px; background: var(--bg2); font-size: 12.5px; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.auth-hint b { color: var(--ink); }
.auth-err { padding: 9px 12px; border-radius: 11px; background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.auth-ok { padding: 9px 12px; border-radius: 11px; background: color-mix(in srgb, var(--free) 13%, transparent); color: var(--free); font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.wx-box { text-align: center; padding: 12px 0; }
.wx-qr-frame { width: 204px; height: 204px; margin: 0 auto 12px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.wx-qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.account-card { padding: 16px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); margin: 14px 0 16px; }
.account-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.account-row:last-child { border-bottom: 0; }
.account-row span { color: var(--muted); }
.api-box { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.api-box summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); user-select: none; }
.api-box .api-inner { margin-top: 10px; }

/* ───── 付费与上架策略配置面板（前后端双向自由选择） ───── */
.pm-head { padding: 20px 26px 14px; border-bottom: 1px solid var(--line); background: var(--surface2); position: relative; }
.pm-head h3 { font-size: 20px; padding-right: 40px; display: flex; align-items: center; gap: 8px; }
.pm-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pm-status-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; }
.pm-kpis { display: flex; flex-wrap: wrap; gap: 10px; font-weight: 600; }
.pm-kpis span { white-space: nowrap; }
.pm-toolbar { padding: 12px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pm-search { flex: 1; min-width: 180px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 13px; outline: none; }
.pm-search:focus { border-color: var(--accent); }
.pm-select { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 13px; outline: none; }
.pm-list { flex: 1; overflow-y: auto; padding: 10px 26px; max-height: 50vh; }
.pm-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg);
  margin-bottom: 8px; transition: border-color .2s;
}
.pm-row.dirty { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.pm-tool { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pm-tool .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 16px; flex-shrink: 0; }
.pm-tool .info { min-width: 0; }
.pm-tool b { display: block; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-tool small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 三档收费分段选择器 */
.tier-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); gap: 2px; flex-shrink: 0; }
.tier-seg button { padding: 5px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); transition: .18s; white-space: nowrap; }
.tier-seg button:hover { color: var(--ink); }
.tier-seg button.active[data-set-tier="free_forever"] { background: var(--free); color: #fff; }
.tier-seg button.active[data-set-tier="trial_then_paid"] { background: var(--trial); color: #fff; }
.tier-seg button.active[data-set-tier="paid_only"] { background: var(--paid); color: #fff; }
[data-mode="night"] .tier-seg button.active[data-set-tier="free_forever"],
[data-mode="night"] .tier-seg button.active[data-set-tier="trial_then_paid"] { color: #111; }

/* 独立下载 Toggle 开关 */
.pm-toggles { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sw-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.sw-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-track { width: 36px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex-shrink: 0; }
.sw-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .22s var(--spring); }
.sw-label input:checked + .sw-track { background: var(--accent); }
.sw-label input:checked + .sw-track::after { transform: translateX(16px); }

.pm-foot { padding: 14px 26px; border-top: 1px solid var(--line); background: var(--surface2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pm-foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───── 命令面板 ───── */
.palette { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; background: rgba(12, 9, 5, .4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .22s; }
.palette.show { opacity: 1; pointer-events: auto; }
.palette-card { width: min(620px, calc(100% - 32px)); border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, .55); overflow: hidden; transform: translateY(-10px) scale(.98); transition: transform .3s var(--spring); }
.palette.show .palette-card { transform: none; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.palette-input input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.palette-list { list-style: none; max-height: 380px; overflow-y: auto; padding: 8px; }
.palette-list li { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 14px; color: var(--ink); }
.palette-list li .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg2); font-size: 16px; flex-shrink: 0; }
.palette-list li .t { flex: 1; min-width: 0; } .palette-list li .t small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-list li.active { background: var(--accent-soft); }
.palette-list mark { background: none; color: var(--accent); font-weight: 700; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.palette-foot kbd { margin-right: 4px; }

/* ───── 下载中心浮球 ───── */
.dl-center { position: fixed; right: 24px; bottom: 24px; z-index: 70; }
.dl-fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 16px 30px -14px rgba(var(--shadow), .45); transition: transform .35s var(--spring); transform: scale(0); position: relative; }
.dl-center.active .dl-fab { transform: scale(1); }
.dl-fab:hover { transform: scale(1.08) !important; }
.dl-fab svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl-fab.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.22); } }
.dl-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dl-panel { position: absolute; right: 0; bottom: 68px; width: 340px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(var(--shadow), .55); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: .3s var(--spring); }
.dl-panel.show { opacity: 1; transform: none; pointer-events: auto; }
.dl-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dl-panel ul { list-style: none; max-height: 320px; overflow-y: auto; padding: 8px; }
.dl-task { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px; border-radius: 12px; align-items: center; }
.dl-task .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg2); }
.dl-task b { font-size: 13px; display: flex; justify-content: space-between; gap: 8px; color: var(--ink); }
.dl-task b span { font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: 11.5px; }
.dl-task .bar { height: 5px; border-radius: 5px; background: var(--bg2); margin-top: 6px; overflow: hidden; }
.dl-task .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s linear; }
.dl-task.done .bar i { background: var(--free); }
.dl-task small { font-size: 11.5px; color: var(--muted); }
.dl-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 13px; }

/* ───── Toasts ───── */
.toasts { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .55); animation: toastIn .4s var(--spring) both; max-width: min(560px, calc(100vw - 32px)); }
.toast.out { animation: toastOut .28s var(--ease) forwards; }
.toast i { font-style: normal; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.92); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ═════════ 内置产品示意 Mock 截图 ═════════ */
.mock { position: relative; height: 226px; padding: 14px; background: var(--bg); overflow: hidden; font-size: 10px; color: var(--muted); }
.mock.sm { height: 186px; }
.m-row { display: flex; gap: 8px; } .m-col { display: flex; flex-direction: column; gap: 8px; }
.m-box { border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 8px; }
.m-line { height: 6px; border-radius: 4px; background: var(--line); }
.m-acc { background: var(--gc); }
.m-kpi b { display: block; font-family: var(--display); font-size: 15px; color: var(--ink); }
.m-chart { width: 100%; height: 100%; }
.m-chart .area { fill: color-mix(in srgb, var(--gc) 18%, transparent); }
.m-chart .ln { fill: none; stroke: var(--gc); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s .2s var(--ease) forwards; }
.m-chart .ln2 { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .5; }
.m-track { position: relative; height: 25px; border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); margin-bottom: 6px; }
.m-clip { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: color-mix(in srgb, var(--gc) 70%, transparent); animation: clipIn .6s var(--ease) both; }
.m-clip.b { background: color-mix(in srgb, var(--gc) 35%, transparent); }
.m-clip.t { background: color-mix(in srgb, #7C5CFF 55%, transparent); }
@keyframes clipIn { from { transform: scaleX(0); transform-origin: left; } }
.m-playhead { position: absolute; top: 6px; bottom: 6px; width: 2px; background: var(--accent2); left: 20%; animation: play 6s linear infinite; z-index: 2; }
.m-playhead::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent2); }
@keyframes play { to { left: 92%; } }
.m-ruler { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; margin-bottom: 6px; opacity: .7; }
.m-bubble { max-width: 70%; padding: 7px 10px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 10.5px; animation: cardIn .45s var(--ease) both; }
.m-bubble.me { align-self: flex-end; background: var(--gc); color: #fff; box-shadow: none; }
.m-canvas { position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 16px 16px; }
.m-node { position: absolute; padding: 7px 10px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 16px -10px rgba(var(--shadow), .4); color: var(--ink); font-weight: 600; font-size: 10px; min-width: 76px; animation: cardIn .45s var(--ease) both; }
.m-node i { display: block; height: 28px; margin-top: 5px; border-radius: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 40%, transparent), color-mix(in srgb, var(--accent2) 30%, transparent)); }
.m-cursor { position: absolute; font-size: 9px; color: #fff; padding: 2px 6px; border-radius: 4px 8px 8px 8px; background: var(--c); animation: wander 7s ease-in-out infinite; z-index: 3; }
.m-cursor::before { content: ""; position: absolute; left: -2px; top: -6px; border: 5px solid transparent; border-bottom-color: var(--c); transform: rotate(-30deg); }
@keyframes wander { 25% { transform: translate(40px, 20px); } 50% { transform: translate(10px, 50px); } 75% { transform: translate(-30px, 10px); } }
.m-wave { display: flex; align-items: center; gap: 2px; height: 100%; }
.m-wave i { flex: 1; border-radius: 2px; background: var(--gc); opacity: .78; animation: wave 1.2s ease-in-out infinite alternate; }
@keyframes wave { from { transform: scaleY(.35); } }
.m-heat { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.m-heat i { aspect-ratio: 1.6; border-radius: 3px; background: var(--gc); animation: cardIn .4s var(--ease) both; }
.m-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.m-thumbs i { aspect-ratio: 9/14; border-radius: 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--gc) var(--a, 40%), var(--surface)), color-mix(in srgb, var(--accent2) 20%, var(--surface))); box-shadow: 0 0 0 1px var(--line); animation: cardIn .45s var(--ease) both; position: relative; }
.m-thumbs i::after { content: attr(data-n); position: absolute; left: 4px; bottom: 3px; font-style: normal; font-size: 8px; color: var(--ink); font-family: var(--mono); }
.m-video { position: relative; height: 146px; border-radius: 10px; background: linear-gradient(135deg, #2B2433, #4A3A55 50%, #6B4E5E); overflow: hidden; }
.m-video::before { content: ""; position: absolute; left: 30%; top: 22%; width: 40%; height: 56%; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 50% 35%, rgba(255, 220, 200, .55), transparent 60%); }
.m-video .sub { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 3px 10px; color: #fff; font-size: 11px; background: rgba(0, 0, 0, .4); border-radius: 4px; white-space: nowrap; }
.m-video .box { position: absolute; border: 1.5px dashed var(--gc); border-radius: 4px; background: color-mix(in srgb, var(--gc) 18%, transparent); animation: pulseBox 2s infinite; }
@keyframes pulseBox { 50% { opacity: .4; } }
.m-scrub { position: relative; height: 6px; border-radius: 6px; background: var(--line); margin-top: 12px; }
.m-scrub i { position: absolute; top: -3px; width: 4px; height: 12px; border-radius: 2px; background: var(--accent2); }
.m-scrub b { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; border-radius: inherit; background: var(--gc); }
.m-check { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); animation: cardIn .45s var(--ease) both; }
.m-check .c { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line); flex-shrink: 0; }
.m-check .c.on { background: var(--gc); box-shadow: none; }
.m-check .m-line { flex: 1; }
.m-check .st { font-size: 9px; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--gc) 15%, transparent); color: var(--gc); font-weight: 700; }
.m-flow { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 26px; }
.m-step { flex: 1; text-align: center; padding: 11px 4px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; position: relative; }
.m-step span { display: block; font-size: 17px; margin-bottom: 4px; }
.m-step.done { box-shadow: 0 0 0 1.5px var(--gc); }
.m-step.run::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gc) 50%, var(--line) 50%); background-size: 200% 100%; animation: runbar 1.5s linear infinite; }
@keyframes runbar { from { background-position: 100% 0; } to { background-position: 0 0; } }
.m-arrow { color: var(--gc); font-size: 14px; }
.m-pet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%); width: 124px; height: 116px; }
.m-desk { position: absolute; inset: 0; background: linear-gradient(180deg, #D9E9F9, #FAF0E2); }
[data-mode="night"] .m-desk { background: linear-gradient(180deg, #1B2438, #282132); }
.m-desk .win { position: absolute; left: 14px; top: 14px; width: 46%; height: 60%; border-radius: 8px; background: rgba(255, 255, 255, .65); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .28); }
[data-mode="night"] .m-desk .win { background: rgba(255, 255, 255, .1); }
.m-desk .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
[data-mode="night"] .m-desk .bar { background: rgba(0, 0, 0, .35); }
.m-game { display: grid; grid-template-columns: repeat(4, 38px); gap: 6px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--gc) 18%, var(--surface)); width: fit-content; margin: 16px auto 0; }
.m-game i { height: 38px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-family: var(--display); font-size: 13px; color: var(--ink); background: var(--surface); animation: pop .4s var(--spring) both; }
.m-doc p { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 7px; }
.m-doc p.h { background: color-mix(in srgb, var(--gc) 45%, transparent); }
.m-doc h5 { color: var(--ink); font-size: 12px; margin-bottom: 8px; }
.m-table .tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); align-items: center; }
.m-table .tr:first-child { font-weight: 700; color: var(--ink); }
.m-table .pg { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.m-table .pg b { display: block; height: 100%; background: var(--gc); }
.m-wallet { padding: 13px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--gc), var(--accent2)); }
.m-wallet b { font-family: var(--display); font-size: 24px; display: block; }
.m-bars { display: flex; align-items: flex-end; gap: 6px; height: 68px; }
.m-bars i { flex: 1; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--gc) 62%, transparent); animation: grow .8s var(--ease) both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } }

/* ═════════ 交互式抽屉体验沙盒 (.sb-*) ═════════ */
.sb-pill {
  padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: color-mix(in srgb, var(--gc, var(--accent)) 18%, transparent);
  color: var(--gc, var(--accent)); white-space: nowrap; flex-shrink: 0;
}
.sb-host { min-height: 232px; background: var(--bg); position: relative; overflow: hidden; }
.sb-wrap { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; height: 232px; font-size: 12px; color: var(--ink); }
.sb-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sb-seg { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); gap: 2px; }
.sb-seg.full { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 12px; padding: 3px; }
.sb-seg button { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); transition: .18s; white-space: nowrap; }
.sb-seg.full button { border-radius: 9px; padding: 6px 4px; text-align: center; }
.sb-seg button:hover { color: var(--ink); }
.sb-seg button.on { background: var(--gc, var(--accent)); color: #fff; }
.sb-act { padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--ink); color: var(--bg); transition: transform .2s var(--spring), opacity .2s; white-space: nowrap; }
.sb-act:hover { opacity: .9; transform: translateY(-1px); }
.sb-hint { font-size: 11.5px; color: var(--muted); }
.sb-hint b { color: var(--ink); }
.sb-tc { font-family: var(--mono); font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--gc, var(--accent)); }
.sb-list { display: grid; gap: 5px; overflow-y: auto; }
.sb-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-family: var(--mono); font-size: 11px; }
.sb-old { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-arr { color: var(--gc, var(--accent)); font-weight: 900; }
.sb-new { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-new.ok { color: var(--free); }
.sb-shots { display: grid; gap: 6px; overflow-y: auto; }
.sb-shot { padding: 7px 10px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 11.5px; line-height: 1.5; color: var(--ink); }
.sb-tl { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 10px 8px 8px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); flex: 1; justify-content: center; }
.sb-playhead { position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--accent2); z-index: 4; pointer-events: none; }
.sb-playhead::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent2); }
.sb-tr { display: grid; grid-template-columns: 68px 1fr; gap: 8px; align-items: center; transition: opacity .2s; }
.sb-tr.muted { opacity: .35; }
.sb-tr-btn { font-size: 10.5px; font-weight: 700; padding: 4px 6px; border-radius: 7px; background: var(--bg2); color: var(--ink); text-align: left; white-space: nowrap; }
.sb-tr-lane { position: relative; height: 28px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); cursor: ew-resize; }
.sb-canvas-wrap { padding: 10px 12px; }
.sb-stage { position: relative; flex: 1; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); user-select: none; }
.sb-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.sb-cnode {
  position: absolute; z-index: 2; width: 106px; padding: 7px 9px; border-radius: 10px; cursor: grab;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgba(var(--shadow), .45);
  font-size: 10.5px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.sb-cnode i { display: block; height: 20px; margin-top: 4px; border-radius: 5px; background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 42%, transparent), color-mix(in srgb, var(--accent2) 30%, transparent)); }
.sb-cnode.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 0 0 2px var(--gc), 0 16px 28px -12px var(--gc); }
.sb-hm { display: grid; gap: 5px; flex: 1; align-content: center; }
.sb-hm-row { display: grid; grid-template-columns: 64px repeat(4, 1fr); gap: 5px; align-items: center; }
.sb-hm-hd { font-size: 10.5px; color: var(--muted); text-align: center; font-weight: 700; }
.sb-hm-lbl { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sb-hm-cell {
  height: 30px; border-radius: 7px; font-family: var(--display); font-size: 12px; font-weight: 800;
  color: #fff; background: color-mix(in srgb, var(--gc) calc(var(--op) * 100%), var(--surface2));
  transition: transform .18s var(--spring), box-shadow .18s;
}
.sb-hm-cell:hover { transform: scale(1.05); }
.sb-hm-cell.on { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.05); }
.sb-pet-wrap { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, var(--bg)), var(--bg)); }
[data-mode="night"] .sb-pet-wrap { background: linear-gradient(180deg, #1F1B2C, #14121B); }
.sb-scale { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.sb-scale input { width: 72px; accent-color: var(--accent); }
.sb-pet-stage { position: relative; flex: 1; display: grid; place-items: center; }
.sb-pet-bubble { position: absolute; top: 4px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 600; max-width: 92%; text-align: center; }
.sb-pet-cat { width: 106px; height: 98px; margin-top: 26px; transition: transform .25s var(--spring); }
.sb-pet-cat.jump { animation: catJump .55s var(--spring); }
.sb-pet-cat.happy { animation: catJump .45s var(--spring); }
.sb-sop-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 11px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 11.5px; color: var(--muted); }
.sb-sop-meta b { color: var(--ink); }
.sb-2048 .m-game { grid-template-columns: repeat(4, 34px); gap: 5px; padding: 6px; }
.sb-2048 .m-game i { height: 34px; font-size: 12px; }
.sb-script { display: grid; gap: 5px; overflow-y: auto; }
.sb-sline { padding: 6px 9px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 11.5px; line-height: 1.45; transition: opacity .2s; }
.sb-sline.dim { opacity: .35; }
.sb-sline.hit { box-shadow: 0 0 0 1.2px color-mix(in srgb, var(--gc) 55%, var(--line)); }
.sb-sline code { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.sb-sline b { color: var(--gc, var(--accent)); }

/* ═════════ 统一账号中心 4 标签升级 (.acc-*) ═════════ */
.acc-wallet {
  padding: 14px 16px; border-radius: 16px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(125deg, #D9822B, #E85D4A);
  box-shadow: 0 12px 26px -14px rgba(217, 130, 43, .6);
}
[data-mode="night"] .acc-wallet { background: linear-gradient(125deg, #B56B1E, #B84232); }
.acc-wallet-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.acc-wallet-top small { opacity: .88; font-size: 12px; }
.acc-wallet-top b { font-family: var(--display); font-size: 24px; font-weight: 800; }
.acc-buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-buckets div { padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 12px; }
.acc-buckets b { display: block; font-family: var(--display); font-size: 16px; }
.acc-list { display: grid; gap: 8px; max-height: 240px; overflow-y: auto; margin-bottom: 14px; }
.acc-item { padding: 11px 13px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acc-item b { display: block; color: var(--ink); font-size: 13px; }
.acc-item small { display: block; color: var(--muted); font-size: 11.5px; font-family: var(--mono); }
.acc-item-r { text-align: right; flex-shrink: 0; }
.acc-lease-box { padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.acc-lease-tok { font-family: var(--mono); font-size: 11px; color: var(--muted); word-break: break-all; max-height: 74px; overflow-y: auto; padding: 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); margin-top: 8px; }
.acc-empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 13px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }

/* ═════════ 响应式断点（全宽段单行零溢出） ═════════ */
@media (max-width: 1380px) {
  .nav { gap: 6px; padding: 7px 9px 7px 12px; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
  .kbd-btn kbd { display: none; }
  .kbd-btn { padding: 0 10px; }
  .nav-pill-btn { padding: 0 10px; font-size: 12.5px; }
}
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 10px; border-radius: 20px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 20px 44px -18px rgba(0, 0, 0, .38);
  }
  .nav.open .nav-links a { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; min-height: 0; gap: 36px; }
  .hero-visual { max-width: 720px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: 1fr; padding: 38px; }
  .packs { grid-template-columns: 1fr; }
  .packs-list { grid-row: auto; grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .faq-wrap .section-head { position: static; }
}
@media (max-width: 780px) {
  .nav { padding: 7px 10px; }
  #openPolicyBtn, .nav-actions .btn { display: none; }
  .nav.open .nav-mobile-only {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 6px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
    background: var(--bg2); color: var(--ink);
  }
  .nav.open .nav-mobile-cta { background: var(--accent); color: #fff; }
  [data-mode="night"] .nav.open .nav-mobile-cta { color: #19120A; }
  .aw-body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .aw-side { flex-direction: row; overflow-x: auto; max-width: 100%; border-right: 0; border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
  .aw-side .sep { display: none; }
  .aw-side button { flex-shrink: 0; }
  .aw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-window { transform: none; max-width: 100%; }
  .hero-visual { padding: 12px 0 42px; }
  .fc-1, .fc-2 { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-card { grid-column: auto !important; grid-row: auto !important; min-height: 196px; }
  .bento-hero-mock { display: none; }
  .bento-card:nth-child(1) .bento-tags { max-width: none; }
  .dl-list { grid-template-columns: 1fr; }
  .dl-item { grid-template-columns: auto auto 1fr; }
  .dl-item .dl-btn { grid-column: 1 / -1; width: 100%; }
  .plans { grid-template-columns: 1fr; }
  .modes { padding: 26px; }
  .modes-diagram { height: 310px; }
  .node { min-width: 98px; padding: 10px 11px; }
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; padding-left: 28px; }
  .tl-item::before { left: 0; }
  .tl-date { text-align: left; }
  .footer { grid-template-columns: 1fr; }
  .footer-cols { gap: 28px; flex-wrap: wrap; }
  .d-feats, .d-specs { grid-template-columns: 1fr 1fr; }
  .co-pay { grid-template-columns: repeat(3, 1fr); }
  .pm-row { grid-template-columns: 1fr; gap: 10px; }
  .pm-toggles { justify-content: space-between; }
  .batch-bar { width: calc(100% - 24px); justify-content: space-between; gap: 10px; font-size: 13px; }
}
@media (max-width: 560px) {
  .nav { width: calc(100% - 16px); gap: 6px; padding: 6px 8px 6px 10px; }
  .brand { gap: 6px; }
  .brand-logo-img { width: 30px; height: 30px; border-radius: 8px; }
  .brand-text { font-size: 14px; }
  .brand-sub { display: none; }
  .nav-actions { gap: 5px; }
  .daynight-switch { padding: 2px; }
  .daynight-switch button { height: 28px; padding: 0 7px; font-size: 13px; }
  .daynight-switch .dn-lbl { display: none; }
  .nav-auth-btn { height: 32px; padding: 0 9px; font-size: 12px; max-width: 82px; }
  .nav-burger { width: 34px; height: 34px; }
  .hero-title { font-size: 32px; }
  .hero-title .line { white-space: normal; }
  .kbd-btn, .accent-menu-wrap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
