/* Hallmark · macrostructure: Sticker Menu (ticker → sticker feed → bag drawer)
 * tone: playful-campus · theme: custom (vibe: "大学城食堂贴纸菜单"
 * paper oklch(96.5% .022 82) · accent oklch(62% .205 32) chili-red
 * display: ZCOOL KuaiLe + Noto Sans SC + Baloo 2)
 * enrichment: food-sticker collage (real dish images)
 * motion: marquee · cardIn · bag-slide · celebrate
 * contrast: pass (40–41) · nav: custom brand bar · footer: info trio
 * honest: pass (46) · chrome: pass (47) · tokens: pass (48)
 * responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49–57)
 * pre-emit critique: P5 H4 E5 S5 R4 V5 */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.7;
  letter-spacing: 0.02em;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { width: 18px; height: 18px; flex: 0 0 auto; }
.hidden { display: none !important; }
::selection { background: var(--tomato); color: var(--tomato-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ═══════════ 顶栏 ═══════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  min-height: var(--banner-height);
}
.brand { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; line-height: 1; }
.brand-seal {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--tomato);
  color: var(--tomato-ink);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-3deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: clamp(17px, 2vw, 21px); letter-spacing: 2px; }
.brand-text small { font-size: 10px; letter-spacing: 2.2px; color: var(--muted); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: var(--space-2xs); }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 13px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px; font-weight: 800;
  transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1), transform var(--dur-1);
}
.chip:hover { border-color: var(--tomato); color: var(--tomato-deep); }
.chip:active { transform: translateY(1px); }
.chip:disabled { opacity: 0.55; cursor: not-allowed; }
.chip svg { width: 16px; height: 16px; color: var(--tomato); }
/* 购物车里的「查订单 / 我的」入口（2026-09-25 会员中心） */
.cart-member-link { width: 100%; margin-top: var(--space-2xs); }
.cart-btn {
  position: relative;
  min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--tomato);
  color: var(--tomato-ink);
  font-weight: 900; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-1), transform var(--dur-1);
}
.cart-btn:hover { background: var(--tomato-deep); }
.cart-btn:active { transform: translateY(1px); }
.cart-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.cart-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--mustard);
  color: var(--ink);
  border: 2px solid var(--surface);
  font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.cart-badge.hidden { display: none; }

/* ═══════════ Hero ═══════════ */
.hero {
  background: var(--paper);
  padding: var(--space-lg) var(--space-sm) var(--space-xl);
  border-bottom: 4px solid var(--mustard);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-md);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; min-width: 0; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 1.12;
  letter-spacing: 1px;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.hero .hero-en {
  color: var(--tomato-deep);
  font-family: var(--font-num);
  letter-spacing: 3px;
  font-size: 13px; font-weight: 800;
  margin-top: var(--space-2xs);
}
.hero .hero-sub {
  color: var(--ink-soft);
  margin-top: var(--space-sm);
  max-width: 52ch;
  font-size: var(--text-base);
}
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin-top: var(--space-md); color: var(--ink-soft); font-size: 14px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; line-height: 1; }
.hero-facts svg { color: var(--tomato); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin-top: var(--space-md); }
.open-state {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--herb-soft);
  border: 1px solid var(--herb);
  color: var(--herb-deep);
  border-radius: var(--radius-full);
  padding: 9px 15px;
  font-size: 13px; font-weight: 800;
}
.open-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.open-state.closed { color: var(--tomato-deep); border-color: var(--tomato); background: var(--tomato-soft); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 var(--space-md);
  border-radius: var(--radius-full);
  border: none;
  background: var(--tomato);
  color: var(--tomato-ink);
  font-weight: 900; font-size: 15px;
  box-shadow: var(--shadow-md);
  transition: background var(--dur-1), box-shadow var(--dur-1), transform var(--dur-1);
}
.btn-primary:hover { background: var(--tomato-deep); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(2px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; background: var(--tomato); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--tomato);
  background: transparent;
  color: var(--tomato-deep);
  font-weight: 800; font-size: 14px;
}
.btn-ghost:hover { background: var(--tomato-soft); }
.btn-ghost:active { transform: translateY(1px); }
.hero-stickers { display: flex; justify-content: center; gap: var(--space-xs); align-items: center; min-width: 0; }
.hero-stickers img {
  width: clamp(88px, 10vw, 140px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-md);
}
.hero-stickers img:nth-child(1) { transform: rotate(-8deg); }
.hero-stickers img:nth-child(2) { transform: translateY(12px) rotate(4deg); }
.hero-stickers img:nth-child(3) { transform: translateY(-6px) rotate(-3deg); }

