/**
 * 色板（全站唯一来源 · 与小程序 src/pages/index/index.scss 顶部注释同源）
 *
 * 底色：页面 #070E22 / 卡片 #0C1631 / 次级面（输入、进度槽）#101E42 / 凹陷底 #0A1430
 * 描边：装饰 #1E2F5C；控件描边 #4A66A8（对 #0C1631 ≥3:1）
 * 文字：主 #E8F0FF / 次 #9BB0D8 / 小字 #6E84AE
 * 品牌绿 #2FE86A：主操作填充（深墨字 #06122B，≈12:1）
 * 绿色文字 #4ADE80；次要正向文字 #7BE8A8；青 #16D9B8：渐变副色（仅转化 CTA）
 * 提示 #F5B740（琥珀）｜错误 #FF5F6D
 *
 * 语义：绿=工具操作与正向区间，青绿渐变=转化，琥珀=提示/测量标注，红=错误。
 */

:root {
  --bg: #070e22;
  --bg-top: #0a1430;
  --card: #0c1631;
  --surface: #101e42;
  --sunken: #0a1430;
  --line: #1e2f5c;
  --control: #4a66a8;
  --ink: #e8f0ff;
  --ink-2: #9bb0d8;
  --ink-3: #6e84ae;
  --brand: #2fe86a;
  --brand-text: #4ade80;
  --brand-soft: #7be8a8;
  --teal: #16d9b8;
  --amber: #f5b740;
  --amber-text: #f7d9a0;
  --danger: #ff5f6d;
  --ink-on-brand: #06122b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 620px, var(--bg) 100%);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

button, input, select { font: inherit; }

/* ---------------- 结果吸顶条 ---------------- */

.sticky-result {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(9, 17, 40, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease;
  pointer-events: none;
}

.sticky-result.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-main { min-width: 0; flex: 1; }

.sticky-label { font-size: 12px; color: var(--ink-2); }

.sticky-range {
  margin-top: 2px;
  font-size: 12px;
  color: var(--brand-soft);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sticky-value {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-text);
  text-shadow: 0 0 18px rgba(47, 232, 106, 0.45);
}

/* ---------------- 布局 ---------------- */

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* 双栏自适应：桌面 左表单 / 右结果，≤1024px 退化为单列（手机排版） */
.layout { display: block; }

.col-form, .col-results { min-width: 0; }

/* ---------------- 响应式（移动优先） ---------------- */

/* ---------------- 首屏引导轮播 ---------------- */

.hero-swiper {
  position: relative;
  height: 340px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  background: var(--sunken);
}

.hero-track { height: 100%; }

.hero-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.52s ease;
  pointer-events: none;
}

.hero-item.active { opacity: 1; pointer-events: auto; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 底部压暗渐变，保证叠加文字对比度 ≥7:1 */
.hero-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(7, 14, 34, 0) 0%, rgba(7, 14, 34, 0.55) 42%, rgba(7, 14, 34, 0.92) 100%);
}

.hero-text {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 40px;
}

.hero-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(47, 232, 106, 0.18);
  border: 1px solid rgba(47, 232, 106, 0.55);
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-title {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  margin-top: 6px;
  font-size: 15px;
  color: #c9d6ef;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(232, 240, 255, 0.3);
  cursor: pointer;
  transition: width 0.24s ease, background-color 0.24s ease;
}

.hero-dot.active {
  width: 22px;
  background: var(--brand);
}

/* ---------------- 页头 ---------------- */

.page-head { padding: 8px 4px 24px; }

.page-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.page-sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------------- 卡片 ---------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.card-title {
  display: flex;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}

.card-title::before {
  content: '';
  width: 5px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(47, 232, 106, 0.7);
  margin-right: 12px;
}

/* ---------------- 表单 ---------------- */

.field { margin-bottom: 18px; }

.grid2 { display: flex; gap: 16px; }
.grid2 .field { flex: 1; margin-bottom: 18px; }

.label {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.input, .picker {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--control);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}

select.picker {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}

