/* ---------- Tokens & base ---------- */
:root {
  --color-heading-rgb: 116, 94, 70;
  --color-body-rgb: 101, 78, 54;
  --color-panel-rgb: 246, 240, 229;
  --color-page-rgb: 32, 34, 30;
  --color-on-image-rgb: 255, 255, 255;
  --color-shadow-rgb: 25, 23, 19;
  --color-heading: rgb(var(--color-heading-rgb));
  --color-body: rgb(var(--color-body-rgb));
  --color-panel: rgb(var(--color-panel-rgb));
  --color-page: rgb(var(--color-page-rgb));
  --color-on-image: rgb(var(--color-on-image-rgb));
  --rule-color: rgba(var(--color-heading-rgb), 0.3);
  --header-h: 112px;
  --hero-more-h: 72px;
  --hero-content-max: 1040px;
  --content-max: 48em;
  --hero-progress: 0;
  --hero-label-opacity: 0.5;
  --price-border-alpha: 0.5;
  --cta-padding-y: 18px;
  --cta-padding-x: 64px;
  --content-opacity: 0;
  --hero-shift: 0px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Serif SC Variable", "Songti SC", "STSong", "SimSun", serif;
  color: var(--color-body);
  background: var(--color-page);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: none; height: 1px; background: var(--rule-color); }
strong { font-weight: 700; }

.rule--short { width: 32px; margin: 32px 0; }
.rule--full { margin: 2em 0 3em; }

/* logo text */
.logo--large .logo-cn,
.logo--large .logo-sub {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1em;
  font-weight: 700;
}
.logo--large .logo-cn { font-size: var(--logo-cn-size, 64px); font-weight: 900; }
.logo--large .logo-sub { font-size: var(--logo-sub-size, 32px); opacity: 0.5; }

.hero__fact-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  opacity: 0.5;
}

.hero__facts--booking .hero__fact-label { opacity: var(--hero-label-opacity); }

/* Thin vertical splitter; component-specific margins define its spacing. */
.v-divider {
  align-self: stretch;
  width: 1px;
  flex-shrink: 0;
  background: var(--rule-color);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--cta-padding-y) var(--cta-padding-x);
  background: rgba(var(--color-on-image-rgb), 0.16);
  color: var(--color-on-image);
  font-family: inherit;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.15em;
  border-radius: 6px;
  border: 1px solid rgba(var(--color-on-image-rgb), 0.4);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn__icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.btn:hover .btn__icon,
.btn:focus-visible .btn__icon { opacity: 1; }

.price-line {
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.9;
  border-top: 1px dashed rgba(var(--color-on-image-rgb), var(--price-border-alpha));
  border-bottom: 1px dashed rgba(var(--color-on-image-rgb), var(--price-border-alpha));
}