/* ═══════════ 跑马灯 ═══════════ */
.ticker {
  background: var(--mustard);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  padding: 8px 0;
}
.ticker-track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: var(--space-lg);
}
.ticker-track span::after { content: "✦"; font-size: 12px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ═══════════ 服务条 ═══════════ */
.value-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.value-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-sm);
}
.vs {
  display: flex; gap: var(--space-xs); align-items: center;
  background: var(--paper-2);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  min-height: 64px;
}
.vs svg { width: 22px; height: 22px; color: var(--tomato); }
.vs strong { display: block; font-size: 15px; color: var(--ink); letter-spacing: 0.5px; line-height: 1; }
.vs span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ═══════════ 分类导航 ═══════════ */
.cat-nav {
  position: sticky;
  top: var(--banner-height);
  z-index: var(--z-sticky);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cat-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: var(--space-2xs);
  overflow-x: auto;
  padding: 10px var(--space-sm);
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto;
  min-height: 42px; padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px; font-weight: 800;
  white-space: nowrap;
  transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1), transform var(--dur-1);
}
.cat-pill:hover { border-color: var(--tomato); color: var(--tomato-deep); background: var(--tomato-soft); transform: translateY(-1px); }
.cat-pill:active { transform: translateY(0); }
.cat-pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ═══════════ 主布局 ═══════════ */
.layout {
  max-width: 1200px; margin: 0 auto;
  padding: var(--space-md) var(--space-sm) 130px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: var(--space-md);
  align-items: start;
}
.menu-heading { display: flex; align-items: baseline; gap: var(--space-xs); margin: 4px 0 var(--space-md); }
.menu-heading h1 { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: 1px; }
.menu-heading span { color: var(--muted); font-size: 13px; }
.cat-section { margin-bottom: var(--space-lg); scroll-margin-top: 150px; }
.cat-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-sm); }
.cat-title h2 { font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: 1px; white-space: nowrap; }
.cat-title .cat-sub { color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; white-space: nowrap; }
.cat-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: var(--mustard);
  border-radius: 2px;
  margin-top: var(--space-2xs);
}
.cat-note {
  background: var(--sky-soft);
  border: 1.5px dashed var(--sky);
  color: var(--ink-soft);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 0 0 var(--space-sm);
  line-height: 1.7;
}

/* ═══════════ 贴纸菜品卡 ═══════════ */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: var(--space-sm);
}
.item-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 9px;
  min-height: 150px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1);
  animation: cardIn var(--dur-3) var(--ease-out) both;
}
.item-card:nth-child(1) { animation-delay: 0.02s; }
.item-card:nth-child(2) { animation-delay: 0.06s; }
.item-card:nth-child(3) { animation-delay: 0.1s; }
.item-card:nth-child(4) { animation-delay: 0.14s; }
.item-card:nth-child(5) { animation-delay: 0.18s; }
.item-card:nth-child(6) { animation-delay: 0.22s; }
.item-card:nth-child(7) { animation-delay: 0.26s; }
.item-card:nth-child(8) { animation-delay: 0.3s; }
.item-card:nth-child(9) { animation-delay: 0.34s; }
.item-card:nth-child(10) { animation-delay: 0.38s; }
.item-card:nth-child(11) { animation-delay: 0.42s; }
.item-card:nth-child(12) { animation-delay: 0.46s; }
.item-card::before {
  content: "";
  position: absolute;
  top: -9px; left: 50%;
  width: 72px; height: 18px;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--mustard);
  opacity: 0.9;
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--tomato); }
.item-card:focus-within { border-color: var(--tomato); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dish-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: block;
}
.dish-ph {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--mustard-soft);
  border: 1.5px dashed var(--mustard-deep);
  color: var(--mustard-deep);
  font-family: var(--font-display);
  font-size: 42px;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.item-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.item-name .primary { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: 0.3px; overflow-wrap: anywhere; }
