:root {
  --ink: #161410;
  --ink-soft: #3a342c;
  --cream: #f3eee6;
  --paper: #faf7f2;
  --gold: #b0894d;
  --gold-deep: #8c6a35;
  --line: rgba(22, 20, 16, 0.12);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --latin: "Cormorant Garamond", "Noto Serif SC", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.cursor {
  display: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.eyebrow {
  font-family: var(--latin);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-deep);
  margin-bottom: 0.8rem;
}

.num {
  display: block;
  font-family: var(--latin);
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border: 1px solid transparent;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.4s var(--ease);
}

.btn-light {
  color: var(--cream);
  border-color: rgba(243, 238, 230, 0.55);
  background: transparent;
}

.btn-light:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

.btn-dark:hover {
  background: var(--gold-deep);
}

.btn-gold {
  width: 100%;
  background: var(--gold);
  color: var(--paper);
  border: 0;
}

.btn-gold:hover {
  background: var(--gold-deep);
}

.plain-list {
  list-style: none;
  margin: 1.6rem 0;
}

.plain-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.4rem;
  color: var(--cream);
  transition: 0.45s var(--ease);
}

.site-header.scrolled,
.site-header.open {
  background: rgba(22, 20, 16, 0.88);
  backdrop-filter: blur(16px);
  color: var(--cream);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.logo-text {
  font-family: var(--latin);
  letter-spacing: 0.22em;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}

.nav a {
  position: relative;
}

.nav a:hover {
  color: var(--gold);
}

.nav-cta {
  border: 1px solid currentColor;
  padding: 0.45rem 0.9rem;
}

/* 解谜数字徽章 */
.nav .puzzle-badge {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--latin);
  font-size: 0.8rem;
  line-height: 1;
  color: var(--cream);
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}

.nav.puzzle-active .puzzle-badge {
  opacity: 1;
}

.nav.puzzle-active a.done .puzzle-badge {
  background: var(--gold);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: currentColor;
}

.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { bottom: 16px; }

.hero {
  position: relative;
  min-height: 100vh;
  color: var(--cream);
  display: grid;
  align-items: end;
  padding: 8rem 6vw 4.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 14, 10, 0.28) 0%, rgba(16, 14, 10, 0.55) 100%),
    linear-gradient(90deg, rgba(16, 14, 10, 0.35), transparent 45%);
}

.hero-side {
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  letter-spacing: 0.42em;
  font-family: var(--latin);
  font-size: 0.78rem;
  opacity: 0.72;
}

.hero-copy {
  position: relative;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  margin-bottom: 1.2rem;
}

.hero-lead {
  max-width: 28rem;
  margin-bottom: 2rem;
  font-size: 1.02rem;
  color: rgba(243, 238, 230, 0.86);
}