/* ---------- Fixed background and hero handoff ---------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(var(--color-page-rgb), 0.4) 0%, rgba(var(--color-page-rgb), 0.04) 62%);
}

.header-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 40;
  overflow: hidden;
  opacity: 0;
  border-bottom: 1px solid transparent;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.header-bg.is-visible {
  opacity: 1;
  border-bottom-color: rgba(var(--color-on-image-rgb), 0.7);
}

.header-bg__img {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  max-width: none;
  object-fit: cover;
  object-position: 70% center;
}

.header-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  background: linear-gradient(100deg, rgba(var(--color-page-rgb), 0.4) 0%, rgba(var(--color-page-rgb), 0.04) 62%);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  color: var(--color-on-image);
  overflow: visible;
}

.hero__main {
  height: calc(100% - var(--hero-more-h));
  display: flex;
  align-items: center;
  padding: 24px 6vw 64px;
}

.hero .v-divider { background: rgba(var(--color-on-image-rgb), 0.55); }
.btn:hover,
.btn:focus-visible {
  color: var(--color-heading);
  background: var(--color-on-image);
}

.hero__content {
  position: relative;
  width: min(100%, var(--hero-content-max));
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__quote-wrap,
.hero__facts:not(.hero__facts--booking) {
  opacity: calc(1 - var(--hero-progress));
  transform: translateY(var(--hero-shift));
  will-change: opacity, transform;
}

.hero__top-row { display: flex; align-items: stretch; gap: 32px; margin-bottom: 88px; }
.hero__logo-slot { flex-shrink: 0; }
.hero__logo { display: flex; align-items: flex-start; gap: var(--logo-gap, 8px); flex-shrink: 0; }

.hero__cta-divider-slot {
  align-self: stretch;
  width: 1px;
  flex-shrink: 0;
}

.hero__cta-divider { height: var(--cta-divider-height, 100%); }

.hero__cta-slot { flex-shrink: 0; }

html.has-scroll-handoff .hero__logo,
html.has-scroll-handoff .hero__cta-divider,
html.has-scroll-handoff .hero__cta-body {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  transform-origin: top left;
  will-change: transform;
}

.hero__quote-wrap { max-width: 780px; }
.hero__quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 900;
  opacity: 0.2;
  line-height: 1;
  margin: 0;
}
.hero__quote { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.8; letter-spacing: 0.03em; }

.hero__facts { display: flex; align-items: stretch; gap: 72px; padding-left: 94px; }
.hero__facts:not(.hero__facts--booking) { margin-bottom: 56px; }
.hero__fact-col { display: flex; }
.hero__fact-col > .v-divider,
.hero__cta-divider-slot { margin: 0 24px 0 16px; }
.hero__fact-list { display: flex; flex-direction: column; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: 0.03em; opacity: 0.9; }

.hero__cta-body { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.hero__more-bar {
  height: var(--hero-more-h);
  display: flex;
  align-items: center;
  padding-left: calc(6vw + 124px);
  border-top: 1px solid rgba(var(--color-on-image-rgb), 0.7);
  opacity: calc(1 - var(--hero-progress));
  will-change: opacity;
}

.hero__more-divider {
  width: 1px;
  height: 32px;
  margin-right: 24px;
  flex-shrink: 0;
  background: rgba(var(--color-on-image-rgb), 0.55);
}

.hero__more {
  font-size: 24px;
  font-weight: 700;
  opacity: 0.9;
}

/* ---------- Content section ---------- */

.content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  scroll-margin-top: var(--header-h);
  opacity: var(--content-opacity);
  will-change: opacity;
}

.content__panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-panel);
  box-shadow: 0 -12px 40px rgba(var(--color-shadow-rgb), 0.12);
  pointer-events: none;
}

.mobile-quick-nav { display: none; }

.content__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, var(--content-max)) 220px;
  column-gap: 72px;
  justify-content: center;
  align-items: start;
  padding: 64px 2em 120px;
}
.content__body { grid-column: 1; grid-row: 1; width: 100%; }

.content__section, .sub-section { scroll-margin-top: calc(var(--header-h) + 16px); }

.content__section h2 {
  font-size: 40px;
  font-weight: 900;
  color: var(--color-heading);
  margin: 0 0 0.8em;
  opacity: 0.3;
}

.content__section + .content__section { margin-top: 96px; }

.content__section h3 {
  margin: 0 0 0.75em;
  color: var(--color-heading);
  font-size: 28px;
  font-weight: 700;
}

.quick-nav {
  --nav-progress-height: 0%;
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(var(--header-h) + 48px);
  margin: 0;
  width: 220px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.quick-nav::before,
.quick-nav::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
}

.quick-nav::before {
  bottom: 0;
  background: rgba(var(--color-heading-rgb), 0.2);
}

.quick-nav::after {
  width: 2px;
  height: var(--nav-progress-height);
  background: var(--color-heading);
}

.quick-nav a { opacity: 0.45; }
.quick-nav__link { font-weight: 700; color: var(--color-heading); }
.quick-nav__group { display: flex; flex-direction: column; gap: 10px; }
.quick-nav__sublist { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; font-size: 18px; }

