/* ============ 主题变量（默认浅色，html[data-theme="dark"] 深色） ============ */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --card2: #eef2f9;
  --line: rgba(20, 30, 60, 0.10);
  --txt: #1a2236;
  --txt2: #5a6579;
  --blue: #0A84FF;
  --purple: #BF5AF2;
  --cyan: #0a8fd6;
  --green: #2fb457;
  --yellow: #d9a406;
  --red: #e0362b;
  --orange: #e0860a;
  --bar: rgba(20, 30, 60, 0.22);
  --glow1: rgba(10, 132, 255, 0.08);
  --glow2: rgba(191, 90, 242, 0.07);
  --glow3: rgba(100, 210, 255, 0.05);
  --hover-shadow: 0 14px 40px rgba(31, 45, 80, 0.12);
  --prompt-txt: #16324f;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="dark"] {
  --bg: #07090f;
  --card: #101625;
  --card2: #141b2d;
  --line: rgba(255, 255, 255, 0.08);
  --txt: #eaf0ff;
  --txt2: #8b94ad;
  --cyan: #64D2FF;
  --green: #30D158;
  --yellow: #FFD60A;
  --red: #FF453A;
  --orange: #FF9F0A;
  --bar: rgba(255, 255, 255, 0.16);
  --glow1: rgba(10, 132, 255, 0.14);
  --glow2: rgba(191, 90, 242, 0.12);
  --glow3: rgba(100, 210, 255, 0.07);
  --hover-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --prompt-txt: #d7e3ff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--txt);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background 0.35s, color 0.35s;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% -5%, var(--glow1), transparent 60%),
    radial-gradient(600px 400px at 85% 0%, var(--glow2), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, var(--glow3), transparent 60%);
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ============ 顶栏 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 0.5px; }
.brand-sub { font-size: 11px; color: var(--txt2); }
.search-wrap {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; width: 280px;
  transition: border-color 0.25s;
}
.search-wrap:focus-within { border-color: rgba(10, 132, 255, 0.55); }
.search-icon { width: 16px; height: 16px; color: var(--txt2); flex: none; }
#search { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--txt); font-size: 14px; }
#search::placeholder { color: var(--txt2); }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--card); color: var(--txt2);
  display: grid; place-items: center; transition: transform 0.3s var(--spring), color 0.2s;
}
.theme-btn:hover { transform: rotate(20deg) scale(1.06); color: var(--blue); }
.theme-btn svg { width: 18px; height: 18px; }

