/* 栖地置业 · 全站样式
   版式：首屏整屏实景视频；之后每个区块换一种构图，房源统一用「一房一价」的行；一套 12 列网格，两侧边距相等。 */
:root {
  --ground: #efedea;
  --panel: #e4e1dc;
  --band: #d7d0c6;
  --ink: #262523;
  --muted: #5a554f;
  --accent: #4a5943;
  --accent-ink: #ffffff;
  --night: #1b1c1a;
  --night-2: #262724;
  --night-3: #31322f;
  --night-ink: #f0efea;
  --night-muted: #a9a69e;
  --line: rgba(38, 37, 35, .16);
  --on-photo: #ffffff;
  --scrim: 14, 14, 12;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --t1: clamp(38px, 6.2vw, 96px);
  --t2: clamp(30px, 3.9vw, 56px);
  --t3: clamp(22px, 1.9vw, 30px);
  --t4: 17px;
  --t5: 14px;

  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(88px, 10vw, 160px);
  --hdr: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: var(--t4); line-height: 1.65;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -0.01em; line-height: 1.2; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.nb { display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1480px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sec { padding-block: var(--section) 0; }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 32px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { grid-column: 1 / span 6; font-size: var(--t2); line-height: 1.1; }
.sec-head p { grid-column: 8 / span 5; max-width: 46ch; }
.sec-head .more { grid-column: 8 / span 5; justify-self: start; }
.sec-head.with-more p { margin-bottom: 4px; }
.lead { font-size: 19px; line-height: 1.7; max-width: 40em; }

/* 按钮与链接 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 0; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s, color .2s;
}
.btn:hover { background: #3c4a36; }
.btn:active { transform: translateY(1px); }
.btn.quiet { background: var(--panel); color: var(--ink); }
.btn.quiet:hover { background: var(--band); }
.btn.light { background: var(--on-photo); color: var(--ink); }
.btn.light:hover { background: var(--panel); }
.btn.ghost-dark { background: var(--night-3); color: var(--night-ink); }
.btn.ghost-dark:hover { background: #3d3e3a; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translateX(4px); }
.link {
  display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 500;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; background: none; border: 0; padding: 0; cursor: pointer;
}
.link:hover { text-decoration-thickness: 2px; }
.arr { display: inline-block; }

/* 页头 */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 61; background: var(--ground); }
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px);
  background: var(--ground); color: var(--ink); transition: background-color .3s, color .3s, transform .35s var(--ease);
}
.hdr.over { background: transparent; color: var(--on-photo); }
.hdr.over::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(var(--scrim), .45), rgba(var(--scrim), 0)); pointer-events: none; z-index: -1; }
.hdr.hide { transform: translateY(-100%); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.logo b { font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: .06em; }
.logo span { font-size: 13px; letter-spacing: .02em; opacity: .75; }
.nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; background: none; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav-item > a[aria-current="page"], .nav-item.cur > button { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.caret { width: 9px; height: 9px; transition: transform .25s var(--ease); }
.nav-item:hover .caret, .nav-item.open .caret { transform: rotate(180deg); }
.dd {
  position: absolute; top: 100%; left: 0; padding-top: 0; min-width: 240px; z-index: 5;
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  color: var(--ink);
}
.nav-item:hover .dd, .nav-item:focus-within .dd, .nav-item.open .dd { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.dd-in { background: var(--ground); padding: 12px; box-shadow: 0 24px 48px rgba(0, 0, 0, .14); }
.dd-list a { display: flex; justify-content: space-between; gap: 24px; padding: 10px 14px; text-decoration: none; font-size: 15px; transition: background-color .15s; }
.dd-list a:hover { background: var(--panel); }
.dd-list a small { color: var(--muted); font-size: 13px; }
.dd.mega { left: 50%; transform: translate(-50%, -6px); }
.nav-item:hover .dd.mega, .nav-item:focus-within .dd.mega, .nav-item.open .dd.mega { transform: translate(-50%, 0); }
.mega .dd-in { display: grid; grid-template-columns: repeat(3, 240px) 200px; gap: 12px; padding: 16px; }
.mega-card { display: grid; gap: 10px; padding: 8px; text-decoration: none; transition: background-color .15s; }
.mega-card:hover { background: var(--panel); }
.mega-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mega-card b { font-family: var(--serif); font-size: 19px; }
.mega-card span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.mega-side { background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mega-side b { font-family: var(--serif); font-size: 17px; }
.mega-side a { text-decoration: none; }
.mega-side a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega-side .btn { margin-top: auto; min-height: 40px; font-size: 14px; }
.hdr-tel { font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.hdr .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.hdr.over .btn { background: var(--on-photo); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px 0 10px 12px; cursor: pointer; font-weight: 500; font-size: 16px; }

/* 手机抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 80; background: var(--ground); color: var(--ink); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.drawer-close { background: var(--panel); border: 0; padding: 10px 16px; cursor: pointer; font-weight: 500; }
.drawer nav { margin-top: 12px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer .d-link {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 24px; font-weight: 700; text-decoration: none;
}
.drawer .d-link { border-bottom: 1px solid var(--line); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .caret { width: 12px; height: 12px; }
.drawer details[open] summary .caret { transform: rotate(180deg); }
.drawer details ul { display: grid; gap: 2px; padding: 0 0 16px; }
.drawer details a { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--panel); text-decoration: none; }
.drawer details a small { color: var(--muted); }
.drawer-foot { display: grid; gap: 12px; margin-top: 28px; }
.drawer-foot p { color: var(--muted); font-size: var(--t5); }

/* 首页首屏 */
.hero { position: relative; height: max(620px, 100svh); min-height: 560px; overflow: hidden; background: var(--night); color: var(--on-photo); }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { transform: scale(1.08); transition: transform 3.2s var(--ease); }
.hero.open .hero-media video { transform: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 72%; background: linear-gradient(rgba(var(--scrim), 0), rgba(var(--scrim), .74)); z-index: 1; }
.windows { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(var(--cols, 10), 1fr); grid-template-rows: repeat(var(--rows, 6), 1fr); pointer-events: none; }
.windows i { background: var(--night); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.hero.open .windows i { opacity: 0; transform: scale(.6); }
.hero-text { position: absolute; inset: auto 0 0; z-index: 3; padding-bottom: calc(var(--searchH, 112px) + clamp(32px, 5vh, 64px)); }
.hero-text h1 { font-size: var(--t1); line-height: 1.04; letter-spacing: -0.03em; max-width: 14em; }
.hero-text p { margin-top: 28px; max-width: 38em; font-size: 18px; line-height: 1.7; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .hero.open .hero-text > * { opacity: 1; transform: none; }
}
.hero.open .hero-text > :nth-child(1) { transition-delay: .55s; }
.hero.open .hero-text > :nth-child(2) { transition-delay: .7s; }
.no-js .hero-text > *, .no-js .windows { opacity: 1; transform: none; }
.no-js .windows { display: none; }
.hero-credit { position: absolute; z-index: 3; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(var(--searchH, 112px) + 14px); font-size: 13px; opacity: .7; }

.search { position: absolute; inset: auto 0 0; z-index: 4; background: var(--ground); color: var(--ink); }
.search form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 20px; padding-block: 24px 28px; }
.search .field label { color: var(--muted); }
.search select { background: var(--panel); }
.search .btn { min-height: 52px; padding: 0 32px; }

/* 子页页首 */
.phero { position: relative; height: clamp(420px, 64svh, 640px); overflow: hidden; color: var(--on-photo); background: var(--night); }
.phero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease) both; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(var(--scrim), .35), rgba(var(--scrim), .1) 35%, rgba(var(--scrim), .7)); }
.phero .wrap { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.phero h1 { font-size: var(--t1); line-height: 1.04; letter-spacing: -0.03em; }
.phero p { margin-top: 18px; max-width: 36em; font-size: 18px; }
.phero .crumbs { color: var(--on-photo); opacity: .85; margin-bottom: 16px; }
.phero-stat { text-align: right; display: grid; gap: 2px; }
.phero-stat b { font-family: var(--serif); font-size: var(--t2); line-height: 1; font-variant-numeric: tabular-nums; }
.phero-stat span { font-size: var(--t5); opacity: .85; }

.thead { padding-top: calc(var(--hdr) + clamp(48px, 7vw, 104px)); }
.thead-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 32px; align-items: end; }
.thead h1 { grid-column: 1 / span 7; font-size: var(--t1); line-height: 1.04; letter-spacing: -0.03em; }
.thead p { grid-column: 8 / span 5; max-width: 44ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t5); color: var(--muted); margin-bottom: 20px; grid-column: 1 / -1; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs span[aria-hidden] { opacity: .6; }

/* 数字带 */
.figures { background: var(--panel); }
.figures .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 40px; }
.figures div { display: grid; gap: 4px; }
.figures b { font-family: var(--serif); font-size: var(--t2); line-height: 1; font-variant-numeric: tabular-nums; }
.figures span { color: var(--muted); font-size: var(--t5); }

/* 小区叠放 */
.stack { display: grid; gap: 0; }
.stack-panel { position: sticky; top: var(--hdr); min-height: calc(100svh - var(--hdr)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: var(--ground); }
.stack-panel:nth-child(2) { background: var(--panel); }
.stack-panel:nth-child(3) { background: var(--band); }
.stack-photo { grid-column: 1 / span 7; position: relative; overflow: hidden; min-height: 420px; }
.stack-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stack-panel:hover .stack-photo img { transform: scale(1.03); }
.stack-body { grid-column: 8 / span 5; padding: clamp(32px, 4vw, 64px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(32px, 4vw, 64px) clamp(28px, 3vw, 56px); display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.stack-body .where { color: var(--muted); font-size: var(--t5); }
.stack-body h3 { font-size: var(--t2); line-height: 1.05; }
.stack-body p { max-width: 38ch; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.kv div { display: grid; gap: 2px; }
.kv dt { color: var(--muted); font-size: var(--t5); }
.kv dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.kv .big dd { font-family: var(--serif); font-size: var(--t3); font-weight: 700; line-height: 1.2; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 房源卡片横滑 */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 26vw, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: grid; gap: 14px; text-decoration: none; }
.card-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card-photo img + img { opacity: 0; }
.card:hover .card-photo img + img { opacity: 1; }
.card:hover .card-photo img { transform: scale(1.03); }
.tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(var(--scrim), .72); color: var(--on-photo); font-size: 13px; padding: 3px 9px; }
.badge { display: inline-block; font-size: 13px; padding: 1px 8px; background: var(--panel); font-weight: 500; vertical-align: 2px; }
.badge.rent { background: var(--accent); color: var(--accent-ink); }
.card-body { display: grid; gap: 4px; }
.card-body .where { color: var(--muted); font-size: var(--t5); }
.card-body h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: 0; }
.card-body .spec { font-size: 15px; font-variant-numeric: tabular-nums; }
.card-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.card-price b { font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; }
.card-price span { color: var(--muted); font-size: var(--t5); font-variant-numeric: tabular-nums; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border: 0; background: var(--panel); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.rail-nav button:hover { background: var(--band); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-foot { display: flex; justify-content: flex-start; align-items: center; gap: 16px; margin-top: 24px; }

/* 一房一价行 */
.units { display: grid; gap: 8px; }
.unit {
  display: grid; grid-template-columns: clamp(220px, 21vw, 300px) minmax(0, 1fr) minmax(170px, auto) auto;
  gap: 32px; align-items: center; padding: 14px 28px 14px 14px; background: var(--panel); text-decoration: none; transition: background-color .2s;
}
.unit:hover { background: var(--band); }
.unit .card-photo { aspect-ratio: 3 / 2; }
.unit-main { display: grid; gap: 6px; min-width: 0; }
.unit-main .where { color: var(--muted); font-size: var(--t5); }
.unit-main h3 { font-family: var(--sans); font-size: 19px; font-weight: 700; letter-spacing: 0; }
.unit-main .spec { font-variant-numeric: tabular-nums; }
.unit-main .ex { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 56ch; margin-top: 2px; }
.unit-price { text-align: right; display: grid; gap: 2px; }
.unit-price b { font-family: var(--serif); font-size: var(--t3); line-height: 1.15; font-variant-numeric: tabular-nums; }
.unit-price span { color: var(--muted); font-size: var(--t5); font-variant-numeric: tabular-nums; }
.unit:hover .card-photo img + img { opacity: 1; }

/* 视频 */
.night { background: var(--night); color: var(--night-ink); }
.night .sec-head p { color: var(--night-ink); }
.night.pad { padding-block: var(--section); margin-top: var(--section); }
.player { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.player-main { grid-column: 1 / span 8; display: grid; gap: 14px; min-width: 0; align-content: start; }
.player-main video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.now { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--night-muted); font-size: var(--t5); }
.now b { color: var(--night-ink); font-weight: 500; font-size: var(--t4); }
.now a { color: var(--night-ink); }
.clips { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 6px; }
.clip { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px; background: none; border: 0; color: var(--night-muted); text-align: left; cursor: pointer; transition: background-color .2s; }
.clip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip b { display: block; color: var(--night-ink); font-weight: 500; line-height: 1.4; }
.clip span { font-size: var(--t5); }
.clip:hover, .clip[aria-pressed="true"] { background: var(--night-2); }
.clip[aria-pressed="true"] i { display: inline; }
.clip i { display: none; font-style: normal; color: #b9c9ad; font-size: 13px; margin-left: 8px; }
.clips-more { margin-top: auto; padding: 18px 10px 0; display: grid; gap: 14px; justify-items: start; }

/* 价格表、计算器 */
.prices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.table-box { grid-column: 1 / span 7; overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 14px 14px 0; vertical-align: top; }
thead th { color: var(--muted); font-size: var(--t5); font-weight: 400; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr + tr td { border-top: 1px solid var(--line); }
td.est { font-family: var(--serif); font-weight: 700; font-size: 19px; white-space: nowrap; padding-right: 24px; }
td small { display: block; color: var(--muted); font-size: var(--t5); font-family: var(--sans); font-weight: 400; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; text-underline-offset: 4px; }
tr.go { cursor: pointer; }
tr.go:hover td:not(.est) { background: var(--panel); }
.calc { grid-column: 8 / span 5; background: var(--panel); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; position: sticky; top: calc(var(--hdr) + 16px); }
.calc h3 { font-size: var(--t3); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label, .field legend { font-size: var(--t5); color: var(--muted); padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; background: var(--panel); border: 0; border-radius: 0; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23262523' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.calc input, .calc select { background-color: var(--ground); }
textarea { min-height: 110px; resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-line { display: flex; justify-content: space-between; align-items: baseline; }
.range-line output { font-weight: 700; font-variant-numeric: tabular-nums; }
.result { background: var(--ground); padding: 20px; display: grid; gap: 6px; }
.result .label { color: var(--muted); font-size: var(--t5); }
.monthly { font-family: var(--serif); font-weight: 700; font-size: var(--t2); line-height: 1; font-variant-numeric: tabular-nums; }
.monthly small { font-family: var(--sans); font-size: var(--t4); font-weight: 400; margin-left: 6px; }
.result dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.result dt { color: var(--muted); font-size: var(--t5); }
.result dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; }
.seg button { border: 0; background: var(--ground); padding: 8px 14px; cursor: pointer; font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.note { color: var(--muted); font-size: var(--t5); }

/* 服务 */
.services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.svc-photo { grid-column: 1 / span 6; position: sticky; top: calc(var(--hdr) + 16px); aspect-ratio: 1 / 1; overflow: hidden; align-self: start; background: var(--panel); }
.svc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.svc-photo img.on { opacity: 1; }
.svc-list { grid-column: 8 / span 5; display: grid; gap: 0; align-content: start; }
.svc { padding: 36px 0; display: grid; gap: 12px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc h3 { font-size: var(--t3); }
.svc p { max-width: 42ch; }
.svc .mini { display: none; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { padding: 28px 24px 32px 0; display: grid; gap: 10px; align-content: start; position: relative; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent); }
.step::after { content: ""; position: absolute; top: 48px; left: 44px; right: 12px; height: 2px; background: var(--band); }
.step:last-child::after { display: none; }
.step h3 { font-size: 20px; }
.step p { font-size: 15px; }
.step small { color: var(--muted); font-size: 13px; }

/* 文章卡 */
.articles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.article { display: grid; gap: 16px; text-decoration: none; align-content: start; }
.article .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.article:first-child .ph { aspect-ratio: 4 / 3.2; }
.article .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article:hover .ph img { transform: scale(1.04); }
.article h3 { font-size: var(--t3); line-height: 1.3; }
.article:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.article p { color: var(--ink); }
.article small { color: var(--muted); font-size: var(--t5); }

/* 预约横幅 */
.cta { position: relative; margin-top: var(--section); min-height: 560px; display: grid; align-items: end; color: var(--on-photo); overflow: hidden; background: var(--night); }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--scrim), .78), rgba(var(--scrim), .25) 70%); }
.cta .wrap { position: relative; z-index: 2; width: 100%; padding-block: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; align-items: end; }
.cta-text { grid-column: 1 / span 7; }
.cta h2 { font-size: var(--t2); line-height: 1.1; }
.cta p { margin-top: 18px; max-width: 34em; }
.cta-side { grid-column: 9 / span 4; display: grid; gap: 14px; justify-items: start; }
.cta-side .tel { font-family: var(--serif); font-size: var(--t3); font-weight: 700; font-variant-numeric: tabular-nums; user-select: all; }

/* 页脚 */
.foot { background: var(--night); color: var(--night-ink); margin-top: var(--section); padding-block: clamp(56px, 7vw, 96px) 28px; }
.cta + .foot { margin-top: 0; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.foot-intro { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: start; }
.foot-intro p { color: var(--night-muted); max-width: 32ch; }
.foot-intro .tel { font-family: var(--serif); font-size: var(--t3); font-weight: 700; font-variant-numeric: tabular-nums; }
.foot-col { grid-column: span 2; display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-col h4 { font-family: var(--sans); font-size: var(--t5); font-weight: 400; color: var(--night-muted); margin-bottom: 4px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-name { font-family: var(--serif); font-weight: 700; font-size: min(22.5vw, 330px); line-height: .9; letter-spacing: -0.02em; white-space: nowrap; margin-top: clamp(48px, 6vw, 88px); color: var(--night-3); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 28px; font-size: 13px; color: var(--night-muted); }

/* 浮动按钮 */
.float { position: fixed; z-index: 55; right: calc(max(16px, env(safe-area-inset-right, 0px))); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 52px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; transition: transform .3s var(--ease), opacity .3s; }
.float:hover { background: #3c4a36; }
.float.away { transform: translateY(140%); opacity: 0; }
.float svg { width: 20px; height: 20px; }

/* 小区页 */
.subnav { position: sticky; top: var(--hdr); z-index: 20; background: var(--ground); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav a { flex: 0 0 auto; padding: 8px 14px; text-decoration: none; font-size: 15px; background: var(--panel); transition: background-color .2s; }
.subnav a:hover, .subnav a.on { background: var(--ink); color: var(--ground); }
.overview { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.overview-text { grid-column: 1 / span 6; display: grid; gap: 20px; }
.overview-text h2 { font-size: var(--t2); line-height: 1.1; }
.overview .kv { grid-column: 8 / span 5; background: var(--panel); padding: 28px; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15vw, 230px); gap: 8px; }
.gallery button { position: relative; border: 0; padding: 0; overflow: hidden; cursor: zoom-in; background: var(--panel); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery .g1 { grid-column: span 8; grid-row: span 2; }
.gallery .g2 { grid-column: span 4; }
.gallery .g3 { grid-column: span 4; }
.gallery .g4 { grid-column: span 4; }
.gallery .g5 { grid-column: span 4; }
.gallery .g6 { grid-column: span 4; }
.gallery .count { position: absolute; right: 10px; bottom: 10px; background: rgba(var(--scrim), .72); color: #fff; font-size: 13px; padding: 4px 10px; }
.plans { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--panel); padding: 24px; display: grid; gap: 16px; text-decoration: none; align-content: start; }
.plan svg { width: 100%; height: auto; background: var(--ground); padding: 14px; }
.plan h3 { font-size: 22px; }
.plan dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 15px; }
.plan dt { color: var(--muted); }
.plan dd { margin: 0; font-variant-numeric: tabular-nums; }
.around { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.around h3 { font-size: 20px; margin-bottom: 12px; }
.around li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.around li span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.compare th[scope="row"] { color: var(--muted); font-weight: 400; font-size: var(--t5); white-space: nowrap; }
.compare thead th { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); }
.compare thead th small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); }
.estate-rows { display: grid; gap: clamp(48px, 6vw, 96px); }
.estate-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.estate-row .er-photo { grid-column: 1 / span 7; aspect-ratio: 3 / 2; overflow: hidden; display: block; }
.estate-row .er-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.estate-row:hover .er-photo img { transform: scale(1.03); }
.estate-row .er-body { grid-column: 9 / span 4; display: grid; gap: 22px; }
.estate-row:nth-child(even) .er-photo { grid-column: 6 / span 7; order: 2; }
.estate-row:nth-child(even) .er-body { grid-column: 1 / span 4; order: 1; }
.er-body h2 { font-size: var(--t2); line-height: 1.05; }
.er-body .where { color: var(--muted); font-size: var(--t5); }

/* 房源列表页 */
.browse { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--hdr) + 16px); display: grid; gap: 26px; }
.fgroup { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fgroup legend { font-size: var(--t5); color: var(--muted); padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; background: var(--panel); padding: 8px 14px; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--band); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.results-bar b { font-family: var(--serif); font-size: var(--t3); }
.results-bar select { width: auto; min-height: 44px; }
.browse .unit { grid-template-columns: clamp(200px, 17vw, 260px) minmax(0, 1fr) auto; }
.browse .unit .go { display: none; }
.empty { padding: 40px; background: var(--panel); display: grid; gap: 12px; justify-items: start; }
.filter-toggle { display: none; }

/* 房源详情 */
.ugal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(150px, 17vw, 270px)); gap: 8px; margin-top: calc(var(--hdr) + 24px); }
.ugal button { position: relative; border: 0; padding: 0; overflow: hidden; cursor: zoom-in; background: var(--panel); }
.ugal button img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ugal button:hover img { transform: scale(1.04); }
.ugal .u1 { grid-column: span 2; grid-row: span 2; }
.ugal .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--scrim), .35); color: #fff; font-weight: 500; }
.ugal .play span { display: inline-flex; align-items: center; gap: 10px; background: rgba(var(--scrim), .7); padding: 10px 16px; }
.ugal .all { position: absolute; right: 10px; bottom: 10px; background: var(--ground); color: var(--ink); font-size: 14px; padding: 8px 12px; font-weight: 500; }
.udetail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 48px; align-items: start; margin-top: 40px; }
.umain { grid-column: 1 / span 8; display: grid; gap: 56px; min-width: 0; }
.uside { grid-column: 9 / span 4; position: sticky; top: calc(var(--hdr) + 16px); display: grid; gap: 16px; }
.utitle .where { color: var(--muted); font-size: var(--t5); }
.utitle h1 { font-size: var(--t2); line-height: 1.12; margin-top: 8px; }
.ufacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 24px 0; }
.ufacts div { display: grid; gap: 2px; }
.ufacts dt { color: var(--muted); font-size: var(--t5); }
.ufacts dd { margin: 0; font-family: var(--serif); font-size: var(--t3); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.ublock h2 { font-size: var(--t3); margin-bottom: 18px; }
.ublock > p + p { margin-top: 14px; }
.info-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.info-table div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.info-table dt { color: var(--muted); }
.info-table dd { margin: 0; text-align: right; }
.plan-big { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--panel); padding: 24px; }
.plan-big svg { width: 100%; height: auto; background: var(--ground); padding: 18px; }
.plan-big ul { display: grid; gap: 8px; font-size: 15px; }
.plan-big li { display: flex; justify-content: space-between; gap: 12px; }
.plan-big li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.ublock .calc { position: static; }
.pricebox { background: var(--panel); padding: 28px; display: grid; gap: 16px; }
.pricebox .p b { font-family: var(--serif); font-size: var(--t2); line-height: 1; font-variant-numeric: tabular-nums; }
.pricebox .p span { display: block; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.pricebox .est { background: var(--ground); padding: 14px 16px; font-size: 15px; }
.pricebox .btn { width: 100%; }
.pricebox .tel { text-align: center; font-size: 15px; }
.estate-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--panel); padding: 12px; text-decoration: none; }
.estate-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.estate-card b { font-family: var(--serif); font-size: 19px; display: block; }
.estate-card span { color: var(--muted); font-size: 14px; }
.inline-calc { background: var(--panel); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; align-items: start; }
.inline-calc .result { align-self: stretch; align-content: center; }
.mbar { display: none; }

/* 视频页 */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.vitem { display: grid; gap: 14px; }
.vitem video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.vitem h3 { font-size: 22px; }
.vitem .meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--t5); }

