:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
section { scroll-margin-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 12px); }
.topbar {
  padding-inline: max(var(--site-inset), env(safe-area-inset-left, 0px)) max(var(--site-inset), env(safe-area-inset-right, 0px));
}
.topbar-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  inline-size: 180px;
  min-block-size: 44px;
  gap: 4px;
  color: var(--fg);
  white-space: nowrap;
}
.topbar-brand-main {
  font: 400 clamp(20px, 1.6vw, 23px)/1.2 var(--serif);
  letter-spacing: .14em;
}
.topbar-brand-sub {
  font: 300 10px/1.2 var(--sans);
  letter-spacing: .2em;
}
@media (max-width: 760px) {
  .topbar-brand { inline-size: auto; }
  .topbar-brand-main { font-size: 20px; }
  .topbar-brand-sub { display: none; }
}
.menu-toggle { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; }
.menu-icon { position: relative; display: block; width: 22px; height: 7px; border-block: 1px solid; }

.site-menu {
  position: fixed; inset: 0; margin: 0; width: 100%; max-width: none;
  height: 100%; height: 100dvh; max-height: none;
  padding: 0; border: 0; color: var(--fg); background: var(--bg);
}
.site-menu:focus { outline: none; }
.site-menu[open] { animation: menu-in .3s ease-out; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.site-menu::backdrop { background: var(--bg); }
html:has(.site-menu[open]) { overflow: hidden; }
.menu-inner { min-height: 100%; display: grid; grid-template-columns: 54fr 46fr; }
.menu-main { position: relative; display: grid; align-content: center; background: var(--footer-bg); padding: 120px var(--site-inset); }
.menu-main nav { display: grid; justify-items: start; }
.menu-main nav a { display: flex; align-items: center; min-height: 51px; font: 300 22px/1.4 var(--sans); letter-spacing: .1em; }
.menu-main nav a:hover { opacity: .6; }
.menu-brand { position: absolute; inset-block-start: calc(var(--topbar-h) / 2 - 22px); inset-inline-start: var(--site-inset); inline-size: auto; }
.menu-side { position: relative; display: grid; align-content: end; padding: 0 var(--site-inset) 72px 56px; }
.menu-visit { color: var(--muted); font: 300 13px/2 var(--sans); letter-spacing: .08em; }
.menu-visit p { margin: 0; }
.menu-visit-title { color: var(--fg); letter-spacing: .2em; margin-bottom: 4px !important; }
.menu-inner > form, .menu-side > form { display: contents; }
.menu-close {
  position: absolute; inset-block-start: calc(var(--topbar-h) / 2 - 22px); inset-inline-end: var(--site-inset);
  display: grid; place-items: center; inline-size: 44px; block-size: 44px; color: var(--fg);
}
.menu-x { position: relative; inline-size: 20px; block-size: 20px; }
.menu-x::before, .menu-x::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline: -2px; block-size: 1px; background: currentColor; }
.menu-x::before { transform: rotate(45deg); }
.menu-x::after { transform: rotate(-45deg); }

.home-hero {
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + clamp(8px, 1.4vw, 20px));
}
.home-hero-frame { --photo-ratio: 16 / 9; inline-size: 100%; max-block-size: 620px; }
.home-hero-frame img { object-position: var(--hero-position); }
.home-hero-copy { margin-top: clamp(16px, 2.1vw, 30px); }
.home-hero-copy p { margin: 6px 0 0; color: var(--muted); }
.home-hero h1 {
  margin: 0; font: 400 clamp(22px, 2.4vw, 34px)/1.5 var(--serif);
  letter-spacing: .065em; text-wrap: balance;
}
.editorial-link {
  display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14px;
}
.editorial-link { text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.editorial-link:hover { opacity: .8; }

body[data-page="home"] #app {
  --home-gutter: clamp(24px, 2.25vw, 40px);
  display: grid; row-gap: var(--section-gap);
  padding-bottom: clamp(24px, 3.5vw, 48px);
}
body[data-page="home"] #app > .wrap {
  width: calc(100% - 2 * var(--home-gutter)); max-width: 1520px;
}
.editorial-intro { text-align: center; }
body[data-page="home"] main h2, .editorial-page h1, .contact-intro h1, .about-essay h2,
.tour-intro h1, .tour-floor h2 {
  margin: 0 0 14px; font: 400 var(--heading-size)/1.35 var(--serif); letter-spacing: .045em;
}
.editorial-intro p, .editorial-spaces p, .editorial-copy p, .editorial-page p,
.about-prose p, .about-principles > p {
  margin: 0; color: var(--muted); font-size: var(--body-size); line-height: var(--body-leading);
}
.editorial-intro p { max-inline-size: 34em; margin-inline: auto; }
.editorial-gatherings { align-items: start; }
.editorial-spaces {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 3.3vw, 52px); align-items: start;
}
.editorial-spaces > .editorial-copy .editorial-link { margin-top: 12px; }
.floor-gallery {
  --gallery-gap: clamp(30px, 3.5vw, 55px);
  --gallery-card: calc((100% - 2 * var(--gallery-gap)) / 2.333);
  --gallery-preview: calc(var(--gallery-card) / 3);
  display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
}
.floor-gallery-track {
  grid-area: 1 / 1;
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--gallery-card);
  gap: var(--gallery-gap); list-style: none; margin: 0; padding: 0 0 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.floor-gallery-track::-webkit-scrollbar { display: none; }