.item-name .secondary { font-size: 12px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: var(--radius-full); letter-spacing: 0.4px; line-height: 1; }
.tag.hot { background: var(--tomato); color: var(--tomato-ink); }
.tag.signature { background: var(--ink); color: var(--paper); }
.tag.spicy { background: var(--tomato-soft); color: var(--tomato-deep); border: 1px solid var(--tomato); }
.tag.value { background: var(--mustard-soft); color: var(--mustard-deep); border: 1px solid var(--mustard); }
.item-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.item-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price {
  font-family: var(--font-num);
  font-size: 20px; font-weight: 800;
  color: var(--tomato-deep);
  background: var(--tomato-soft);
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1;
  display: inline-flex; align-items: baseline; gap: 2px;
  white-space: nowrap;
}
.price small { font-size: 10px; color: var(--muted); font-weight: 700; }
.add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 92px;
  padding: 0 var(--space-sm);
  border: none;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900; font-size: 14px;
  transition: background var(--dur-1), color var(--dur-1), transform var(--dur-1);
}
.add-btn:hover { background: var(--tomato); color: var(--tomato-ink); }
.add-btn:active { transform: translateY(1px) scale(0.98); }
.add-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.add-btn svg { width: 16px; height: 16px; }

/* ═══════════ 打包袋（购物车） ═══════════ */
.cart-panel {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: sticky;
  top: calc(var(--banner-height) + 20px);
  max-height: calc(100vh - 104px);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
}
.cart-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }
.cart-panel-head h2 { font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: 1px; }
.cart-count { color: var(--muted); font-size: 13px; font-weight: 700; }
.cart-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-xs); max-height: calc(100vh - 400px); overflow: auto; padding-right: 2px; }
.cart-empty { text-align: center; color: var(--muted); padding: 36px 10px; font-size: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  padding-bottom: var(--space-xs);
  border-bottom: 1.5px dashed var(--line-strong);
}
.ci-name { font-weight: 800; font-size: 14px; overflow-wrap: anywhere; }
.ci-price { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ci-controls { display: flex; align-items: center; gap: 9px; grid-column: 1 / 2; }
.qty-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1), transform var(--dur-1);
}
.qty-btn:hover { border-color: var(--tomato); color: var(--tomato-deep); background: var(--tomato-soft); }
.qty-btn:active { transform: translateY(1px); }
.qty-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.qty-btn svg { width: 16px; height: 16px; }
.ci-qty { min-width: 26px; text-align: center; font-weight: 900; font-size: 14px; font-family: var(--font-num); }
.ci-line { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ci-line-total { font-family: var(--font-num); font-weight: 800; color: var(--tomato-deep); font-size: 14px; }
.ci-remove { background: none; border: none; color: var(--muted); padding: 5px; display: inline-flex; border-radius: 8px; transition: color var(--dur-1), background var(--dur-1); }
.ci-remove:hover { color: var(--tomato); background: var(--tomato-soft); }
.ci-remove:active { transform: translateY(1px); }
.ci-remove:disabled { opacity: 0.55; cursor: not-allowed; }
.ci-remove svg { width: 15px; height: 15px; }
.cart-totals { margin-top: var(--space-sm); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.cart-totals .row { display: flex; justify-content: space-between; gap: var(--space-xs); align-items: center; }
.cart-totals .row.total { font-size: 18px; font-weight: 900; border-top: 2px solid var(--line); padding-top: 10px; margin-top: 4px; }
.fee-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.cart-panel .btn-primary { width: 100%; margin-top: var(--space-sm); }
.cart-backdrop { display: none; }

/* ═══════════ 移动端打包袋栏 ═══════════ */
#mobileCartBar {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  z-index: var(--z-cart);
  min-height: 56px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--ink);
  color: var(--paper);
  display: none;
  align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 8px 6px 18px;
  box-shadow: var(--shadow-lg);
}
#mobileCartBar .mcb-left { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px; line-height: 1; }
#mobileCartBar .mcb-left svg { color: var(--mustard); }
#mobileCartBar .mcb-total { color: var(--mustard); font-weight: 800; font-size: 17px; font-family: var(--font-num); }
#mobileCartBar .mcb-open {
  background: var(--tomato); color: var(--tomato-ink);
  border: none; border-radius: var(--radius-sm);
  min-height: 44px; padding: 0 18px;
  font-weight: 900; font-size: 14px; line-height: 1;
  transition: background var(--dur-1);
}
#mobileCartBar .mcb-open:hover { background: var(--tomato-deep); }
#mobileCartBar .mcb-open:active { transform: translateY(1px); }

