:root {
  --ink: #191919;
  --muted: #6e6b64;
  --paper: #f2f0ea;
  --surface: #fbfaf7;
  --white: #fff;
  --line: rgba(25, 25, 25, 0.11);
  --gold: #a88757;
  --gold-soft: #e6d4b5;
  --shadow: 0 24px 70px rgba(42, 35, 25, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  font-family: Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 6% 0%, rgba(216, 196, 159, 0.24), transparent 30rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

button, a, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.section-shell {
  width: min(1460px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 13px max(24px, calc((100vw - 1460px) / 2));
  border-bottom: 1px solid rgba(25, 25, 25, 0.07);
  background: rgba(242, 240, 234, 0.78);
  backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 3px;
  padding: 9px;
  border-radius: 12px;
  background: var(--ink);
}

.brand-mark i { border-radius: 3px; background: var(--gold-soft); }
.brand-mark i:nth-child(2) { border-radius: 50%; }
.brand-mark i:nth-child(3) { border-radius: 50%; }

.brand b {
  display: block;
  font-size: 15px;
  letter-spacing: .04em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .18em;
}

.header-actions { display: flex; gap: 8px; }

.quiet-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.quiet-button:hover { transform: translateY(-1px); background: var(--white); }
.quiet-button svg, .lightbox-actions svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(310px, auto) 118px;
  gap: 16px;
  padding-top: 28px;
}

.bento-panel {
  overflow: hidden;
  border: 1px solid rgba(25, 25, 25, .08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--shadow);
}

.hero-copy {
  grid-column: span 5;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 610px;
  padding: clamp(34px, 5vw, 74px);
  background:
    radial-gradient(circle at 84% 12%, rgba(203, 180, 139, .45), transparent 16rem),
    #fbfaf7;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

h1, h2 { margin: 0; font-weight: 560; letter-spacing: -.055em; }
h1 { font-size: clamp(48px, 5.8vw, 92px); line-height: .98; }
h2 { font-size: clamp(38px, 4.2vw, 66px); line-height: 1.04; }

.hero-lede {
  max-width: 440px;
  margin: 32px 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.75;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 18px 13px 21px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-size: 13px;
}

.primary-link span { color: var(--gold-soft); font-size: 18px; }

.hero-visual {
  grid-column: span 7;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #d6d0c4;
}

.hero-shot { position: relative; min-height: 0; margin: 0; overflow: hidden; border-radius: calc(var(--radius-xl) - 5px); }
.hero-shot-main { grid-row: span 2; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.75,.2,1); }
.hero-shot:hover img { transform: scale(1.025); }
.hero-shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(15,15,15,.35);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.project-stat {
  grid-column: span 4;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 28px;
}

.stat-number { font-size: 32px; font-weight: 560; letter-spacing: -.05em; }
.stat-label { color: var(--muted); font-size: 11px; }
.stat-divider { width: 1px; height: 38px; background: var(--line); }

.privacy-card {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 24px 26px;
  background: #20201e;
  color: white;
}

.privacy-card p { margin: 5px 0 0; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.5; }
.privacy-orb { width: 42px; aspect-ratio: 1; flex: none; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #f9e9ca 0 14%, #ba9764 15% 47%, #625139 48% 100%); box-shadow: 0 0 38px rgba(229,199,148,.35); }

.collection { padding-top: 130px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading > p { max-width: 470px; margin: 0 0 7px; color: var(--muted); line-height: 1.7; }

.floor-filter {
  position: sticky;
  top: 94px;
  z-index: 40;
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 34px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid rgba(25,25,25,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 34px rgba(30,25,20,.06);
  backdrop-filter: blur(18px);
}

.filter-button {
  flex: none;
  padding: 11px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  transition: background .2s ease, color .2s ease;
}

.filter-button span { margin-left: 7px; opacity: .5; font-size: 10px; }
.filter-button.is-active { color: #fff; background: var(--ink); }

.rooms { display: grid; gap: 28px; }

.room-card {
  padding: clamp(18px, 2vw, 30px);
  border: 1px solid rgba(25,25,25,.08);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.room-card.is-visible { opacity: 1; transform: none; }
.room-card[hidden] { display: none; }

.room-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 4px 22px;
}

.room-index { display: block; margin-bottom: 6px; color: var(--gold); font-size: 10px; letter-spacing: .16em; }
.room-card h3 { margin: 0; font-size: clamp(28px, 3vw, 46px); font-weight: 540; letter-spacing: -.04em; }
.room-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.room-meta span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; }

.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, .8fr);
  gap: 14px;
}

.compare-card, .lamp-panel { border-radius: var(--radius-lg); overflow: hidden; background: #e8e5de; }
.compare-card { position: relative; }

.compare {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #d7d1c7;
  cursor: ew-resize;
}

.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { clip-path: inset(0 calc(100% - var(--split)) 0 0); }

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare-line {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 18px rgba(0,0,0,.2);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: white;
  background: rgba(20,20,20,.52);
  backdrop-filter: blur(12px);
  transform: translate(-50%,-50%);
  font-size: 18px;
}

.compare-label {
  position: absolute;
  z-index: 2;
  top: 15px;
  padding: 8px 11px;
  border-radius: 999px;
  color: white;
  background: rgba(15,15,15,.42);
  backdrop-filter: blur(10px);
  font-size: 10px;
  letter-spacing: .08em;
  pointer-events: none;
}

.compare-label-before { left: 15px; }
.compare-label-after { right: 15px; }

.media-watermark::after {
  content: "浪琴湾21栋 · 仅供方案确认";
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(15,15,15,.24);
  font-size: 9px;
  letter-spacing: .08em;
  pointer-events: none;
}

.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  background: #242321;
  color: white;
}

.compare-toolbar > span { color: rgba(255,255,255,.58); font-size: 11px; }
.view-buttons { display: flex; gap: 7px; }
.view-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.07);
  cursor: pointer;
  font-size: 11px;
}
.view-button:hover { background: rgba(255,255,255,.14); }
.view-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.lamp-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #dedad1;
}

