/* =========================================================
   粗茶食馆 Cu Cha Restaurant — Design System
   1. Tokens   2. Base   3. Layout   4. Components
   5. Header/Footer   6. Page sections   7. Menu page
   8. Utilities & motion   9. Responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --bg: #F7EBE1;            /* 暖调杏香槟 background */
  --bg-deep: #F1DFD0;       /* alternate band */
  --surface: #FFFBF7;       /* cards */
  --ink: #1C2536;           /* body text */
  --muted: #6F6059;         /* secondary text (warm grey) */
  --line: rgba(23, 58, 107, .12);
  --navy: #173A6B;          /* PRIMARY — from logo */
  --navy-deep: #0F2749;
  --sky: #3BA7DB;           /* SECONDARY — logo wave */
  --sky-tint: #E3F2FA;
  --chili: #D8452B;         /* ACCENT — wok fire / chili */
  --chili-deep: #A9321C;
  --chili-tint: #FBE3DC;
  --gold: #F0B13E;          /* stars only */
  --doodle: #FFFFFF;        /* 描边图案 */

  /* type */
  --f-brush: "Ma Shan Zheng", "STKaiti", "KaiTi", "Kaiti SC", serif;
  --f-display: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  --t-xs: .78rem;
  --t-sm: .9rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --t-2xl: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  --t-3xl: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem);

  /* shape */
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(70, 40, 20, .06), 0 6px 18px rgba(70, 40, 20, .06);
  --sh-2: 0 24px 48px -24px rgba(15, 39, 73, .45);
  --sh-btn: 0 3px 0 var(--chili-deep);

  /* spacing */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --maxw: 1200px;
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
/* never allow sideways scrolling/zoom-out on phones (off-canvas nav, doodles, lightbox scroll-lock) */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; color: var(--navy-deep); }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--chili); color: #fff; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip-link:focus { top: 12px; }