/* ═══════════ 结算弹层 ═══════════ */
.overlay {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  background: oklch(28% 0.03 55 / 0.55);
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-sm);
}
.overlay.show { display: flex; }
.modal-card {
  background: var(--surface);
  width: 100%; max-width: 640px;
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.modal-head {
  position: sticky; top: 0;
  background: var(--surface);
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 2;
}
.modal-head h2 { font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: 1px; }
.modal-close {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.modal-close:hover { background: var(--tomato-soft); color: var(--tomato-deep); border-color: var(--tomato); }
.modal-close:active { transform: translateY(1px); }
.modal-body { padding: 20px; }
.form-group { margin-bottom: var(--space-sm); }
.form-label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; color: var(--ink-soft); }
.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.form-control:hover { border-color: var(--tomato); }
.form-control:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.form-control:disabled { opacity: 0.55; cursor: not-allowed; background: var(--paper-2); }
textarea.form-control { min-height: 72px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; min-height: 1lh; }
.field-hint.error { color: var(--error); font-weight: 800; }
.lookup-row { display: flex; gap: 8px; align-items: stretch; }
.lookup-row .form-control { flex: 1; min-width: 0; }
.lookup-btn {
  min-height: 46px; height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 800; font-size: 13px;
  white-space: nowrap;
  transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1);
}
.lookup-btn:hover { border-color: var(--tomato); color: var(--tomato-deep); background: var(--tomato-soft); }
.lookup-btn:active { transform: translateY(1px); }
.lookup-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.radio-group { display: flex; gap: 10px; }
.radio-card {
  flex: 1;
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 10px;
  text-align: center;
  font-weight: 900; font-size: 14px;
  background: var(--surface);
  min-height: 58px;
  cursor: pointer;
  line-height: 1.3;
  transition: border-color var(--dur-1), background var(--dur-1), color var(--dur-1), transform var(--dur-1);
}
.radio-card:hover { border-color: var(--tomato); }
.radio-card:active { transform: translateY(1px); }
.radio-card.selected { border-color: var(--tomato); background: var(--tomato-soft); color: var(--tomato-deep); }
.radio-card:disabled { opacity: 0.55; cursor: not-allowed; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; margin-top: 2px; }
.order-summary {
  background: var(--paper);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: var(--space-sm);
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px;
}
.os-items { border-bottom: 1.5px dashed var(--line); padding-bottom: 8px; margin-bottom: 2px; font-size: 13px; color: var(--ink-soft); }
.os-row { display: flex; justify-content: space-between; gap: var(--space-xs); align-items: center; }
.os-row.total { font-size: 17px; font-weight: 900; border-top: 2px solid var(--line-strong); padding-top: 10px; }
.submit-btn { width: 100%; margin-top: 18px; }
.form-error { color: var(--error); font-size: 13px; font-weight: 800; min-height: 1lh; margin-top: 4px; }

/* ═══════════ 支付 ═══════════ */
.payment-banner {
  background: var(--mustard-soft);
  border: 1.5px solid var(--mustard);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: var(--space-sm);
}
.payment-banner h3 { font-size: 15px; color: var(--mustard-deep); margin-bottom: 6px; font-weight: 900; }
.payment-banner p { font-size: 13px; color: var(--ink-soft); }
.stripe-box { margin-top: var(--space-sm); }
.stripe-box h3 { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; font-weight: 800; }
#cardElement {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface);
  min-height: 56px;
}
#cardElement:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.pay-btn { width: 100%; margin-top: 14px; }
.payment-error { color: var(--error); font-size: 13px; font-weight: 800; min-height: 1lh; margin-top: 8px; }
.order-no-line { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ═══════════ 成功页 ═══════════ */
.success-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--herb-soft);
  color: var(--herb-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 8px auto 14px;
  position: relative;
}
.success-icon svg { width: 32px; height: 32px; }
.success-icon.celebrate::before,
.success-icon.celebrate::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 2px;
  animation: spark var(--dur-3) var(--ease-out) both;
}
.success-icon.celebrate::before { top: -6px; left: 6px; background: var(--mustard); transform: rotate(18deg); }
.success-icon.celebrate::after { bottom: -4px; right: 2px; background: var(--tomato); transform: rotate(-14deg); }
@keyframes spark { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.success-title { text-align: center; font-family: var(--font-display); font-size: 26px; letter-spacing: 1px; }
.success-sub { text-align: center; color: var(--muted); margin-top: 6px; font-size: 14px; line-height: 1.7; }
.success-card {
  background: var(--paper);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-top: 18px;
}
.sc-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 14px; align-items: center; }
.sc-row span { color: var(--muted); }
.sc-row strong { text-align: right; font-family: var(--font-num); }
.success-actions { display: flex; gap: 10px; margin-top: 18px; }
.success-actions .btn-primary { flex: 1; }

