:root {
  --ink: #1a1a1a;
  --ink2: #3a3a3a;
  --muted: #6b6b6b;
  --accent: #b8860b;
  --accent-soft: #faf7ef;
  --accent-line: #ead9b0;
  --line: #e6e6e6;
  --bg: #fff;
  --paper: #f6f3ec;
  --good: #3f7d4e;
  --warn: #b5651d;
  --bad: #a33a2a;
  --serif: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  --sans: -apple-system, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 15px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.top .row { display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 20px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.brand b { font-size: 16px; }
.brand small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.proj { display: flex; flex-direction: column; line-height: 1.15; padding-left: 16px; border-left: 1px solid var(--line); }
.proj small { font-size: 11px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.proj b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.spacer { flex: 1; }
.search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; height: 38px; padding: 0 10px; gap: 6px; background: #fff; width: 210px; }
.search:focus-within { border-color: var(--accent); }
.search input { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; }
.search svg { flex: none; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; white-space: nowrap; font-size: 14px; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.gold { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.gold:hover { background: #a37609; }

/* ---------- filters ---------- */
.filters { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--accent-soft); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .lbl { font-size: 12px; color: var(--muted); letter-spacing: .08em; white-space: nowrap; margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--accent-line); background: #fff; cursor: pointer; font-size: 13px; white-space: nowrap; }
.chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sep { width: 1px; height: 20px; background: var(--accent-line); margin: 0 6px; flex: none; }

/* ---------- app ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100vh - 112px); min-height: 560px; }
.stage { position: relative; overflow: hidden; background: var(--paper); }
#gl { position: absolute; inset: 0; }
#gl canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lab { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font-size: 12px; padding: 2px 8px 2px 6px; border-radius: 10px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); color: var(--ink2); display: flex; align-items: center; gap: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.lab i { width: 7px; height: 7px; border-radius: 50%; background: #7a9a6a; display: inline-block; }
.lab.mrt i { background: #8a5a2b; border-radius: 2px; }
.lab.exit { font-size: 11px; padding: 1px 6px; color: var(--muted); }
.lab.exit i { background: #8a5a2b; border-radius: 1px; width: 5px; height: 5px; }
.lab.water i { background: #4f8fb5; }
.lab.mall i, .lab.school i, .lab.temple i, .lab.condo i { background: #9a8f7c; }
.lab.blk { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; font-size: 12px; padding: 2px 9px; }
.lab.sel { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; font-size: 13px; padding: 3px 10px; }
.lab.far { opacity: .75; }

.tools { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: flex-start; pointer-events: none; }
.tools > * { pointer-events: auto; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 36px; }
.seg button { border: 0; background: none; padding: 0 12px; cursor: pointer; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ibtn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ibtn:hover { border-color: var(--accent); }
.compass { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.compass svg { transition: transform .05s linear; }
.sunbox { margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sunbox select { font: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; background: #fff; }
.sunbox input[type=range] { width: 120px; accent-color: var(--accent); }
.sunbox output { min-width: 40px; font-variant-numeric: tabular-nums; font-weight: 600; }
.badge { position: absolute; left: 12px; bottom: 12px; background: rgba(26, 26, 26, .82); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.legend { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 11px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; max-width: 60%; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; transform: translate(12px, 12px); display: none; white-space: nowrap; }
.loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; background: var(--paper); z-index: 5; }

/* ---------- elevation chart ---------- */
.chart { position: absolute; top: 58px; left: 0; right: 0; bottom: 0; overflow: auto; background: #fff; padding: 0 16px 40px; display: none; border-top: 1px solid var(--line); }
.stage.chart-on { background: #fff; }
.stage.chart-on .chart { display: block; }
.stage.chart-on #gl, .stage.chart-on .labels, .stage.chart-on .sunbox, .stage.chart-on .compass, .stage.chart-on #reset, .stage.chart-on .badge, .stage.chart-on .legend.l3d { display: none; }
.chart-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0; position: sticky; top: 0; left: 0; background: #fff; z-index: 3; }
.chart-head .seg button { padding: 0 10px; }
.grid { border-collapse: separate; border-spacing: 2px; font-size: 11px; margin: 0 auto; }
.grid th { font-weight: 600; color: var(--muted); padding: 2px 4px; text-align: center; background: #fff; }
.grid th.fl { position: sticky; left: -16px; z-index: 1; text-align: right; color: var(--muted); font-weight: 400; background: #fff; }
.grid td { min-width: 52px; height: 22px; text-align: center; border-radius: 3px; cursor: pointer; color: rgba(0, 0, 0, .7); font-variant-numeric: tabular-nums; }
.grid td.na { background: transparent; cursor: default; }
.grid td:hover { outline: 2px solid var(--ink); }
.grid td.on { outline: 2px solid var(--accent); outline-offset: 1px; font-weight: 700; color: #000; }
.grid td.dim { opacity: .22; }
.grid .typ th { font-weight: 400; font-size: 10px; }
.scale { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.scale b { display: inline-block; width: 120px; height: 8px; border-radius: 4px; }

/* ---------- panel ---------- */
.panel { border-left: 1px solid var(--line); overflow-y: auto; background: #fff; }
.pin { padding: 18px 20px 120px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.uhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.uid { font-family: var(--serif); font-size: 46px; line-height: 1; font-weight: 600; margin: 6px 0 4px; letter-spacing: -.01em; }
.usub { color: var(--muted); font-size: 13px; }
.steppers { display: grid; grid-template-columns: repeat(2, 34px); gap: 6px; }
.steppers .ibtn { width: 34px; height: 34px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.tag.k { background: var(--accent-soft); border-color: var(--accent-line); color: #6d5208; font-weight: 600; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 12px; }
.card.soft { background: var(--accent-soft); border-color: var(--accent-line); }
.card h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card h4 em { font-style: normal; font-size: 12px; font-weight: 700; }
.big { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.facing { display: flex; gap: 14px; align-items: center; }
.facing p { margin: 2px 0 0; font-size: 13px; color: var(--ink2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two .card { margin-top: 0; }
.mini { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.bars { display: grid; gap: 7px; margin-top: 4px; }
.bar { display: grid; grid-template-columns: 78px 1fr 36px; align-items: center; gap: 8px; font-size: 12px; }
.bar .t { height: 8px; border-radius: 4px; background: #f0eeea; overflow: hidden; }
.bar .t b { display: block; height: 100%; border-radius: 4px; }
.bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.seen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seen span { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #eef4ea; color: #355b2f; }
.seen span.water { background: #e8f1f7; color: #2d5b78; }
.seen span.city { background: #f1eee8; color: #5b5040; }
.floors { display: flex; align-items: flex-end; gap: 2px; height: 64px; margin-top: 8px; }
.floors b { flex: 1; background: #e3dccb; border-radius: 2px 2px 0 0; cursor: pointer; min-width: 3px; }
.floors b.on { background: var(--accent); }
.floors b:hover { background: #c9a75a; }
.fl-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 2px; }
.note { font-size: 14px; color: var(--ink2); margin: 0; }
.note::before { content: '“'; font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 0; vertical-align: -10px; margin-right: 2px; }
.cta { display: grid; gap: 8px; margin-top: 16px; }
.cta .btn { height: 44px; font-size: 15px; }
.fine { font-size: 11px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.empty { color: var(--muted); padding: 40px 10px; text-align: center; }

/* ---------- static content ---------- */
.content { max-width: 860px; margin: 0 auto; padding: 40px 20px 30px; line-height: 1.85; font-size: 16px; }
.content h2 { font-size: 22px; margin: 36px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.content h2:first-child { border-top: 0; margin-top: 0; }
.content h3 { font-size: 17px; margin: 22px 0 6px; }
.content table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.content th, .content td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.content th { background: var(--accent-soft); }
.lede { font-size: 17px; color: #333; background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 4px; }
.disclaimer { font-size: 13px; color: var(--muted); background: #f7f7f7; padding: 12px 16px; border-radius: 6px; margin-top: 30px; }
footer.site { border-top: 1px solid var(--line); }
footer.site .wrap { max-width: 860px; margin: 0 auto; padding: 22px 20px 34px; color: var(--muted); font-size: 13px; }
footer.site p { margin: 4px 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; height: auto; }
  .stage { height: 62vh; min-height: 420px; }
  .panel { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .pin { padding-bottom: 30px; }
}
@media (max-width: 640px) {
  .top .row { height: auto; flex-wrap: wrap; padding: 8px 16px; gap: 8px; }
  .brand b { font-size: 14px; }
  .brand small { display: none; }
  .proj { padding-left: 10px; }
  .proj small { font-size: 10px; }
  .proj b { font-size: 17px; }
  .search { order: 3; width: auto; flex: 1 1 0; min-width: 0; }
  .hide-sm { display: none; }
  .spacer { flex: 1 1 100%; height: 0; order: 2; }
  .top .btn.gold { order: 4; }
  .top .btn.gold { height: 34px; padding: 0 10px; font-size: 13px; }
  .filters { padding: 8px 16px; }
  .sunbox { position: absolute; left: 0; right: 0; top: 46px; margin: 0; justify-content: space-between; }
  .sunbox input[type=range] { width: 90px; flex: 1; }
  .legend { display: none; }
  .uid { font-size: 40px; }
  .pin { padding: 16px 16px 30px; }
  .content { padding: 28px 16px; font-size: 15px; }
  .grid td { min-width: 44px; }
}

/* ---------- price / plan / location / calculator ---------- */
.lnk { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 600; }
.card.price { border-color: var(--accent); background: linear-gradient(180deg, #fffaf0, #fff); }
.pr-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pr-row .big { font-size: 32px; color: #5b4206; }
.pr-row .psf { font-size: 15px; font-weight: 600; color: var(--ink2); }
.plan img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); white-space: nowrap; }
dl.kv dd { margin: 0; }
.fld { display: grid; gap: 4px; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.fld input, .fld select { font: inherit; font-size: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; height: 34px; padding: 0 8px; background: #fff; width: 100%; }
.fld input:focus, .fld select:focus { outline: 0; border-color: var(--accent); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg.sm { height: 32px; width: 100%; }
.seg.sm button { flex: 1; font-size: 12px; padding: 0 6px; color: var(--ink); }
.seg.sm button[aria-pressed="true"] { color: #fff; }
.res { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.res-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.res-row b { font-variant-numeric: tabular-nums; }
.res-row.tot { border-top: 1px dashed var(--accent-line); margin-top: 2px; padding-top: 7px; font-size: 14px; }
.res-row.tot b { color: #5b4206; font-size: 15px; }
.res-sub { font-size: 11px; color: var(--muted); line-height: 1.5; margin: -2px 0 4px; }
.lab.fac { background: #2f5b4a; color: #fff; border-color: #2f5b4a; font-weight: 600; }
.lab.fac i { background: #fff; color: #2f5b4a; width: auto; height: auto; border-radius: 8px; padding: 0 5px; font-style: normal; font-size: 11px; }

/* ---------- sections ---------- */
.secs { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.subnav { position: sticky; top: 60px; z-index: 20; display: flex; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.subnav button { border: 0; background: none; padding: 8px 14px; font-size: 15px; cursor: pointer; border-radius: 6px; white-space: nowrap; }
.subnav button:hover { background: var(--accent-soft); color: #6d5208; }
.sec { padding: 34px 0 10px; scroll-margin-top: 120px; }
.sec h2 { font-size: 24px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec > p { color: var(--ink2); max-width: 760px; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: #6d5208; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.pm { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.pm th, table.pm td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.pm thead th { background: var(--accent-soft); font-weight: 600; vertical-align: bottom; }
table.pm thead th small { display: block; font-weight: 400; color: var(--muted); }
table.pm tbody th { text-align: left; background: #fcfbf8; position: sticky; left: 0; }
table.pm td[data-psf] { cursor: pointer; }
table.pm td[data-psf]:hover { background: var(--ink); color: #fff; }
table.pm td.lux { background: #f7ead0; color: #6d5208; font-weight: 600; }
table.pm td.off { background: #2b3440; }
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fac-col { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fffdf8; }
.fac-col h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.fac-col h3 small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; }
.fac-col ul { list-style: none; margin: 0; padding: 0; }
.fac-col li button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 7px 0; cursor: pointer; font-size: 14px; }
.fac-col li button:hover { color: var(--accent); }
.fac-col li i { flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fac-col li small { display: block; font-size: 12px; color: var(--muted); }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
.loc-col h3 { font-size: 18px; margin: 0 0 6px; font-family: var(--serif); }
.loc-col table { width: 100%; border-collapse: collapse; font-size: 14px; }
.loc-col td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.loc-col td small { display: block; font-size: 12px; color: var(--muted); }
.loc-col td.r { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .fac-grid, .loc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .fac-grid, .loc-grid { grid-template-columns: 1fr; }
  .secs { padding: 0 16px; }
  .subnav { top: 96px; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; }
}

.card.win canvas { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; background: #e9e4d8; }
.exitwin { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.exitwin[hidden] { display: none; }
.lab.estate { background: rgba(255,250,240,.9); border-color: #e3c9a0; color: #7a4f1d; font-size: 11px; }
.lab.estate i { background: #c0704a; border-radius: 2px; }
.btn.lang { padding: 0 12px; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 640px) { .btn.lang { order: 4; height: 34px; padding: 0 10px; } }
@media (max-width: 640px) {
  .tools { gap: 6px; }
  .tools .seg { height: 32px; }
  .tools .seg button { padding: 0 8px; font-size: 12px; white-space: nowrap; }
  .tools .ibtn, .tools .compass { width: 32px; height: 32px; }
}
.seg button { white-space: nowrap; }
.lab.gate { background: #b8860b; color: #fff; border-color: #b8860b; font-weight: 600; font-size: 11px; }
.lab.gate i { background: #fff; }

/* ---------- 留资 / 解锁 ---------- */
.card.price.locked { background: linear-gradient(180deg, #fffaf0, #fff); }
.blur { filter: blur(7px); user-select: none; pointer-events: none; }
.btn.unlock { width: 100%; margin: 10px 0 2px; height: 42px; font-size: 15px; }
.plan.locked { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.plan.locked img { display: block; width: 100%; filter: blur(9px) grayscale(.2); opacity: .7; border-radius: 6px; }
.plan.locked .btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.calc-lock { background: var(--accent-soft); border-radius: 8px; padding: 14px; text-align: center; }
.calc-lock p { margin: 0 0 10px; font-size: 13px; color: var(--ink2); }
#pricingMatrix { position: relative; }
#pricingMatrix.locked .tbl-wrap { filter: blur(6px); pointer-events: none; user-select: none; }
.pm-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pm-lock .btn { height: 46px; padding: 0 22px; font-size: 15px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.lm-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(20,18,14,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lm { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.lm h3 { font-family: var(--serif); font-size: 26px; margin: 2px 0 6px; line-height: 1.2; }
.lm-eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lm-sub { font-size: 14px; color: var(--ink2); margin: 0 0 14px; }
.lm-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.lm-form { display: grid; gap: 12px; }
.lm-form label, .lm-field { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.lm-form input:not([type=checkbox]), .lm-form select { font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; height: 40px; padding: 0 10px; background: #fff; width: 100%; }
.lm-form input:focus, .lm-form select:focus { outline: 0; border-color: var(--accent); }
.lm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lm-method { height: 36px; }
.lm-units { display: flex; flex-wrap: wrap; gap: 6px; }
.lm-u { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 4px !important; border: 1px solid var(--accent-line); border-radius: 14px; padding: 3px 10px; font-size: 13px !important; color: var(--ink) !important; cursor: pointer; }
.lm-consent { display: flex !important; gap: 8px !important; align-items: flex-start; font-size: 12px !important; line-height: 1.55; color: var(--ink2) !important; }
.lm-consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.lm-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lm-err { margin: 0; color: var(--bad); font-size: 13px; }
.lm-go { height: 46px; font-size: 16px; }
.lm-fine { margin: 0; font-size: 11px; color: var(--muted); text-align: center; }
.lm-ok { display: grid; gap: 10px; }
.lm-ok b { font-size: 18px; }
.lm-ok p { margin: 0; color: var(--ink2); font-size: 14px; }
.agent-badge { position: fixed; left: 12px; bottom: 12px; z-index: 60; background: #2f5b4a; color: #fff; border: 0; border-radius: 16px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
@media (max-width: 640px) { .lm { padding: 18px 16px 14px; } .lm h3 { font-size: 22px; } .lm-row { grid-template-columns: 1fr; } }

/* ---------- 两户对比 ---------- */
.cmp-row { margin: 10px 0 0; }
.cmp-add { width: 100%; height: 36px; border-style: dashed; border-color: var(--accent-line); color: #6d5208; font-weight: 600; }
.cmp-tray { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--accent-line); border-radius: 22px; padding: 6px 8px 6px 14px; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.12); white-space: nowrap; }
.cmp-tray .btn { height: 30px; padding: 0 12px; font-size: 13px; }
.lm.cmp { max-width: 1060px; padding: 22px 22px 16px; }
.cmp-verdict { font-size: 15px; line-height: 1.6; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 6px; padding: 10px 14px; margin: 8px 0 14px; }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.cmp-swap { align-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
.cmp-col { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.cmp-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.cmp-id { width: 96px; font-family: var(--serif); font-size: 28px; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 0 6px; background: var(--accent-soft); }
.cmp-id:focus { outline: 0; border-color: var(--accent); }
.cmp-id.bad { border-color: var(--bad); }
.cmp-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.cmp-view { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #e9e4d8; }
.cmp-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 10px 0; font-size: 13px; }
.cmp-dl dt { color: var(--muted); white-space: nowrap; }
.cmp-dl dd { margin: 0; }
.cmp-dl dd.win { color: var(--good); font-weight: 700; }
.cmp-dl dd.win::after { content: ' ✓'; }
.cmp-bar { display: inline-block; width: 70px; height: 6px; background: #eee; border-radius: 3px; vertical-align: middle; margin-left: 4px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; background: var(--accent); }
.cmp-go { width: 100%; height: 34px; }
.cmp-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .cmp-dl dt { white-space: normal; }
  .cmp-wrap { padding: 8px; }
  .lm.cmp { width: 100%; }
  .cmp-swap { justify-self: center; transform: rotate(90deg); }
  .lm.cmp { padding: 16px 12px 12px; }
  .cmp-tray { bottom: 44px; }
}
.gate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 26px; }
@media (max-width: 640px) { .gate-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 设施亮点 ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 22px; }
.hl { border: 1px solid var(--accent-line); border-radius: 12px; background: #fffaf0; overflow: hidden; display: flex; flex-direction: column; }
.hl.img { grid-column: span 2; grid-row: span 2; position: relative; }
.hl.img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hl .ai { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.hl-b { padding: 12px 14px; }
.hl-ic { font-size: 20px; }
.hl-big { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; color: #5b4206; }
.hl.img .hl-big { font-size: 38px; }
.hl-t { font-weight: 700; font-size: 14px; margin-top: 2px; }
.hl-s { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
@media (max-width: 980px) { .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 投资回报 ---------- */
.card.inv { border-color: #cfe0c8; background: linear-gradient(180deg, #f6fbf3, #fff); }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.inv-grid span { display: block; font-size: 11px; color: var(--muted); }
.inv-grid b { font-size: 17px; font-variant-numeric: tabular-nums; }
.inv-grid small { display: block; font-size: 11px; color: var(--muted); }
.pos { color: var(--good); } .neg { color: var(--bad); }
.lm.inv-m { max-width: 900px; }
.inv-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 6px; }
.inv-in label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.inv-in input:not([type=checkbox]), .inv-in select { font: inherit; font-size: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; height: 36px; padding: 0 8px; background: #fff; }
.inv-in .inv-chk { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; }
.inv-scs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 6px; }
.inv-sc { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.inv-sc.on { border-color: var(--accent); background: var(--accent-soft); }
.inv-sc h5 { margin: 0 0 6px; font-size: 13px; }
.inv-sc dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin: 0; font-size: 13px; }
.inv-sc dt { color: var(--muted); } .inv-sc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.inv-h { font-size: 15px; margin: 18px 0 8px; }
table.inv-t { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.inv-t th, table.inv-t td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.inv-t th:first-child, table.inv-t td:first-child { text-align: left; white-space: normal; min-width: 150px; }
table.inv-t thead th { background: var(--accent-soft); font-weight: 600; }
table.inv-t td small { display: block; font-size: 11px; color: var(--muted); }
table.inv-t tr.me { background: #fffaf0; }
.inv-notes { font-size: 12px; color: var(--ink2); padding-left: 18px; margin: 10px 0; line-height: 1.6; }
@media (max-width: 640px) { .inv-in, .inv-scs { grid-template-columns: minmax(0, 1fr); } .hl-grid { grid-template-columns: minmax(0, 1fr); } .hl.img { grid-column: auto; grid-row: auto; } }