select.picker option { background: #0c1631; color: var(--ink); }

.input:focus, .picker:focus {
  outline: none;
  border-color: var(--brand);
  background: #12244d;
  box-shadow: 0 0 0 4px rgba(47, 232, 106, 0.16);
}

.input-tip {
  margin: -4px 0 16px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(245, 183, 64, 0.1);
  border-left: 5px solid var(--amber);
  font-size: 13px;
  line-height: 1.6;
  color: var(--amber-text);
}

.segmented {
  display: flex;
  background: var(--sunken);
  border: 1px solid #223458;
  border-radius: 999px;
  padding: 4px;
}

.seg-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink-2);
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.seg-item.active {
  background: rgba(47, 232, 106, 0.16);
  color: var(--brand-text);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(47, 232, 106, 0.5);
}

/* ---------------- 按钮 ---------------- */

.actions { display: flex; gap: 16px; margin-top: 8px; }
.actions .btn { flex: 1; }

.btn {
  display: block;
  text-align: center;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  padding: 14px 0;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background-color 0.18s ease;
}

.btn:active { transform: scale(0.97); opacity: 0.9; }

/* 主操作：品牌绿实心 + 辉光，深墨字保证 ≥12:1 */
.btn.primary {
  background: var(--brand);
  color: var(--ink-on-brand);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(47, 232, 106, 0.28);
}

/* 次级操作：绿描边幽灵按钮 */
.btn.ghost {
  background: rgba(47, 232, 106, 0.06);
  border: 1px solid var(--brand);
  color: var(--brand-text);
  font-weight: 700;
}

/* 转化 CTA：绿→青渐变 + 强辉光 */
.btn.accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 100%);
  color: var(--ink-on-brand);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(22, 217, 184, 0.3);
}

.btn.block { width: 100%; margin-top: 16px; }

.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------------- 结果 ---------------- */

.metrics { display: flex; flex-direction: column; }

.metric {
  border-radius: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.metric:last-child { margin-bottom: 0; }

.metric.highlight {
  background: linear-gradient(135deg, rgba(47, 232, 106, 0.14), rgba(22, 217, 184, 0.07));
  border-color: rgba(47, 232, 106, 0.45);
  box-shadow: 0 0 30px rgba(47, 232, 106, 0.12);
}

.metric-label { font-size: 14px; color: var(--ink-2); }

.metric-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--brand-text);
  line-height: 1.2;
}

.metric.highlight .metric-value { text-shadow: 0 0 22px rgba(47, 232, 106, 0.5); }

.unit { font-size: 16px; margin-left: 6px; font-weight: 400; }

.metric-range { font-size: 14px; color: var(--brand-soft); margin-top: 4px; }

/* ---------------- 距离成因 ---------------- */

.driver {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.driver-head { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.bar-label { width: 108px; flex-shrink: 0; font-size: 13px; color: var(--ink-3); }

.bar-track {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: var(--sunken);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #2c4280;
  transition: width 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bar-fill.on { background: var(--brand); box-shadow: 0 0 14px rgba(47, 232, 106, 0.6); }

.bar-value { width: 72px; flex-shrink: 0; text-align: right; font-size: 13px; color: var(--ink); }

.driver-note { margin-top: 8px; font-size: 13px; color: var(--brand-soft); }

.warning {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--amber-text);
  background: rgba(245, 183, 64, 0.1);
  border-left: 5px solid var(--amber);
  border-radius: 10px;
  padding: 13px 15px;
}

/* ---------------- 俯视图 ---------------- */

.ground-canvas {
  width: 100%;
  height: 320px;
  display: block;
  border-radius: 16px;
  background: #0a1330;
}

.hint { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.tip { margin-top: 12px; font-size: 14px; color: var(--brand-text); }

.effect-preview {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  margin-top: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--sunken);
}

/* ---------------- 案例 ---------------- */

.case-swiper { position: relative; border-radius: 16px; overflow: hidden; }

.case-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sunken);
}

.case-media { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 14px;
  background: var(--surface);
}

.case-name {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(4, 10, 26, 0.76);
  border: 1px solid rgba(47, 232, 106, 0.35);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

.case-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 26, 0.66);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.case-nav:hover { background: rgba(47, 232, 106, 0.22); }
.case-nav.prev { left: 10px; }
.case-nav.next { right: 10px; }

.case-dots { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }

