/* ==========================================================================
   芯途科技 · AI 服务价目表（手机端 App 级审美 × 组件动效 Skill 全实装版）
   调用组件动效清单：
   1. 双色细颗粒（128×128 确定性随机颗粒纹理印章）
   2. 冷光与薄雾 + 高光和倒影（主力换款卡底部柔光倒影与主题高光）
   3. 标题逐行显露（首屏行框遮罩上推入场，单次不裁边）
   4. 阅读进度（吸顶栏下缘实时滚动进度细线，回滚同步回退）
   5. 商品换款（主力四大模型档位、算力条、色彩与价格同位联动）
   6. 看板筛选 + 列表局部动感（弹簧胶囊滑块 + FLIP 几何顺滑换位）
   7. 网格波纹（中转 API 3×3 九宫格点选曼哈顿距离弹性波纹扩散）
   8. 原地展开详情（远程配置四款工具点选原地展开说明，Esc 焦点归位）
   9. 底部详情（圆角抽屉 + 主区 inert + 顶部抓手按住下拉 >45px 手势关闭）
   10. 问题折叠 + 改版前后对照
   ========================================================================== */

:root {
  --bg-deep: #060911;
  --bg-card: rgba(17, 24, 39, 0.84);
  --bg-sheet: #101726;

  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8494ad;

  --price-gold: #f7c948;
  --brand-emerald: #10b981;
  --brand-cyan: #22d3ee;

  --spotlight-accent: #10b981;
  --spotlight-soft: rgba(16, 185, 129, 0.18);

  --radius-card: 22px;
  --radius-inner: 16px;
  --radius-pill: 999px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sheet: cubic-bezier(0.18, 0.85, 0.26, 1.04);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-deep);
  overflow-x: hidden;
  padding-bottom: 98px;
  position: relative;
}

/* 冷光与薄雾 + 双色细颗粒背景承载层 */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 88% 36% at 50% 0%, rgba(16, 185, 129, 0.17), transparent 68%),
    radial-gradient(ellipse 72% 32% at 85% 18%, rgba(59, 130, 246, 0.14), transparent 70%);
}

.grain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}

/* 默认手机版 App 视口宽度居中呈现 */
.app-shell {
  width: min(468px, 100%);
  margin-inline: auto;
  padding-inline: 14px;
  position: relative;
  z-index: 1;
  transition: width 0.3s var(--ease-spring);
}

body.is-wide-mode .app-shell {
  width: min(1040px, 100%);
  padding-inline: 20px;
}

body.in-frame .app-shell {
  width: 100%;
  padding-inline: 14px;
}

/* ==========================================================================
   顶部极简 App 导航栏 + 阅读进度条（调用：暗色展厅导航 + 阅读进度）
   ========================================================================== */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(6, 9, 17, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
}

.topbar-inner {
  width: min(468px, 100%);
  margin-inline: auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: width 0.3s var(--ease-spring);
}

body.is-wide-mode .topbar-inner {
  width: min(1040px, 100%);
  padding-inline: 20px;
}

body.in-frame .topbar-inner {
  width: 100%;
  padding-top: 34px;
}

/* 阅读进度细线 */
.reading-progress-track {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-emerald), var(--brand-cyan));
  transition: width 0.1s linear;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  height: 23px;
  width: auto;
  display: block;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-pill-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.icon-pill-btn:active,
.circle-add-btn:active,
.dock-cta-btn:active,
.tier-chip:active {
  transform: scale(0.95);
}

.icon-pill-btn.is-gold {
  border-color: rgba(247, 201, 72, 0.3);
  background: rgba(247, 201, 72, 0.09);
  color: var(--price-gold);
}

.wide-toggle-btn {
  display: none;
}
@media (min-width: 768px) {
  body:not(.in-frame) .wide-toggle-btn {
    display: inline-flex;
  }
}

/* ==========================================================================
   首屏标题逐行显露（调用：标题逐行显露 + 标题随宽度重排）
   ========================================================================== */
.hero-compact {
  padding: 20px 2px 14px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 8px var(--brand-emerald);
}

