/* Tagbay Suites Melaka —— 全站唯一的样式表，手机优先。
 *
 * 配色（屋主指定，2026-10-16）：
 *   深青 #1D6A73 · 青 #328C8C · 橙 #F29849 · 沙 #F2E4D8 · 珊瑚 #F28157
 *
 * 对比度（WCAG，小字要 4.5:1）—— 改颜色前先算：
 *   白字 on 深青 #1D6A73            6.2:1  ✓
 *   沙色字 on 深青                   5.0:1  ✓
 *   墨色 #0B2E33 on 橙 #F29849       6.4:1  ✓（主按钮）
 *   墨色 on 珊瑚 #F28157             5.5:1  ✓（「已售完」标签）
 *   墨色 on 沙 #F2E4D8              11.6:1  ✓
 *   次要字 #4A6466 on 沙／白         5.1 / 6.4:1 ✓
 *   珊瑚字 #A44A28 on 白／浅沙       5.9 / 5.4:1 ✓（浅底上的强调字）
 *   浅橙 #F7B37A on 深青             3.5:1  只准用在大标题（≥24px）
 *   ✗ 白字 on 青 #328C8C 只有 4.0:1、白字 on 橙／珊瑚 2.2–2.6:1 —— 这几个底色上一律用墨色字。
 *   青 #328C8C 只当装饰（线条、图示、边框）。
 */

@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-400.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-600.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/playfair-display-400-italic.woff2") format("woff2"); }

:root {
  --deep: #1D6A73;
  --teal: #328C8C;
  --orange: #F29849;
  --sand: #F2E4D8;
  --coral: #F28157;

  --ink: #0B2E33;          /* 主要文字、按钮上的字 */
  --muted: #4A6466;        /* 次要文字 */
  --coral-text: #A44A28;   /* 浅底上的强调字 */
  --orange-light: #F7B37A; /* 深底上的大标题强调字 */
  --shell: #FAF4EE;        /* 页面底色，比沙色再浅一点 */
  --white: #ffffff;
  --line: #E4D3C4;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(11, 46, 51, .35);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  padding-bottom: 76px; /* 手机底部固定按钮的位置 */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 5.4vw, 2.6rem); }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--coral-text); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 .95rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-cta { background: var(--orange); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(242, 129, 87, .9); }
.btn-cta:hover { background: #F5A862; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-outline:hover { background: var(--deep); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost-dark { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .85rem; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- 顶部 ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 244, 238, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 46, 51, .5); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--teal); display: inline-flex; }
.brand-txt { font: 600 1.15rem/1 var(--serif); display: flex; flex-direction: column; }
.brand-txt small { font: 500 .66rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: none; }
.hdr-act { display: flex; align-items: center; gap: 10px; }
.lang { font-weight: 700; font-size: .9rem; color: var(--deep); text-decoration: none; padding: 8px 6px; }
.hdr .btn-cta span { display: none; }
.hdr .btn-cta { width: 42px; padding: 0; min-height: 42px; }

/* ---------- 主视觉 ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  /* 文字区一律压在深青上（沙色字 5.0:1）；青色只出现在最底下没有字的海浪区。 */
  background: linear-gradient(175deg, #134A51 0%, var(--deep) 78%, var(--teal) 100%);
  padding: 56px 0 230px;
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sun {
  /* 手机版：太阳放在下方海浪区，像日落，不压在白字后面（白字 on 橙只有 2.2:1）。 */
  position: absolute; width: 170px; height: 170px; right: -24px; bottom: 70px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--orange) 0%, var(--coral) 60%, rgba(242, 129, 87, 0) 72%);
  opacity: .85;
}
.hero-waves { position: absolute; left: 0; bottom: -1px; width: 200%; height: 160px; }
.hero-waves .w1 { fill: rgba(242, 228, 216, .10); }
.hero-waves .w2 { fill: rgba(242, 228, 216, .16); }
.hero-waves .w3 { fill: var(--shell); }
.hero-in { position: relative; display: grid; gap: 32px; }
.eyebrow { font: 700 .75rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sand); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.9rem, 13vw, 5.4rem); line-height: 1; margin-bottom: 16px; }
.hero h1 em { color: var(--orange-light); }
.hero-sub { font-size: 1.1rem; max-width: 30em; color: var(--sand); }
.hero-price {
  display: inline-grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px;
  margin: 8px 0 24px; padding: 14px 18px;
  background: rgba(11, 46, 51, .35); border: 1px solid rgba(242, 228, 216, .25); border-radius: var(--radius);
}
.hp-lbl { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.hero-price strong { font: 600 2rem/1.1 var(--serif); }
.hp-meta { grid-column: 1 / -1; font-size: .85rem; color: var(--sand); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 220px; }
.hero-note { font-size: .8rem; color: var(--sand); margin: 16px 0 0; }
.hero-fig { margin: 0; position: relative; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero-fig figcaption { position: absolute; left: 12px; bottom: 12px; font-size: .72rem; background: rgba(11, 46, 51, .7); padding: 3px 10px; border-radius: 999px; }

/* ---------- 重点数字 ---------- */
.stats { margin-top: -64px; position: relative; z-index: 2; }
.stats-in {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  padding: 0; max-width: calc(var(--max) - 32px); width: calc(100% - 32px);
}
.stats-in > div { background: var(--white); padding: 18px 16px; text-align: center; }
.stats strong { display: block; font: 600 1.5rem/1.2 var(--serif); color: var(--deep); }
.stats span { font-size: .8rem; color: var(--muted); }

/* ---------- 区块 ---------- */
.sec { padding: 72px 0; }
.sec-sand { background: var(--sand); }
.sec-deep { background: var(--deep); color: var(--white); position: relative; overflow: hidden; }
.sec-deep::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle at 110% -10%, rgba(242, 228, 216, .07) 0 2px, transparent 2px 26px);
}
.sec-deep .wrap { position: relative; }
.sec-deep h2 em { color: var(--orange-light); }
.sec-deep p { color: var(--sand); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--deep); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--coral); border-radius: 2px; }
.kicker-light { color: var(--sand); }
.lead { font-size: 1.1rem; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 20px; }
.fine-light { color: var(--muted); }
.two-col { display: grid; gap: 36px; }