/* ═══════════ Find us · Google Map ═══════════ */
.find-us {
  background:
    radial-gradient(circle at 8% 18%, oklch(99% 0.008 85 / 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 16% 30%, oklch(99% 0.008 85 / 0.8) 0 7px, transparent 8px),
    radial-gradient(circle at 90% 12%, oklch(99% 0.008 85 / 0.85) 0 6px, transparent 7px),
    var(--mustard-soft);
  border-top: 3px dashed var(--mustard);
  border-bottom: 3px dashed var(--mustard);
  padding: var(--space-xl) 20px;
}
.find-us-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: var(--space-lg);
  align-items: stretch;
}
.find-us-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.find-us-copy::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 24px;
  width: 88px;
  height: 26px;
  background: var(--mustard);
  opacity: 0.85;
  transform: rotate(-2deg);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.find-us-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--tomato-deep);
  line-height: 1.1;
}
.find-us-sub {
  color: var(--ink-soft);
  margin: 0;
}
.find-us-address {
  font-style: normal;
  display: grid;
  gap: var(--space-2xs);
  color: var(--ink);
  font-size: var(--text-md);
}
.fu-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fu-row svg {
  width: 18px;
  height: 18px;
  color: var(--tomato);
  flex: none;
}
.btn-map {
  align-self: flex-start;
  margin-top: var(--space-2xs);
  text-decoration: none;
}
.find-us-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  background: var(--paper-2);
  border: 3px solid var(--surface);
  outline: 2px dashed var(--mustard);
  outline-offset: 4px;
  box-shadow: var(--shadow-md);
}
.find-us-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* ═══════════ 页脚 ═══════════ */
.footer {
  background: var(--ink);
  color: var(--footer-text);
  padding: var(--space-lg) var(--space-sm) 44px;
  margin-top: var(--space-md);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, minmax(0, 1fr)));
  gap: var(--space-md);
}
.footer h3 { color: var(--mustard); font-family: var(--font-display); letter-spacing: 2px; margin-bottom: var(--space-xs); font-size: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer li { display: flex; gap: 9px; align-items: center; line-height: 1.5; }
.footer svg { color: var(--mustard); }
.foot-note {
  grid-column: 1 / -1;
  border-top: 1px solid var(--footer-line);
  padding-top: var(--space-sm);
  margin-top: var(--space-2xs);
  font-size: 12px;
  color: var(--footer-muted);
}

/* ═══════════ Toast ═══════════ */
.toast {
  position: fixed; left: 50%; bottom: 90px;
  transform: translateX(-50%) translateY(18px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  z-index: var(--z-toast);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stickers { display: none; }
  .layout { grid-template-columns: 1fr; padding-bottom: 110px; }
  .cart-panel {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: var(--z-cart);
    transform: translateY(106%);
    transition: transform var(--dur-2) var(--ease-in-out);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 82vh;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .cart-panel.open { transform: none; }
  .cart-panel .cart-list { max-height: 44vh; }
  .cart-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: oklch(28% 0.03 55 / 0.45);
    border: none;
    z-index: calc(var(--z-cart) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-2) var(--ease-out);
  }
  .cart-backdrop.show { opacity: 1; pointer-events: auto; }
  #mobileCartBar { display: flex; }
}
@media (max-width: 640px) {
  .value-strip-inner { grid-template-columns: 1fr; gap: var(--space-2xs); }
  .find-us-inner { grid-template-columns: 1fr; }
  .find-us-map, .find-us-map iframe { min-height: 280px; }
  .form-row { grid-template-columns: 1fr; }
  .brand-text strong { font-size: 17px; }
  .brand-seal { width: 42px; height: 42px; font-size: 13px; }
  .header-actions .chip { padding: 0 10px; }
  .cart-count { display: none; }
  .item-grid { grid-template-columns: minmax(0, 1fr); }
  .lookup-row { flex-direction: column; }
  .lookup-btn { width: 100%; }
  .cat-title h2 { white-space: normal; }
}
@media (min-width: 1024px) {
  #mobileCartBar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
  .item-card { animation: none; }
}

/* ---------- Uber Direct 配送（2026-09-28）---------- */
.radio-card .uber-note {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mustard-soft, #f6e3b4);
  color: var(--ink-soft, #5b5b5b);
  line-height: 1.35;
}
.radio-card .uber-note.is-off { background: rgba(0, 0, 0, .06); color: var(--muted, #8a8a8a); }
.radio-card .uber-note.is-on { background: var(--tomato-soft, #ffe1d9); color: var(--tomato-deep, #a8321c); }

.track-box { margin: 14px 0 4px; text-align: center; }
.track-link {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--tomato, #e2503a);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}
.track-link:active { transform: translateY(1px); }
.track-note {
  color: var(--muted, #8a8a8a);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .045);
}
