:root {
  color-scheme: light;
  /* 纯粹高定奢宅调色盘：黑曜胡桃 × 鎏金琥珀 × 暖钛岩灰 × 象牙白玉（零绿色系） */
  --obsidian: #1d1814;
  --obsidian-mid: #2b231c;
  --espresso: #3c2615;
  --bronze-gold: #b88435;
  --gold-champagne: #e8cfa1;
  --gold-bright: #f6dfB4;
  --gold-soft: #fbf3e3;
  --gold-line: #dec18f;
  --slate-warm: #595149;
  --slate-soft: #f2efea;
  --paper-bg: #f1ede5;
  --surface-main: #fcfaf6;
  --taupe: #695c4f;
  --muted: #8d8072;
  --line: #d8cdbc;
  --line-soft: #e8dfd1;
  --shadow-sm: 0 6px 22px rgba(32, 22, 13, 0.05);
  --shadow-lg: 0 18px 42px rgba(26, 18, 10, 0.16);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, sans-serif;
  font-family: var(--sans);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: #261d15;
  background-color: var(--paper-bg);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(255, 252, 246, 0.92) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 100%, rgba(214, 200, 178, 0.36) 0%, transparent 55%);
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

/* ================= 1. 黑曜流金顶部刊头 ================= */
.obsidian-header {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 24px;
  background: linear-gradient(95deg, #191512 0%, #292019 58%, #1e1814 100%);
  border-bottom: 1px solid #57432e;
  box-shadow: 0 4px 18px rgba(20, 14, 9, 0.22);
  color: #f7efe2;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.vertical-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  border: 1px solid #bd965d;
  border-radius: 3px;
  background: rgba(232, 207, 161, 0.12);
  color: var(--gold-champagne);
  font-family: var(--serif);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.15;
  flex-shrink: 0;
}

.hero-title-block {
  min-width: 0;
}

.hero-main-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.hero-num {
  font-family: Georgia, var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-num small {
  font-size: 15px;
  margin-left: 1px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.05;
}

.hero-sep {
  width: 1px;
  height: 15px;
  background: rgba(232, 207, 161, 0.32);
  align-self: center;
}

.hero-project {
  font-size: 13px;
  font-weight: 500;
  color: #d6c7b2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-sub-spaced {
  margin-top: 3px;
  font-size: 10.5px;
  color: #b8a58b;
  letter-spacing: 0.22em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(232, 207, 161, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #efe4d2;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s ease;
}

.hdr-btn:hover {
  border-color: var(--gold-champagne);
  background: rgba(232, 207, 161, 0.15);
}

.hdr-btn-gold {
  background: linear-gradient(180deg, #e7c994 0%, #c89b54 100%);
  border-color: #e7c994;
  color: #23160a;
  font-weight: 700;
}

.hdr-btn-gold:hover {
  background: linear-gradient(180deg, #f0d5a4 0%, #d4a862 100%);
}

.hdr-icon {
  color: var(--gold-champagne);
  font-size: 12px;
}

.hdr-btn-gold .hdr-icon {
  color: #23160a;
}

/* ================= 2. 185㎡核心看点速达导览带（黑金香槟风） ================= */
.value-ribbon {
  max-width: 1920px;
  margin: 10px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ribbon-kicker {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 5px;
  background: var(--obsidian-mid);
  border: 1px solid #594530;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ribbon-items {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.ribbon-items::-webkit-scrollbar {
  display: none;
}

.ribbon-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.88);
  font-size: 11.5px;
  color: var(--taupe);
  cursor: pointer;
  transition: 0.15s ease;
}

.ribbon-chip i {
  font-style: normal;
  font-family: Georgia, serif;
  font-size: 10px;
  color: var(--muted);
}

.ribbon-chip strong {
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--espresso);
}

.ribbon-chip:hover {
  border-color: var(--bronze-gold);
  background: #ffffff;
  color: var(--espresso);
}

.ribbon-chip.active {
  border-color: #b58334;
  background: linear-gradient(135deg, #fbf2e1 0%, #f1dfc0 100%);
  color: #361f0b;
  box-shadow: 0 2px 9px rgba(140, 96, 32, 0.14);
}

.ribbon-chip.active i {
  color: #8f601d;
  font-weight: 700;
}

.ribbon-chip.active strong {
  color: #361f0b;
  font-weight: 800;
}

/* ================= 3. 主体双栏网格 ================= */
.main-layout {
  max-width: 1920px;
  margin: 0 auto;
  padding: 10px 20px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  gap: 16px;
  align-items: start;
}

.stage-panel {
  min-width: 0;
  background: var(--surface-main);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
}

/* 顶部工具控制条 */
.control-strip {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}

.competitor-selector-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.strip-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--espresso);
  white-space: nowrap;
}

.competitor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.comp-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--taupe);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.comp-tab strong {
  font-family: Georgia, serif;
  font-size: 13px;
}

.comp-tab:hover {
  border-color: #a88a64;
  color: var(--espresso);
  background: #fbf6ed;
}

.comp-tab.active {
  background: var(--slate-warm);
  border-color: #463f38;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(55, 48, 42, 0.18);
}

.view-controls-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 7px;
  background: #ebe4d8;
  border: 1px solid var(--line);
}