.hero-title {
  margin: 0;
  font-size: clamp(26px, 6.5vw, 31px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.reveal-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 3px;
}

.reveal-mask > span {
  display: inline-block;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(34, 211, 238, 0.2);
  animation: titleMaskUp 0.62s var(--ease-out) both;
}

.hero-sub-mask {
  overflow: hidden;
  margin-top: 6px;
}

.hero-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  animation: titleMaskUp 0.62s var(--ease-out) 0.1s both;
}

@keyframes titleMaskUp {
  from {
    transform: translateY(108%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-line {
  width: 56px;
  height: 3px;
  border-radius: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--brand-emerald), var(--brand-cyan), transparent);
}

/* ==========================================================================
   主力模型换款卡 + 高光轮廓与贴地柔光倒影（调用：商品换款 + 高光和倒影）
   ========================================================================== */
.spotlight-wrap {
  margin-top: 12px;
  position: relative;
}

.spotlight-card {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 86% 14%, var(--spotlight-soft), transparent 58%),
    linear-gradient(165deg, rgba(23, 33, 54, 0.95), rgba(12, 18, 31, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 36px -18px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease;
}

/* 对齐压暗的贴地倒影层 */
.spotlight-reflection {
  height: 14px;
  margin-inline: 18px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, var(--spotlight-soft), transparent);
  opacity: 0.55;
  filter: blur(4px);
  pointer-events: none;
  transition: background 0.3s ease;
}

.sp-family-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.sp-family-scroll::-webkit-scrollbar {
  display: none;
}

.sp-fam-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, background-color 0.2s ease;
}

.sp-fam-btn.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--spotlight-accent);
  transform: scale(1.03);
}

.dot-sm {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sp-display {
  padding-top: 14px;
}

.sp-main-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sp-model-name {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sp-model-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--price-gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sp-hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.sp-meter {
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 11px 0 13px;
  overflow: hidden;
}

.sp-meter-bar {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--spotlight-accent), #ffffff);
  transition: width 0.36s var(--ease-spring);
}

.sp-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sp-tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tier-chip {
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.tier-chip.is-active {
  background: var(--spotlight-soft);
  border-color: var(--spotlight-accent);
  color: #ffffff;
}

.sp-add-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--spotlight-accent);
  background: var(--spotlight-soft);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.sp-add-btn.is-added {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #04130d;
}

/* ==========================================================================
   吸顶横向弹簧胶囊分类栏 + 结果计数（调用：看板筛选）
   ========================================================================== */
.sticky-cat-wrap {
  position: sticky;
  top: 59px;
  z-index: 35;
  padding: 6px 0 8px;
  margin-top: 2px;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.96) 78%, rgba(6, 9, 17, 0));
}

body.in-frame .sticky-cat-wrap {
  top: 81px;
}

.segmented-bar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented-bar::-webkit-scrollbar {
  display: none;
}

.segmented-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 72px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.32s var(--ease-spring), width 0.32s var(--ease-spring);
  pointer-events: none;
}

.seg-btn {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.seg-btn.is-active {
  color: #ffffff;
}

.filter-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 2px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.inline-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
}
.inline-search-bar[hidden] {
  display: none;
}

.search-input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.search-input:focus {
  border-color: var(--brand-cyan);
}

/* ==========================================================================
   8 大板块卡片流 + 3×3 网格波纹 + 原地展开详情
   ========================================================================== */
.cards-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}

body.is-wide-mode .cards-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.pricing-card {
  border-radius: var(--radius-card);
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.72);
  will-change: transform;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.sku-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sku-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 6px;
  margin-inline: -6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 12px;
  transition: background-color 0.16s ease;
}

.sku-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.sku-row.is-selected {
  background: rgba(16, 185, 129, 0.09);
}

.sku-tap-area {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.sku-name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.32;
}

.sku-price-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sku-price {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--price-gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sku-price.is-mystery {
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.inquiry-chip {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fdba74;
  font-weight: 600;
}

.circle-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  font-family: inherit;
  transition: all 0.16s ease;
}

.circle-add-btn.is-added {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #04130d;
  font-size: 12px;
}

/* 3×3 中转模型网格波纹（调用：网格波纹） */
.ripple-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding-top: 4px;
}