/* ============ Hero ============ */
.page { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }
.hero { padding: 48px 0 22px; text-align: center; }
.hero h1 {
  font-size: clamp(26px, 5vw, 42px); font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(100deg, var(--blue), var(--purple) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="dark"] .hero h1 {
  background: linear-gradient(100deg, #fff 30%, #64D2FF 60%, #BF5AF2);
  -webkit-background-clip: text; background-clip: text;
}
.hero p { max-width: 560px; margin: 14px auto 0; color: var(--txt2); font-size: 15px; }
.hero strong { color: var(--cyan); font-weight: 600; }

/* ============ 分类筛选 ============ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--txt2);
  padding: 7px 16px; border-radius: 999px; font-size: 13px;
  transition: transform 0.25s var(--spring), background 0.25s, color 0.25s;
}
.chip:hover { transform: translateY(-2px); color: var(--txt); }
.chip.on {
  background: linear-gradient(100deg, var(--blue), var(--purple));
  color: #fff; border-color: transparent;
}
.chip .n { opacity: 0.65; font-size: 11px; margin-left: 3px; }

/* ============ 分类区块 ============ */
.sec { margin-top: 26px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sec-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.sec-head:nth-child(1) .sec-dot { background: var(--blue); }
.sec-count { font-size: 12px; color: var(--txt2); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ============ 卡片 ============ */
.fx-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s var(--spring), border-color 0.3s, box-shadow 0.3s;
}
.fx-card:hover { transform: translateY(-4px); border-color: rgba(10, 132, 255, 0.35); box-shadow: var(--hover-shadow); }
.demo-stage {
  position: relative; height: 240px; overflow: hidden;
  /* Demo 舞台始终保持深色，像一块展示屏幕，浅色主题下对比更醒目 */
  background:
    radial-gradient(400px 200px at 70% 0%, rgba(10, 132, 255, 0.10), transparent 70%),
    linear-gradient(180deg, #0d1322, #0a0e19);
  border-bottom: 1px solid var(--line);
  touch-action: none; user-select: none; -webkit-user-select: none;
  color: #eaf0ff;
  --txt2: #8b94ad;
  --card: #101625;
  --card2: #1a2340;
  --bar: rgba(255, 255, 255, 0.16);
}
.demo-stage.big { height: 420px; border-radius: 18px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fx-info { padding: 14px 16px 12px; flex: 1; display: flex; flex-direction: column; }
.fx-title-row { display: flex; align-items: center; gap: 8px; }
.fx-title { font-size: 15.5px; font-weight: 700; }
.fx-tag {
  margin-left: auto; font-size: 11px; color: var(--cyan);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  border-radius: 999px; padding: 2px 9px; flex: none;
}
.fx-desc { margin-top: 6px; font-size: 13px; color: var(--txt2); flex: 1; }
.fx-foot { display: flex; gap: 8px; margin-top: 12px; }
.btn {
  border: none; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.15s var(--spring), filter 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn-primary { flex: 1; color: #fff; background: linear-gradient(100deg, var(--blue), var(--purple)); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { flex: 1; color: var(--txt); background: var(--card2); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(120, 140, 180, 0.45); }
.btn svg { width: 14px; height: 14px; }

/* ============ 通用小元素 ============ */
.hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-size: 11px; color: var(--txt2); white-space: nowrap; pointer-events: none;
}

/* 1. 3D 倾斜 */
.tilt-wrap { position: absolute; inset: 0; display: grid; place-items: center; perspective: 700px; }
.tilt-card {
  width: 200px; height: 140px; border-radius: 18px; position: relative;
  background: linear-gradient(135deg, #16203a, #0e1526);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--spring);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  will-change: transform;
}
.tilt-card .tc-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px 220px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0; transition: opacity 0.4s;
}
.tilt-card.on .tc-glare { opacity: 1; }
.tilt-card .tc-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); margin-top: 8px; }
.tilt-card .tc-line.short { width: 60%; }
.tilt-card .tc-chip {
  width: 34px; height: 34px; border-radius: 10px; align-self: flex-end; margin-bottom: 8px;
  background: linear-gradient(135deg, #0A84FF, #BF5AF2);
  transform: translateZ(30px);
}

/* 2. 流体胶囊 */
.fluid-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.fluid-pill {
  width: 150px; height: 46px; border-radius: 999px; border: none;
  background: linear-gradient(100deg, #0A84FF, #BF5AF2);
  color: #fff; font-size: 14px; font-weight: 700;
  position: relative; overflow: hidden; z-index: 2;
  transition: width 0.7s var(--spring), height 0.7s var(--spring), border-radius 0.7s var(--spring), opacity 0.3s;
}
.fluid-panel {
  position: absolute; width: 220px; height: 170px; border-radius: 18px; z-index: 1;
  background: linear-gradient(160deg, #182342, #101830);
  border: 1px solid rgba(10, 132, 255, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.35s 0.15s, transform 0.7s var(--spring);
}
.fluid-panel.open { opacity: 1; transform: scale(1); }
.fluid-panel h4 { font-size: 15px; }
.fluid-panel p { font-size: 12px; color: var(--txt2); padding: 0 20px; text-align: center; }
.fluid-close {
  margin-top: 4px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eaf0ff; border-radius: 999px; padding: 6px 18px; font-size: 12px;
}
.fluid-stage.morphed .fluid-pill { width: 220px; height: 170px; border-radius: 18px; opacity: 0; pointer-events: none; }

/* 3. 共享元素 */
.shared-card {
  position: absolute; left: 50%; top: 50%; width: 180px; height: 120px;
  transform: translate(-50%, -50%); border-radius: 14px; overflow: hidden;
  background: var(--card2); border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); z-index: 2;
  display: flex; flex-direction: column; transition: none;
}
.shared-card .sc-img {
  height: 62px; flex: none;
  background: linear-gradient(120deg, #0A84FF, #BF5AF2, #64D2FF);
  background-size: 200% 200%; animation: scflow 5s ease infinite;
}
@keyframes scflow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.shared-card .sc-body { padding: 10px 12px; }
.shared-card .sc-t { height: 9px; width: 70%; border-radius: 5px; background: var(--bar); }
.shared-card .sc-s { height: 7px; width: 45%; border-radius: 4px; background: var(--bar); opacity: 0.55; margin-top: 8px; }
.shared-card.expand { width: 100%; height: 100%; left: 0; top: 0; transform: none; border-radius: 0; }
.shared-card.expand .sc-img { height: 45%; }
.shared-mask {
  position: absolute; inset: 0; background: rgba(4, 6, 12, 0.6); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.4s; z-index: 1;
}
.shared-mask.on { opacity: 1; }
.shared-close {
  position: absolute; right: 10px; top: 10px; z-index: 3; width: 30px; height: 30px;
  border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.16); color: #fff;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.shared-close svg { width: 14px; height: 14px; }
.shared-close.show { opacity: 1; pointer-events: auto; }

/* 4. 磁吸游标 */
.mag-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; align-items: baseline; gap: 8px; }
.mag-val { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; height: 34px; overflow: hidden; }
.odo-col { display: inline-block; height: 34px; overflow: hidden; vertical-align: bottom; }
.odo-strip { display: flex; flex-direction: column; transition: transform 0.45s var(--spring); }
.odo-strip span { height: 34px; line-height: 34px; }
.mag-unit { font-size: 12px; color: var(--txt2); }
.mag-chart { position: absolute; left: 0; right: 0; bottom: 0; top: 52px; cursor: ew-resize; }
.mag-dot { filter: drop-shadow(0 0 6px #64D2FF); }

/* 5. 弹性抽屉 */
.sheet-stage { position: absolute; inset: 0; background: linear-gradient(180deg, #101a30, #0a0e19); overflow: hidden; }
.sheet-stage .ss-bg { position: absolute; inset: 0; padding: 16px; color: var(--txt2); font-size: 12px; }
.sheet {
  position: absolute; left: 0; right: 0; height: 100%; border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #1a2340, #131a30);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); margin: 10px auto 6px; }
.sheet-grab { position: absolute; top: 0; left: 0; right: 0; height: 44px; cursor: grab; }
.sheet-body { padding: 6px 16px; }
.sheet-body h4 { font-size: 14px; margin-bottom: 8px; }
.sheet-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12.5px; color: var(--txt2); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sheet-ico { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.sheet.state-anim { transition: transform 0.55s var(--spring); }

/* 6. 光晕边框 */
@property --ga { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.glow-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.glow-card {
  position: relative; width: 210px; height: 130px; border-radius: 16px;
  background: linear-gradient(160deg, #131c33, #0d1322);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.glow-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ga), transparent 0deg, #0A84FF 60deg, #64D2FF 120deg, transparent 180deg, #BF5AF2 260deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: gaspin 3.6s linear infinite;
}
@keyframes gaspin { to { --ga: 360deg; } }
.glow-card::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -22px;
  width: 75%; height: 44px; transform: translateX(-50%);
  background: linear-gradient(90deg, #0A84FF, #BF5AF2, #64D2FF);
  filter: blur(28px); opacity: 0.5; border-radius: 50%;
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 0.35; transform: translateX(-50%) scale(0.92); } 50% { opacity: 0.65; transform: translateX(-50%) scale(1.06); } }
.glow-card h4 { font-size: 14px; }
.glow-card p { font-size: 11.5px; color: var(--txt2); }

/* 7. 交错流 */
.stg-stage { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 24px; }
.stg-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 9px 12px;
  opacity: 0;
}
.stg-item.in { animation: stgin 0.7s var(--spring) forwards; animation-delay: var(--d); }
@keyframes stgin { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }
.stg-ico { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.stg-bar { height: 8px; border-radius: 4px; background: var(--bar); flex: 1; }
.stg-bar.i2 { width: 55%; flex: none; }

/* 8. 弹性按压 */
.press-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.press-btn {
  width: 170px; padding: 16px 0; border: none; border-radius: 16px;
  background: linear-gradient(100deg, #0A84FF, #BF5AF2);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 10px 26px rgba(10, 132, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}
.press-btn.down { transform: scale(0.96); box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3), inset 0 3px 10px rgba(0, 0, 0, 0.35); }
.press-btn.up { animation: pressup 0.45s var(--spring); }
@keyframes pressup { 0% { transform: scale(0.96); } 55% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* ============ 图表类 ============ */
.rings-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.rings-stage svg { overflow: visible; }
.ring-track { stroke: rgba(255, 255, 255, 0.07); fill: none; }
.ring-val { fill: none; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.ring-over { fill: none; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; opacity: 0.9; filter: brightness(0.55); }
.rings-num { font-size: 30px; font-weight: 800; fill: #fff; }
.rings-sub { font-size: 10px; fill: #8b94ad; }

.hm-wrap { position: absolute; inset: 14px 14px 30px; display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 3px; }
.hm-cell { border-radius: 3px; background: rgba(255, 255, 255, 0.06); transition: transform 0.15s var(--spring); cursor: pointer; }
.hm-cell:hover { transform: scale(1.25); }
.hm-pop {
  position: absolute; z-index: 5; background: #1c2540; border: 1px solid rgba(10, 132, 255, 0.5);
  border-radius: 10px; padding: 7px 11px; font-size: 12px; pointer-events: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap; opacity: 0; transition: opacity 0.2s;
}
.hm-pop.below { transform: translate(-50%, 18px); }
.hm-pop.on { opacity: 1; }
.hm-pop b { color: #64D2FF; }

.gauge-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-num { font-size: 26px; font-weight: 800; fill: #fff; }

.bars-stage { position: absolute; inset: 0; display: flex; flex-direction: column; }
.bars-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; }
.bars-tip { font-size: 12px; color: var(--txt2); min-height: 18px; }
.bars-tip b { color: #64D2FF; }
.seg { display: flex; background: var(--card2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 3px; }
.seg button {
  border: none; background: none; color: var(--txt2); font-size: 12px; padding: 4px 14px; border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.seg button.on { background: linear-gradient(100deg, #0A84FF, #BF5AF2); color: #fff; }
.bars-box { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 10px 16px 14px; }
.bars-box.month { gap: 2px; }
.bar {
  flex: 1; min-width: 0; border-radius: 5px 5px 2px 2px; position: relative;
  background: linear-gradient(180deg, #0A84FF, rgba(10, 132, 255, 0.25));
  transform-origin: bottom; transition: height 0.7s var(--spring), opacity 0.3s, background 0.3s;
}
.bars-box.month .bar { border-radius: 2px; }
.bars-box.dim .bar { opacity: 0.22; }
.bar.hot { opacity: 1 !important; background: linear-gradient(180deg, #64D2FF, #0A84FF); }
.bar-bubble {
  position: absolute; left: 50%; transform: translate(-50%, -8px); bottom: 100%;
  background: #1c2540; border: 1px solid rgba(10, 132, 255, 0.5); color: #fff;
  font-size: 11px; border-radius: 8px; padding: 3px 8px; white-space: nowrap;
  opacity: 0; transition: opacity 0.2s, transform 0.3s var(--spring); pointer-events: none;
}
.bar.hot .bar-bubble { opacity: 1; transform: translate(-50%, -12px); }

.focus-stage { position: absolute; inset: 0; display: flex; flex-direction: column; }
.focus-label { padding: 14px 16px 6px; font-size: 14px; font-weight: 700; }
.focus-label small { display: block; font-size: 11.5px; font-weight: 400; color: var(--txt2); }
.focus-track { flex: 1; margin: 10px 16px 18px; display: flex; align-items: flex-end; position: relative; cursor: ew-resize; }
.focus-seg { border-radius: 6px 6px 0 0; opacity: 0.85; transition: opacity 0.25s, filter 0.25s; }
.focus-track .cursor-line {
  position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); left: 0; opacity: 0; transition: opacity 0.2s;
}
.focus-track.active .cursor-line { opacity: 1; }
.focus-track.dimming .focus-seg { opacity: 0.3; }
.focus-track.dimming .focus-seg.lit { opacity: 1; }

.range-stage { position: absolute; inset: 0; display: flex; flex-direction: column; }
.range-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 0; }
.range-val { font-size: 13px; color: var(--txt2); }
.range-val b { color: #64D2FF; font-size: 16px; }
.range-stage svg { flex: 1; }

.goal-stage { position: absolute; inset: 0; display: flex; flex-direction: column; }
.goal-label { padding: 12px 16px 0; font-size: 13px; color: var(--txt2); }
.goal-label b { color: #30D158; font-size: 18px; }
.goal-box { flex: 1; position: relative; margin: 8px 16px 16px; }
.goal-box svg { width: 100%; height: 100%; }

.stacked-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; }
.stacked-bar { display: flex; width: 100%; height: 34px; gap: 3px; }
.stk-seg { border-radius: 8px; cursor: pointer; position: relative; transition: transform 0.45s var(--spring), filter 0.3s; }
.stk-seg:hover { filter: brightness(1.2); }
.stk-seg.out { transform: translateY(-12px) scaleY(1.15); filter: brightness(1.25); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.stk-label { font-size: 14px; min-height: 22px; }
.stk-label b { font-size: 17px; }
.stk-sub { font-size: 12px; color: var(--txt2); }

.share-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.share-seg { fill: none; cursor: pointer; transition: transform 0.4s var(--spring), stroke-width 0.3s; }
.share-num { font-size: 22px; font-weight: 800; fill: #fff; }
.share-name { font-size: 10px; fill: #8b94ad; }

.bubble-stage { position: absolute; inset: 0; }
.bubble-stage svg { width: 100%; height: 100%; }
.bb-g { cursor: pointer; transition: transform 0.6s var(--spring); }
.bb-c { transition: r 0.6s var(--spring), filter 0.3s; }
.bb-g.hot .bb-c { filter: drop-shadow(0 0 14px rgba(10, 132, 255, 0.8)); }
.bb-t { font-size: 10px; fill: #fff; text-anchor: middle; pointer-events: none; }

/* ============ 详情页 ============ */
#view-detail { padding-top: 20px; }
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--txt);
  padding: 8px 18px; border-radius: 999px; font-size: 13px;
  transition: transform 0.2s var(--spring), border-color 0.2s;
}
.detail-back:hover { transform: translateX(-3px); border-color: rgba(10, 132, 255, 0.4); }
.detail-back svg { width: 14px; height: 14px; }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; margin-top: 18px; align-items: start; }
.detail-side h1 { font-size: 25px; margin: 8px 0 6px; }
.detail-meta {
  display: inline-block; font-size: 12px; color: var(--cyan);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  border-radius: 999px; padding: 3px 12px;
}
.detail-desc { color: var(--txt2); font-size: 14.5px; }
.detail-actions { display: flex; gap: 10px; margin-top: 16px; }

/* 提示词框 */
.prompt-box { margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); }
.prompt-label {
  padding: 8px 14px; font-size: 12px; color: var(--cyan);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 22%, transparent);
}
.prompt-box pre {
  padding: 14px; font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-all;
  font-family: inherit; color: var(--prompt-txt);
  background: color-mix(in srgb, var(--blue) 5%, transparent);
}

/* ============ 用法 & 页脚 ============ */
.howto { margin-top: 46px; padding: 24px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.howto h3 { font-size: 16px; margin-bottom: 10px; }
.howto ol { padding-left: 20px; color: var(--txt2); font-size: 14px; }
.howto li { margin: 6px 0; }
.howto li::marker { color: var(--blue); font-weight: 700; }
.site-footer { text-align: center; padding: 34px 20px 44px; color: var(--txt2); font-size: 12.5px; }

/* ============ 隐私政策页 ============ */
.legal { max-width: 760px; padding-top: 34px; }
.legal h1 { font-size: 26px; margin-bottom: 4px; }
.legal-date { font-size: 12.5px; color: var(--txt2); margin-bottom: 20px; }
.legal h2 { font-size: 16px; margin: 22px 0 6px; }
.legal p { font-size: 14px; color: var(--txt2); margin: 6px 0; }
.legal code {
  font-size: 12.5px; padding: 1px 7px; border-radius: 6px;
  background: var(--card2); border: 1px solid var(--line); color: var(--cyan);
}
.legal-back { margin-top: 28px; }
.legal-back .btn { display: inline-flex; padding: 10px 26px; text-decoration: none; }
.site-footer a { color: var(--txt2); }
.site-footer a:hover { color: var(--blue); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 200;
  background: #1c2540; border: 1px solid rgba(10, 132, 255, 0.5); color: #fff;
  padding: 10px 22px; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: toastin 0.35s var(--spring);
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 14px) scale(0.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .demo-stage.big { height: 320px; }
}
@media (max-width: 768px) {
  .header-inner { padding: 10px 14px; }
  .search-wrap { width: 100%; order: 3; margin-left: 0; }
  .hero { padding: 32px 0 20px; }
  .page { padding: 0 14px 40px; }
  .grid { grid-template-columns: 1fr; }
  .demo-stage { height: 230px; }
}