.lamp-card {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: minmax(190px, 1fr) auto;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  border: 0;
  border-radius: calc(var(--radius-lg) - 8px);
  background: #fff;
  cursor: zoom-in;
  text-align: left;
}

.lamp-card-image { display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lamp-card img { width: 100%; height: 100%; max-height: 280px; object-fit: contain; transition: transform .5s cubic-bezier(.2,.75,.2,1); }
.lamp-card:hover img { transform: scale(1.035); }
.lamp-card-caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 12px 8px 5px; }
.lamp-card-caption b { display: block; font-size: 13px; font-weight: 560; }
.lamp-card-caption small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.lamp-card-caption span { color: var(--gold); font-size: 17px; }
.lamp-badge { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 6px 8px; border-radius: 999px; background: #1e1e1c; color: white; font-size: 9px; }

.closing {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  padding-top: 130px;
}

.closing-copy, .closing-note { min-height: 330px; padding: clamp(34px, 5vw, 74px); border-radius: var(--radius-xl); }
.closing-copy { color: white; background: #1d1d1b; }
.closing-copy h2 { color: #f6f2e9; }
.closing-note { display: flex; flex-direction: column; justify-content: space-between; background: var(--gold-soft); }
.closing-note p { max-width: 500px; margin: 0; font-size: 18px; line-height: 1.8; }
.closing-note span { color: rgba(25,25,25,.55); font-size: 11px; letter-spacing: .13em; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 46px; padding-bottom: 46px; color: var(--muted); font-size: 11px; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: white;
  background: rgba(13,13,13,.97);
}

.lightbox::backdrop { background: rgba(10,10,10,.72); backdrop-filter: blur(14px); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox-bar { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.lightbox-bar b { display: block; margin-top: 4px; font-size: 13px; }
.lightbox-kicker { color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .14em; }
.lightbox-actions { display: flex; align-items: center; gap: 6px; }
.lightbox-actions button { display: grid; place-items: center; width: 39px; height: 39px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: white; background: rgba(255,255,255,.07); cursor: pointer; font-size: 20px; }
.lightbox-actions button:hover { background: rgba(255,255,255,.14); }
.lightbox-actions #zoomValue { min-width: 48px; color: rgba(255,255,255,.58); font-size: 10px; text-align: center; }
.lightbox-close { margin-left: 5px; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 24px 72px; overflow: auto; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform: scale(var(--zoom, 1)); transform-origin: center; transition: transform .2s ease; }
.lightbox-watermark { position: fixed; right: 26px; bottom: 22px; z-index: 5; color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .1em; pointer-events: none; }
.lightbox-nav { position: fixed; z-index: 5; top: 50%; display: grid; place-items: center; width: 46px; height: 62px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: white; background: rgba(255,255,255,.07); cursor: pointer; transform: translateY(-50%); font-size: 30px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.privacy-popover, .toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  color: white;
  background: rgba(25,25,25,.92);
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}

.privacy-popover { top: 74px; max-width: 330px; }
.privacy-popover b, .privacy-popover span { display: block; }
.privacy-popover b { margin-bottom: 5px; font-size: 12px; }
.privacy-popover span { color: rgba(255,255,255,.6); font-size: 10px; line-height: 1.6; }
.toast { bottom: 24px; max-width: min(420px, calc(100vw - 48px)); font-size: 11px; }
.privacy-popover.is-visible, .toast.is-visible { opacity: 1; transform: none; }

.privacy-screen { display: none; position: fixed; inset: 0; z-index: 9999; place-items: center; color: white; background: #161614; font-size: 12px; letter-spacing: .18em; }
body.is-private .privacy-screen { display: grid; }

@media print {
  body > * { display: none !important; }
  body::after { content: "此方案禁止打印"; display: grid; place-items: center; height: 100vh; }
}

@media (max-width: 980px) {
  .hero { grid-template-rows: auto; }
  .hero-copy { grid-column: span 12; grid-row: auto; min-height: 520px; }
  .hero-visual { grid-column: span 12; min-height: 440px; }
  .project-stat { grid-column: span 7; }
  .privacy-card { grid-column: span 5; }
  .room-grid { grid-template-columns: 1fr; }
  .lamp-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lamp-panel .lamp-card:only-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 24px, 1460px); }
  .site-header { min-height: 70px; padding-inline: 12px; }
  .brand small, .privacy-info, .back-to-works { display: none; }
  .quiet-button { padding-inline: 12px; }
  .hero { gap: 10px; padding-top: 12px; }
  .hero-copy { min-height: 430px; padding: 30px; }
  .hero-visual { min-height: 370px; grid-template-columns: 1.4fr 1fr; }
  .project-stat { grid-column: span 12; }
  .privacy-card { grid-column: span 12; }
  .collection, .closing { padding-top: 86px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .floor-filter { top: 78px; margin-inline: 0; }
  .room-card { border-radius: 24px; }
  .room-card-header { align-items: flex-start; flex-direction: column; }
  .room-meta { width: 100%; justify-content: space-between; }
  .compare-toolbar { align-items: flex-start; flex-direction: column; }
  .view-buttons { width: 100%; }
  .view-button { flex: 1; justify-content: center; }
  .lamp-panel { grid-template-columns: 1fr; }
  .lamp-panel .lamp-card:only-child { grid-column: auto; }
  .closing { grid-template-columns: 1fr; }
  .closing-copy, .closing-note { min-height: 280px; padding: 34px 28px; }
  .site-footer { flex-direction: column; }
  .lightbox-bar { align-items: flex-start; }
  .lightbox-bar > div:first-child { max-width: 38vw; }
  .lightbox-actions #zoomValue { display: none; }
  .lightbox-stage { padding: 20px 48px; }
  .lightbox-nav { width: 36px; height: 52px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