/* ---------- 景观 ---------- */
.views { display: grid; gap: 14px; align-content: start; }
.views-lbl { font-size: .8rem; color: var(--muted); margin: 0; }
.view-card { background: var(--white); border-radius: var(--radius); padding: 20px 22px; border-left: 4px solid var(--teal); box-shadow: var(--shadow); }
.view-card h3 { margin-bottom: 8px; color: var(--deep); }
.view-card ul { margin: 0; padding: 0; list-style: none; }
.view-card li { padding: 6px 0 6px 26px; position: relative; }
.view-card li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 8px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M1 5c2 0 2-3 4.5-3S8 5 10.5 5 13 2 15 2' fill='none' stroke='%23328C8C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- 户型 ---------- */
.units { display: grid; gap: 20px; margin-top: 14px; }
/* 书签：一次只显示一个户型。只有 JS 跑起来（<html class="js">）才藏，没 JS 时四个户型全部照常显示。 */
.js .unit[data-off] { display: none; }
.utabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 28px; } /* minmax(0,…)：四格一样宽，不被价钱撑开 */
.utab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 76px;
  padding: 10px 10px 9px; text-align: left; cursor: pointer;
  background: var(--white); color: var(--ink); border: 2px solid var(--line); border-radius: 12px;
  transition: background-color .15s, border-color .15s;
}
.utab:hover { border-color: var(--teal); }
.utab-code { font: 600 1.35rem/1 var(--serif); }
.utab-name { font-size: .72rem; line-height: 1.25; color: var(--muted); }
.utab-meta { font-size: .7rem; white-space: nowrap; font-weight: 700; margin-top: auto; padding-top: 4px; }
.utab.is-sold .utab-meta { color: var(--coral-text); }
.utab[aria-selected="true"] { background: var(--deep); border-color: var(--deep); color: var(--white); box-shadow: var(--shadow); }
.utab[aria-selected="true"] .utab-name { color: var(--sand); }
.utab[aria-selected="true"].is-sold .utab-meta { color: var(--orange-light); }
.unit { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.unit-plan { display: block; width: 100%; padding: 0; border: 0; background: var(--deep); cursor: zoom-in; position: relative; }
.unit-plan-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.unit-plan-ph {
  aspect-ratio: 16 / 9; display: grid; place-items: center; cursor: default;
  background: linear-gradient(135deg, var(--deep), var(--teal));
}
.unit-plan-ph span { font: 600 3rem/1 var(--serif); color: var(--sand); letter-spacing: .05em; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; font-size: .72rem; color: var(--white); background: rgba(11, 46, 51, .75); padding: 3px 10px; border-radius: 999px; }
.unit-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.unit-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.unit-code { font: 700 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.unit h3 { font-size: 1.45rem; margin-bottom: 10px; }
.unit-spec { list-style: none; margin: 0 0 16px; padding: 0; font-size: .92rem; color: var(--muted); }
.unit-spec li { padding: 3px 0; }
.unit-price { font: 600 1.6rem/1.2 var(--serif); color: var(--ink); margin: auto 0 2px; }
.unit-psf { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.unit.is-sold .unit-price { color: var(--muted); margin-bottom: 16px; }
.unit.is-sold .unit-plan { filter: grayscale(.6); }
.badge { font: 700 .72rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; white-space: nowrap; color: var(--ink); }
.badge-open { background: #D3ECE9; }
.badge-few { background: var(--orange); }
.badge-sold { background: var(--coral); }

/* ---------- 为什么是马六甲 ---------- */
.why { display: grid; gap: 1px; margin-top: 28px; background: rgba(242, 228, 216, .18); border-radius: var(--radius); overflow: hidden; }
.why-item { background: var(--deep); padding: 24px 22px; }
.why-n { font: 400 italic 1.6rem/1 var(--serif); color: var(--orange-light); display: block; margin-bottom: 12px; }
.why-item h3 { color: var(--white); }
.why-item p { margin: 0; }

/* ---------- 设施 ---------- */
.fac { display: grid; gap: 20px; margin-top: 28px; }
.fac-col { background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.fac-col h3 { color: var(--deep); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fac-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.fac-list li { break-inside: avoid; padding: 6px 0 6px 16px; position: relative; font-size: .93rem; }
.fac-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

/* ---------- 图库 ---------- */
.gallery { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-tile { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--deep); }
.g-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-tile:hover .g-img { transform: scale(1.04); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; text-align: left;
  font-size: .76rem; font-weight: 500; color: var(--white);
  background: linear-gradient(transparent, rgba(11, 46, 51, .85));
}
.g-ph { cursor: default; }
.g-ph-0 { background: linear-gradient(140deg, var(--deep), var(--teal)); }
.g-ph-1 { background: linear-gradient(140deg, var(--teal), #6FB3AE); }
.g-ph-2 { background: linear-gradient(140deg, var(--coral), var(--orange)); }
.g-ph-3 { background: linear-gradient(140deg, #134A51, var(--deep)); }

/* 图库：前几张先显示，按「看全部」才展开 */
.gallery:not(.is-all) .is-extra { display: none; }
.gal-more { text-align: center; margin: 22px 0 0; }

/* 两栋楼层图 */
.tps { margin-top: 28px; }
.tps-lbl { font-size: .9rem; color: var(--muted); }
.tps-row { display: grid; gap: 12px; }
.tp { display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--deep); cursor: zoom-in; text-align: left; }
.tp-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tp span { display: block; padding: 10px 14px; color: var(--white); font-weight: 500; font-size: .9rem; }

/* ---------- 360° VR ---------- */
.vr { position: relative; margin-top: 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.vr-poster { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.vr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vr-play {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: 0; color: var(--white); font: 700 1rem/1.3 var(--sans); cursor: pointer;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.vr-icon {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font: 600 1.35rem/1 var(--serif); text-shadow: none;
  box-shadow: 0 0 0 10px rgba(242, 152, 73, .28);
}
.vr-play:hover .vr-icon { background: #F5A862; }
.vr-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: .92rem; }
.sec-deep .vr-links a { color: var(--white); }

/* ---------- 优惠卡 ----------
 * 标签：墨色字 on 珊瑚 5.5:1；内文：墨色 on 白 —— 全部达 4.5:1 */
.promo-wrap { padding: 28px 0 0; }
.promo {
  display: grid; gap: 12px; align-items: center;
  background: var(--white); border: 2px solid var(--coral); border-radius: var(--radius);
  padding: 20px 20px 22px; box-shadow: var(--shadow);
  background-image: linear-gradient(120deg, rgba(242, 129, 87, .10), rgba(242, 152, 73, 0) 60%);
}
.promo-tag { justify-self: start; font: 700 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; background: var(--coral); color: var(--ink); padding: 7px 12px; border-radius: 999px; }
.promo-tx { margin: 0; font-size: 1.02rem; }
.promo-tx strong { color: var(--coral-text); }

/* ---------- 地点 ---------- */
.nearby-lbl { font-size: .8rem; color: var(--muted); margin: 18px 0 8px; }
.nearby { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nearby li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; }
.map-wrap { margin-top: 32px; }
.map { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); background: var(--sand); }
.map-img { width: 100%; }
.dist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.visit { background: var(--deep); color: var(--white); border-radius: var(--radius); padding: 26px 24px; align-self: start; box-shadow: var(--shadow); }
.visit p { color: var(--sand); }

/* ---------- 房贷计算器 ---------- */
.calc { display: grid; gap: 20px; margin-top: 28px; }
.calc-form, .calc-out { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 2px solid var(--line); background: var(--shell); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: .88rem; cursor: pointer; min-height: 40px; }
.chip.is-on { border-color: var(--deep); background: var(--deep); color: var(--white); }
.fld { display: block; margin-bottom: 14px; }
.fld span { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.fld input, .fld select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
  font: 500 1rem/1.2 var(--sans);
}
.fld input:focus, .fld select:focus { border-color: var(--teal); outline: none; }
.fld-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; } /* 标题换行时输入框仍对齐 */
.calc-err { color: var(--coral-text); font-size: .88rem; font-weight: 500; }
.calc-out { background: var(--ink); color: var(--white); }
.co-lbl { font-size: .85rem; color: var(--sand); margin: 0; }
.co-big { font: 600 2.6rem/1.15 var(--serif); margin: 4px 0 16px; color: var(--white); }
.calc-out dl { margin: 0 0 20px; display: grid; gap: 8px; }
.calc-out dl div { display: flex; justify-content: space-between; border-top: 1px solid rgba(242, 228, 216, .2); padding-top: 8px; }
.calc-out dt { color: var(--sand); font-size: .9rem; }
.calc-out dd { margin: 0; font-weight: 700; }
.calc-out .fine { color: #9FBFBF; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font: 600 1.05rem/1.4 var(--sans); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--deep); border-bottom: 2px solid var(--deep); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-item p { color: var(--muted); padding-right: 24px; }

/* ---------- 登记表 ---------- */
.reg { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); display: grid; gap: 4px; }
.reg .btn-ghost-light { color: var(--deep); border-color: var(--deep); margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agent { font-size: .95rem; line-height: 1.8; border-left: 3px solid var(--orange); padding-left: 14px; }

/* ---------- 页尾 ---------- */
.ftr { background: var(--ink); color: var(--sand); padding: 48px 0 32px; font-size: .9rem; }
.ftr a { color: var(--white); }
.brand-light { color: var(--white); }
.brand-light .brand-mark { color: var(--orange); }
.brand-light small { color: #9FBFBF; }
.ftr-top { display: grid; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(242, 228, 216, .15); margin-bottom: 20px; }
.ftr-top p { margin: 0; }
.disclaimer { font-size: .78rem; color: #9FBFBF; line-height: 1.7; }
.copy { font-size: .8rem; color: #9FBFBF; margin: 0; }

/* ---------- 手机底部固定按钮 ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 244, 238, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.dock .btn { flex: 1; }
.dock-price { flex: 1; font-size: .8rem; color: var(--muted); text-align: right; line-height: 1.2; }
.dock-price strong { display: block; font: 600 1.15rem/1.2 var(--serif); color: var(--ink); }

/* ---------- 弹窗（图片放大、微信） ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(11, 46, 51, .82); }
.lb { background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lb img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lb p { color: var(--white); text-align: center; font-size: .9rem; margin: 10px 0 0; }
.lb-x {
  position: absolute; top: -48px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.wx { width: min(400px, 92vw); background: var(--shell); color: var(--ink); border-radius: var(--radius); padding: 28px 24px 24px; text-align: center; overflow: visible; }
.wx .lb-x { top: 10px; right: 10px; background: transparent; }
.wx img { width: 100%; max-width: 220px; margin: 6px auto 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.wx-p { font-size: .88rem; color: var(--muted); }
.wx-id { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.05rem; }

/* ---------- 平板以上 ---------- */
@media (min-width: 640px) {
  .stats-in { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tps-row { grid-template-columns: 1fr 1fr; }
  .vr { aspect-ratio: 16 / 9; }
  .fac-list { columns: 2; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .nav { display: flex; gap: 22px; }
  .nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
  .nav a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--coral); }
  .hdr .btn-cta span { display: inline; }
  .hdr .btn-cta { width: auto; padding: 6px 16px; }
  .hero { padding: 96px 0 170px; }
  .hero-in.has-photo { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  /* 桌面版：文字栏限宽，太阳放在右边空白处，不压在按钮后面。 */
  .hero-copy { max-width: 600px; }
  .sun { width: 340px; height: 340px; right: 4%; top: 70px; bottom: auto; }
  .hero-waves { height: 220px; }
  .stats { margin-top: -90px; }
  .sec { padding: 104px 0; }
  .two-col { grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
  .why { grid-template-columns: repeat(4, 1fr); }
  .fac { grid-template-columns: 1.4fr 1fr; }
  .fac-col:first-child .fac-list { columns: 3; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .calc { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .promo { grid-template-columns: auto 1fr auto; gap: 20px; padding: 18px 22px; }
  /* 户型书签：电脑版左边大户型图、右边资料 */
  .utabs { gap: 10px; }
  .utab { padding: 14px 16px; min-height: 92px; }
  .utab-code { font-size: 1.6rem; }
  .utab-name, .utab-meta { font-size: .85rem; }
  .unit { display: grid; grid-template-columns: 1.6fr 1fr; }
  .unit-plan, .unit-plan-img { height: 100%; }
  .unit-plan-img { object-fit: contain; background: var(--deep); }
  .unit-body { padding: 32px 30px; }
}

/* ---------- 动态：海浪慢慢飘、太阳微微发光 —— 关掉动画的人完全不动 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-waves .w1 { animation: drift 18s linear infinite; }
  .hero-waves .w2 { animation: drift 26s linear infinite reverse; }
  .sun { animation: glow 8s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes glow { from { opacity: .7; transform: scale(1); } to { opacity: .9; transform: scale(1.04); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .g-img { transition: none; }
}