/* 指南、文章 */
.faq { display: grid; gap: 6px; }
.faq details { background: var(--panel); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 500; list-style: none; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .caret { width: 12px; height: 12px; flex: 0 0 auto; }
.faq details[open] summary .caret { transform: rotate(180deg); }
.faq .a { padding: 0 24px 24px; max-width: 60em; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.split > .l { grid-column: 1 / span 4; position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 16px; }
.split > .l h2 { font-size: var(--t2); line-height: 1.1; }
.split > .r { grid-column: 6 / span 7; min-width: 0; }
.vsteps { display: grid; gap: 0; counter-reset: s; }
.vstep { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.vstep::before { counter-increment: s; content: counter(s); grid-row: span 3; font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent); }
.vstep h3 { font-size: var(--t3); }
.vstep small { color: var(--muted); font-size: var(--t5); }
.prose { max-width: 40em; font-size: 18px; line-height: 1.85; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: var(--t3); margin-top: 48px; }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 8px; background: var(--accent); }
.prose .box { background: var(--panel); padding: 22px 26px; font-size: 16px; }
.prose figure img { width: 100%; }
.prose figcaption { color: var(--muted); font-size: var(--t5); margin-top: 8px; }
.prose table { font-size: 16px; }
.article-head { padding-top: calc(var(--hdr) + clamp(40px, 6vw, 88px)); display: grid; gap: 20px; max-width: 920px; }
.article-head h1 { font-size: var(--t2); line-height: 1.15; }
.article-head .meta { color: var(--muted); font-size: var(--t5); }
.article-hero { margin-top: 40px; aspect-ratio: 21 / 9; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.article-body .prose { grid-column: 1 / span 8; }
.article-body aside { grid-column: 10 / span 3; position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 16px; background: var(--panel); padding: 24px; }
.article-body aside b { font-family: var(--serif); font-size: 20px; }

/* 关于、联系 */
.about-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.about-intro .t { grid-column: 1 / span 6; display: grid; gap: 22px; }
.about-intro .t h2 { font-size: var(--t2); line-height: 1.1; }
.about-intro .ph { grid-column: 8 / span 5; aspect-ratio: 4 / 3; overflow: hidden; }
.about-intro .ph img { width: 100%; height: 100%; object-fit: cover; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--panel); }
.pillar { padding: 36px 32px; display: grid; gap: 12px; align-content: start; }
.pillar:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.pillar:nth-child(n + 4) { border-top: 1px solid var(--line); }
.pillar b { font-family: var(--serif); font-size: var(--t3); }
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 48px; align-items: start; }
.cform { grid-column: 1 / span 7; display: grid; gap: 20px; }
.cside { grid-column: 9 / span 4; display: grid; gap: 24px; }
.cside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.clist { display: grid; gap: 16px; }
.clist div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.clist dt { color: var(--muted); font-size: var(--t5); }
.clist dd { margin: 0; }
.clist .tel { font-family: var(--serif); font-size: var(--t3); font-weight: 700; user-select: all; font-variant-numeric: tabular-nums; }
.when { display: flex; flex-wrap: wrap; gap: 6px; }
.when input { position: absolute; opacity: 0; pointer-events: none; }
.when label { background: var(--panel); padding: 10px 16px; cursor: pointer; font-size: 15px; color: var(--ink); transition: background-color .2s; }
.when label:hover { background: var(--band); }
.when input:checked + label { background: var(--ink); color: var(--ground); }
.when input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.done { background: var(--panel); padding: 24px; display: grid; gap: 8px; }
.done b { font-family: var(--serif); font-size: var(--t3); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* 灯箱 */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(12, 12, 11, .96); color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: calc(env(safe-area-inset-top, 0px) + 14px) max(var(--gutter), env(safe-area-inset-right, 0px)) 14px max(var(--gutter), env(safe-area-inset-left, 0px)); font-size: 15px; }
.lb-top button, .lb-nav button { background: rgba(255, 255, 255, .12); border: 0; color: #fff; cursor: pointer; padding: 10px 16px; font-weight: 500; }
.lb-top button:hover, .lb-nav button:hover { background: rgba(255, 255, 255, .22); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 max(var(--gutter), 72px); min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.lb-nav button { pointer-events: auto; width: 52px; height: 52px; padding: 0; display: grid; place-items: center; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 14px max(var(--gutter), env(safe-area-inset-left, 0px)) calc(env(safe-area-inset-bottom, 0px) + 14px); justify-content: center; }
.lb-thumbs button { flex: 0 0 auto; width: 84px; aspect-ratio: 3 / 2; border: 0; padding: 0; background: #000; opacity: .45; cursor: pointer; }
.lb-thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* 入场动效：内容默认可见，有脚本时才先藏再显 */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rd, 0s); }
}
.js .rv.in { opacity: 1; transform: none; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }


/* 语言切换、计算器补充 */
.lang { font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 10px; white-space: nowrap; }
.lang:hover { text-decoration: underline; text-underline-offset: 5px; }
.hdr .lang { margin-left: 4px; }
.cash { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.cash span { color: var(--muted); font-size: var(--t5); }
.cash b { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note.warn { color: #8a4b1f; }
.lang-en .nav-item > a, .lang-en .nav-item > button { padding: 0 11px; }

@media (max-width: 1180px) {
  .nav, .hdr-tel, .hdr .btn.book { display: none; }
  .menu-btn { display: inline-block; }
  .stack-panel { position: relative; top: 0; min-height: 0; }
  .stack-photo { grid-column: 1 / -1; aspect-ratio: 16 / 10; min-height: 0; }
  .stack-body { grid-column: 1 / -1; padding: 28px max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .stack-body p { max-width: 60ch; }
  .kv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .player-main, .clips { grid-column: 1 / -1; }
  .clips { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .clip { flex: 0 0 300px; }
  .clips-more { display: none; }
  .table-box, .calc { grid-column: 1 / -1; }
  .calc { position: static; }
  .svc-photo { grid-column: 1 / span 5; }
  .svc-list { grid-column: 7 / span 6; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .step:nth-child(3)::after { display: none; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; display: none; background: var(--panel); padding: 20px; }
  .filters.show { display: grid; }
  .filters .chip { background: var(--ground); }
  .filters .chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
  .filter-toggle { display: inline-flex; }
  .umain, .uside { grid-column: 1 / -1; }
  .uside { position: static; grid-row: 1; }
  .cform, .cside { grid-column: 1 / -1; }
  .cside { grid-template-columns: 1fr 1fr; align-items: start; }
  .article-body .prose { grid-column: 1 / -1; }
  .article-body aside { grid-column: 1 / -1; position: static; }
  .mega .dd-in { grid-template-columns: repeat(3, 200px); }
}
@media (max-width: 900px) {
  .sec-head, .thead-in, .player, .prices, .cta .wrap, .overview, .estate-row, .udetail, .about-intro, .contact, .split, .article-body { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-col { grid-column: auto; }
  .cta-text { grid-column: 1 / -1; }
  .sec-head h2, .sec-head p, .sec-head .more { grid-column: 1 / -1; }
  .thead h1, .thead p { grid-column: 1 / -1; }
  .figures .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .services { display: block; }
  .svc-photo { display: none; }
  .svc .mini { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
  .svc { padding: 28px 0; }
  .articles { grid-template-columns: 1fr; }
  .article { grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: 16px; }
  .article .ph, .article:first-child .ph { aspect-ratio: 1; }
  .article h3 { font-size: 20px; }
  .article p { display: none; }
  .cta h2, .cta-side { grid-column: 1 / -1; }
  .foot-intro { grid-column: 1 / -1; }
  .overview-text, .overview .kv { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 30vw, 220px); }
  .gallery .g1 { grid-column: span 2; grid-row: span 2; }
  .gallery .g2, .gallery .g3, .gallery .g4, .gallery .g5, .gallery .g6 { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  .around { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estate-row .er-photo, .estate-row:nth-child(even) .er-photo { grid-column: 1 / -1; order: 0; }
  .estate-row .er-body, .estate-row:nth-child(even) .er-body { grid-column: 1 / -1; order: 1; }
  .ugal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: clamp(200px, 56vw, 420px) clamp(100px, 26vw, 200px); }
  .ugal .u1 { grid-column: span 2; grid-row: span 1; }
  .ugal .u4, .ugal .u5 { display: none; }
  .ufacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-table { grid-template-columns: 1fr; }
  .plan-big, .inline-calc { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr; }
  .split > .l, .split > .r { grid-column: 1 / -1; position: static; }
  .about-intro .t, .about-intro .ph { grid-column: 1 / -1; }
  .about-intro .ph { aspect-ratio: 16 / 10; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(n) { border-left: 0; border-top: 0; }
  .pillar:nth-child(even) { border-left: 1px solid var(--line); }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .phero .wrap { grid-template-columns: 1fr; }
  .phero-stat { text-align: left; }
}
@media (max-width: 760px) {
  :root { --hdr: 64px; }
  .logo span { display: none; }
  .hero { height: max(640px, 100svh); }
  .hero-text p { font-size: 16px; margin-top: 18px; }
  .hero-credit { display: none; }
  .search form { grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 16px 18px; }
  .search .btn { grid-column: 1 / -1; min-height: 48px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; padding: 0 0 18px; }
  .browse .unit { grid-template-columns: minmax(0, 1fr) auto; }
  .unit .card-photo { grid-column: 1 / -1; }
  .unit-main { padding-left: 16px; }
  .unit-price { padding-right: 16px; align-self: end; }
  .unit .go { display: none; }
  .unit-main .ex { display: none; }
  .clip { flex-basis: 250px; grid-template-columns: 100px minmax(0, 1fr); }
  .result dl { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px minmax(0, 1fr); padding: 20px 0; column-gap: 16px; }
  .step::before { grid-row: span 3; }
  .step::after { display: none; }
  .article { grid-template-columns: 112px minmax(0, 1fr); }
  .cside { grid-template-columns: 1fr; }
  .around { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .clist div { grid-template-columns: 64px minmax(0, 1fr); }
  .uside { grid-row: auto; }
  .mbar { display: grid; grid-template-columns: auto 1fr; gap: 8px; position: fixed; inset: auto 0 0; z-index: 56; background: var(--ground); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); }
  .mbar .p { display: grid; align-content: center; padding-right: 8px; }
  .mbar .p b { font-family: var(--serif); font-size: 20px; line-height: 1.1; }
  .mbar .p span { font-size: 12px; color: var(--muted); }
  .has-mbar .float { display: none; }
  .has-mbar .foot { padding-bottom: 96px; }
  .lb-stage { padding: 0; }
  .lb-nav button { width: 44px; height: 44px; }
  .foot-name { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero-media video { transform: none; }
  .windows { display: none; }
}

/* 英文菜单比中文长：稍早收起（logo 换成图形字标后变短，收起点从 1300 降到 1240） */
@media (max-width: 1240px) {
  .lang-en .nav, .lang-en .hdr .btn.book { display: none; }
  .lang-en .menu-btn { display: inline-block; margin-left: 0; }
  .lang-en .hdr .lang { margin-left: auto; }
}
@media (max-width: 1180px) {
  .hdr .lang { margin-left: auto; }
  .menu-btn { margin-left: 0; }
}

/* 概况区：文字比参数框长时，参数框停靠在右侧跟着滚动 */
.overview .kv { position: sticky; top: calc(var(--hdr) + 72px); align-self: start; }
@media (max-width: 900px) { .overview .kv { position: static; } }

/* 手机：英文 logo 较长，缩小字号保证菜单按钮在屏内 */
@media (max-width: 760px) {
  .hdr-in { gap: 14px; }
  .lang-en .logo b { font-size: 18px; letter-spacing: .02em; }
  .hdr .lang { padding: 6px 4px; }
}

/* 手机首屏标题两行内 */
@media (max-width: 760px) { .hero-text h1 { font-size: clamp(30px, 8.8vw, 40px); } }
.ttl { display: grid; gap: 8px; }
.utitle .where { display: block; margin-top: 10px; }
/* 减少动效时，收起的下拉菜单直接不渲染 */
@media (prefers-reduced-motion: reduce) {
  .dd { display: none; }
  .nav-item:hover .dd, .nav-item:focus-within .dd, .nav-item.open .dd { display: block; }
}
/* 手机首页：租金表放在租金页，这里只留计算器 */
@media (max-width: 760px) { .home-rents .table-box { display: none; } }

/* 手机首屏：竖版实景轮播，缓慢推近、交替淡入；渐变只压文字区 */
.hero-slides { display: none; }
@media (max-width: 760px) {
  .hero-media video { display: none; }
  .hero-slides { display: block; position: absolute; inset: 0; overflow: hidden; }
  .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroSlide 24s linear infinite both; animation-delay: -1s; }
  .hero-slides img:nth-child(2) { animation-delay: 5s; }
  .hero-slides img:nth-child(3) { animation-delay: 11s; }
  .hero-slides img:nth-child(4) { animation-delay: 17s; }
  .hero::after { height: 58%; background: linear-gradient(rgba(var(--scrim), 0), rgba(var(--scrim), .55) 55%, rgba(var(--scrim), .7)); }
  .hero-text h1, .hero-text p { text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
}
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.14); }
  4% { opacity: 1; }
  25% { opacity: 1; }
  32% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .hero-slides img { animation: none; }
  .hero-slides img:first-child { opacity: 1; }
}
@media (max-width: 760px) {
  .windows { display: none; }
  .lang-en .hero-text h1 { font-size: clamp(26px, 7vw, 32px); line-height: 1.1; }
}
@media (min-width: 761px) { .lang-en .hero-text h1 { max-width: 17em; font-size: clamp(38px, 5.2vw, 80px); } }

/* 上传楼盘资料 */
.page-up .float { display: none; }
.up { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 48px; align-items: start; }
.up-form { grid-column: 1 / span 8; display: grid; gap: clamp(48px, 5vw, 72px); }
.up-sec { display: grid; gap: 20px; }
.up-sec h2 { font-family: var(--serif); font-size: var(--t3); display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.up-sec h2 span { font-family: var(--sans); font-size: var(--t5); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.field .count { float: right; font-variant-numeric: tabular-nums; }
[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #8a4b1f; }
.drop { display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(28px, 4vw, 48px) 20px; background: var(--panel); border: 1px dashed rgba(38, 37, 35, .32); transition: background-color .2s; }
.drop.over { background: var(--band); }
.drop b { font-size: var(--t4); font-weight: 500; }
.drop .btn { gap: 8px; cursor: pointer; background: var(--ground); }
.drop .btn:hover { background: var(--band); }
.drop input:focus-visible + .note, .drop label:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.drop .note { max-width: 34em; text-wrap: balance; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.thumbs:empty { display: none; }
.thumb { background: var(--panel); display: grid; align-content: start; min-width: 0; }
.thumb .ph { position: relative; aspect-ratio: 4 / 3; background: var(--band); overflow: hidden; display: grid; place-items: center; }
.thumb .ph img, .thumb .ph video { width: 100%; height: 100%; object-fit: cover; }
.thumb .noprev { padding: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.thumb .badge { position: absolute; left: 8px; top: 8px; background: var(--ink); color: var(--ground); font-size: 12px; padding: 3px 8px; }
.thumb .meta { padding: 8px 10px 0; font-size: 13px; color: var(--muted); display: grid; min-width: 0; }
.thumb .meta .fn { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .acts { display: flex; flex-wrap: wrap; gap: 0 4px; padding: 2px 4px 6px; }
.thumb .acts button { border: 0; background: none; padding: 8px 6px; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.thumb .acts button:hover { color: var(--accent); }
.up-side { grid-column: 9 / span 4; position: sticky; top: calc(var(--hdr) + 16px); background: var(--panel); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.up-side h2 { font-family: var(--serif); font-size: var(--t3); }
.up-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.up-sum dt { color: var(--muted); font-size: var(--t5); }
.up-sum dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.need { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.need li { display: flex; align-items: center; gap: 10px; }
.need .tick { width: 16px; height: 16px; flex: 0 0 auto; border: 1.5px solid currentColor; display: grid; place-items: center; }
.need li.ok { color: var(--ink); }
.need li.ok .tick { background: var(--accent); border-color: var(--accent); }
.need li.ok .tick::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.up-go { width: 100%; min-height: 54px; justify-content: center; gap: 10px; font-size: var(--t4); }
.up-go:disabled { opacity: .6; cursor: progress; }
.up-prog { display: grid; gap: 6px; font-size: var(--t5); color: var(--muted); }
.up-prog progress { width: 100%; height: 8px; accent-color: var(--accent); }
.up-side .done { background: var(--ground); }
.up-prev { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; margin-top: 8px; align-items: start; }
.up-prev img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; }
.up-prev b { font-size: 17px; font-family: var(--serif); display: block; }
.up-prev p { margin-top: 4px; font-size: 14px; }
@media (max-width: 900px) {
  .up { grid-template-columns: minmax(0, 1fr); }
  .up-form, .up-side { grid-column: 1 / -1; }
  .up-side { position: static; }
}
@media (max-width: 715px) {
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 定稿 logo：倒 V 屋顶 + LPO（logos/gen11.py），颜色跟随 currentColor */
.logo { align-items: center; color: inherit; }
.logo-mark { display: block; height: 28px; width: auto; }
.drawer-top .logo-mark { height: 24px; }
.foot-name { font-size: 0; line-height: 0; }
.foot-name .logo-mark { width: min(100%, 1180px); height: auto; }
@media (max-width: 760px) { .logo-mark { height: 23px; } }

/* 员工上传记录 */
.adm-login { display: grid; grid-template-columns: minmax(0, 320px) auto; gap: 12px; align-items: end; max-width: 520px; }
.adm-login .note { grid-column: 1 / -1; }
.adm-list { display: grid; gap: 28px; margin-top: 8px; }
.adm-card { background: var(--panel); padding: clamp(20px, 3vw, 32px); display: grid; gap: 10px; }
.adm-card h2 { font-family: var(--serif); font-size: var(--t3); }
.adm-sum { font-weight: 500; }
.adm-desc { white-space: pre-wrap; color: var(--muted); }
.adm-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 6px; }
.adm-files figure { margin: 0; background: var(--ground); display: grid; }
.adm-files img, .adm-files video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.adm-files figcaption { padding: 8px 10px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 560px) { .adm-login { grid-template-columns: 1fr; } .adm-files { grid-template-columns: 1fr 1fr; } }