.quick-nav__sublist li { position: relative; }
.quick-nav__sublist li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.quick-nav a.is-active { opacity: 1 !important; }

.text-block { margin: 0 0 32px; font-size: 18px; font-weight: 500; line-height: 2; letter-spacing: 0.08em; }
.text-block p { margin: 0 0 0.25em; }


.content-list {
  margin: 12px 0 0;
  padding-left: 1.4em;
  list-style: disc;
}

.content-list li + li { margin-top: 12px; }

.quote-block {
  margin: 0.8em 0 0 0.25em;
  padding: 0 0 0 1em;
  color: inherit;
  background: transparent;
  border-left: 6px solid rgba(var(--color-heading-rgb), 0.1);
  line-height: 1.8;
}

.quote-block p { margin: 0 0 12px; opacity: 0.8; }
.quote-block p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--header-h) 0 0;
  color: var(--color-on-image);
}

.site-footer__main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 6vw;
}

.site-footer__quote-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: min(100%, 908px);
  margin-left: 128px;
}

.site-footer__divider {
  width: 1px;
  flex-shrink: 0;
  background: rgba(var(--color-on-image-rgb), 0.55);
}

.site-footer__quote-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 780px;
}

.site-footer__quote {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.site-footer__quote-mark {
  align-self: flex-start;
  margin-top: 0.5em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 0.5;
  opacity: 0.2;
}

.site-footer__legal {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.site-footer__legal::before,
.site-footer__legal::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(var(--color-on-image-rgb), 0.5);
}

.site-footer__legal p { margin: 0; opacity: 0.9; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero__main { padding: 24px 2em 48px; }
  .hero__content { gap: 0; }
  .hero__top-row {
    display: grid;
    grid-template-columns: 1px minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 24px;
    margin-bottom: 64px;
  }
  .hero__logo-slot { grid-column: 1 / -1; }
  .hero__top-row > .v-divider { grid-column: 1; grid-row: 2; display: block; width: 1px; }
  .hero__quote-wrap { grid-column: 2; grid-row: 2; width: 100%; display: block; margin-left: 0; }
  .hero__quote { min-width: 0; }
  .hero__quote { font-size: 20px; }
  .hero__facts { flex-direction: column; gap: 20px; padding-left: 0; }
  .hero__facts:not(.hero__facts--booking) { margin-bottom: 48px; }
  .price-line { flex-direction: column; align-items: flex-start; justify-content: center; }
  .price-line__separator { display: none; }
  .hero__more-bar { padding-left: 108px; }

  .quick-nav { display: none; }

  .content__layout { display: block; padding: 48px 2em 80px; }
  .content__body { display: flex; flex-direction: column; }

  .site-footer { padding: var(--header-h) 0 0; }
  .site-footer__main { padding: 0 6vw; }
  .site-footer__quote-row { margin-left: 0; }
}

@media (max-width: 500px) {
  :root { --header-h: 80px; }
  .hero { height: auto; min-height: 0; }
  .hero__main { height: auto; padding-top: 64px; padding-right: 1.5em; padding-left: 1.5em; }
  .hero__top-row { row-gap: 48px; }
  .hero__logo { gap: 8px; }
  .logo--large .logo-cn { font-size: 48px; }
  .logo--large .logo-sub { font-size: 24px; }
  .hero__quote,
  .hero__fact-list { font-size: 18px; }
  .hero__facts { gap: 32px; }
  .hero__quote-wrap,
  .hero__facts:not(.hero__facts--booking) { opacity: 1; transform: none; }
  .hero__facts--booking .hero__fact-label { opacity: 0.5; }
  .hero__fact-col {
    display: grid;
    grid-template-columns: 1px minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 12px;
    width: 100%;
  }
  .hero__fact-label { grid-column: 1 / -1; writing-mode: horizontal-tb; text-orientation: mixed; }
  .hero__fact-col > .v-divider,
  .hero__cta-divider-slot {
    grid-column: 1;
    grid-row: 2;
    display: block;
    width: 1px;
    margin: 0 0 0 8px;
  }
  .hero__fact-list,
  .hero__cta-slot { grid-column: 2; grid-row: 2; min-width: 0; }
  .hero__top-row > .v-divider,
  .site-footer__divider { margin-left: 8px; }
  .hero__more-bar { display: none; }
  .hero__cta-body { flex-direction: column; align-items: flex-start; }
  .price-line { font-size: 16px; border-top: 0; border-bottom: 0; }
  .btn { margin-top: 8px; padding: 18px 64px; font-size: 18px; }
  .text-block { font-size: 16px; }
  .content__layout { padding-right: 1.5em; padding-left: 1.5em; }
  .site-footer__main { padding-right: 1.5em; padding-left: 1.5em; }
  .site-footer__quote { font-size: 24px; }

  html.has-scroll-handoff .hero__logo,
  html.has-scroll-handoff .hero__cta-divider,
  html.has-scroll-handoff .hero__cta-body {
    position: static;
    transform: none !important;
  }

  html.mobile-header-active .hero__logo {
    position: fixed;
    top: 16px;
    left: 1.5em;
    z-index: 60;
    gap: 4px;
    transition: transform 0.25s ease;
  }

  html.mobile-header-active .logo--large .logo-cn { font-size: 24px; }
  html.mobile-header-active .logo--large .logo-sub { font-size: 12px; }

  html.mobile-header-active .hero__cta-body {
    position: fixed;
    top: calc(var(--header-h) / 2);
    right: 1.5em;
    left: auto;
    z-index: 60;
    transform: translateY(-50%) !important;
    transition: transform 0.25s ease;
  }

  html.mobile-header-active .price-line { display: none; }
  html.mobile-header-active .btn { margin-top: 0; padding: 12px 48px; }

  html.mobile-header-hidden .header-bg { transform: translateY(-100%); }
  html.mobile-header-active.mobile-header-hidden .hero__logo {
    transform: translateY(calc(-1 * var(--header-h))) !important;
  }
  html.mobile-header-active.mobile-header-hidden .hero__cta-body {
    transform: translateY(calc(-50% - var(--header-h))) !important;
  }

  .mobile-quick-nav {
    --mobile-nav-progress-width: 0%;
    position: sticky;
    top: var(--header-h);
    z-index: 3;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 -48px;
    padding: 0 1.5em;
    border: 0;
    border-bottom: 0;
    background: rgba(var(--color-panel-rgb), 0.96);
    color: var(--color-heading);
    font: 700 18px/1.2 "Noto Serif SC Variable", "Songti SC", "STSong", "SimSun", serif;
    letter-spacing: 0.08em;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: top 0.25s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .mobile-quick-nav::before,
  .mobile-quick-nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
  }

  .mobile-quick-nav::before {
    width: 100%;
    height: 1px;
    background: rgba(var(--color-heading-rgb), 0.2);
  }

  .mobile-quick-nav::after {
    width: var(--mobile-nav-progress-width);
    height: 2px;
    background: var(--color-heading);
  }

  .mobile-quick-nav.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .mobile-quick-nav__current { opacity: 0.8; }

  .mobile-quick-nav__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .mobile-quick-nav[aria-expanded="true"] .mobile-quick-nav__icon { transform: rotate(90deg); }
  html.mobile-header-hidden .mobile-quick-nav { top: 0; }

  .quick-nav {
    position: fixed;
    top: calc(var(--header-h) + 48px);
    right: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0 1.5em;
    max-height: 0;
    overflow: hidden;
    background: var(--color-panel);
    box-shadow: 0 16px 40px rgba(var(--color-shadow-rgb), 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transform-origin: top;
    transition: top 0.25s ease, max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .quick-nav.is-open {
    padding: 1.5em;
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .quick-nav::before,
  .quick-nav::after { display: none; }
  html.mobile-header-hidden .quick-nav { top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__quote-wrap,
  .hero__facts,
  .hero__more,
  .hero__top-row > .v-divider,
  .hero__booking {
    transform: none !important;
  }
}