.floor-gallery-track li { position: relative; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
@media (min-width: 768px) {
  /* The pagination already sets the exact scroll position on desktop. */
  .floor-gallery-track { overflow-x: hidden; scroll-snap-type: none; }
}
@media (max-width: 899px) {
  .editorial-spaces { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .floor-gallery {
    --gallery-gap: clamp(14px, 3.8vw, 24px);
    --gallery-card: 84%;
    --gallery-preview: calc(100% - var(--gallery-card) - var(--gallery-gap));
  }
}
.floor-gallery-track a { display: block; cursor: pointer; }
.floor-gallery-track a:focus-visible { outline-offset: -2px; }
.floor-gallery-track a:hover img { opacity: .9; }
.floor-gallery-track .photo-frame { --photo-ratio: 1 / 1; }
.gallery-caption {
  display: block; margin: 18px 0 10px; color: var(--muted); font-size: 12px; letter-spacing: .14em;
}
.floor-gallery-track h3 {
  margin: 0 0 7px; font: 400 clamp(19px, 1.65vw, 24px)/1.4 var(--serif);
}
.floor-gallery-track li p { font-size: clamp(14px, 1.1vw, 16px); }
.gallery-card-cta { display: none; }
.gallery-pagination {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  grid-row: 2;
  inline-size: min(100%, 210px); margin-inline: auto;
}
.gallery-pagination::before, .gallery-pagination::after {
  content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 0;
  block-size: 1px; pointer-events: none;
}
.gallery-pagination::before { inline-size: 100%; background: #d3d0cb; }
.gallery-pagination::after {
  inline-size: calc(100% / var(--gallery-count)); background: #77736f;
  transform: translateX(calc(100% * var(--gallery-index, 0)));
  transition: transform 300ms ease-in-out;
}
.gallery-pagination button { position: relative; min-block-size: 44px; }
.gallery-pagination button:focus-visible { outline-offset: -3px; }
@media (hover: hover) {
  .gallery-pagination button:hover::after {
    content: ""; position: absolute; z-index: 1; inset-inline: 0;
    inset-block-start: 50%; block-size: 1px; background: #99948f;
    pointer-events: none;
  }
  .gallery-pagination button[aria-current="true"]:hover::after { background: #514e4a; }
}

.editorial-copy { max-width: 31em; min-width: 0; }
.editorial-gatherings .photo-frame { --photo-ratio: 3 / 2; }
@media (min-width: 761px) {
  .editorial-gatherings { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
  .editorial-gatherings .photo-frame { grid-column: 1; grid-row: 1; }
  .editorial-gatherings .editorial-copy { grid-column: 2; grid-row: 1; }
}
.gathering-uses {
  display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0; margin: 17px 0; list-style: none;
  font: 400 clamp(14px, 1.5vw, 17px)/1.7 var(--serif);
}
.home-visit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 12px var(--layout-gap);
}
body[data-page="home"] .home-visit h2 { margin-bottom: 6px; }
.home-visit p { margin: 0; color: var(--muted); line-height: 1.75; }
.home-visit .rows { margin: 0; max-width: 42rem; grid-column: 1 / -1; }
.visit-details { gap: 0; }
.visit-details .row {
  grid-template-columns: 6em minmax(0, 1fr); padding-block: 9px; border-bottom: 1px solid var(--line);
}
.visit-details .row dd { overflow-wrap: anywhere; }
.visit-details .row a { color: var(--fg); }
.visit-details .editorial-link { min-height: 0; }
.editorial-page { padding-block: calc(var(--topbar-h) + var(--chapter-gap)) var(--section-gap); }
.visit-details .row[id] { scroll-margin-top: calc(var(--topbar-h) + 12px); }

.contact-page {
  display: grid; row-gap: clamp(30px, 4vw, 56px);
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + clamp(26px, 3.5vw, 50px));
  padding-bottom: clamp(48px, 6vw, 86px);
}
.contact-page h2 {
  margin: 0 0 12px; font: 400 clamp(21px, 2vw, 28px)/1.4 var(--serif); letter-spacing: .045em;
}
.contact-intro .contact-kicker {
  margin: 0 0 8px; color: var(--muted); font-size: 12px; letter-spacing: .17em;
}
.contact-intro h1 { margin-bottom: 8px; font-size: clamp(26px, 2.4vw, 34px); }
.contact-lead, .contact-note p {
  margin: 0; color: var(--muted); font-size: var(--body-size); line-height: var(--body-leading);
}
.contact-columns { align-items: start; }
.contact-fields {
  display: grid; gap: clamp(20px, 2.5vw, 32px); margin: 0;
  font-size: var(--body-size); line-height: var(--body-leading);
}
.contact-fields > div[id] { scroll-margin-top: calc(var(--topbar-h) + 12px); }
.contact-fields dt {
  margin-bottom: 6px; color: var(--muted); font-size: 13px; letter-spacing: .06em;
}
.contact-fields dd { margin: 0; }
.contact-address { max-inline-size: 26em; margin: 0; overflow-wrap: anywhere; user-select: text; }
.contact-map { gap: 5px; }
.contact-map span { font-size: 12px; }
.contact-time { display: block; font-variant-numeric: tabular-nums; }
.contact-time:first-of-type { margin-top: 4px; }
.contact-support { color: var(--muted); font-size: 14px; }
.contact-columns section > .contact-support { margin: 0 0 16px; }
.contact-qr { inline-size: 140px; block-size: 140px; object-fit: contain; }
.contact-qr-placeholder { display: grid; place-items: center; background: #eae6df; color: var(--muted); font-size: 13px; }
.contact-qr-caption { max-inline-size: 26em; margin: 8px 0 0; }
.contact-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; overflow-wrap: anywhere; }
#contact-copy-status { margin: 0; }
.contact-note { padding-top: clamp(16px, 2vw, 26px); border-top: 1px solid var(--line); }
.contact-note p { max-inline-size: 42em; }
.contact-note p + p { margin-top: 6px; }

.footer-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--layout-gap); }
.footer-content h2 {
  margin: 0 0 8px; font: 400 15px/1.55 var(--serif); color: var(--fg);
}
.footer-content ul { margin: 0; padding: 0; list-style: none; }
.footer-content li { margin-block: 4px; }
.footer-content a { display: inline-block; padding-block: 3px; }
.footer-bottom {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: var(--layout-gap);
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.footer-brand { color: var(--fg); font: 400 clamp(16px, 1.4vw, 20px)/1.45 var(--serif); }
.footer-brand img { max-inline-size: min(140px, 100%); max-block-size: 38px; object-fit: contain; }
.footer-social { text-align: center; }
.footer-social h2 { margin: 0; color: var(--fg); font: 400 15px/1.55 var(--serif); }
.footer-social ul {
  display: flex; justify-content: center; gap: 6px; margin: 3px 0 0; padding: 0; list-style: none;
}
.footer-social-icon { display: grid; place-items: center; inline-size: 44px; block-size: 44px; }
.footer-social :is(a, button):hover { opacity: .78; }
.footer-copyright { text-align: end; font-size: 12px; }

@media (max-width: 600px) {
  .footer-bottom { grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: center; }
  .footer-copyright { text-align: center; }
}

.editorial-intro p + p { margin-top: 8px; }
.editorial-intro .editorial-link { margin-top: 7px; }

/* 了解我们 */
.about-essay {
  --about-gap: clamp(34px, 4.5vw, 64px);
  display: grid; row-gap: var(--about-gap);
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + clamp(26px, 3.2vw, 46px));
  padding-bottom: var(--about-gap);
}
.about-opening { text-align: center; }
.about-essay .about-eyebrow {
  margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.45; letter-spacing: .12em;
}
.about-opening h1 {
  margin: 0;
  font: 400 clamp(24px, 2.4vw, 34px)/1.35 var(--serif);
  letter-spacing: .045em;
  text-wrap: balance;
}
.about-prose { max-inline-size: 35em; }
.about-prose p + p { margin-top: 12px; }
.about-regions { display: grid; row-gap: var(--about-gap); }
.about-region { align-items: start; column-gap: clamp(40px, 4vw, 56px); }
.about-region figure { min-width: 0; margin: 0; }
.about-region .photo-frame { --photo-ratio: 5 / 6; inline-size: 100%; max-block-size: 580px; }
.about-photo-placeholder {
  display: grid; place-items: center; background: #e9e4dd; color: var(--muted);
}
.about-photo-link { display: block; }
.about-photo-link:hover { opacity: .9; }
.about-region figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.about-region figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.about-principles { text-align: center; }
.about-principles > p { max-inline-size: 35em; margin-inline: auto; text-wrap: balance; }
.about-principles dl {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  max-inline-size: 480px; margin: 20px auto 24px;
}
.about-principles dt { font: 400 var(--subheading-size)/1.4 var(--serif); }
.about-principles dd { margin: 4px 0 0; color: var(--muted); font-size: clamp(13px, 1.4vw, 15px); }
.about-principles dd .editorial-link { min-height: 0; font-size: inherit; }
.about-principles .about-signoff { color: var(--fg); font: 400 clamp(17px, 1.65vw, 22px)/1.5 var(--serif); }
.about-explore { margin-top: 4px; }

/* 空间漫游 */
.space-tour {
  --tour-gap: clamp(12px, 2vw, 28px);
  display: grid; row-gap: clamp(46px, 6vw, 88px);
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + var(--chapter-gap));
  padding-bottom: clamp(80px, 7vw, 100px);
}
.tour-intro p, .tour-floor p {
  max-inline-size: 38em; margin: 0; color: var(--muted); font-size: var(--body-size); line-height: var(--body-leading);
}
.tour-floor .tour-kicker {
  margin-bottom: 6px; font-size: 13px; letter-spacing: .07em;
}
.tour-index {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tour-gap);
  margin-top: clamp(18px, 2.5vw, 36px);
}
.tour-entry {
  display: flex; align-items: center; min-block-size: 44px; padding-block: 8px;
  border-block-start: 1px solid var(--line);
  font: 400 clamp(14px, 1.5vw, 20px)/1.45 var(--serif);
}
.tour-entry:hover { text-decoration: underline; text-underline-offset: 4px; }
.tour-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tour-gap); align-items: start;
  margin-top: clamp(16px, 2.2vw, 30px);
}
.tour-shot { display: block; inline-size: 100%; min-inline-size: 0; overflow: hidden; aspect-ratio: 3 / 2; }
.tour-shot--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; max-block-size: 560px; }
.tour-shot--editorial { aspect-ratio: 4 / 5; }
.tour-shot--detail { aspect-ratio: 1; }
.tour-shot .photo-frame { inline-size: 100%; block-size: 100%; aspect-ratio: auto; }
.tour-rail {
  position: fixed; z-index: 15; inset-block-start: 50%;
  inset-inline-end: max(0px, calc(var(--site-inset) - 52px));
  inline-size: min(44px, var(--gutter));
  display: grid; gap: 4px; visibility: hidden; transform: translateY(-50%);
}
.tour-rail.show { visibility: visible; }
.tour-rail a {
  display: grid; place-items: center; min-block-size: 44px;
  color: var(--muted); background: var(--bg); font: 12px/1 var(--serif);
}
.tour-rail a:hover, .tour-rail a[aria-current="location"] { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.tour-rail a:focus-visible { outline-offset: -3px; }

/* 空间漫游：统一裁切。每层一张通栏大图（2:1），其余全部 3:2 两列等大；手机端单列 */
.tour-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(12px, 2vw, 28px); }
.tour-shot, .tour-shot--editorial, .tour-shot--detail { aspect-ratio: 3 / 2; }
.tour-shot--wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; max-block-size: none; }
.site-menu a[aria-current="page"] { opacity: .55; }