.ripple-tile {
  min-height: 44px;
  padding: 6px 6px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  background: rgba(30, 27, 58, 0.52);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.25;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ripple-tile.is-selected {
  border-color: #c4b5fd;
  background: rgba(139, 92, 246, 0.42);
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.35);
}

.ripple-status {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 远程配置 4 工具原地展开详情（调用：原地展开详情） */
.remote-card-inner {
  padding: 12px;
  border-radius: var(--radius-inner);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--border-subtle);
}

.inline-reveal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.reveal-tool-btn {
  min-height: 36px;
  padding: 4px 6px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fde68a;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.reveal-tool-btn[aria-expanded="true"] {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fbbf24;
  color: #ffffff;
}

.inline-reveal-panel {
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(6, 9, 17, 0.68);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  animation: inlineRevealIn 0.18s ease-out both;
}

.inline-reveal-panel[hidden] {
  display: none;
}

@keyframes inlineRevealIn {
  from {
    opacity: 0.25;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-footnote {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  font-size: 12px;
  line-height: 1.45;
}

/* ==========================================================================
   选购须知折叠面板（调用：问题折叠）
   ========================================================================== */
.faq-section {
  margin-top: 22px;
}

.sec-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 8px 4px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.26s var(--ease-spring);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-emerald);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s var(--ease-spring);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-content {
  padding: 0 15px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.site-footer {
  margin-top: 24px;
  padding: 14px 8px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   54px 灵动结算胶囊
   ========================================================================== */
.floating-dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 45;
  width: min(440px, calc(100% - 24px));
  height: 54px;
  padding: 6px 7px 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(13, 20, 35, 0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 16px 38px -8px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dock-tap-summary {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.dock-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dock-badge.has-items {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.dock-lines {
  min-width: 0;
}

.dock-main-line {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-sub-line {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-cta-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 0;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(16, 185, 129, 0.55);
}

.fly-token {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--price-gold);
  box-shadow: 0 0 12px var(--price-gold);
  pointer-events: none;
  z-index: 90;
}

/* ==========================================================================
   底部圆角抽屉 + 抓手按住下滑手势（调用：底部详情）
   ========================================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 5, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.18s ease both;
}

.sheet-backdrop[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bottom-sheet {
  width: min(480px, 100%);
  max-height: 85vh;
  background: var(--bg-sheet);
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.85);
  animation: sheetSlideUp 0.25s var(--ease-sheet) both;
}

@keyframes sheetSlideUp {
  from { translate: 0 100%; }
  to { translate: 0 0; }
}

.sheet-grip-zone {
  height: 28px;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
  flex-shrink: 0;
}

.sheet-grip-zone::after {
  content: "";
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.36);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 18px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.btn-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.sheet-body {
  padding: 16px 18px;
  overflow-y: auto;
}

.sheet-footer {
  padding: 12px 18px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(6, 9, 17, 0.55);
}

.btn-secondary {
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-info strong {
  display: block;
  font-size: 14px;
}

.cart-info span {
  font-size: 12px;
  color: var(--price-gold);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
}

.order-note-input {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(6, 9, 17, 0.7);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: none;
  height: 60px;
}

.fallback-copy-box {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(247, 201, 72, 0.35);
  background: rgba(247, 201, 72, 0.08);
}

.fallback-copy-box textarea {
  width: 100%;
  height: 96px;
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  background: #060911;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-family: var(--font-mono);
}

/* 原图对比滑杆 */
.compare-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 803 / 1024;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0b111e;
}

.compare-layer {
  position: absolute;
  inset: 0;
}

.compare-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.compare-after-card {
  background: linear-gradient(165deg, #070d19, #10192d);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11.5px;
}

.compare-before-clip {
  clip-path: inset(0 calc(100% - var(--split, 55%)) 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 55%);
  width: 2px;
  background: var(--price-gold);
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--price-gold);
  color: #060911;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.toast-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.96);
  color: #04130d;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.toast-banner[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