.seg-btn {
  border: 0;
  background: transparent;
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--taupe);
  cursor: pointer;
}

.seg-btn.active {
  background: #ffffff;
  color: var(--obsidian);
  box-shadow: 0 1px 4px rgba(31, 26, 22, 0.12);
}

.preset-group, .toggle-group, .mobile-layout-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.mobile-layout-switch {
  display: none;
}

.tool-chip {
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--taupe);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: 0.14s ease;
}

.tool-chip:hover, .tool-chip.active {
  border-color: #b58639;
  background: var(--gold-soft);
  color: #4a2a0d;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid var(--line-soft);
  background: #f6f2ea;
  font-size: 11px;
  color: var(--taupe);
  cursor: pointer;
  user-select: none;
}

.toggle-pill input {
  margin: 0;
  accent-color: #8c5a20;
}

/* ================= 4. 双3D沙盘舞台（黑曜流金基准 vs 素雅暖岩灰竞品） ================= */
.viewport-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.viewport-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #f3eee4;
  display: flex;
  flex-direction: column;
}

.baseline-card {
  border-color: #b89460;
  box-shadow: 0 8px 24px rgba(56, 36, 16, 0.09);
}

.viewport-header {
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.baseline-vh {
  background: linear-gradient(95deg, #221b15 0%, #36281d 100%);
  color: #ffffff;
  border-bottom: 1px solid #543e29;
}

.competitor-vh {
  background: linear-gradient(95deg, #ece7df 0%, #f8f5ef 100%);
  border-bottom: 1px solid var(--line-soft);
}

.vh-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.vh-left > div {
  min-width: 0;
  flex: 1 1 auto;
}

.role-badge {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.baseline-badge {
  background: linear-gradient(180deg, #efd4a3 0%, #d4ab67 100%);
  color: #211509;
}

.competitor-badge {
  background: var(--slate-warm);
  color: #f7f3ed;
}

.vh-left h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baseline-vh .vh-left h2 {
  color: #fbf3e4;
}

.competitor-vh .vh-left h2 {
  color: #2e251d;
}

.vh-left p {
  margin: 1px 0 0;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baseline-vh .vh-left p {
  color: #cbbba4;
}

.competitor-vh .vh-left p {
  color: var(--muted);
}

.zoom-plan-btn {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.baseline-vh .zoom-plan-btn {
  border: 1px solid rgba(232, 207, 161, 0.42);
  background: rgba(255, 255, 255, 0.09);
  color: var(--gold-bright);
}

.baseline-vh .zoom-plan-btn:hover {
  background: rgba(232, 207, 161, 0.20);
}

.competitor-vh .zoom-plan-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--espresso);
}

.canvas-stage {
  position: relative;
  height: clamp(385px, 52vh, 555px);
  background: radial-gradient(circle at 50% 46%, #f8f5ee 0%, #ebe3d4 100%);
  overflow: hidden;
}

.webgl-mount {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: grab;
}

.webgl-mount:active {
  cursor: grabbing;
}

.webgl-mount canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ================= 5. 精缩版3D引线微标 + 动态建筑指北针 ================= */
.callout-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.callout-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.compass-widget {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(252, 249, 242, 0.86);
  border: 1px solid rgba(140, 112, 80, 0.40);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(35, 22, 10, 0.08);
}

.compass-dial {
  position: relative;
  width: 18px;
  height: 18px;
}

.compass-n {
  position: absolute;
  left: 50%;
  top: 1px;
  transform: translateX(-50%);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 8px solid #a84b2b;
}

.compass-s {
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 8px solid #8a7b6b;
}

.compass-widget span {
  position: absolute;
  bottom: -11px;
  font-family: Georgia, serif;
  font-size: 8.5px;
  font-weight: 700;
  color: #6d5a46;
}

.room-tag-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 1px 5px;
  border-radius: 3px;
  border: 0.8px solid rgba(132, 104, 72, 0.36);
  background: rgba(253, 250, 244, 0.78);
  backdrop-filter: blur(2px);
  color: #46311d;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  transition: 0.14s ease;
}

.room-tag-pin:hover {
  background: #fffdf8;
  border-color: var(--bronze-gold);
  color: var(--espresso);
  transform: translate(-50%, -50%) scale(1.06);
}

.hero-callout-box {
  position: absolute;
  z-index: 5;
  pointer-events: auto;
  filter: drop-shadow(0 4px 10px rgba(42, 26, 12, 0.14));
}

/* 竞品视口微标：素雅暖灰米白 */
.hero-callout-head {
  padding: 3px 8px;
  background: linear-gradient(90deg, #f4efe6 0%, #e9e1d4 100%);
  border: 1px solid #8c7d6d;
  border-radius: 4px;
  color: #2e241b;
  font-size: 11px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

/* 基准视口微标：黑曜鎏金 */
.is-base-callout .hero-callout-head {
  background: linear-gradient(90deg, #241c15 0%, #3a2b1f 100%);
  border-color: #b88940;
  color: #fbf1df;
}

.hero-callout-head span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-callout-head em {
  flex-shrink: 0;
  white-space: nowrap;
  font-style: normal;
  font-family: Georgia, serif;
  font-size: 11px;
  color: #5c4630;
}

.is-base-callout .hero-callout-head em {
  color: var(--gold-bright);
}

.hero-callout-sub {
  margin-top: 2px;
  padding: 2px 7px;
  background: rgba(253, 250, 244, 0.90);
  border: 0.8px solid rgba(155, 130, 100, 0.48);
  border-radius: 3px;
  color: #5b4c3d;
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vista-arc-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 1.5px 8px;
  border-radius: 99px;
  background: rgba(250, 241, 224, 0.92);
  border: 0.8px solid rgba(184, 132, 53, 0.55);
  color: #694314;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}

.plan-img-wrap {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #f7f3eb;
  padding: 8px;
}

.plan-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.canvas-stage.is-plan-mode .webgl-mount,
.canvas-stage.is-plan-mode .callout-layer,
.canvas-stage.is-plan-mode .gesture-hint,
.canvas-stage.is-plan-mode .dim-overlay-badge,
.canvas-stage.is-plan-mode .stage-watermark {
  display: none;
}

.canvas-stage.is-plan-mode .plan-img-wrap {
  display: block;
}

.dim-overlay-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(252, 249, 242, 0.92);
  border: 1px solid var(--line);
  color: var(--espresso);
  font-size: 10px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

body.show-dims .dim-overlay-badge {
  opacity: 1;
}

.gesture-hint {
  position: absolute;
  left: 9px;
  bottom: 7px;
  z-index: 4;
  padding: 2.5px 8px;
  border-radius: 4px;
  background: rgba(252, 249, 242, 0.80);
  color: var(--taupe);
  font-size: 9.5px;
  pointer-events: none;
}

.stage-watermark {
  position: absolute;
  right: 9px;
  bottom: 7px;
  z-index: 4;
  font-size: 9.5px;
  color: #6e5f50;
  background: rgba(248, 243, 233, 0.78);
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
}

.hint-mobile {
  display: none;
}

.viewport-footer {
  padding: 6px 12px;
  background: #faf7f1;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
}

.jade-note {
  color: #87591d;
  font-weight: 700;
}

.sketch-disclaimer {
  color: var(--taupe);
}

/* ================= 6. 底部空间索引胶丸栏 ================= */
.room-selector-bar {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}

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

.inline-link-btn {
  flex-shrink: 0;
  white-space: nowrap;
  border: 0;
  background: none;
  color: #7d5118;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.inline-link-btn:hover {
  text-decoration: underline;
}

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

.room-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--taupe);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: 0.14s ease;
}

.room-pill b {
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.room-pill:hover {
  border-color: var(--bronze-gold);
  color: var(--espresso);
  background: #fcf8f0;
}

.room-pill.active {
  background: linear-gradient(135deg, #2c2219 0%, #1d1611 100%);
  border-color: #1d1611;
  color: #fbf2e1;
  box-shadow: 0 3px 10px rgba(32, 22, 12, 0.22);
}

.room-pill.active b {
  color: var(--gold-bright);
}

.pill-badge {
  font-style: normal;
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #f5e6c8;
  color: #6b4312;
}

.room-pill.active .pill-badge {
  background: linear-gradient(180deg, #efd3a1 0%, #d4a75e 100%);
  color: #1f1408;
  font-weight: 700;
}

/* ================= 7. 右侧多材质层次讲解栏 ================= */
.comparison-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 卡片1：黑曜流金主对比牌 */
.obsidian-scorecard {
  background: linear-gradient(155deg, #1e1915 0%, #2e241c 100%);
  border: 1px solid #5c4731;
  border-radius: 13px;
  padding: 14px 16px;
  color: #f6ede0;
  box-shadow: 0 12px 28px rgba(28, 20, 12, 0.16);
}

.scorecard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.score-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-champagne);
  letter-spacing: 0.04em;
}

.score-excel-pill {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(232, 207, 161, 0.14);
  border: 1px solid rgba(232, 207, 161, 0.28);
  color: var(--gold-bright);
  font-size: 10px;
}

.score-title-line h2 {
  margin: 7px 0 3px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.score-mapping {
  margin: 0 0 11px;
  font-size: 11px;
  color: #c2b39f;
  line-height: 1.5;
}

.score-vs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 207, 161, 0.22);
}

.score-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.score-col.is-comp {
  text-align: right;
}

.score-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #d2c4b2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-col.is-comp .score-tag {
  justify-content: flex-end;
}

.score-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5b869;
  box-shadow: 0 0 6px rgba(229, 184, 105, 0.65);
}

.score-num {
  font-family: Georgia, var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.score-col.is-base .score-num {
  color: var(--gold-bright);
}

.score-col.is-comp .score-num {
  color: #dcd3c8;
}

.score-num.is-compound {
  font-size: 17px;
}

.score-num small {
  font-size: 12px;
  margin-left: 2px;
}

.text-metric {
  font-family: var(--sans);
  font-size: 16px;
}

.empty-metric {
  font-size: 20px;
  color: #8f8273;
}

.plus-sep {
  padding: 0 3px;
  font-size: 13px;
  color: #a69784;
}

.score-sub {
  font-size: 10px;
  color: #ab9c8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-vs-emblem {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(232, 207, 161, 0.14);
  border: 1px solid rgba(232, 207, 161, 0.30);
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--gold-champagne);
}

.delta-banner {
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.delta-banner.positive {
  background: linear-gradient(90deg, rgba(219, 169, 84, 0.24) 0%, rgba(176, 122, 38, 0.16) 100%);
  border: 1px solid rgba(238, 198, 126, 0.46);
  color: #fce4b6;
}

.delta-banner.competitor-higher {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 203, 186, 0.28);
  color: #e6dac9;
}

.delta-banner.neutral {
  background: rgba(255, 255, 255, 0.06);
  color: #d2c5b4;
}

/* 通用象牙白玉卡片 */
.card-section {
  background: var(--surface-main);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 15px;
  box-shadow: var(--shadow-sm);
}

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

.section-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--obsidian);
}

.section-head > span {
  font-size: 10px;
  color: var(--muted);
}

/* 卡片2：五户型鎏金/暖岩灰对比条形图 */
.five-plan-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  width: 100%;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: #f5f2ec;
  text-align: left;
  cursor: pointer;
  transition: 0.14s ease;
}

.bar-row:hover:not(.is-baseline) {
  border-color: var(--line);
  background: #faf7f1;
}

.bar-row.is-baseline {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  cursor: default;
}

.bar-row.is-selected {
  background: #ece8e1;
  border-color: #aba093;
}

.bar-plan-name {
  font-size: 11px;
  font-weight: 700;
  color: #2c2219;
  white-space: nowrap;
}

.bar-plan-name i {
  font-style: normal;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--obsidian-mid);
  color: var(--gold-bright);
}

.bar-track {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: #e3ddd3;
  overflow: visible;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #bfb6aa;
}

.bar-row.is-baseline .bar-fill {
  background: linear-gradient(90deg, #8a581c 0%, #cf963c 100%);
}

.bar-row.is-selected .bar-fill {
  background: linear-gradient(90deg, #544c44 0%, #7d7267 100%);
}

.split-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.split-part-a {
  background: #595047;
}

.split-part-b {
  background: #8c8073;
}

.baseline-ref-tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: var(--base-line, 0%);
  width: 0;
  border-left: 2px dashed #6b4312;
  pointer-events: none;
}

.bar-val {
  text-align: right;
  font-size: 11px;
  font-weight: 750;
  color: var(--obsidian);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.text-only-row {
  grid-template-columns: 90px minmax(0, 1fr) 72px;
}

.bath-summary-text {
  font-size: 10px;
  color: var(--taupe);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-legend {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}

.legend-line {
  display: inline-block;
  width: 10px;
  height: 8px;
  border-left: 2px dashed #6b4312;
  margin-right: 3px;
  vertical-align: middle;
}

/* 卡片3：鎏金书院话术卡 + 口径核查盒 */
.editorial-talk-card {
  border-left: 3px solid var(--bronze-gold);
}

.jade-pill-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: #6e4614 !important;
  font-weight: 700;
}

.talk-quote {
  margin: 0;
  padding: 9px 11px;
  border-radius: 7px;
  background: #f6f2ea;
  font-size: 12px;
  line-height: 1.68;
  color: #2b2118;
}

.talk-bullets {
  margin: 9px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 5px;
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--taupe);
}

.embedded-calibration {
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fbf5e9;
  border: 1px dashed #cfaF7e;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 750;
  color: #6b4518;
}

.mini-plan-btn {
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #c2a478;
  background: #ffffff;
  color: var(--espresso);
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
}

.calibration-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.62;
  color: #594632;
}

/* 卡片4：全屋配置对照矩阵 */
.macro-grid {
  display: grid;
  gap: 5px;
}

.macro-row {
  display: grid;
  grid-template-columns: 98px 1fr 1fr;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #f5f2eb;
  font-size: 11px;
}

.macro-k {
  color: var(--muted);
}

.macro-v1 {
  color: #7d4e15;
  font-weight: 750;
}

.macro-v2 {
  color: var(--slate-warm);
  font-weight: 650;
  text-align: right;
}

.webgl-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--taupe);
  font-size: 13px;
}