@media (max-width: 760px) {
  body[data-page="home"] #app { --home-gutter: clamp(16px, 4.7vw, 20px); }
  .menu-inner { grid-template-columns: minmax(0, 1fr); }
  .menu-main { padding: 96px var(--gutter) 48px; }
  .menu-brand { inset-inline-start: var(--gutter); }
  .menu-main { min-height: 100dvh; }
  .menu-side { display: contents; }
  .menu-visit { display: none; }
  .menu-close { inset-inline-end: var(--gutter); }
  .home-hero-frame { --photo-ratio: 4 / 3; }
  .home-hero-frame img { object-position: var(--hero-mobile-position); }
  .footer-content { column-gap: 12px; }
  .about-region { row-gap: 16px; }
  .about-region .photo-frame { --photo-ratio: 5 / 4; max-block-size: 420px; }
  .space-tour { padding-bottom: clamp(56px, 9vw, 72px); }
  .tour-gallery { grid-template-columns: minmax(0, 1fr); row-gap: clamp(12px, 3.5vw, 18px); }
  .tour-shot { grid-column: 1 / -1; }
  .tour-shot--wide { aspect-ratio: 3 / 2; }
  .tour-rail { display: none; }
}

@media (max-width: 540px) {
  .home-visit { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}

@media (max-width: 360px) {
  .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar, .gallery-pagination::after { transition: none; }
}

/* 首页内容比其他页面更宽：让顶栏的左右边缘与首页内容对齐 */
@media (min-width: 761px) {
  body[data-page="home"] .topbar {
    padding-inline: max(clamp(24px, 2.25vw, 40px), calc((100% - 1520px) / 2));
  }
}

.contact-intro .contact-kicker, .about-opening .about-eyebrow { display: none; }

/* ---------- 顶栏：菜单在左、品牌居中、到访指引在右（同 Aman） ---------- */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; }
.topbar > .topbar-brand { inline-size: auto; align-items: center; justify-self: center; text-align: center; }
/* 尺寸对照 Aman：三线图标 20×14、"菜单"文字 16px、按钮 140×42 贴顶 */
.topbar .menu-toggle { justify-self: start; justify-content: flex-start; gap: 32px; min-block-size: 42px; }
.menu-icon { inline-size: 20px; block-size: 14px; }
.menu-icon::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: calc(50% - .5px); block-size: 1px; background: currentColor; }
.menu-label { font: 300 16px/1 var(--sans); letter-spacing: .1em; }
@media (min-width: 761px) {
  /* Aman 实测（1288px 宽）：页头高 88，按钮 140×42 垂直居中，品牌约 150×40，大图距页头 66 */
  :root { --topbar-h: 88px; }
  .topbar { align-items: center; }
  .topbar .visit-btn {
    justify-self: end; align-self: center; inline-size: 140px; block-size: 42px; padding: 0;
    background: var(--fg); color: var(--on-accent); font: 300 15px/1 var(--sans); letter-spacing: .2em;
  }
  .topbar > .topbar-brand .topbar-brand-main { font-size: 26px; }
  .topbar > .topbar-brand .topbar-brand-sub { font-size: 11px; }
  .home-hero { padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 66px); }
}
@media (max-width: 760px) { .menu-label { display: none; } }

