/* ============ 基础 ============ */
:root {
  --bg: #f7f5f0;
  --ink: #17171a;
  --ink-soft: #4a4a45;
  --muted: #8d887c;
  --line: #e3dfd4;
  --card: #ffffff;
  --accent: #1f3d33;
  --accent-soft: #e8ede9;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

section[id], main > section { scroll-margin-top: 76px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ============ 导航 ============ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

/* 手机端分组切换条 */
.subnav {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.subnav-inner {
  display: flex;
  gap: 8px;
  padding: 10px 16px 11px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.subnav-inner::-webkit-scrollbar { display: none; }

.subnav-item {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--ink-soft);
  background: #eeede6;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, color .2s;
}

.subnav-item.active {
  background: var(--accent);
  color: #f4f2ec;
}

.nav.solid {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: baseline; gap: 10px; }

.brand-cn {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 600;
}

.brand-en {
  font-size: 10px;
  letter-spacing: 3px;
  color: #75726a;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }

.nav-links a { color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink) !important;
  font-size: 13px;
  transition: background .25s, color .25s;
}

.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }

/* ============ 首屏 ============ */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(20px, 5vw, 56px) 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .62;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 245, 240, .34) 0%,
    rgba(247, 245, 240, .58) 38%,
    rgba(247, 245, 240, .90) 80%,
    #f7f5f0 100%
  );
  pointer-events: none;
}

.hero-inner, .hero-foot { position: relative; z-index: 1; }

.hero-inner { max-width: 900px; }

.hero-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: 2px;
  white-space: pre-line;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.9;
  white-space: pre-line;
}

.hero-en {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.7vw, 21px);
  letter-spacing: 1px;
  color: #6f6c62;
}

.hero-foot {
  position: absolute;
  left: clamp(20px, 5vw, 56px);
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-line { width: 56px; height: 1px; background: var(--muted); display: block; }

.hero-scroll {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
}

/* ============ 关于 ============ */
.about {
  padding: clamp(30px, 5vw, 70px) clamp(20px, 5vw, 56px) clamp(70px, 10vw, 130px);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(200px, 290px) 1fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
  max-width: 1120px;
}

.about-aside {
  position: sticky;
  top: 104px;
}

.about-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--muted);
  margin-bottom: 20px;
}

.about-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.32;
  letter-spacing: 5px;
  font-weight: 600;
}

.about-lead {
  margin-top: 26px;
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-soft);
}

.about-body { display: grid; }

.about-item {
  padding-bottom: clamp(28px, 3.4vw, 40px);
  margin-bottom: clamp(28px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.about-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.about-item-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.about-no {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent);
}

.about-en {
  font-size: 10px;
  letter-spacing: 3.5px;
  color: var(--muted);
}

.about-item-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: 2px;
  margin: 16px 0 18px;
}

.about-item-text {
  font-size: 15px;
  line-height: 2.15;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ============ 房型 ============ */
.rooms { padding: 0 clamp(20px, 5vw, 56px) clamp(70px, 10vw, 140px); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: 6px;
}

.section-count { font-size: 12px; letter-spacing: .5px; color: var(--muted); }

/* 横向图片条 */
.strip {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.strip::-webkit-scrollbar { display: none; }

.strip-item {
  flex: 0 0 auto;
  width: clamp(260px, 31vw, 420px);
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  padding: 0;
  display: block;
  cursor: pointer;
  background: #e9e5dc;
  scroll-snap-align: start;
  box-shadow: 0 1px 2px rgba(30, 26, 20, .05);
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.strip-item:hover img { transform: scale(1.04); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
}

.card {
  display: block;
  cursor: pointer;
  background: var(--card);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 26, 20, .04);
  transition: box-shadow .4s ease, transform .4s ease;
}

.card:hover {
  box-shadow: 0 18px 44px -12px rgba(30, 26, 20, .22);
  transform: translateY(-3px);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9e5dc;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

.card:hover .card-media img { transform: scale(1.045); }

.card-media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, #ece8df 0 10px, #e5e1d7 10px 20px);
}

.card-media.is-empty span {
  font-size: 12px;
  letter-spacing: 3px;
  color: #a9a396;
  background: rgba(247, 245, 240, .82);
  padding: 8px 16px;
  border-radius: 2px;
}

.card-body {
  padding: 22px 24px 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.card-name {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: 1px;
}

.card-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .5px;
}

.card-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  white-space: nowrap;
  padding-bottom: 4px;
}

/* ============ 联系 ============ */
.contact {
  background: var(--accent);
  color: #f2f0ea;
  padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 56px);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
}

.contact-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(242, 240, 234, .5);
  margin-bottom: 22px;
}

.contact-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: 3px;
}

.contact-text {
  margin-top: 22px;
  font-size: 15px;
  line-height: 2;
  color: rgba(242, 240, 234, .78);
  white-space: pre-line;
}

.contact-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 1px;
  background: #f2f0ea;
  color: var(--accent);
  transition: transform .2s, opacity .2s;
}

.btn:hover { transform: translateY(-1px); opacity: .92; }

.btn-ghost {
  background: transparent;
  color: #f2f0ea;
  border: 1px solid rgba(242, 240, 234, .38);
}