.site-footer {
  max-width: 1920px;
  margin: 0 auto;
  padding: 4px 22px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

/* ================= 模态弹窗通用样式 ================= */
.modal-dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-main);
  color: #261d15;
  box-shadow: var(--shadow-lg);
}

.lightbox-dialog {
  width: min(1060px, calc(100vw - 20px));
}

.modal-dialog::backdrop {
  background: rgba(22, 17, 12, 0.62);
  backdrop-filter: blur(3px);
}

.modal-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: #8c5a20;
  letter-spacing: 0.06em;
}

.modal-head h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--obsidian);
}

.lightbox-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--obsidian);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-body {
  flex: 1;
  overflow: auto;
  margin-top: 10px;
  background: #f2ede3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 8px;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.lightbox-foot {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.value-tree-list, .doc-scroll-body {
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.vt-item {
  padding: 11px 13px;
  border-radius: 8px;
  background: #f6f2ea;
  border: 1px solid var(--line-soft);
  margin-bottom: 9px;
}

.vt-tier {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: #6b4312;
  font-size: 10px;
  font-weight: 700;
}

.vt-item h3 {
  margin: 6px 0 5px;
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--obsidian);
}

.vt-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.68;
  color: var(--taupe);
}

.doc-scroll-body h4 {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--obsidian);
}