.scroll-hint {
  position: absolute;
  right: 6vw;
  bottom: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.scroll-hint i {
  width: 1px;
  height: 48px;
  background: currentColor;
  animation: drip 1.8s var(--ease) infinite;
}

@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

.story,
.rooms,
.moments,
.stay {
  padding: 7.5rem 6vw;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.story h2,
.dining h2,
.wellness h2,
.visit h2,
.stay h2,
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.story-body p + p {
  margin-top: 1.1rem;
}

.story-body blockquote {
  margin-top: 1.8rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.story-photo figcaption {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.story-photo img,
.dining-visual img,
.wellness-visual img,
.visit-map img,
.room-image img,
.moment-grid img {
  width: 100%;
  height: 100%;
}

.story-photo img {
  height: min(72vh, 760px);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-lead {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.room {
  background: #fff;
}

.room.featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  margin-bottom: 1.2rem;
  min-height: 520px;
}

.room-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.room-image {
  overflow: hidden;
  min-height: 280px;
}

.room-image img {
  height: 100%;
  transition: transform 1.1s var(--ease);
}

.room:hover .room-image img {
  transform: scale(1.05);
}

.room-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.room-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.room-info ul {
  list-style: none;
  margin: 1.2rem 0 auto;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.room-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.room-foot a {
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.dining,
.wellness,
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.dining-copy,
.wellness-copy,
.visit-copy {
  padding: 5rem 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dining-visual,
.wellness-visual,
.visit-map {
  overflow: hidden;
  min-height: 420px;
}

.hours {
  margin-top: 2rem;
}

.hours div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.hours dt {
  font-family: var(--serif);
}

.wellness {
  background: var(--cream);
}

.moments {
  background: var(--ink);
  color: var(--cream);
}

.moments .section-lead,
.moments .eyebrow {
  color: rgba(243, 238, 230, 0.7);
}

.moment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.moment-grid article h3 {
  margin: 1rem 0 0.4rem;
}

.moment-grid img {
  height: 280px;
  filter: saturate(0.85);
}

/* ---------- 文档页 ---------- */
.doc-page {
  min-height: 100vh;
  background:
    repeating-linear-gradient(0deg, rgba(22, 20, 16, 0.025) 0 1px, transparent 1px 34px),
    var(--paper);
  display: grid;
  place-items: center;
  padding: 6rem 1.4rem;
}

.doc {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 3rem 3.5rem;
  box-shadow: 0 30px 60px -30px rgba(22, 20, 16, 0.35);
}

.doc-head {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1.6rem;
  margin-bottom: 2rem;
}

.doc-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.doc-no {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.doc-body p {
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}

.doc-body blockquote {
  margin: 1.8rem 0;
  padding: 1rem 1.4rem;
  border-left: 1px solid var(--gold);
  background: var(--cream);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.doc-continue {
  text-align: right;
  font-family: var(--serif);
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin-top: 1.6rem;
  opacity: 0.75;
}

.doc-foot {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
}

.doc-foot .btn-gold {
  width: auto;
}

@media (max-width: 980px) {
  .doc {
    padding: 2rem 1.5rem;
  }

  .doc-foot {
    flex-direction: column;
  }

  .doc-foot .btn-gold {
    width: 100%;
  }
}

/* ---------- 内部文档系统 ---------- */
.docs {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 3rem 3.5rem;
  box-shadow: 0 30px 60px -30px rgba(22, 20, 16, 0.35);
}

.docs-head {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
}

.docs-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.docs-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.doc-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  transition: 0.3s var(--ease);
}

.doc-item:hover {
  border-color: var(--gold);
  background: var(--cream);
}

.doc-item-name {
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

.doc-item-ext {
  font-family: var(--latin);
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  flex-shrink: 0;
}

.docs-foot {
  margin-top: 2rem;
}

/* ---------- 模态框 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background: rgba(16, 14, 10, 0.6);
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow: 0 40px 80px -30px rgba(22, 20, 16, 0.5);
}

.modal-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.modal h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.modal-text {
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-actions .btn {
  width: auto;
  min-width: 96px;
}

@media (max-width: 980px) {
  .docs {
    padding: 2rem 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

.stay {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  background: var(--cream);
}

address {
  font-style: normal;
  margin-top: 2rem;
  line-height: 2;
}

address a {
  border-bottom: 1px solid var(--gold);
}

.stay-form {
  background: #fff;
  padding: 2.2rem;
  display: grid;
  gap: 1rem;
}

.stay-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.stay-form input,
.stay-form select,
.stay-form textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.85rem 0.9rem;
  outline: none;
  font-size: 16px; /* 防止 iOS 聚焦时自动缩放 */
}

.stay-form input:focus,
.stay-form select:focus,
.stay-form textarea:focus {
  border-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--gold-deep);
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3.5rem 6vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-quote {
  font-family: var(--serif);
  text-align: center;
}

.footer-copy {
  text-align: right;
  font-size: 0.82rem;
  opacity: 0.7;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    font-size: 1.2rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }

  .site-header.open .nav {
    transform: none;
  }

  .story-grid,
  .room.featured,
  .room-row,
  .dining,
  .wellness,
  .visit,
  .stay,
  .moment-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 7rem 1.4rem 3.5rem;
  }

  .hero-side,
  .scroll-hint {
    display: none;
  }

  .story,
  .rooms,
  .moments,
  .stay,
  .dining-copy,
  .wellness-copy,
  .visit-copy {
    padding: 4.5rem 1.4rem;
  }

  .site-header {
    padding: 1rem 1.2rem;
  }

  .stay-form,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-quote,
  .footer-copy {
    text-align: left;
  }

  .moment-grid img {
    height: 220px;
  }

  .nav .puzzle-badge {
    position: static;
    transform: none;
    display: inline-grid;
    margin-left: 0.6rem;
    vertical-align: middle;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .doc-item {
    flex-wrap: wrap;
  }

  .doc-item-name {
    word-break: break-all;
  }

  .room-foot {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .room-info {
    padding: 1.5rem;
  }

  .hours div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .story-photo img {
    height: 60vh;
  }

  .logo-text {
    letter-spacing: 0.12em;
    font-size: 0.78rem;
  }
}