/* ---------- Doodle background layer ---------- */
.doodle-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.doodle-layer svg.dd { position: absolute; fill: none; stroke: var(--doodle); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: opacity .5s ease; }
.doodle-layer.is-swapping svg.dd { opacity: 0 !important; }
.doodle-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--band { background: rgba(241, 223, 208, .5); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.section-head--inline { max-width: none; }
.section-head__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: .95rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--chili);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.01em; }
.h2 .en { display: block; font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.h2 .en--sub { margin-top: 2px; font-size: .42em; opacity: .9; }
.lead { font-size: var(--t-lg); color: var(--muted); max-width: 62ch; }

/* ---------- 4. Components ---------- */
/* Buttons */
.btn {
  --btn-bg: var(--chili); --btn-fg: #fff; --btn-shadow: var(--sh-btn);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--btn-shadow);
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--chili-deep); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--chili-deep); }
.btn--navy { --btn-bg: var(--navy); --btn-shadow: 0 3px 0 var(--navy-deep); }
.btn--navy:hover { box-shadow: 0 5px 0 var(--navy-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-shadow: none; border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-deep); --btn-shadow: 0 3px 0 rgba(0,0,0,.18); }
.btn--light:hover { box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.btn--wa { --btn-bg: #1FA855; --btn-shadow: 0 3px 0 #147A3D; }
.btn--wa:hover { box-shadow: 0 5px 0 #147A3D; }
.btn--sky { --btn-bg: #12759B; --btn-shadow: 0 3px 0 #0B5771; }   /* 高德地图按钮 — 与谷歌地图、Waze 区分 */
.btn--sky:hover { box-shadow: 0 5px 0 #0B5771; }
.btn--lg { min-height: 60px; padding: 14px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; font-family: var(--f-display); }
.text-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-family: var(--f-display); font-size: .72rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
  background: var(--navy); color: #fff; white-space: nowrap;
}
.tag--signature { background: var(--chili); }
.tag--best { background: var(--navy); }
.tag--chef { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.tag--must { background: var(--gold); color: #3a2604; }
.tag--rec { background: var(--sky-tint); color: #145C84; }
.tag--abv { background: #EEE6F7; color: #4F2F86; }

.chili-level { display: inline-flex; align-items: center; gap: 2px; color: var(--chili); flex-shrink: 0; }
.chili-level svg { width: 24px; height: 24px; }
.spicy-line { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--chili-deep); }
.spicy-line .chili-level svg { width: 30px; height: 30px; }

/* Seal (印章) */
.seal {
  display: inline-grid; place-items: center; width: 64px; height: 64px;
  background: var(--chili); color: #fff; border-radius: 8px;
  font-family: var(--f-brush); font-size: 1.55rem; line-height: .95; text-align: center;
  box-shadow: inset 0 0 0 3px var(--chili), inset 0 0 0 5px rgba(255,255,255,.85);
  transform: rotate(-6deg);
}

/* Media frame */
.media { position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--bg-deep); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--placeholder { display: grid; place-items: center; text-align: center; padding: 20px; color: var(--navy); background: repeating-linear-gradient(-45deg, #F3E2D4 0 12px, #EFDACA 12px 24px); border: 2px dashed rgba(23,58,107,.25); }
.media--placeholder svg { width: 52px; height: 52px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 10px; }
.media--placeholder b { display: block; font-family: var(--f-display); }
.media--placeholder small { display: block; color: var(--muted); font-size: var(--t-xs); margin-top: 4px; }

/* Dish card (home + menu) */
.dish-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-l); padding: 10px;
  box-shadow: var(--sh-1); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.dish-card:hover .media img { transform: scale(1.06); }
.dish-card .media { border-radius: calc(var(--r-l) - 8px); }
.dish-card__tags { position: absolute; top: 20px; left: 20px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.dish-card__body { display: grid; gap: 6px; padding: 14px 10px 10px; }
.dish-card__title { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dish-card__en { font-family: var(--f-display); color: var(--muted); font-size: var(--t-sm); font-weight: 600; }
.dish-card__desc { color: var(--muted); font-size: .95rem; }
.dish-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font-family: var(--f-display); font-weight: 800; color: var(--chili); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.price small { font-size: .72em; color: var(--muted); font-weight: 600; margin-left: 2px; }

/* Grids */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Feature (why us) */
.feature { display: grid; gap: 12px; align-content: start; padding: 28px 24px; background: var(--surface); border-radius: var(--r-l); border: 1px solid var(--line); }
.feature__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.feature__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(2n) .feature__icon { background: var(--chili); }
.feature h3 { font-size: 1.25rem; font-weight: 800; }
.feature h3 span { display: block; font-size: .72em; color: var(--muted); font-weight: 600; margin-top: 2px; }
.feature p { color: var(--muted); font-size: .97rem; }
.feature p.feature__en { font-size: .9rem; line-height: 1.5; margin-top: -6px; opacity: .9; }

/* Info list */
.info-list { display: grid; gap: 18px; }
.info-item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.info-item__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--sky-tint); color: var(--navy); display: grid; place-items: center; }
.info-item__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-item dt { font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-item dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.info-item dd a { color: var(--navy); }

/* Map */
.map-frame { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--sky-tint); border: 1px solid var(--line); min-height: 320px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; color: var(--navy); background:
  radial-gradient(circle at 30% 40%, rgba(59,167,219,.18) 0 60px, transparent 61px),
  linear-gradient(90deg, rgba(23,58,107,.07) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(rgba(23,58,107,.07) 1px, transparent 1px) 0 0 / 40px 40px, var(--sky-tint); }
.map-fallback svg { width: 48px; height: 48px; fill: var(--chili); }
.map-fallback b { font-family: var(--f-display); font-size: 1.1rem; }
.map-fallback span { color: var(--muted); font-size: var(--t-sm); max-width: 32ch; }

/* Review */
.review { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--surface); border-radius: var(--r-l); border: 1px solid var(--line); position: relative; }
.review__stars { display: flex; gap: 2px; color: var(--gold); }
.review__stars svg { width: 18px; height: 18px; fill: currentColor; }
.review__stars .off { color: #E6D6C8; }
.review blockquote { margin: 0; font-size: 1.02rem; display: grid; gap: 10px; }
.review__en { color: var(--muted); font-size: .92rem; font-style: italic; padding-top: 10px; border-top: 1px dashed var(--line); }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--f-display); font-weight: 800; }
.review cite { font-style: normal; font-weight: 700; display: block; line-height: 1.3; }
.review small { color: var(--muted); display: flex; align-items: center; gap: 5px; font-size: var(--t-xs); }
.review small svg { width: 13px; height: 13px; }
.sample-flag { position: absolute; top: 16px; right: 16px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--chili-deep); background: var(--chili-tint); border: 1px dashed var(--chili); border-radius: var(--r-pill); padding: 2px 9px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: clamp(24px, 4vw, 40px); padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.inline-doodles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.inline-doodles svg { position: absolute; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .26; }
.cta-band h2 { color: #fff; font-size: var(--t-2xl); }
.cta-band h2 .brush { font-family: var(--f-brush); font-weight: 400; color: #FFD9CF; font-size: 1.15em; }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 12px; max-width: 46ch; }
.cta-band .btn-row { flex-direction: column; align-items: stretch; justify-self: end; width: min(100%, 320px); }
.cta-band__wave { position: absolute; right: -60px; bottom: -80px; width: 380px; opacity: .12; z-index: -1; }
.cta-band__wave path { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(40px, 7vw, 90px) clamp(28px, 5vw, 60px); position: relative; }
.page-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: var(--t-3xl); font-weight: 800; letter-spacing: -.02em; }
.page-hero h1 .brush { font-family: var(--f-brush); font-weight: 400; color: var(--chili); display: block; font-size: 1.05em; letter-spacing: .02em; }
.page-hero .lead { margin-top: 16px; }
.breadcrumb { display: flex; gap: 8px; font-size: var(--t-sm); color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--navy); text-decoration: none; font-weight: 600; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(12, 22, 40, .82); backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lightbox__box { position: relative; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--r-l); display: grid; grid-template-columns: 1.2fr 1fr; animation: pop .25s ease; }
.lightbox__img { background: #000; min-height: 280px; }
.lightbox__img img { width: 100%; height: 100%; object-fit: cover; max-height: 80vh; }
.lightbox__body { padding: 28px; display: grid; gap: 12px; align-content: start; }
.lightbox__body h3 { font-size: 1.7rem; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: var(--sh-1); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox--photo .lightbox__box { grid-template-columns: 1fr; background: transparent; }
.lightbox--photo .lightbox__img { background: transparent; }
.lightbox--photo .lightbox__img img { object-fit: contain; max-height: 82vh; border-radius: var(--r-m); }
.lightbox--photo .lightbox__body { background: transparent; color: #fff; padding: 12px 4px 0; text-align: center; }
.price-table { display: grid; gap: 6px; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bg); font-variant-numeric: tabular-nums; }
.price-row b { color: var(--chili); font-family: var(--f-display); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-family: var(--f-display); font-weight: 700; font-size: var(--t-sm); color: var(--navy-deep); }
.field label .req { color: var(--chili); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid rgba(23,58,107,.2); border-radius: 14px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(59,167,219,.18); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--chili); background: #FFF6F3; }
.field input::placeholder { color: var(--muted); opacity: .5; }
.phone-group { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.cc-select { position: relative; min-height: 52px; min-width: 112px; border: 1.5px solid rgba(23,58,107,.2); border-radius: 14px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.cc-select__value { display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px 0 14px; white-space: nowrap; pointer-events: none; }
.cc-select__value b { font-weight: 700; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.cc-select__chev { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.field .cc-select select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.cc-select:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(59,167,219,.18); }
.field.is-invalid .cc-select { border-color: var(--chili); }
.field__error { color: var(--chili-deep); font-size: var(--t-xs); font-weight: 600; min-height: 1em; }
.form-status { padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.form-status--ok { background: #E3F4EA; color: #165C35; }
.form-status--err { background: var(--chili-tint); color: var(--chili-deep); }

/* Social */
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; transition: transform .2s ease, background-color .2s ease; }
.social a:hover { transform: translateY(-3px); background: var(--chili); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social--lg a { width: auto; height: auto; border-radius: var(--r-l); padding: 18px 22px; display: flex; gap: 14px; text-decoration: none; justify-content: flex-start; flex: 1 1 240px; }
.social--lg a span { display: grid; line-height: 1.3; }
.social--lg a b { font-family: var(--f-display); }
.social--lg a small { opacity: .8; }
.social--lg svg { width: 30px; height: 30px; }

/* ---------- 5. Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.site-header.is-scrolled { background: rgba(247, 235, 225, .86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); transition: height .3s ease; }
.site-header.is-scrolled .header-inner { height: 62px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .brand img { height: 38px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { position: relative; padding: 10px 14px; border-radius: var(--r-pill); text-decoration: none; font-family: var(--f-display); font-weight: 600; color: var(--navy-deep); display: grid; line-height: 1.15; text-align: center; transition: background-color .2s ease; }
.nav a:not(.btn) small { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.nav a:not(.btn):hover { background: rgba(23,58,107,.07); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.nav a[aria-current="page"] small { color: rgba(255,255,255,.75); }
.nav .btn { min-height: 46px; padding: 10px 18px; margin-left: 8px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--navy); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding-block: clamp(56px, 8vw, 88px) 28px; margin-top: var(--section); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 30px; background: var(--navy-deep); -webkit-mask: radial-gradient(22px 16px at 50% 100%, #000 98%, transparent) 0 0 / 44px 30px repeat-x; mask: radial-gradient(22px 16px at 50% 100%, #000 98%, transparent) 0 0 / 44px 30px repeat-x; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .95rem; }
.site-footer .footer-contact svg { width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: #FFB6A6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .social a { background: rgba(255,255,255,.1); }
.site-footer .social a:hover { background: var(--chili); text-decoration: none; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }

/* Mobile sticky action bar */
.mobile-bar { display: none; }

/* ---------- 6. Home ---------- */
.hero { padding-block: clamp(24px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { display: grid; gap: 4px; margin: 18px 0 20px; }
.hero__title .brush { font-family: var(--f-brush); font-weight: 400; font-size: clamp(4rem, 2rem + 8vw, 8.4rem); line-height: .95; color: var(--navy); letter-spacing: .02em; }
.hero__title .brush--logo { display: block; line-height: 0; }
.hero__title .brush--logo img { width: min(100%, 460px); height: auto; }
.hero__title .latin { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.hero__slogan { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); font-weight: 700; color: var(--navy-deep); font-family: var(--f-display); }
.hero__slogan-en { color: var(--muted); margin-top: 6px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.chip svg { width: 16px; height: 16px; color: var(--chili); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero__trust { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 36px); margin-top: 32px; padding-top: 24px; border-top: 1px dashed rgba(23,58,107,.22); }
.trust { display: grid; line-height: 1.2; }
.trust b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.trust span { font-size: var(--t-sm); color: var(--muted); }
.trust a { color: var(--navy); font-weight: 700; }
.trust--reviews { text-decoration: none; color: inherit; }
.trust--reviews b { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; }
.trust--reviews b svg { width: 24px; height: 24px; flex: none; }
.trust--reviews span { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); font-weight: 700; }
.trust--reviews span svg { width: 16px; height: 16px; transition: transform .2s ease; }
.trust--reviews:hover span svg { transform: translateX(3px); }
.trust--reviews:hover b { color: var(--chili); }
.hero__visual { position: relative; padding: 0 0 40px 40px; }
.hero__main { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--r-l) var(--r-l); box-shadow: var(--sh-2); }
.hero__polaroid { position: absolute; left: 0; bottom: 0; width: 44%; background: #fff; padding: 8px 8px 12px; border-radius: 16px; box-shadow: var(--sh-2); transform: rotate(-5deg); }
.hero__polaroid .media { border-radius: 10px; }
.hero__polaroid p { font-family: var(--f-brush); font-size: 1.3rem; text-align: center; color: var(--navy); margin-top: 6px; line-height: 1.1; }
.hero__polaroid p small { display: block; font-family: var(--f-display); font-size: .7rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.hero__seal { position: absolute; top: 18px; right: -8px; width: 84px; height: 84px; font-size: 1.35rem; z-index: 2; }
.hero__badge { position: absolute; right: 18px; bottom: 64px; background: #fff; border-radius: var(--r-m); padding: 12px 16px; box-shadow: var(--sh-1); display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; }
.hero__badge svg { width: 30px; height: 30px; color: var(--chili); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__badge small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }

.story-preview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.story-preview__imgs { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: end; }
.story-preview__imgs .media:first-child { aspect-ratio: 3 / 4; }
.story-preview__imgs .media:last-child { aspect-ratio: 1; margin-bottom: 40px; }
.story-preview__year { position: absolute; z-index: 1; left: -10px; top: -26px; font-family: var(--f-display); font-weight: 800; font-size: clamp(3.5rem, 8vw, 6rem); color: #fff; -webkit-text-stroke: 2px var(--navy); line-height: 1; letter-spacing: -.02em; }
.story-preview blockquote { margin: 20px 0 24px; font-family: var(--f-brush); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.45; color: var(--navy); }
.story-preview p + p { margin-top: 12px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.cat-tile { position: relative; display: block; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 1; text-decoration: none; color: #fff; isolation: isolate; box-shadow: var(--sh-1); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,39,73,0) 40%, rgba(15,39,73,.85)); }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile__label { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.cat-tile__label b { font-family: var(--f-display); font-size: clamp(1.1rem, .9rem + .8vw, 1.45rem); display: block; line-height: 1.15; }
.cat-tile__label small { font-size: .78rem; opacity: .85; letter-spacing: .04em; }
.cat-tile__arrow { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--chili); display: grid; place-items: center; transition: transform .25s ease; }
.cat-tile__arrow svg { width: 18px; height: 18px; }
.cat-tile:hover .cat-tile__arrow { transform: rotate(-45deg); }

.location { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.location__card { background: var(--surface); border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); display: grid; gap: 24px; align-content: start; justify-items: start; border: 1px solid var(--line); }
.location__card > .info-list, .location__card > .btn-row { justify-self: stretch; }
.hours-now { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--t-sm); padding: 5px 12px; border-radius: var(--r-pill); background: var(--bg); }
.hours-now i { width: 9px; height: 9px; border-radius: 50%; background: #9A8C84; }
.hours-now { border-radius: 16px; padding: 6px 14px; }
.hours-now__txt { display: grid; line-height: 1.25; }
.hours-now__txt b { font-weight: 700; }
.hours-now__txt small { font-size: .82em; font-weight: 600; opacity: .85; }
.hours-now.is-open { background: #E3F4EA; color: #165C35; }
.hours-now.is-open i { background: #22A55A; box-shadow: 0 0 0 4px rgba(34,165,90,.2); }
.hours-now.is-closed { background: var(--chili-tint); color: var(--chili-deep); }
.hours-now.is-closed i { background: var(--chili); }

/* ---------- About ---------- */
.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.chapter + .chapter { margin-top: clamp(64px, 10vw, 128px); }
.chapter--flip .chapter__media { order: 2; }
.chapter__media { position: relative; display: grid; gap: 14px; }
.chapter__media .media { aspect-ratio: 4 / 3; }
.chapter__media--duo { grid-template-columns: 1fr 1fr; align-items: end; }
.chapter__media--duo .media:first-child { aspect-ratio: 3 / 4; }
.chapter__media--duo .media:last-child { aspect-ratio: 1; }
.chapter__num { font-family: var(--f-display); font-weight: 800; color: var(--chili); letter-spacing: .14em; font-size: var(--t-xs); text-transform: uppercase; }
.chapter h2 { font-size: var(--t-2xl); margin: 10px 0 20px; }
.chapter .zh { font-size: 1.12rem; line-height: 1.9; color: var(--ink); display: grid; gap: 10px; }
.chapter .en { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .98rem; display: grid; gap: 8px; font-style: italic; }
.chapter .highlight { font-family: var(--f-brush); font-size: 2rem; color: var(--chili); line-height: 1.3; display: inline-block; }
.pull-quote { background: var(--navy); color: #fff; border-radius: clamp(24px, 4vw, 40px); padding: clamp(40px, 7vw, 88px) clamp(24px, 7vw, 96px); position: relative; overflow: hidden; }
.pull-quote blockquote { margin: 0; font-family: var(--f-brush); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.8rem); line-height: 1.5; max-width: 24em; }
.pull-quote blockquote::before { content: "“"; display: block; font-family: var(--f-display); font-size: 5rem; line-height: .6; color: var(--chili); margin-bottom: 10px; }
.pull-quote .en-quote { margin-top: 20px; color: rgba(255,255,255,.75); font-style: italic; max-width: 60ch; }
.pull-quote .coda { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pull-quote .coda p:first-child { font-size: 1.2rem; font-weight: 600; line-height: 1.8; }
.pull-quote .coda p:last-child { color: rgba(255,255,255,.75); font-style: italic; }
.pull-quote .year-mark { position: absolute; right: -10px; top: -30px; font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 18vw, 14rem); color: rgba(255,255,255,.05); line-height: 1; pointer-events: none; }
.timeline { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 40px; }
.timeline__dot { display: grid; gap: 2px; text-align: center; }
.timeline__dot b { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); font-weight: 800; line-height: 1; }
.timeline__dot span { font-size: var(--t-sm); color: var(--muted); }
.timeline__line { height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--chili) 0 14px, transparent 14px 22px); position: relative; }
.timeline__line span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--bg); padding: 4px 14px; font-weight: 700; color: var(--chili); white-space: nowrap; font-size: var(--t-sm); }
.principle { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 22px; background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); align-items: start; }
.principle .feature__icon { width: 54px; height: 54px; border-radius: 16px; }
.principle .feature__icon svg { width: 28px; height: 28px; }
.principle:nth-child(2n) .feature__icon { background: var(--chili); }
.principle h3 { font-size: 1.12rem; }
.principle h3 span { font-size: .78em; color: var(--muted); font-weight: 600; margin-left: 6px; }
.principle p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.principle p.principle__en { font-size: .86rem; line-height: 1.5; margin-top: 6px; opacity: .9; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 18vw, 230px); grid-auto-flow: dense; gap: 14px; }
.gallery__item { border: 0; padding: 0; cursor: zoom-in; background: none; text-align: left; border-radius: var(--r-m); overflow: hidden; position: relative; }
.gallery__item.is-wide { grid-column: span 2; }
.gallery__item.is-tall { grid-row: span 2; }
.gallery__item .media { width: 100%; height: 100%; border-radius: inherit; }
.gallery__item:hover .media img { transform: scale(1.06); }
.gallery__cap { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--navy-deep); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.gallery__item .media--placeholder { cursor: default; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.panel { background: var(--surface); border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.panel h2 { font-size: var(--t-xl); margin-bottom: 8px; }
.panel > p { color: var(--muted); margin-bottom: 24px; }
.map-tabs { display: inline-flex; padding: 5px; gap: 4px; background: var(--surface); border-radius: var(--r-pill); border: 1px solid var(--line); margin-bottom: 16px; }
.map-tabs button { border: 0; background: none; padding: 10px 20px; border-radius: var(--r-pill); font-family: var(--f-display); font-weight: 700; cursor: pointer; min-height: 44px; color: var(--navy-deep); }
.map-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.map-panel .map-frame { min-height: 420px; }
.map-panel .btn { margin-top: 16px; }
.contact-grid--match { align-items: stretch; }
.contact-grid--vcenter { align-items: center; }
.contact-grid--match .map-panel { display: flex; flex-direction: column; align-items: flex-start; }
.contact-grid--match .map-panel [role=tabpanel] { flex: 1; display: flex; flex-direction: column; align-self: stretch; }
.contact-grid--match .map-panel .map-frame { flex: 1; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 7. Menu page ---------- */
.menu-tools { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 62px); z-index: 50; background: rgba(247,235,225,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); padding-block: 12px; }
.menu-tools__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 260px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 10px 44px 10px 46px; border-radius: var(--r-pill); border: 1.5px solid rgba(23,58,107,.18); background: #fff; }
.search input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(59,167,219,.18); }
.search__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.search__clear svg { position: static; transform: none; width: 16px; height: 16px; color: inherit; }
.menu-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.toggle-group { display: inline-flex; padding: 4px; gap: 2px; background: #fff; border-radius: var(--r-pill); border: 1.5px solid rgba(23,58,107,.14); }
.toggle-group button { border: 0; background: none; min-height: 38px; padding: 6px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--navy-deep); white-space: nowrap; }
.toggle-group button svg { width: 15px; height: 15px; color: var(--chili); }
.toggle-group button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.toggle-group button[aria-pressed="true"] svg { color: #FFB6A6; }
.cat-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 2px 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav button { flex: none; border: 1.5px solid rgba(23,58,107,.16); background: #fff; min-height: 44px; padding: 6px 16px; border-radius: var(--r-pill); cursor: pointer; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; color: var(--navy-deep); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.cat-nav button small { font-weight: 600; color: var(--muted); font-size: .76rem; }
.cat-nav button .count { font-size: .7rem; background: var(--bg); border-radius: var(--r-pill); padding: 1px 7px; color: var(--muted); }
.cat-nav button:hover { border-color: var(--navy); }
.cat-nav button[aria-selected="true"] { background: var(--chili); border-color: var(--chili); color: #fff; }
.cat-nav button[aria-selected="true"] small, .cat-nav button[aria-selected="true"] .count { color: rgba(255,255,255,.85); }
.cat-nav button[aria-selected="true"] .count { background: rgba(0,0,0,.14); }

.menu-body { padding-block: 36px 0; min-height: 60vh; }
.menu-section + .menu-section { margin-top: 64px; }
.menu-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.menu-section__head h2 { font-size: var(--t-2xl); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.menu-section__head h2 .zh { font-family: var(--f-brush); font-weight: 400; color: var(--navy); font-size: 1.2em; }
.menu-section__head h2 .en { font-size: .5em; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.menu-section__meta { color: var(--muted); font-size: var(--t-sm); font-weight: 600; }
.menu-sub { font-family: var(--f-display); font-size: 1.1rem; font-weight: 800; color: var(--navy); margin: 34px 0 16px; display: flex; align-items: center; gap: 12px; }
.menu-sub::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(23,58,107,.25) 0 6px, transparent 6px 12px); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.m-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: transform .25s ease, box-shadow .25s ease; animation: rise .45s ease both; }
.m-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.m-card:hover .media img { transform: scale(1.06); }
.m-card__img { position: relative; display: block; }
.m-card .media { border-radius: 0; aspect-ratio: 4 / 3; }
.nb { display: inline-block; }
.m-card .media--none { display: grid; place-items: center; background: var(--bg-deep); color: var(--navy); }
.m-card .media--none svg { width: 64px; height: 64px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.m-card__code { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--navy-deep); font-family: var(--f-display); font-weight: 800; font-size: .78rem; padding: 3px 10px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; z-index: 1; }
.m-card__tags { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; z-index: 1; }
.m-card__body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; align-content: start; }
.m-card__name { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.m-card__name h3 { font-size: 1.18rem; font-weight: 800; }
.m-card__en { font-family: var(--f-display); color: var(--muted); font-size: .88rem; font-weight: 600; line-height: 1.35; }
.m-card__only { display: inline-flex; justify-self: start; margin-top: 8px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--chili-tint); color: var(--chili-deep); font-family: var(--f-display); font-weight: 800; font-size: .8rem; letter-spacing: .02em; }
.m-card__only .nowrap { white-space: nowrap; }
.m-card__only--lg { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; font-size: 1rem; }
.m-card__only--lg small { font-weight: 600; font-size: .85rem; color: var(--ink, #3a2e28); }
.m-card__note { font-size: .78rem; font-weight: 700; color: #4F2F86; }
.m-card__prices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.p-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 10px; background: var(--bg); font-variant-numeric: tabular-nums; font-size: .9rem; line-height: 1.35; }
.p-chip i { font-style: normal; color: var(--muted); font-size: .76rem; font-weight: 700; }
.p-chip b { color: var(--chili); font-family: var(--f-display); font-weight: 800; }
.p-chip--season b { color: var(--navy); }
.m-card.is-highlight { box-shadow: 0 0 0 3px var(--chili), var(--sh-2); }
.menu-empty { text-align: center; padding: 64px 16px; display: grid; gap: 12px; justify-items: center; }
.menu-empty svg { width: 72px; height: 72px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.notice { display: flex; gap: 12px; align-items: start; padding: 14px 18px; border-radius: var(--r-m); background: #EEE6F7; color: #3D2370; font-size: .92rem; margin-bottom: 18px; }
.notice svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.notice--info { background: var(--sky-tint); color: #164E70; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; }
.style-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.style-item .letter { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--f-display); font-weight: 800; flex: none; }
.style-item div { display: grid; line-height: 1.25; }
.style-item b { font-size: .98rem; }
.style-item small { color: var(--muted); font-size: .78rem; }
.style-item .chili-level { margin-left: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--t-sm); color: var(--muted); margin-top: 18px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 8. Utilities & motion ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-l { margin-top: clamp(32px, 5vw, 56px); }
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-pending { opacity: .3; transform: translateY(24px); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--4, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:not(.btn) { padding: 8px 10px; }
}
@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .site-header.is-scrolled .nav { top: calc(env(safe-area-inset-top, 0px) + 62px); }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav a:not(.btn) { grid-template-columns: 1fr auto; text-align: left; align-items: center; padding: 16px 20px; font-size: 1.25rem; background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); }
  .nav a:not(.btn) small { font-size: .85rem; }
  .nav a[aria-current="page"]:not(.btn) { background: var(--navy); border-color: var(--navy); color: #fff; }
  .nav .btn { margin: 10px 0 0; min-height: 56px; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .hero__grid, .story-preview, .location, .page-hero__inner, .chapter, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .chapter--flip .chapter__media { order: 0; }
  .cta-band .btn-row { justify-self: start; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox__box { grid-template-columns: 1fr; }
  .lightbox__img img { max-height: 46vh; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pull-quote .coda { grid-template-columns: 1fr; }
  .menu-tools { top: calc(env(safe-area-inset-top, 0px) + 62px); }
  /* sticky mobile action bar */
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(247,235,225,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { min-height: 50px; padding: 8px 10px; font-size: .88rem; gap: 6px; line-height: 1.15; white-space: normal; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .grid--3, .grid--2, .form-row, .map-actions { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { border-radius: var(--r-m); }
  .cat-tile__label { left: 12px; right: 12px; bottom: 12px; }
  .cat-tile__arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero__visual { padding: 0 0 28px 20px; }
  .hero__seal { width: 66px; height: 66px; font-size: 1.1rem; right: 0; }
  .hero__badge { display: none; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m-card { border-radius: 16px; }
  .m-card__body { padding: 10px 12px 12px; }
  .m-card__name h3 { font-size: 1.02rem; }
  .m-card__en { font-size: .78rem; }
  .m-card__only:not(.m-card__only--lg) { font-size: .72rem; padding: 3px 8px; gap: 3px; }
  .m-card__only .only-long { display: none; }
  .p-chip { font-size: .8rem; padding: 3px 7px; }
  .m-card__tags .tag { font-size: .62rem; padding: 3px 7px; }
  .m-card__tags .tag-en { display: none; }
  .m-card__tags .tag--must .tag-en { display: inline; }
  .m-card__code { font-size: .7rem; top: 8px; left: 8px; }
  .m-card__tags { top: auto; bottom: 6px; left: 6px; right: 6px; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .menu-tools { padding-block: 10px; }
  .menu-tools__row { gap: 8px; }
  .search input { min-height: 44px; }
  .menu-filters { flex-wrap: nowrap; gap: 8px; width: 100%; }
  .menu-filters .toggle-group:first-child { flex: 1; }
  .toggle-group button { flex: 1; justify-content: center; padding: 4px 10px; min-height: 36px; }
  .menu-filters { flex-wrap: wrap; }
  .cat-nav { padding-top: 8px; }
  .timeline { grid-template-columns: 1fr; text-align: center; }
  .timeline__line { height: 40px; width: 4px; margin-inline: auto; background: repeating-linear-gradient(180deg, var(--chili) 0 8px, transparent 8px 14px); }
  .gallery { grid-auto-rows: 160px; gap: 10px; }
  .map-panel .map-frame { min-height: 320px; }
}
@media (max-width: 640px) {
  .section-head__row { flex-wrap: nowrap; gap: 10px; }
  .section-head__row h2 { white-space: nowrap; font-size: 1.8rem; }
  .section-head__row .btn { min-height: 44px; padding: 8px 12px; gap: 6px; font-size: .82rem; white-space: normal; line-height: 1.25; text-align: center; flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 380px) {
  .menu-grid { grid-template-columns: 1fr; }
}

/* grid children may shrink below their content width */
.hero__grid > *, .story-preview > *, .location > *, .contact-grid > *, .page-hero__inner > *, .chapter > *, .cta-band > * { min-width: 0; }
.btn--block { white-space: normal; text-align: center; }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } }

.hero .btn-row .btn--lg { padding-inline: 22px; }
.menu-grid + .notice { margin-top: 40px; }
.chapter__media--compare { grid-template-columns: 1fr 1fr; align-items: start; }
.chapter__media--compare figure { margin: 0; position: relative; }
.chapter__media--compare .media { aspect-ratio: 3 / 4; }
.chapter__media--compare figcaption { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--navy-deep); font-family: var(--f-display); font-weight: 800; font-size: .85rem; padding: 5px 12px; border-radius: var(--r-pill); box-shadow: var(--sh-1, 0 2px 8px rgba(0,0,0,.12)); }
.chapter__media--compare figure:first-child img { filter: sepia(.25); }
.memory-strip { margin: clamp(24px, 4vw, 40px) 0 0; border-radius: clamp(18px, 3vw, 32px); overflow: hidden; box-shadow: var(--sh-2); background: #2b2118; }
.memory-strip img { display: block; width: 100%; height: auto; }
.gallery__past { position: absolute; left: 10px; top: 10px; background: rgba(23,58,107,.9); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: var(--r-pill); }
@media (max-width: 560px) {
  .gallery__past { font-size: .64rem; padding: 3px 8px; left: 8px; top: 8px; }
  .gallery__past .gp-en { display: none; }
  .gallery__cap { font-size: .66rem; padding: 3px 8px; left: 8px; bottom: 8px; right: 8px; width: max-content; max-width: calc(100% - 16px); line-height: 1.3; }
}

/* ---------- Back-to-top button (一键置顶) ----------
   Desktop > 1024px · Tablet 641–1024px · Phone ≤ 640px (iOS & Android)
   On ≤ 920px it sits above the fixed mobile action bar; safe-area insets keep it
   clear of the iPhone home indicator / notch and Android gesture bar. */
.to-top {
  --tt-size: 56px; --tt-right: 32px; --tt-bottom: 32px;
  position: fixed; z-index: 95;
  right: calc(var(--tt-right) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--tt-bottom) + env(safe-area-inset-bottom, 0px));
  width: var(--tt-size); height: var(--tt-size); border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 1px;
  padding: 0; border: 2px solid rgba(255,255,255,.9); cursor: pointer;
  background: rgba(23, 58, 107, .62); color: #fff;
  -webkit-backdrop-filter: blur(8px) saturate(1.3); backdrop-filter: blur(8px) saturate(1.3);
  box-shadow: 0 10px 24px -10px rgba(15, 39, 73, .45), 0 2px 6px rgba(15, 39, 73, .15);
  font-family: var(--f-display); font-weight: 800; font-size: .62rem; letter-spacing: .08em; line-height: 1;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
  border-color: rgba(255,255,255,.75);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(216, 69, 43, .85); }
.to-top:focus-visible, .to-top:active { background: rgba(23, 58, 107, .85); }
.to-top svg, .to-top span { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.to-top:active { transform: scale(.94); }
.to-top:focus-visible { outline: 3px solid var(--sky, #3BA7DB); outline-offset: 3px; }
.nav-open .to-top { opacity: 0; visibility: hidden; }
/* Tablet */
@media (max-width: 1024px) {
  .to-top { --tt-size: 60px; --tt-right: 24px; --tt-bottom: 28px; font-size: .66rem; }
  .to-top svg { width: 24px; height: 24px; }
}
/* Tablet & phone with the fixed bottom action bar */
@media (max-width: 920px) {
  .to-top { --tt-bottom: 86px; }
}
/* Phones — iOS & Android (≥ 48px touch target) */
@media (max-width: 640px) {
  .to-top { --tt-size: 52px; --tt-right: 16px; --tt-bottom: 84px; font-size: .58rem; border-width: 2px; }
  .to-top svg { width: 20px; height: 20px; }
}
/* keep the last footer line clear of the floating button */
.footer-bottom { padding-right: 76px; }
@media (max-width: 1024px) { .footer-bottom { padding-right: 80px; } }
@media (max-width: 640px) { .footer-bottom { padding-right: 64px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---------- Phone-only: menu legend in three rows (上 · 中 · 下) ---------- */
@media (max-width: 640px) {
  .page-hero .legend { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; column-gap: 14px; row-gap: 12px; margin-top: 22px; }
  .page-hero .legend > span:nth-child(n+4) { grid-column: 1 / -1; }
  .page-hero .legend { column-gap: 12px; font-size: .84rem; }
  .page-hero .legend > span { gap: 4px; white-space: nowrap; }
  .page-hero .legend .chili-level { gap: 0; }
  .page-hero .legend .chili-level svg { width: 16px; height: 16px; }
}
@media (max-width: 370px) {
  .page-hero .legend { column-gap: 8px; font-size: .78rem; }
  .page-hero .legend .chili-level svg { width: 14px; height: 14px; }
}
@media (max-width: 340px) {
  .page-hero .legend { column-gap: 6px; font-size: .72rem; }
}
/* Phone + tablet: the five tag filters wrap onto a grid, Chinese above English */
@media (max-width: 880px) {
  .menu-filters .toggle-group--tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2px; width: 100%; border-radius: 18px; }
  .toggle-group--tags button { flex-direction: column; gap: 1px; padding: 6px 2px; min-height: 48px; line-height: 1.15; border-radius: 14px; text-align: center; white-space: normal; }
  .toggle-group--tags button svg { display: none; }
  .toggle-group--tags .lbl-en { display: block; font-size: .68rem; font-weight: 600; opacity: .85; }
}
/* Very small phones: 2 × 2 grid so "Recommended" never gets cut */
@media (max-width: 370px) {
  .menu-filters .toggle-group--tags { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2px; }
  .menu-filters .toggle-group--tags button:last-child { grid-column: 1 / -1; }
  .menu-filters .toggle-group:not(.toggle-group--tags) { width: 100%; }
  .menu-filters .toggle-group:not(.toggle-group--tags) button { flex: 1 1 auto; padding: 4px 4px; gap: 3px; font-size: .84rem; min-width: 0; }
}
/* Phone: three map tabs (Google Maps / Waze / Amap) share one row */
@media (max-width: 640px) {
  .map-tabs { display: flex; width: 100%; padding: 4px; gap: 2px; }
  .map-tabs button { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: .8rem; line-height: 1.2; text-align: center; }
}
@media (max-width: 370px) {
  .map-tabs button { padding: 8px 2px; font-size: .72rem; }
}
/* Phone: page intro text (About / Contact) fills the full line width */
@media (max-width: 640px) {
  .page-hero .lead { max-width: none; text-align: justify; text-justify: inter-character; }
  .page-hero .lead span[lang="en"] { hyphens: auto; -webkit-hyphens: auto; }
}