.case-dot {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 28px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.case-dot.active {
  background: var(--brand);
  color: var(--ink-on-brand);
  border-color: var(--brand);
}

/* ---------------- 出品方 ---------------- */

.card.producer { background: var(--sunken); }

.producer-name { font-size: 16px; font-weight: 700; color: var(--brand-text); margin-bottom: 8px; }

.producer-line { font-size: 14px; color: var(--ink-2); line-height: 1.8; }

.producer-line a { color: var(--brand-soft); text-decoration: none; }
.producer-line a:hover { text-decoration: underline; }

/* ---------------- 三维弹层 ---------------- */

.scene-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #05091a;
  display: flex;
  flex-direction: column;
}

.scene-modal[hidden] { display: none !important; }

.scene-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 22, 49, 0.94);
  flex-wrap: wrap;
}

.scene-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-right: auto; }

.scene-view { flex: 1; min-height: 0; position: relative; background: #0b1430; }

.scene-view canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }

.scene-view canvas.viewer-mode { cursor: default; }

.scene-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 14px;
  background: #0b1430;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.scene-bottom {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(12, 22, 49, 0.94);
}

.scene-bottom .tip { margin-top: 10px; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 760px) {
  .shell { padding: 16px 16px 48px; }
  .hero-swiper { height: 240px; }
  .hero-title { font-size: 23px; }
  .page-title { font-size: 26px; }
  .grid2 { flex-direction: column; gap: 0; }
  .metric-value { font-size: 34px; }
  .case-dots { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .ground-canvas { height: 260px; }
  .bar-label { width: 88px; font-size: 12px; }

  .sticky-result {
    top: auto;
    bottom: 0;
    border-bottom: 0;
    border-top: 1px solid var(--line);
    transform: translateY(110%);
  }
  .sticky-result.show { transform: translateY(0); }
}

/* ---------------- 桌面自适应（≥1024px 双栏） ---------------- */

@media (min-width: 1024px) {
  .shell { padding: 28px 32px 72px; }

  .hero-swiper { height: 400px; margin-bottom: 28px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-text { left: 40px; right: 40px; bottom: 48px; }

  .page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 4px 26px;
  }
  .page-title { font-size: 38px; }

  .layout {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  /* 左栏表单区吸顶跟随，长结果区滚动时表单始终可见 */
  .col-form { position: sticky; top: 20px; }

  .card { padding: 26px 26px; }

  /* 指标卡并排：主角 + 清晰距离 */
  .metrics { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
  .metric { margin-bottom: 0; }
  .metric-value { font-size: 44px; }

  .ground-canvas { height: 400px; }

  /* 案例与海报在桌面并排 */
  .duo {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .duo .card { margin-bottom: 0; }

  .case-dots { grid-template-columns: repeat(15, minmax(0, 1fr)); }

  .sticky-result { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); }
}

/* 中屏（761~1023px）：单列但拉宽画布 */
@media (min-width: 761px) and (max-width: 1023px) {
  .hero-swiper { height: 320px; }
  .ground-canvas { height: 380px; }
}

/* ==================================================================
 * AI 效果图弹层（对齐小程序 src/pages/ai/index.scss · 2026-10-26）
 * 合规要求：ai-banner / ai-badge / ai-result-badge / ai-note 不可删除。
 * ================================================================== */

.ai-modal { flex-direction: column; }

.ai-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 24px;
}

/* 首屏常驻 AI 标识条 */
.ai-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sunken);
  margin-bottom: 14px;
}
.ai-badge {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-on-brand);
  background: var(--brand);
  border-radius: 6px;
  padding: 3px 8px;
}
.ai-banner-text { flex: 1; font-size: 13px; color: var(--ink-2); }
.ai-banner-more {
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: var(--teal);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
}
.ai-banner-more:hover { text-decoration: underline; }

.ai-head { margin: 4px 2px 14px; }
.ai-head-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.ai-head-sub { margin-top: 6px; font-size: 13px; color: var(--ink-2); }

/* 首页入口卡的 AI 角标 */
.ai-tag {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-on-brand);
  background: var(--brand);
  border-radius: 5px;
  padding: 2px 6px;
}

