:root {
  --bg: #F2EEE8;
  --fg: #333230;
  --muted: #5A5753;
  --line: rgba(51, 50, 48, .18);
  --on-accent: #FFFFFF;
  --footer-bg: #FFFFFF;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
.wx-share-img { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg);
  transition: background-color .25s, color .25s;
}

/* ---------- 到访 ---------- */
.visit { padding: 72px 0 40px; }
.rows { display: grid; gap: 14px; margin: 0 0 24px; }
.row { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px; font-size: 15px; }
.row dt { color: var(--muted); letter-spacing: .2em; }
.row dd { margin: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 18px; font-size: 14px; line-height: 1.5; }
.btn.solid { border: 1px solid var(--fg); background: var(--fg); color: var(--on-accent); letter-spacing: .12em; }
.foot { padding: clamp(27px, 4vw, 48px) 0 max(24px, env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--muted); background: var(--footer-bg); }
.foot a:hover, .foot button:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 联系与关注 */
.action-dialog {
  position: fixed; inset: 0; width: min(390px, calc(100% - 24px));
  max-height: calc(100dvh - 24px); margin: auto; padding: 22px;
  border: 0;
  color: var(--fg); background: var(--bg);
}
.action-dialog::backdrop { background: rgba(0, 0, 0, .42); }
.action-dialog h2, .partnership h2, .footer-content h2 {
  font: 400 20px/1.3 var(--serif); margin: 0 0 12px; color: var(--fg);
}
.action-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  font-size: 24px; color: var(--muted);
}
.action-dialog h2 { padding-right: 36px; }
.action-status { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.action-status:empty { display: none; }
.qr-dialog { text-align: center; }
.qr-dialog h2 { padding-inline: 36px; }
.qr-image { display: block; object-fit: contain; background: #fff; padding: 4px; margin-inline: auto; border-radius: 4px; }
.qr-dialog .btn { margin-top: 12px; }
.qr-dialog .btn[hidden] { display: none; }

.partnership { padding-block: clamp(34px, 7vw, 72px); }
.partnership-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(20px, 5vw, 56px); }
.partnership-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.partnership p { margin: 0 0 18px; color: var(--muted); }

@media (max-width: 600px) {
  .partnership-layout { grid-template-columns: 1fr; }
}