.doc-scroll-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.68;
  color: var(--taupe);
}

.doc-scroll-body p {
  font-size: 12px;
  line-height: 1.68;
  color: var(--taupe);
}

.share-desc {
  font-size: 12px;
  line-height: 1.65;
  color: var(--taupe);
}

.share-input-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f6f2e9;
  font-size: 12px;
  resize: none;
}

.share-status {
  min-height: 18px;
  margin-top: 8px;
  font-size: 11px;
  color: #8c5a20;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.primary-btn {
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid #4a3520;
  background: linear-gradient(180deg, #33261b 0%, #1e1711 100%);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ================= 平板与手机窄屏适配 ================= */
@media (max-width: 1280px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .comparison-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .obsidian-scorecard {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .obsidian-header {
    padding: 9px 12px;
  }
  .hero-num {
    font-size: 22px;
  }
  .hero-headline {
    font-size: 18px;
  }
  .hero-sep, .hero-project {
    display: none;
  }
  .hero-sub-spaced {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }
  .hdr-btn {
    padding: 0 9px;
    height: 32px;
  }
  .hdr-btn .btn-text {
    display: none;
  }
  .value-ribbon {
    padding: 0 10px;
    margin-top: 8px;
  }
  .ribbon-kicker {
    display: none;
  }
  .main-layout {
    padding: 8px 10px 14px;
    gap: 12px;
  }
  .stage-panel {
    padding: 10px;
  }
  .competitor-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .comp-tab {
    justify-content: space-between;
    padding: 6px 9px;
    font-size: 11px;
  }
  .mobile-layout-switch {
    display: inline-flex;
  }
  .viewport-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-right: 6px;
  }
  .viewport-grid.mobile-side-by-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-right: 0;
  }
  .canvas-stage {
    height: 255px;
  }
  .viewport-grid.mobile-side-by-side .canvas-stage {
    height: 225px;
  }
  .viewport-grid.mobile-side-by-side .vh-left p,
  .viewport-grid.mobile-side-by-side .zoom-plan-btn,
  .viewport-grid.mobile-side-by-side .viewport-footer,
  .viewport-grid.mobile-side-by-side .compass-widget {
    display: none;
  }
  .viewport-grid.mobile-side-by-side .vh-left h2 {
    font-size: 12px;
  }
  .hint-desktop,
  .stage-watermark {
    display: none;
  }
  .hint-mobile {
    display: inline;
  }
  .room-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .room-pill {
    flex: 0 0 auto;
  }
  .comparison-sidebar {
    grid-template-columns: 1fr;
  }
  .bar-row {
    grid-template-columns: 84px minmax(0, 1fr) 92px;
  }
  .viewport-footer {
    flex-direction: column;
    gap: 2px;
  }
}