/* 手机：底部固定整条深色按钮 */
.visit-bar { display: none; }
@media (max-width: 760px) {
  .topbar .visit-btn { display: none; }
  .visit-bar {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 19;
    padding: 15px max(15px, env(safe-area-inset-left, 0px)) max(15px, env(safe-area-inset-bottom, 0px));
    background: var(--bg);
  }
  .visit-bar-btn {
    display: block; inline-size: 100%; block-size: 48px;
    background: var(--fg); color: var(--on-accent);
    font: 300 15px/1 var(--sans); letter-spacing: .2em;
  }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* 到访指引面板：桌面右侧抽屉，手机底部弹层 */
.visit-sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
  inline-size: min(420px, 100%); max-inline-size: none; block-size: 100dvh; max-block-size: none;
  border: 0; color: var(--fg); background: var(--bg);
}
.visit-sheet::backdrop { background: rgba(51, 50, 48, .32); }
.visit-sheet:focus { outline: none; }
.visit-sheet[open] { animation: sheet-in .3s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.visit-sheet > form { display: contents; }
.visit-sheet .menu-close { inset-block-start: 8px; inset-inline-end: 12px; }
.visit-sheet h2 { margin: 0; padding: 72px 32px 0; font: 400 24px/1.4 var(--serif); letter-spacing: .1em; }
.visit-body { padding: 28px 32px 40px; }
.visit-rows { margin: 0 0 32px; display: grid; gap: 20px; }
.visit-rows > div { display: grid; grid-template-columns: 6em 1fr; gap: 8px; font: 300 14px/1.8 var(--sans); }
.visit-rows dt { color: var(--muted); letter-spacing: .2em; }
.visit-rows dd { margin: 0; }
.visit-qr { margin: 0 0 24px; padding: 4px; background: #fff; }
.visit-actions { display: grid; gap: 12px; }
.visit-action {
  display: flex; align-items: center; justify-content: center; block-size: 48px;
  border: 1px solid var(--fg); font: 300 14px/1 var(--sans); letter-spacing: .2em;
}
.visit-action.is-primary { background: var(--fg); color: var(--on-accent); }
.visit-action:not(.is-primary):hover { background: var(--fg); color: var(--on-accent); }
@media (max-width: 760px) {
  .visit-sheet { inset: auto 0 0 0; inline-size: 100%; max-inline-size: none; block-size: auto; max-block-size: 90dvh; }
  .visit-sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .visit-sheet h2 { padding: 28px 24px 0; font-size: 20px; }
  .visit-body { padding: 20px 24px max(32px, env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .visit-sheet[open] { animation: none; } }
html:has(.visit-sheet[open]) { overflow: hidden; }

/* 按下/悬停：深色按钮变成雾灰（同 Aman） */
.visit-btn, .visit-bar-btn, .visit-action.is-primary, .btn.solid { transition: opacity .3s ease; }
.visit-btn:active, .visit-bar-btn:active, .visit-action.is-primary:active, .btn.solid:active { opacity: .7; }
@media (hover: hover) {
  .visit-btn:hover, .visit-bar-btn:hover, .visit-action.is-primary:hover, .btn.solid:hover { opacity: .7; }
}
.btn.solid, .btn.solid:hover { background: var(--fg); color: var(--on-accent); border-color: var(--fg); }

/* 三层空间：没有完整露出的卡片（照片和文字）被一层雾罩住 */
.floor-gallery-track li::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(242, 238, 232, .78); opacity: 0; transition: opacity .3s ease;
}
.floor-gallery-track li.is-veiled::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .floor-gallery-track li::after { transition: none; } }

.editorial-spaces > .editorial-copy p + p { margin-top: 1em; }

/* 首页：简介 + 两张图（Aman 式：宽图与窄图等高，图下依次是小标签、标题、说明） */
.home-hero-copy h1 { margin-bottom: clamp(14px, 1.6vw, 22px); }
.home-hero-copy p { max-inline-size: 40em; margin-top: 12px; font-size: var(--body-size); line-height: var(--body-leading); }
.home-places { margin-top: calc(var(--section-gap) * -.3); }
.place-gallery { --gallery-gap: clamp(18px, 2vw, 28px); container-type: inline-size; }
.place-gallery .floor-gallery-track { grid-auto-columns: auto; }
.place-gallery .home-place { min-width: 0; }
.place-gallery .home-place { inline-size: 66cqw; }
.home-place .photo-frame { --photo-ratio: 1.75 / 1; }
/* 不用整块雾：只在图片被切断的边缘做一段渐隐 */
.place-gallery .floor-gallery-track li::after { display: none; }
/* 固定在滚动容器两侧的一条窄渐隐，内容在其下方滑过 */
.place-gallery { position: relative; --fade-l: 0; --fade-r: 1; --track-h: 0px; }
.place-gallery::before,
.place-gallery::after {
  content: ""; position: absolute; top: 0; height: var(--track-h); width: clamp(96px, 10vw, 160px);
  pointer-events: none; z-index: 2;
}
.place-gallery::before { left: 0; opacity: var(--fade-l); background: linear-gradient(to right, color-mix(in srgb, var(--bg) 55.0%, transparent) 0%, color-mix(in srgb, var(--bg) 52.6%, transparent) 12%, color-mix(in srgb, var(--bg) 46.4%, transparent) 25%, color-mix(in srgb, var(--bg) 37.6%, transparent) 38%, color-mix(in srgb, var(--bg) 27.5%, transparent) 50%, color-mix(in srgb, var(--bg) 17.4%, transparent) 62%, color-mix(in srgb, var(--bg) 8.6%, transparent) 75%, color-mix(in srgb, var(--bg) 2.4%, transparent) 88%, color-mix(in srgb, var(--bg) 0.0%, transparent) 100%); }
.place-gallery::after { right: 0; opacity: var(--fade-r); background: linear-gradient(to left, color-mix(in srgb, var(--bg) 55.0%, transparent) 0%, color-mix(in srgb, var(--bg) 52.6%, transparent) 12%, color-mix(in srgb, var(--bg) 46.4%, transparent) 25%, color-mix(in srgb, var(--bg) 37.6%, transparent) 38%, color-mix(in srgb, var(--bg) 27.5%, transparent) 50%, color-mix(in srgb, var(--bg) 17.4%, transparent) 62%, color-mix(in srgb, var(--bg) 8.6%, transparent) 75%, color-mix(in srgb, var(--bg) 2.4%, transparent) 88%, color-mix(in srgb, var(--bg) 0.0%, transparent) 100%); }
.place-gallery .gallery-pagination { margin-top: 18px; }
.spaces-lead { color: var(--fg) !important; font: 400 clamp(17px, 1.4vw, 20px)/1.6 var(--serif) !important; letter-spacing: .06em; margin-bottom: 10px !important; }
.home-place-label { margin: 18px 0 10px; color: var(--muted); font-size: 12px; letter-spacing: .14em; }
.home-place h2 { margin: 0 0 8px !important; font: 400 clamp(19px, 1.65vw, 24px)/1.4 var(--serif) !important; letter-spacing: .045em; }
.home-place-text { max-inline-size: 36em; color: var(--muted); font-size: var(--body-size); line-height: var(--body-leading); }
.home-place-link { display: inline-block; margin-top: 14px; }
@media (max-width: 760px) {
  .place-gallery .home-place { inline-size: 84cqw; }
  .home-place .photo-frame { --photo-ratio: 4 / 3; }
}

/* 页头收紧：桌面端高度 88 → 64，品牌缩到约 78%，按钮大小不变（实测 Aman 录屏） */
@media (min-width: 761px) {
  .topbar { transition: block-size .3s ease; }
  .topbar > .topbar-brand { transition: transform .3s ease; transform-origin: center; }
  .topbar.is-compact { block-size: calc(64px + env(safe-area-inset-top, 0px)); }
  .topbar.is-compact > .topbar-brand { transform: scale(.78); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar, .topbar > .topbar-brand { transition: none; }
}

/* 页尾到访：整体居中 */
.home-visit { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; row-gap: 22px; }
.home-visit .rows { justify-self: center; text-align: left; }

/* 字体分工（照搬 Aman）：标题与介绍性文字用衬线，功能性文字（标签、链接、按钮、导航、信息）用无衬线 */
.home-hero-copy p,
.home-place-text,
.editorial-copy p:not(.spaces-lead),
.floor-gallery-track li p:not(.home-place-label),
.about-prose p:not(.about-eyebrow),
.about-principles p,
.tour-floor p:not(.tour-kicker),
.contact-lead,
.wrap > h1 + p { font-family: var(--serif); font-weight: 400; }
.footer-content h2,
.footer-social h2,
.gathering-uses li,
.tour-rail a,
.contact-address { font-family: var(--sans); font-weight: 400; }
.footer-content h2, .footer-social h2 { font-size: 14px; letter-spacing: .08em; }

/* 衬线介绍文字加粗，颜色加深 */
.home-hero-copy p,
.home-place-text,
.editorial-copy p:not(.spaces-lead),
.floor-gallery-track li p:not(.home-place-label),
.about-prose p:not(.about-eyebrow),
.about-principles p,
.tour-floor p:not(.tour-kicker),
.contact-lead,
.wrap > h1 + p { font-weight: 400; color: var(--fg); }

/* 页脚：品牌同页头 logo；关注我们为一行文字链接 */
.footer-logo { inline-size: auto; align-items: center; justify-self: start; text-align: center; }
.footer-logo .topbar-brand-main { font-size: 26px; }
.footer-logo .topbar-brand-sub { font-size: 11px; display: block; }
.footer-social { display: block; text-align: left; }
.footer-social h2 { margin: 0 0 6px; font: 400 17px/1.55 var(--serif); letter-spacing: .04em; color: var(--fg); white-space: nowrap; }
.footer-social ul { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer-social-icon { inline-size: 38px; block-size: 38px; color: #333; }
.footer-social-icon img { inline-size: 28px; block-size: 28px; opacity: .85; }
.footer-copyright { font-family: var(--serif); font-size: 15px; }
@media (max-width: 600px) { .footer-logo { justify-self: center; } .footer-social { text-align: center; } .footer-social ul { justify-content: center; } }

/* ---------- 了解我们：按 Aman Story 页的版式（居中大图、居中衬线文字、交错的图文） ---------- */
.about-story { --story-gap: clamp(72px, 9.5vw, 150px); display: block; padding-block: clamp(28px, 4vw, 56px) var(--story-gap); }
.story-head { text-align: center; }
.story-head h1 { margin: 0; font: 400 clamp(24px, 2vw, 30px)/1.4 var(--serif); letter-spacing: .08em; }
.story-hero { margin: clamp(32px, 4vw, 56px) auto 0; inline-size: min(100%, 74vw); --photo-ratio: 16 / 9; }
.story-hero .photo-frame { --photo-ratio: 16 / 9; }
.story-intro { margin-top: clamp(44px, 5.5vw, 80px); }
.story-copy { text-align: center; max-inline-size: 27em; margin-inline: auto; }
.story-copy--lead { max-inline-size: 30em; }
.story-copy h2 { margin: 0 0 18px; font: 400 clamp(21px, 1.7vw, 25px)/1.5 var(--serif); letter-spacing: .06em; color: var(--fg); }
.story-copy p { margin: 0; font: 400 clamp(15px, 1.1vw, 16px)/1.95 var(--serif); letter-spacing: .04em; color: var(--fg); }
.story-copy p + p { margin-top: 1.1em; }
.story-copy .story-label { margin: 0 0 12px; font: 400 12px/1.5 var(--sans); letter-spacing: .22em; color: var(--muted); }
.story-copy .editorial-link { margin-top: 26px; }
.story-figure { margin: 0; }
.story-figure .photo-frame { inline-size: 100%; }
.story-row { margin-top: var(--story-gap); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: clamp(32px, 5vw, 80px); }
.story-row .story-figure { inline-size: min(100%, 36vw); justify-self: start; margin-inline-start: 4%; }
.story-row--reverse .story-figure { justify-self: end; margin-inline: 0 4%; }
.story-pair { margin: var(--story-gap) auto 0; inline-size: min(100%, 62vw); display: grid; grid-template-columns: 38% 46%; justify-content: space-between; align-items: start; }
.story-pair-left .story-copy { margin-top: 26px; max-inline-size: none; }
.story-pair-right { margin-top: -10px; }
.story-close { margin-top: var(--story-gap); }
@media (max-width: 760px) {
  .story-hero { inline-size: 100%; }
  .story-row, .story-pair { display: block; inline-size: 100%; }
  .story-row .story-figure, .story-row--reverse .story-figure { inline-size: 100%; margin: 0; }
  .story-row .story-copy { margin-top: 28px; }
  .story-pair-right { margin-top: 56px; }
  .story-row--reverse .story-copy { margin-top: 0; margin-bottom: 28px; }
}
.about-story { padding-top: calc(var(--topbar-h, 64px) + env(safe-area-inset-top, 0px) + clamp(28px, 4vw, 56px)); }
.story-pair-left .story-copy h2 { font-size: clamp(19px, 1.5vw, 22px); text-wrap: balance; }
.story-copy h2 { text-wrap: balance; }
@media (max-width: 760px) { .about-story { padding-top: calc(64px + env(safe-area-inset-top, 0px) + 24px); } }

/* 紧凑化（对照 Aman）：图更小、文字列与图同宽、行距收紧，让视线集中 */
.about-story { --story-gap: clamp(56px, 6.5vw, 96px); }
.story-hero { inline-size: min(100%, 64vw); margin-top: clamp(28px, 3vw, 44px); }
.story-intro { margin-top: clamp(32px, 3.5vw, 52px); }
.story-copy { max-inline-size: 23em; }
.story-copy--lead { max-inline-size: 26em; }
.story-copy p { font-size: 15px; line-height: 1.8; letter-spacing: .03em; }
.story-copy p + p { margin-top: .8em; }
.story-copy h2 { margin-bottom: 14px; font-size: clamp(19px, 1.45vw, 22px); }
.story-copy .story-label { margin-bottom: 8px; }
.story-row { inline-size: min(100%, 62vw); margin-inline: auto; grid-template-columns: 33.5% 52%; justify-content: space-between; align-items: start; column-gap: 0; }
.story-row .story-figure, .story-row--reverse .story-figure { inline-size: 100%; margin: 0; }
.story-row--reverse { grid-template-columns: 52% 33.5%; }
.story-row .story-copy { max-inline-size: none; }
.story-pair { grid-template-columns: 33.5% 52%; }
.story-pair-left .story-copy { margin-top: 22px; }
.story-pair-left .story-copy h2 { font-size: 18px; }
@media (max-width: 760px) {
  .story-hero, .story-row, .story-pair { inline-size: 100%; }
  .story-copy { max-inline-size: none; }
}

/* 放大图片、文字成段不拆（对照 Aman 常规尺寸：竖图约 29vw、大图约 46vw，整体约 88vw） */
.about-story { --story-gap: clamp(64px, 7vw, 110px); }
.story-copy { max-inline-size: 26em; }
.story-copy p { font-size: clamp(15px, 1.12vw, 17px); line-height: 1.85; }
.story-copy p + p { margin-top: .6em; }
.story-row, .story-pair { inline-size: min(100%, 88vw); }
.story-row { grid-template-columns: 33.6% 52.6%; }
.story-row--reverse { grid-template-columns: 52.6% 33.6%; }
.story-pair { grid-template-columns: 33.6% 52.6%; }
.story-row .story-copy { max-inline-size: 28em; margin-inline: auto; }
.story-pair-left .story-copy { max-inline-size: none; margin-top: 30px; }
.story-pair-left .story-copy h2 { font-size: clamp(19px, 1.5vw, 23px); }
.story-pair-right { margin-top: -10px; }
.about-story .home-visit { margin-top: var(--story-gap); padding-inline: 0; }
@media (max-width: 760px) {
  .story-row, .story-pair { inline-size: 100%; }
  .story-copy, .story-row .story-copy { max-inline-size: none; }
}
.story-row { grid-template-columns: 33.6% 34%; justify-content: center; column-gap: 9%; }
.story-row--reverse { grid-template-columns: 34% 33.6%; }
.story-row .story-copy { max-inline-size: none; }
.about-story .home-visit h2 { margin: 0 0 8px; font: 400 clamp(21px, 1.7vw, 25px)/1.5 var(--serif); letter-spacing: .06em; }
.about-story .home-visit p { font: 400 15px/1.8 var(--serif); }

/* ---------- 全站统一：页边距、正文字号与首页一致 ---------- */
@media (min-width: 761px) {
  :root { --site-content-max: 1520px; --gutter: clamp(24px, 2.25vw, 40px); }
}
.story-row, .story-pair { inline-size: 100%; }
.story-copy p { font-size: var(--body-size); line-height: var(--body-leading); letter-spacing: normal; }
.story-copy p + p { margin-top: 0; }
.story-quote { display: block; margin: .5em 0; }
.story-head h1 { font-size: var(--heading-size); letter-spacing: .045em; }
.story-copy h2, .story-pair-left .story-copy h2, .about-story .home-visit h2 { font: 400 clamp(19px, 1.65vw, 24px)/1.4 var(--serif); letter-spacing: .045em; }
.story-copy .story-label { font: 400 var(--body-size)/1.5 var(--sans); letter-spacing: .14em; margin-bottom: 10px; }
.about-story .home-visit p { font: 400 var(--body-size)/var(--body-leading) var(--serif); }
@media (min-width: 761px) {
  .story-row { grid-template-columns: 33.6% 52.6%; justify-content: space-between; column-gap: 0; }
  .story-row--reverse { grid-template-columns: 52.6% 33.6%; }
  .story-row .story-copy { max-inline-size: 28em; margin-inline: auto; }
}

/* 图片尺寸对照 Aman 实测：大图 588×776，小图 376×495（宽度随屏幕按比例缩小） */
@media (min-width: 761px) {
  .story-row { grid-template-columns: min(588px, 41vw) minmax(0, 1fr); }
  .story-row--reverse { grid-template-columns: minmax(0, 1fr) min(588px, 41vw); }
  .story-row .story-figure, .story-row--reverse .story-figure { inline-size: 100%; }
  .story-pair { grid-template-columns: min(440px, 30.5vw) min(588px, 41vw); justify-content: space-between; }
  .story-pair-left .story-figure { inline-size: min(376px, 26vw); margin-inline: auto; }
  .story-pair-right { margin-top: 0; }
}

/* 微调：空间块靠近右图；贵州/内蒙古文字与图片中线对齐 */
@media (min-width: 761px) {
  .story-pair { justify-content: end; column-gap: clamp(56px, 8vw, 140px); }
  .story-row { align-items: center; }
}
@media (min-width: 761px) {
  .story-pair { grid-template-columns: minmax(0, 1fr) min(588px, 41vw); column-gap: 0; justify-content: stretch; }
  .story-pair-left { inline-size: min(440px, 100%); justify-self: center; }
}

/* 关闭按钮：统一用菜单的样式，图标 14×14，线条更细 */
.menu-x { inline-size: 14px; block-size: 14px; }
.menu-x::before, .menu-x::after { inset-inline: -3px; block-size: .75px; }
.action-dialog .menu-close { inset-block-start: 8px; inset-inline-end: 8px; }

/* Menu overlay — measured from Aman (1440 viewport) */
@media (min-width: 768px) {
  .menu-inner { grid-template-columns: 54.5fr 45.5fr; }
  .menu-main { background: var(--bg); padding: 120px 0 120px 122px; align-content: center; }
  .menu-brand { inset-block-start: 28px; inset-inline-start: 122px; }
  .menu-main nav a { min-height: 57.6px; font: 300 28px/1.4 var(--sans); letter-spacing: .08em; }
  .menu-side { background: var(--footer-bg); padding: 0 44px 44px; }
  .menu-close { inset-block-start: 53px; inset-inline-end: 47px; inline-size: 28px; block-size: 28px; }
  .menu-visit { display: grid; gap: 16px; color: var(--fg); }
  .menu-visit-title { font: 400 15px/1.6 var(--serif); letter-spacing: .1em; margin: 0 0 8px !important; }
  .menu-cta {
    display: grid; place-items: center; inline-size: 100%; block-size: 56px; box-sizing: border-box;
    border: 1px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer;
    font: 300 16px/1 var(--sans); letter-spacing: .12em; transition: background .25s, color .25s;
  }
  .menu-cta:hover { background: var(--fg); color: var(--bg); }
}
.menu-main { background: var(--bg); }
.menu-side { background: var(--footer-bg); }
.menu-cta { border: 1px solid var(--fg); background: transparent; color: var(--fg); font: 300 15px/1 var(--sans); letter-spacing: .12em; min-block-size: 52px; text-align: center; display: grid; place-items: center; }
.menu-visit { display: grid; gap: 12px; }
.menu-close, .menu-close:focus, .menu-close:focus-visible, .menu-close:active { outline: none; border: 0; background: none; box-shadow: none; -webkit-tap-highlight-color: transparent; }
.visit-sheet .menu-close { inset-block-start: 20px; inset-inline-end: 20px; inline-size: 28px; block-size: 28px; }
.menu-main { background: var(--footer-bg); }
.menu-side { background: var(--bg); }

/* Short pages: footer sits at the bottom, no cream below it */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--footer-bg); }
body > main#app { flex: 1 0 auto; background: var(--bg); }
body > .foot { flex: 0 0 auto; }
.footer-note { margin: 0 0 14px; color: var(--muted); font: 300 13px/1.7 var(--sans); max-inline-size: 28em; }
.menu-visit { gap: 0; }
.menu-visit p { margin: 0 0 14px; font: 300 15px/1.9 var(--sans); letter-spacing: .08em; color: var(--fg); }
.menu-visit p:last-child { margin-bottom: 0; }
.menu-visit .menu-visit-title { font: 400 15px/1.6 var(--serif); letter-spacing: .1em; margin-bottom: 12px !important; }
/* Small image + copy left (centered in the free space), large image right */
@media (min-width: 761px) {
  .story-pair { grid-template-columns: minmax(0, 1fr) min(588px, 41vw); column-gap: 0; }
  .story-pair-right { order: 0; }
  .story-pair-left { justify-self: center; align-self: center; }
}
@media (min-width: 761px) {
  /* left column spans from the viewport edge to the large image, so the small image sits at the true centre of the blank space */
  .story-pair { inline-size: auto; margin-inline-start: calc(-1 * max(0px, (100vw - 100%) / 2)); }
}
.story-copy p + p { margin-top: 1em; }
.story-quote { display: inline; margin: 0; }
.story-copy p { text-wrap: pretty; }
.contact-qr { display: block; inline-size: 180px; block-size: 180px; margin: 4px 0 12px; }
.contact-qr-hint { margin: 0; color: var(--muted); font: 300 13px/1.7 var(--sans); letter-spacing: .08em; }
.contact-jump { display: inline-block; margin-top: 12px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#service { scroll-margin-top: calc(var(--topbar-h, 88px) + 24px); }
.contact-map span, .contact-jump span { display: inline-block; margin-inline-start: .45em; text-decoration: none; }
.contact-map, .contact-jump { display: inline-block; min-height: 0; padding-block: 12px; line-height: 1.4; }
@media (max-width: 760px) {
  .story-pair-right { margin-top: 40px; }
}
@media (max-width: 760px) {
  /* show the full brand name on phones: 二十七度恋 + 茶健康生活馆 */
  .topbar-brand-sub, .topbar > .topbar-brand .topbar-brand-sub { display: block; font-size: 9px; letter-spacing: .18em; }
  .topbar > .topbar-brand .topbar-brand-main { font-size: 21px; }
  .topbar-brand { gap: 3px; }
}