/* 参数行 */
.ai-rows { margin-top: 4px; }
.ai-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.ai-row:last-child { border-bottom: 0; }
.ai-row .k { color: var(--ink-3); }
.ai-row .v { color: var(--ink); text-align: right; }
.ai-row .v.highlight { color: var(--brand-text); font-weight: 700; }

/* 题材 chips */
.ai-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip {
  border: 1px solid var(--control);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chip.on {
  color: var(--ink-on-brand);
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}

/* 生成卡 */
.ai-consent { margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.ai-quota { margin-top: 8px; font-size: 13px; color: var(--ink-2); text-align: center; }
.ai-phone { margin-top: 12px; }
.ai-phone .field-input { width: 100%; margin-bottom: 10px; }

/* 加载进度 */
.ai-loading-head { display: flex; justify-content: space-between; align-items: baseline; }
.ai-loading-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.ai-loading-sec { font-size: 14px; color: var(--teal); font-variant-numeric: tabular-nums; }
.ai-bar-track {
  margin-top: 12px;
  height: 8px;
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}
.ai-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--teal));
  transition: width 0.6s ease;
}

/* 结果 */
.ai-result-wrap { position: relative; }
.ai-result {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.ai-result-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-on-brand);
  background: rgba(47, 232, 106, 0.92);
  border-radius: 6px;
  padding: 3px 8px;
  pointer-events: none;
}
.ai-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
}
.ai-actions { display: flex; gap: 12px; margin-top: 14px; }
.ai-actions .btn { flex: 1; margin-top: 0; }

.ai-bottom-bar {
  display: flex;
  justify-content: flex-end;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 16px;
  width: 100%;
}
.ai-bottom-bar .btn { margin-top: 0; padding: 10px 22px; }

/* 兜底：任何设置了 display 的元素（.scene-loading/.case-media 等）被 hidden 时必须真隐藏 */
[hidden] { display: none !important; }

/* ==================================================================
 * 桌面原生适配（2026-10-26 二轮）：
 * 弹层从「全屏手机式」改为居中对话框；去重复页头；卡片并排。
 * ================================================================== */

/* 移动端：对话框壳铺满，视觉与原全屏一致 */
.scene-dialog {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.ai-dialog {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

@media (min-width: 1024px) {
  /* 弹层背景变半透明遮罩，内容收成居中对话框 */
  .scene-modal {
    background: rgba(3, 7, 18, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
  }

  .scene-dialog {
    flex: 0 0 auto;
    width: min(1400px, 96vw);
    height: min(93vh, 1000px);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
    background: var(--bg-deep, #05091a);
  }

  .ai-dialog {
    flex: 0 0 auto;
    width: min(1120px, 96vw);
    height: min(93vh, 1060px);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
    background: #070e22;
  }

  /* 弹层内容区同步放大 */
  .ai-scroll { max-width: 940px; padding: 24px 28px 28px; }
  .ai-head-title { font-size: 23px; }
  .ai-head-sub { font-size: 14px; }
  .ai-banner-text { font-size: 14px; }
  .ai-row { font-size: 15px; padding: 11px 0; }
  .chip { font-size: 14px; padding: 9px 18px; }
  .ai-note { font-size: 13px; }
  .ai-dialog .btn { font-size: 16px; padding: 13px 26px; }
  .ai-quota { font-size: 14px; }

  /* 首屏 banner 已带标题，桌面隐藏重复页头 */
  .page-head { display: none; }

  /* 三维入口 + AI 入口并排，消除整行单按钮的空旷感 */
  .duo2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
  }
  .duo2 .card { margin-bottom: 0; height: 100%; }

  /* 俯视图画布加高，构图更满 */
  .ground-canvas { height: 460px; }
}

/* 超宽屏放宽容器 */
@media (min-width: 1600px) {
  .shell { max-width: 1400px; }
}

/* 三维顶栏分段按钮：补左右内边距，避免两个标签文字贴死连读 */
.scene-top .seg-item { flex: 0 0 auto; padding: 10px 18px; white-space: nowrap; }

@media (min-width: 1024px) {
  /* 桌面顶栏：标题居左，视角切换与操作按钮靠右 */
  .scene-top { padding: 14px 20px; }
  .scene-top .segmented { margin-left: auto; }
}