.contact-right { display: grid; gap: 18px; }

.meta-row {
  border-top: 1px solid rgba(242, 240, 234, .18);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.meta-key { color: rgba(242, 240, 234, .48); letter-spacing: 2px; }
.meta-val { text-align: right; color: rgba(242, 240, 234, .92); }

/* ============ 页脚 ============ */
.foot {
  padding: 26px clamp(20px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ============ 图片浏览层 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0c0c0c;
  display: none;
  flex-direction: column;
  padding: 0;
  opacity: 0;
  transition: opacity .28s ease;
  touch-action: none;
  overscroll-behavior: contain;
}

.lightbox.open { display: flex; }
.lightbox.visible { opacity: 1; }

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(16px, 8vw, 110px) 8px;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.lb-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .25s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  touch-action: none;
  will-change: transform;
}

.lb-img.loaded { opacity: 1; }

.lb-btn {
  position: absolute;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, .07);
  transition: background .2s;
}

.lb-btn:hover { background: rgba(255, 255, 255, .17); }

.lb-close { top: 18px; right: 18px; font-size: 26px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px clamp(20px, 8vw, 110px) 14px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  letter-spacing: 2px;
}

.lb-title { font-family: var(--serif); font-size: 15px; color: rgba(255, 255, 255, .9); }

.lb-thumbs {
  display: flex;
  gap: 8px;
  padding: 0 clamp(20px, 8vw, 110px) calc(22px + env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
}

.lb-thumbs::-webkit-scrollbar { display: none; }

.lb-thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 50px;
  object-fit: cover;
  border-radius: 2px;
  opacity: .38;
  cursor: pointer;
  transition: opacity .2s, outline .2s;
  outline: 1px solid transparent;
}

.lb-thumb.active { opacity: 1; outline-color: rgba(255, 255, 255, .85); }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  /* 顶部：品牌 + 分组切换，常驻实色 */
  .nav { background: var(--bg); padding: 14px 20px; }
  .subnav { display: block; }
  .brand-cn { font-size: 19px; }

  /* 首屏压缩，让人尽快看到房型 */
  .hero {
    min-height: 0;
    padding: 142px 22px 44px;
  }
  .hero-bg { opacity: .2; }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(247, 245, 240, .84) 0%,
      rgba(247, 245, 240, .92) 42%,
      rgba(247, 245, 240, .97) 74%,
      #f7f5f0 100%
    );
  }
  .hero-kicker { display: none; }
  .hero-title { font-size: clamp(32px, 9.2vw, 42px); line-height: 1.3; letter-spacing: 1px; }
  .hero-sub { margin-top: 20px; font-size: 14px; line-height: 1.95; }
  .hero-en { margin-top: 14px; font-size: 14px; letter-spacing: .5px; color: #75726a; }
  .hero-foot { display: none; }

  /* 关于：收紧 */
  .about { padding: 6px 22px 52px; }
  .about-inner { grid-template-columns: 1fr; gap: 26px; }
  .about-aside { position: static; }
  .about-kicker { margin-bottom: 12px; }
  .about-title { font-size: 28px; letter-spacing: 3px; }
  .about-lead { margin-top: 14px; font-size: 13.5px; line-height: 1.95; }
  .about-item { padding-bottom: 22px; margin-bottom: 22px; }
  .about-no { font-size: 12px; }
  .about-en { font-size: 9px; letter-spacing: 2.5px; }
  .about-item-title { font-size: 19px; letter-spacing: 1px; margin: 10px 0 10px; }
  .about-item-text { font-size: 14.5px; line-height: 1.95; }

  /* 房型 */
  .rooms { padding: 0 18px 52px; }
  .section-head { margin-bottom: 22px; padding-bottom: 14px; gap: 12px; }
  .section-title { font-size: 25px; letter-spacing: 2px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { border-radius: 4px; }
  .card-body { padding: 15px 17px 17px; }
  .card-name { font-size: 20px; }
  .card-sub { margin-top: 6px; font-size: 12.5px; }
  .card-meta { font-size: 11px; }
  .strip { margin: 0; padding: 0 0 6px; gap: 10px; }
  .strip-item { width: 84vw; }

  /* 联系：按钮通栏 */
  .contact { padding: 52px 22px 56px; }
  .contact-inner { grid-template-columns: 1fr; align-items: start; gap: 32px; }
  .contact-title { font-size: 30px; letter-spacing: 2px; }
  .contact-text { font-size: 14px; line-height: 1.9; margin-top: 16px; }
  .contact-actions { flex-direction: column; gap: 10px; margin-top: 26px; }
  .btn { width: 100%; padding: 16px 20px; font-size: 15px; }
  .meta-row { font-size: 12.5px; }

  .foot { flex-direction: column; gap: 6px; padding: 22px; }

  /* 看图：靠点击左右半屏翻页 */
  .lb-prev, .lb-next { display: none; }
  .lb-stage { padding: 14px 8px 6px; }
  .lb-bar { padding: 8px 18px 10px; }
  .lb-thumb { width: 54px; height: 40px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 480px) {
  .brand-en { font-size: 8px; letter-spacing: 2px; }
  .card-body { padding: 18px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
