/* ============================================================
   樱花食堂 · 顾客点单页 /t/:code
   手机优先 · 暖色日式中华食堂风 · 仅使用 tokens.css 变量
   ============================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 88% -10%, rgba(196, 154, 74, 0.16), transparent 62%),
    radial-gradient(880px 460px at -10% 20%, rgba(178, 58, 43, 0.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(74, 48, 30, 0.016) 0 1px, transparent 1px 4px);
  overflow-x: hidden;
}

body.sheet-open {
  overflow: hidden;
}

body.no-scroll {
  overflow: hidden;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page {
  min-height: 100vh;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff8f2;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 顶部品牌 ---------- */
.site-header {
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 6px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background:
    linear-gradient(145deg, #bd4434 0%, var(--brand) 45%, var(--brand-dark) 100%);
  color: #fff6ee;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 7px 16px rgba(138, 42, 30, 0.26);
  transform: rotate(-2deg);
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-secondary {
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.call-staff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(178, 58, 43, 0.28);
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.call-staff-btn:hover:not(:disabled) {
  border-color: var(--brand);
  background: #f4d9cd;
  transform: translateY(-1px);
}

.call-staff-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.call-staff-icon {
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 520px) {
  .header-actions {
    gap: 4px;
  }

  .call-staff-btn {
    width: 44px;
    padding: 0;
  }

  .call-staff-label {
    display: none;
  }
}

.lang-switch {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: inset 0 1px 2px rgba(74, 48, 30, 0.04);
}

.lang-btn {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-btn:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.lang-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff8f2;
  box-shadow: 0 4px 11px rgba(138, 42, 30, 0.22);
}

/* ---------- 主体 ---------- */
.main {
  padding-top: 4px;
  padding-bottom: 8px;
}

#content {
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* ---------- 欢迎区 ---------- */
.hero {
  position: relative;
  margin: 18px 0 20px;
  padding: clamp(22px, 4.6vw, 38px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(520px 260px at 92% 4%, rgba(196, 154, 74, 0.18), transparent 72%),
    linear-gradient(160deg, #fffdf7 0%, #fbf5ea 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--gold) 46%, rgba(196, 154, 74, 0) 88%);
  opacity: 0.85;
}

.hero-watermark {
  position: absolute;
  right: -6px;
  bottom: -42px;
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 200px);
  font-weight: 700;
  line-height: 1;
  color: rgba(178, 58, 43, 0.05);
  pointer-events: none;
  user-select: none;
}

.hero-vertical {
  position: absolute;
  top: 26px;
  right: 22px;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: rgba(124, 107, 94, 0.55);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-dark);
}

.hero-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.hero-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5.6vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.hero-subtitle {
  margin-top: 6px;
  font-size: clamp(13.5px, 1.9vw, 15.5px);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.hero-table-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
}

.table-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 4px 13px 4px 5px;
  border: 1px solid rgba(196, 154, 74, 0.5);
  border-radius: var(--radius-pill);
  background: #fffdf7;
  box-shadow: var(--shadow-sm);
}

.table-chip-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff8f2;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 242, 0.24);
}

.table-chip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.table-chip-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-chip-zone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.table-chip-zone::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-table-text {
  font-size: 12.5px;
  color: rgba(255, 248, 242, 0.8);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}

.hero-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-hint::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- 分类吸顶导航 ---------- */
.category-nav {
  position: sticky;
  top: 8px;
  z-index: 40;
  margin: 0 -3px 20px;
  padding: 7px;
  border: 1px solid rgba(229, 215, 197, 0.9);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 8px 24px rgba(74, 48, 30, 0.08);
}

.category-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 1px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-track::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: none;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cat-chip:hover {
  background: var(--surface-2);
  border-color: var(--line);
}

.cat-chip.is-active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: var(--brand);
  color: #fff8f2;
  box-shadow: 0 5px 14px rgba(138, 42, 30, 0.24);
}

/* ---------- 菜单 ---------- */
.menu {
  display: grid;
  gap: 28px;
}

.menu-section {
  scroll-margin-top: 88px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 2px 3px 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.section-sub {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.section-count {
  margin-left: auto;
  flex: none;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 247, 0.7);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.dish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.dish-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dish-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 154, 74, 0.55);
  box-shadow: var(--shadow);
}

.dish-card.has-in-cart {
  border-color: rgba(178, 58, 43, 0.32);
  box-shadow: 0 4px 14px rgba(138, 42, 30, 0.1);
}

.dish-card.is-soldout {
  background: var(--surface-2);
  box-shadow: none;
}

.dish-card.is-soldout .dish-emoji {
  filter: grayscale(0.8);
  opacity: 0.66;
}

.dish-card.is-soldout .dish-name {
  color: var(--muted);
}

.dish-emoji {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 -12px 22px rgba(74, 48, 30, 0.06);
  overflow: hidden;
}

.dish-emoji::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1.4px);
  background-size: 9px 9px;
  opacity: 0.45;
  pointer-events: none;
}

.dish-emoji::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.52);
  border-radius: 11px;
  pointer-events: none;
}

.dish-emoji-glyph {
  position: relative;
  z-index: 1;
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(74, 48, 30, 0.18));
}

.soldout-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: rgba(43, 34, 28, 0.76);
  color: #fff8f2;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.dish-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dish-name {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dish-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: break-word;
  line-break: strict;
}

.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-rec {
  background: var(--gold-soft);
  color: #7a5a1e;
}

.tag-spicy {
  background: var(--danger-soft);
  color: var(--danger);
}

.dish-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
}

.dish-price {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--brand-dark);
}

.price-currency {
  font-size: 0.64em;
  font-weight: 600;
  opacity: 0.82;
}

.price-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dish-price .price-currency {
  font-size: 12px;
}

.dish-price .price-amount {
  font-size: 21px;
  line-height: 1;
}

.add-btn {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff8f2;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 5px 13px rgba(138, 42, 30, 0.26);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.add-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 8px 18px rgba(138, 42, 30, 0.3);
}

.add-btn:active {
  transform: scale(0.95);
}

.add-qty {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #fffdf7;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.add-btn.is-soldout {
  width: auto;
  min-width: 66px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: none;
  cursor: not-allowed;
}

.add-btn.is-soldout:hover {
  transform: none;
  box-shadow: none;
}

/* 分类柔和色块（按分类排序循环使用） */
.tone-0 {
  background: linear-gradient(150deg, #f9dbc7 0%, #efb393 100%);
}

.tone-1 {
  background: linear-gradient(150deg, #e4eed8 0%, #c3d9ba 100%);
}

.tone-2 {
  background: linear-gradient(150deg, #f8d2c9 0%, #e9a99b 100%);
}

.tone-3 {
  background: linear-gradient(150deg, #f5e6c8 0%, #e4c98f 100%);
}

.tone-4 {
  background: linear-gradient(150deg, #d9ebe9 0%, #b7d6d2 100%);
}

.tone-5 {
  background: linear-gradient(150deg, #f6dfe7 0%, #e6c1d0 100%);
}

.tone-6 {
  background: linear-gradient(150deg, #efe4d2 0%, #ddc9ae 100%);
}

/* ---------- 空状态 / 加载 ---------- */
.loading-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 16px 26px;
  text-align: center;
}

.loading-head .spinner {
  width: 26px;
  height: 26px;
}

.loading-text {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.loading-hint {
  font-size: 12px;
  color: var(--muted);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.skeleton-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.skeleton {
  display: block;
  border-radius: 7px;
  background: linear-gradient(100deg, #ece0cd 20%, #f8f1e6 38%, #ece0cd 56%);
  background-size: 300% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-emoji {
  width: 82px;
  height: 82px;
  border-radius: 16px;
}

.skeleton-lines {
  display: grid;
  align-content: center;
  gap: 10px;
}

.skeleton-line {
  height: 11px;
  border-radius: var(--radius-pill);
}

.w-90 { width: 90%; }
.w-85 { width: 85%; }
.w-80 { width: 80%; }
.w-70 { width: 70%; }
.w-60 { width: 60%; }
.w-50 { width: 50%; }
.w-45 { width: 45%; }
.w-40 { width: 40%; }
.w-35 { width: 35%; }

.menu-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 58px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.6);
  text-align: center;
}

.menu-empty-icon {
  font-size: 42px;
  line-height: 1;
  filter: saturate(0.85);
}

.menu-empty h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.menu-empty p {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 错误状态 ---------- */
.error-view {
  width: min(560px, 100%);
  margin: 42px auto 30px;
  padding: 38px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-view:focus {
  outline: none;
}

.error-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(178, 58, 43, 0.14);
}

.error-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(19px, 5.2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.error-hint {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.error-alt {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
}

.error-alt-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.error-alt-hint {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.9;
}

.error-retry {
  margin-top: 22px;
  min-width: 168px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  padding: 0 0 20px;
  text-align: center;
  color: var(--muted);
}

.footer-rule {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-rule span {
  position: relative;
  display: block;
  width: 86px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.footer-rule span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.footer-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.footer-alt {
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-sub {
  margin-top: 11px;
  font-size: 11.5px;
  color: var(--muted);
}

.footer-note {
  margin-top: 15px;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: rgba(124, 107, 94, 0.72);
}

/* ---------- 底部购物车条 ---------- */
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(246, 239, 227, 0) 0%, rgba(246, 239, 227, 0.92) 46%, rgba(246, 239, 227, 0.98) 100%);
  animation: cartBarIn 0.22s ease both;
}

.cart-bar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  min-height: 64px;
  padding: 8px 9px 8px 13px;
  border: 1px solid rgba(196, 154, 74, 0.48);
  border-radius: 19px;
  background: linear-gradient(140deg, #382a20 0%, #261b14 100%);
  color: #fff8f2;
  box-shadow: 0 16px 34px rgba(43, 34, 28, 0.3), inset 0 1px 0 rgba(255, 248, 242, 0.1);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
}

.cart-bar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(43, 34, 28, 0.34), inset 0 1px 0 rgba(255, 248, 242, 0.1);
}

.cart-bar-btn:active {
  transform: translateY(0) scale(0.995);
}

.cart-bar-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 248, 242, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 242, 0.12);
}

.cart-bar-emoji {
  font-size: 22px;
  line-height: 1;
}

.cart-bar-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #2d2119;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff8f2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

.cart-bar-sum {
  display: grid;
  gap: 0;
  min-width: 0;
}

.cart-bar-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 248, 242, 0.58);
}

.cart-bar-total {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: #fff8f2;
  font-size: 19px;
  line-height: 1.25;
}

.cart-bar-total .price-currency {
  font-size: 11px;
  color: rgba(255, 248, 242, 0.72);
  font-weight: 500;
}

.cart-bar-total .price-amount {
  font-weight: 700;
}

.cart-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 46px;
  margin-left: auto;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #c34632 0%, var(--brand-dark) 100%);
  color: #fff8f2;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 248, 242, 0.18), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cart-bar-arrow {
  color: var(--gold-soft);
  font-size: 15px;
  line-height: 1;
}

/* ---------- 弹层（购物车 / 成功） ---------- */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: min(560px, 100%);
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.sheet:focus {
  outline: none;
}

.sheet::backdrop {
  background: rgba(43, 34, 28, 0.44);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.sheet-inner {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: 0 -20px 54px rgba(43, 34, 28, 0.24);
  overflow: hidden;
  animation: sheetIn 0.24s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  padding: 18px 18px 12px;
}

.sheet-heading {
  min-width: 0;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.sheet-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.icon-btn:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.icon-btn:active {
  transform: scale(0.94);
}

.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 2px 18px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet-foot {
  flex: none;
  display: grid;
  gap: 10px;
  padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -10px 24px rgba(74, 48, 30, 0.04);
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cart-total-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cart-total {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--brand-dark);
  font-size: 23px;
  line-height: 1.2;
}

.cart-total .price-currency {
  font-size: 13px;
}

.cart-submit {
  width: 100%;
  min-height: 52px;
  font-size: 15.5px;
  letter-spacing: 0.06em;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 248, 242, 0.35);
  border-top-color: #fff8f2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 购物车行 */
.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px 11px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.cart-thumb-glyph {
  font-size: 25px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(74, 48, 30, 0.15));
}

.cart-line-main {
  min-width: 0;
}

.cart-line-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.cart-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.cart-line-total {
  flex: none;
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cart-line-sub {
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
}

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.qty-btn:hover:not(:disabled) {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.qty-btn:disabled {
  color: rgba(124, 107, 94, 0.35);
  cursor: not-allowed;
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.remove-btn {
  min-height: 44px;
  margin-left: auto;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.remove-btn:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.cart-item-note {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  margin-top: -1px;
}

.cart-item-note::before {
  content: "✎";
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

.cart-note-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12.5px;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.cart-note-input::placeholder {
  color: rgba(124, 107, 94, 0.72);
}

.cart-note-input:hover {
  border-color: var(--gold);
}

.cart-note-input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(178, 58, 43, 0.1);
  outline: none;
}

/* 整单备注 */
.cart-note {
  position: relative;
  margin-top: 16px;
}

.cart-note .textarea {
  min-height: 82px;
  font-size: 13.5px;
  background: var(--surface-2);
}

.cart-note .textarea:focus {
  background: var(--surface);
}

.note-counter {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.note-counter.is-warn {
  color: var(--warning);
  font-weight: 700;
}

/* 提示条 */
.cart-notice {
  margin: 10px 0;
  padding: 8px 11px;
  border-left: 3px solid var(--gold);
  border-radius: 9px;
  background: var(--gold-soft);
  color: #6d5220;
  font-size: 11.5px;
  line-height: 1.55;
}

.cart-flash {
  margin: 10px 0 0;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  animation: fadeIn 0.18s ease both;
}

.alert {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}

.cart-error {
  animation: fadeIn 0.18s ease both;
}

#cart-dialog.is-empty-cart .sheet-body {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* 空购物车 */
.cart-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 38px 12px 26px;
  text-align: center;
}

.cart-empty-icon {
  font-size: 46px;
  line-height: 1;
  filter: saturate(0.85);
}

.cart-empty h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.cart-empty p {
  font-size: 12.5px;
  color: var(--muted);
}

.cart-empty .btn {
  margin-top: 14px;
  min-width: 140px;
}

/* ---------- 成功弹层 ---------- */
.success-sheet .sheet-inner {
  display: block;
  overflow-y: auto;
  max-height: 92vh;
  max-height: 92dvh;
}

.success-inner {
  position: relative;
  padding: 34px 24px calc(26px + env(safe-area-inset-bottom));
  text-align: center;
}

.success-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #c34632 0%, var(--brand-dark) 100%);
  color: #fff8f2;
  font-size: 34px;
  line-height: 1;
  box-shadow:
    0 12px 26px rgba(138, 42, 30, 0.28),
    inset 0 0 0 1px rgba(255, 248, 242, 0.28);
  animation: popIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.success-title {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.success-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.success-ticket {
  margin: 20px auto 0;
  max-width: 340px;
  padding: 15px 18px 13px;
  border: 1px dashed rgba(196, 154, 74, 0.7);
  border-radius: 16px;
  background:
    radial-gradient(240px 120px at 50% 0%, rgba(196, 154, 74, 0.13), transparent 70%),
    var(--surface-2);
}

.success-ticket-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.success-no {
  display: block;
  margin-top: 2px;
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.success-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.success-meta div {
  display: grid;
  gap: 1px;
}

.success-meta dt {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.success-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.success-total {
  font-family: var(--font-mono);
  color: var(--brand-dark);
}

.success-items {
  max-width: 340px;
  margin: 18px auto 0;
  text-align: left;
}

.success-items h3 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.success-items-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.success-items-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.success-items-list li:last-child {
  border-bottom: 0;
}

.success-item-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.success-item-qty {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.success-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.success-continue {
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  margin-top: 17px;
  font-size: 15.5px;
  letter-spacing: 0.06em;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 120;
  width: max-content;
  max-width: min(calc(100vw - 32px), 420px);
  padding: 10px 17px;
  border: 1px solid rgba(196, 154, 74, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(43, 34, 28, 0.95);
  color: #fff8f2;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(43, 34, 28, 0.32);
  transform: translateX(-50%);
  animation: toastIn 0.2s ease both;
}

/* ---------- noscript ---------- */
.noscript {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  font-size: 14px;
}

.noscript p[lang="ja"] {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- 动画 ---------- */
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@keyframes sheetIn {
  from { transform: translateY(26px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes cartBarIn {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toastIn {
  from { transform: translate(-50%, 8px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 平板 / 桌面 ---------- */
@media (min-width: 620px) {
  .skeleton-grid,
  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet {
    inset: 0;
    margin: auto;
    width: min(560px, calc(100% - 40px));
    max-height: 86vh;
    max-height: 86dvh;
  }

  .sheet-inner {
    max-height: 86vh;
    max-height: 86dvh;
    border-bottom: 1px solid var(--line);
    border-radius: 24px;
    padding-bottom: 0;
  }

  .sheet-head {
    padding: 20px 22px 12px;
  }

  .sheet-body {
    padding: 2px 22px 16px;
  }

  .sheet-foot {
    padding: 14px 22px 20px;
  }

  .success-sheet .sheet-inner {
    max-height: 86vh;
    max-height: 86dvh;
  }

  .success-inner {
    padding-bottom: 28px;
  }

  .cart-bar {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 720px) {
  .site-header {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }

  .hero {
    margin-top: 22px;
    margin-bottom: 24px;
  }

  .hero-table-row {
    margin-top: 22px;
  }

  .category-nav {
    top: 12px;
    margin-bottom: 24px;
  }

  .category-track {
    justify-content: center;
  }

  .section-title {
    font-size: 24px;
  }

  .dish-card {
    padding: 14px;
  }

  .dish-emoji {
    width: 86px;
    height: 86px;
  }

  .dish-emoji-glyph {
    font-size: 41px;
  }

  .site-footer {
    margin-top: 48px;
  }
}

@media (min-width: 1000px) {
  .dish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dish-card {
    padding: 15px;
    gap: 14px;
  }

  .dish-emoji {
    width: 88px;
    height: 88px;
  }

  .hero {
    padding: 42px 46px;
  }

  .hero-title {
    letter-spacing: 0.14em;
  }
}

/* ---------- 窄屏（320px 兼容） ---------- */
@media (max-width: 359px) {
  .container {
    width: calc(100% - 24px);
  }

  .brand-seal {
    width: 39px;
    height: 39px;
    font-size: 21px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-secondary {
    display: none;
  }

  .lang-btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .hero {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .hero-watermark {
    font-size: 110px;
  }

  .hero-title {
    font-size: 26px;
  }

  .dish-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .dish-emoji {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .dish-emoji-glyph {
    font-size: 31px;
  }

  .dish-name {
    font-size: 15px;
  }

  .cart-bar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cart-bar-btn {
    gap: 9px;
    padding-left: 10px;
  }

  .cart-bar-cta {
    padding: 0 12px;
    font-size: 12.5px;
  }

  .cart-bar-icon {
    width: 42px;
    height: 42px;
  }

  .cart-bar-label {
    letter-spacing: 0.08em;
  }

  .success-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-inner,
  .cart-bar,
  .toast,
  .success-mark {
    animation: none !important;
  }
}

/* ============================================================
   V2 · 开台向导 / 会话状态 / 放题价格 / 酒水选项 / 税
   ============================================================ */

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.notice {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.notice-strong {
  border-color: rgba(196, 154, 74, 0.55);
  background: var(--gold-soft);
  color: #6d5220;
}

.alert-warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
  color: #7a5a1e;
}

/* ---------- 开台向导 ---------- */
.wizard {
  display: grid;
  gap: 16px;
  width: min(780px, 100%);
  margin-inline: auto;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.wizard-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 2px 11px;
  border: 1px solid rgba(196, 154, 74, 0.48);
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: #6d5220;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}

.phase-badge.is-lunch {
  border-color: rgba(178, 58, 43, 0.28);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.phase-window {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.wizard .hero-table-text {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.wizard-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 13px;
}

.wizard-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff8f2;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(138, 42, 30, 0.2);
}

.step-head-text h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--ink);
}

.step-head-text p {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 78px;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mode-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.mode-card.is-selected {
  border-color: var(--brand);
  background:
    radial-gradient(180px 90px at 10% 0%, rgba(255, 253, 247, 0.85), transparent 76%),
    var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(178, 58, 43, 0.09), var(--shadow-sm);
}

.mode-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.mode-emoji {
  flex: none;
  font-size: 23px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(74, 48, 30, 0.12));
}

.mode-copy {
  display: grid;
  gap: 3px;
}

.mode-copy strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.mode-copy small {
  display: none;
}

.mode-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff8f2;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 3px 8px rgba(138, 42, 30, 0.22);
}

.mode-card.is-selected .mode-check {
  opacity: 1;
  transform: scale(1);
}

.course-grid {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.course-grid::-webkit-scrollbar {
  display: none;
}

.course-card {
  display: flex;
  flex: 0 0 172px;
  flex-direction: column;
  min-width: 172px;
  min-height: 188px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.course-card-count {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  align-self: flex-start;
  min-width: 48px;
  padding: 5px 9px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6d5220;
  font-family: var(--font-mono);
  line-height: 1;
}

.course-card-count strong {
  font-size: 17px;
  font-weight: 700;
}

.course-card-count span {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
}

.course-card-head {
  display: block;
}

.course-card-name {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.course-card-badge {
  display: inline-block;
  margin-top: 5px;
}

.course-card-desc {
  display: none;
}

.course-card-foot {
  display: block;
  margin-top: auto;
  padding-top: 9px;
}

.course-card-price {
  display: block;
  font-size: 16px;
}

.course-card-meta {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
}

.course-carousel {
  position: relative;
  min-width: 0;
}

.course-edge {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(178, 58, 43, 0.28);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.94);
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(74, 48, 30, 0.18);
  transform: translateY(-50%);
}

.course-edge:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.course-edge:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.course-edge[hidden] {
  display: none;
}

.course-edge-next:not([hidden]) {
  animation: courseNudge 1.8s ease-in-out infinite;
}

@keyframes courseNudge {
  0%, 100% { transform: translate(0, -50%); }
  50% { transform: translate(5px, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  .course-edge-next:not([hidden]) { animation: none; }
}

.course-edge-prev {
  left: -12px;
}

.course-edge-next {
  right: -12px;
}

.course-swipe-hint {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: center;
}

.course-swipe-hint[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .course-edge {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .course-edge-prev {
    left: -9px;
  }

  .course-edge-next {
    right: -9px;
  }
}

.course-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.course-nav-btn {
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.course-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.course-nav-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

@media (min-width: 720px) {
  .course-card {
    flex-basis: 200px;
    min-width: 200px;
  }

  .course-card-name {
    font-size: 15px;
  }
}

.course-card:hover {
  border-color: var(--gold);
}

.course-card.is-selected {
  border-color: var(--brand);
  background:
    radial-gradient(220px 100px at 0% 0%, rgba(255, 253, 247, 0.9), transparent 75%),
    var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(178, 58, 43, 0.08);
}

.course-card-head {
  display: block;
}

.course-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.course-card-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: #6d5220;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.course-card.is-selected .course-card-badge {
  background: var(--brand);
  color: #fff8f2;
}

.course-card-desc {
  display: none;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: break-word;
}

.course-card-foot {
  display: block;
  margin-top: auto;
  padding-top: 9px;
}

.course-card-price {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.course-card-price small {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}

.course-card-meta {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--muted);
}

.guest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(240px 90px at 0% 0%, rgba(255, 253, 247, 0.9), transparent 76%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.guest-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.guest-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold-soft);
  font-size: 19px;
  line-height: 1;
}

.guest-card h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ink);
}

.guest-card p {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
}

.guest-card-range {
  display: block;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.guest-label {
  display: grid;
  gap: 1px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.guest-label small {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
}

.guest-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.step-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.step-btn:hover:not(:disabled) {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.step-btn:disabled {
  color: rgba(124, 107, 94, 0.32);
  cursor: not-allowed;
}

.guest-value {
  min-width: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.estimate-line {
  display: block;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #6d5220;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.estimate-line:empty {
  display: none;
}

.drink-plan-list {
  display: grid;
  gap: 8px;
}

.drink-plan-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.drink-plan-card:hover {
  border-color: var(--gold);
}

.drink-plan-card.is-selected {
  border-color: var(--brand);
  background:
    radial-gradient(220px 100px at 0% 0%, rgba(255, 253, 247, 0.9), transparent 75%),
    var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(178, 58, 43, 0.08);
}

.drink-plan-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1;
}

.drink-plan-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.drink-plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--ink);
}

.drink-plan-desc {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.drink-plan-price {
  display: grid;
  justify-items: end;
  gap: 1px;
  flex: none;
  text-align: right;
}

.drink-plan-price strong {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}

.drink-plan-price small {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}

.plan-tag {
  display: inline-flex;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.plan-tag-alcohol {
  background: var(--danger-soft);
  color: var(--danger);
}

.plan-tag-soft {
  background: var(--success-soft);
  color: var(--success);
}

.check-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.check-row:hover {
  border-color: var(--gold);
}

.check-row input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check-box {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.check-row input:checked + .check-box {
  border-color: var(--brand);
  background: var(--brand);
}

.check-row input:checked + .check-box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff8f2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.check-row input:focus-visible + .check-box {
  outline: 3px solid rgba(178, 58, 43, 0.35);
  outline-offset: 2px;
}

.check-text {
  display: grid;
  gap: 2px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.check-text small {
  font-size: 10.5px;
  color: var(--muted);
}

.rules-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.rules-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.wizard-submit-area {
  display: grid;
  gap: 9px;
  padding: 4px 2px 0;
}

.wizard-total {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand-dark);
}

.wizard-submit {
  width: 100%;
  min-height: 54px;
  font-size: 16px;
  letter-spacing: 0.08em;
}

/* ---------- 会话状态条 ---------- */
.session-hero {
  margin-bottom: 18px;
}

.session-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.session-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 2px 11px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff8f2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}

.session-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.07em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.session-price {
  display: inline-block;
  white-space: nowrap;
  color: var(--brand-dark);
  font-weight: 600;
}

.session-sub {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.session-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.session-stat {
  display: grid;
  align-content: center;
  gap: 1px;
  min-height: 64px;
  padding: 9px 11px;
  border: 1px solid rgba(229, 215, 197, 0.9);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.72);
}

.session-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.session-stat-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-dark);
  white-space: nowrap;
}

.session-stat-value-sm {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: normal;
}

.session-stat-note {
  font-size: 10px;
  font-style: normal;
  color: var(--muted);
  line-height: 1.4;
}

.session-stat.is-warning {
  border-color: rgba(183, 121, 31, 0.45);
  background: var(--warning-soft);
}

.session-stat.is-danger {
  border-color: rgba(168, 50, 42, 0.4);
  background: var(--danger-soft);
}

.session-stat.is-warning .session-stat-value,
.session-stat.is-danger .session-stat-value {
  color: var(--danger);
}

.session-alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--warning);
  border-radius: 10px;
  background: var(--warning-soft);
  color: #7a5a1e;
  font-size: 12px;
  line-height: 1.6;
}

.session-alert.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.session-policy {
  margin-top: 10px;
  padding: 9px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sync-error {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 菜单价格图例 ---------- */
.menu-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 2px 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.76);
  font-size: 11px;
  color: var(--muted);
}

.legend-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.legend-dot-included { background: var(--success); }
.legend-dot-upgrade { background: var(--gold); }
.legend-dot-paid { background: var(--brand); }

.legend-tax {
  margin-left: auto;
  font-size: 10.5px;
  white-space: nowrap;
}

/* ---------- V2 菜品卡价格 / 酒水信息 ---------- */
.dish-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  color: var(--brand-dark);
}

.dish-price-main {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.dish-price-included {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.dish-price-note {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.dish-price.is-included .dish-price-main,
.dish-price.is-included .dish-price-note {
  color: var(--success);
}

.dish-price.is-upgrade .dish-price-main {
  color: var(--brand);
}

.dish-price-original {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-decoration: line-through;
  line-height: 1.4;
}

.dish-extra-meta {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: break-word;
}

.dish-option-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: 10px;
  color: var(--gold);
  font-weight: 600;
}

.dish-lunch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.lunch-tag {
  display: inline-flex;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

.add-btn:disabled:not(.is-soldout) {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.add-btn:disabled:not(.is-soldout):hover {
  transform: none;
  box-shadow: none;
}

/* ---------- 购物车 V2 ---------- */
.plan-summary {
  margin-bottom: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(196, 154, 74, 0.5);
  border-radius: 14px;
  background:
    radial-gradient(260px 100px at 0% 0%, rgba(255, 253, 247, 0.85), transparent 76%),
    var(--gold-soft);
}

.plan-summary h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6d5220;
  margin-bottom: 7px;
}

.plan-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.plan-line-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.plan-line-name small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.plan-line-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-weight: 700;
}

.plan-line-per .plan-line-name {
  color: var(--muted);
  font-size: 11.5px;
}

.plan-line-amount {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-dark);
}

.plan-note {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed rgba(196, 154, 74, 0.45);
  font-size: 10px;
  line-height: 1.55;
  color: #7a5a1e;
}

.cart-order-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.cart-order-head h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.cart-order-count {
  padding: 1px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.cart-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 30px 12px 22px;
  text-align: center;
}

.cart-empty p {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.cart-empty > span {
  font-size: 12px;
  color: var(--muted);
}

.cart-empty .btn {
  margin-top: 12px;
  min-width: 140px;
}

.cart-line-options {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.cart-charge {
  display: inline-flex;
  padding: 0 6px;
  margin-right: 4px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  vertical-align: 1px;
}

.cart-charge-included { background: var(--success-soft); color: var(--success); }
.cart-charge-upgrade { background: var(--gold-soft); color: #6d5220; }
.cart-charge-paid { background: var(--brand-soft); color: var(--brand-dark); }

.cart-line-sub .cart-unit {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.takeout-row {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.takeout-row .check-row {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.takeout-row .check-row:hover {
  border: 0;
}

.takeout-row .field-hint {
  margin-top: 6px;
  padding-left: 32px;
  font-size: 10px;
}

.cart-limit {
  margin-top: 8px;
  font-size: 10px;
  text-align: right;
  color: var(--muted);
}

.cart-totals {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.total-row strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.total-row-grand {
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.total-row-grand strong {
  font-size: 20px;
  color: var(--brand-dark);
}

.tax-row-hidden {
  display: none !important;
}

.cart-submit {
  min-height: 52px;
  font-size: 15.5px;
  letter-spacing: 0.06em;
}

/* ---------- 酒水选项 ---------- */
.options-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}

.options-price-line strong {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--brand-dark);
}

.options-tax {
  font-size: 10.5px;
  color: var(--muted);
}

.option-groups {
  display: grid;
  gap: 15px;
  margin-top: 15px;
}

.option-group {
  display: grid;
  gap: 7px;
}

.option-group-label {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.option-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.option-choice {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.option-choice input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.option-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.option-choice:hover span {
  border-color: var(--gold);
}

.option-choice input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff8f2;
  box-shadow: 0 4px 12px rgba(138, 42, 30, 0.18);
}

.option-choice input:focus-visible + span {
  outline: 3px solid rgba(178, 58, 43, 0.35);
  outline-offset: 2px;
}

.options-sheet .sheet-foot .btn {
  width: 100%;
  min-height: 52px;
  font-size: 15.5px;
}

/* ---------- 年龄确认 ---------- */
.age-sheet .sheet-inner {
  display: block;
  position: relative;
  max-height: 92vh;
  max-height: 92dvh;
  padding: 34px 22px calc(26px + env(safe-area-inset-bottom));
  overflow-y: auto;
  text-align: center;
}

.age-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.age-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 253, 247, 0.85), transparent 60%),
    var(--gold-soft);
  font-size: 30px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(196, 154, 74, 0.4);
}

.age-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.age-message {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.age-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--danger);
}

.age-sheet .alert {
  text-align: left;
}

.age-confirm {
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  margin-top: 16px;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.age-cancel {
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  margin-top: 8px;
}

/* ---------- 成功票据补充 ---------- */
.success-totals {
  max-width: 340px;
  margin: 16px auto 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: left;
}

.success-plan-note {
  max-width: 340px;
  margin: 12px auto 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.success-item-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.success-item-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.success-item-meta {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.success-item-amount {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  white-space: nowrap;
}

.success-items-list li {
  align-items: flex-start;
}

.success-charge {
  display: inline-flex;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.75;
  white-space: nowrap;
}

.success-charge-included { background: var(--success-soft); color: var(--success); }
.success-charge-upgrade { background: var(--gold-soft); color: #6d5220; }
.success-charge-paid { background: var(--brand-soft); color: var(--brand-dark); }

.success-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.success-meta dd {
  font-size: 12.5px;
}

/* ---------- V2 响应式 ---------- */
@media (max-width: 359px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 0;
  }

  .wizard-card {
    padding: 15px;
  }

  .session-stats {
    gap: 6px;
  }

  .session-stat {
    padding: 8px 9px;
  }

  .cart-bar-label {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .cart-bar-total {
    font-size: 17px;
  }
}

@media (min-width: 620px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-card {
    padding: 22px;
  }

  .mode-card {
    min-height: 148px;
  }

  .age-sheet .sheet-inner {
    border-radius: 24px;
    padding-bottom: 28px;
  }
}

@media (min-width: 720px) {
  .wizard {
    width: min(860px, 100%);
  }

  .session-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .session-stat {
    min-height: 68px;
  }

  .wizard-hero {
    margin-top: 22px;
  }

  .dish-price-main {
    font-size: 22px;
  }
}

@media (min-width: 1000px) {
  .wizard {
    width: min(900px, 100%);
  }

  .wizard-steps {
    gap: 15px;
  }

  .menu-legend {
    padding: 11px 16px;
  }
}

/* ---------- V2 移动端品牌/会话标题防截断 ---------- */
@media (max-width: 420px) {
  .brand-name {
    font-size: clamp(15px, 4.3vw, 18px);
    letter-spacing: 0.03em;
    line-height: 1.2;
  }

  .brand-secondary {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .session-title {
    font-size: 22px;
    letter-spacing: 0.04em;
    line-height: 1.28;
  }
}

@media (max-width: 359px) {
  .brand-name {
    font-size: 15px;
  }
}

/* 有购物车条时给页脚留出空间，避免被固定条遮住 */
body.has-cart-bar .session-view {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

/* ---------- 成功页：内容滚动 + 底部常驻操作 ---------- */
.success-sheet .sheet-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.success-sheet .success-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 22px;
}

.success-sheet .success-foot {
  flex: none;
  padding: 10px 24px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -10px 22px rgba(74, 48, 30, 0.05);
  text-align: center;
}

.success-sheet .success-foot .success-hint {
  margin-top: 0;
}

.success-sheet .success-foot .success-continue {
  margin-top: 10px;
}

/* ============================================================
   V3 · 四模式 / 13 分类导航 / 免费服务 / 履历 / 口味 / 限购 / 首杯
   ============================================================ */

/* ---------- 四模式卡 ---------- */
.mode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-card {
  min-height: 146px;
}

.mode-copy small {
  font-size: 10.5px;
}

/* ---------- 会话工具 / 限购条 ---------- */
.session-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.session-history-btn {
  min-height: 44px;
  gap: 6px;
  padding-inline: 13px;
  font-size: 12.5px;
}

.history-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff8f2;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.limit-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.limit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}

.limit-chip.is-over {
  border-color: rgba(168, 50, 42, 0.45);
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------- 免费服务快捷区 ---------- */
.service-bar {
  margin: 0 0 16px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(360px 150px at 100% 0%, rgba(196, 154, 74, 0.12), transparent 72%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.service-bar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.service-bar-head h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.service-bar-hint {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.service-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-soft);
  text-align: left;
  font-size: 11px;
  line-height: 1.3;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.service-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.service-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.service-btn.is-call,
.service-btn.is-bill {
  border-color: rgba(196, 154, 74, 0.55);
  background: var(--gold-soft);
}

.service-btn.is-bill {
  border-color: rgba(178, 58, 43, 0.25);
  background: var(--brand-soft);
}

.service-emoji {
  flex: none;
  font-size: 18px;
  line-height: 1;
}

.service-name {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.service-note {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- 桌面左栏 / 手机横向分类 ---------- */
.menu-layout {
  display: block;
}

.menu-main {
  min-width: 0;
}

.menu-layout .cat-name {
  display: block;
}

.menu-layout .cat-sub {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.menu-layout .cat-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: 50px;
  padding: 5px 12px;
  text-align: left;
}

.menu-layout .cat-chip.is-active .cat-sub {
  color: rgba(255, 248, 242, 0.72);
}

@media (min-width: 960px) {
  .mode-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  .mode-card {
    min-height: 158px;
  }

  .mode-copy strong {
    font-size: 18px;
  }

  .menu-layout {
    display: grid;
    grid-template-columns: 226px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
  }

  .menu-layout .category-nav {
    top: 20px;
    z-index: 30;
    width: 100%;
    max-height: calc(100vh - 40px);
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.94);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
    box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
  }

  .menu-layout .category-track {
    flex-direction: column;
    justify-content: flex-start;
    gap: 3px;
    padding: 0;
    overflow: visible;
  }

  .menu-layout .cat-chip {
    flex: none;
    width: 100%;
    min-height: 52px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    padding: 6px 12px;
    border-radius: 12px;
    text-align: left;
    white-space: normal;
  }

  .menu-layout .cat-name {
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.35;
  }

  .menu-layout .cat-sub {
    display: block;
    margin-top: 1px;
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--muted);
    overflow-wrap: break-word;
  }

  .menu-layout .cat-chip.is-active .cat-sub {
    color: rgba(255, 248, 242, 0.72);
  }

  .menu-layout .menu-legend {
    margin-top: 0;
  }

  .menu-layout .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .menu-layout .dish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 订单履历 ---------- */
.history-sheet .sheet-body {
  padding-top: 2px;
}

.history-state {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 42px 16px;
  text-align: center;
  color: var(--muted);
}

.history-state h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.history-state p {
  font-size: 12px;
  line-height: 1.6;
}

.history-empty-icon {
  font-size: 40px;
  line-height: 1;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-order {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.history-order.is-service {
  border-color: rgba(196, 154, 74, 0.55);
  background:
    radial-gradient(220px 70px at 100% 0%, rgba(196, 154, 74, 0.16), transparent 75%),
    var(--gold-soft);
}

.history-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.history-order-no {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand-dark);
}

.history-order-time {
  margin-left: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.history-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

.history-badge-service {
  background: var(--gold-soft);
  color: #6d5220;
}

.history-status-new {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.history-status-preparing {
  background: var(--warning-soft);
  color: #7a5a1e;
}

.history-status-done {
  background: var(--success-soft);
  color: var(--success);
}

.history-status-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}

.history-status-unknown {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.history-items {
  display: grid;
  gap: 2px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.history-items li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.history-items li:last-child {
  border-bottom: 0;
}

.history-item-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.history-item-qty {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.history-item-options {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
}

.history-order-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted);
}

.history-order-items {
  font-size: 10.5px;
}

.history-order-total {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
}

.history-order-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.history-reorder {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 11px;
}

.history-order-total.is-free {
  color: var(--success);
}

.history-foot {
  display: block;
}

.history-foot .btn {
  width: 100%;
  min-height: 46px;
}

/* ---------- 首杯饮品 ---------- */
.first-drink-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.first-drink-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 112px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.first-drink-card:hover:not(:disabled) {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.first-drink-card.is-added {
  border-color: rgba(62, 117, 84, 0.55);
  background: var(--success-soft);
}

.first-drink-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.first-drink-emoji {
  font-size: 27px;
  line-height: 1;
}

.first-drink-name {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.first-drink-price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-top: auto;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-dark);
}

.first-drink-price.is-included {
  color: var(--success);
}

.first-drink-price small {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}

.first-drink-status {
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11.5px;
  text-align: center;
}

.first-drink-foot {
  display: flex;
  gap: 8px;
}

.first-drink-foot .btn {
  flex: 1;
  min-height: 48px;
}

/* ---------- 必选口味 ---------- */
.option-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.option-required-badge {
  display: inline-flex;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.7;
}

.option-required-hint {
  margin-top: 12px;
  color: var(--warning);
  font-weight: 600;
}

.option-required-hint[hidden] {
  display: none !important;
}

/* ---------- 服务项价格/标签（履历里复用） ---------- */
.history-item-service {
  color: var(--success);
}

.history-meta-empty {
  color: var(--muted);
}

@media (min-width: 620px) {
  .service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .first-drink-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .first-drink-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-history-btn {
    font-size: 11.5px;
    padding-inline: 10px;
  }
}

/* V3 手机端：分类副标题由吸顶分类条承担，章标题避免换行 */
@media (max-width: 959px) {
  .menu-section .section-sub {
    display: none;
  }

  .menu-section .section-title {
    font-size: 21px;
    line-height: 1.35;
  }
}

/* ---------- 主题封面（实拍图） ---------- */
.hero {
  background:
    linear-gradient(105deg, rgba(17, 10, 8, 0.96) 0%, rgba(17, 10, 8, 0.84) 48%, rgba(17, 10, 8, 0.46) 100%),
    url('/assets/img/hero-grill.jpg') center 46% / cover no-repeat;
  border-color: rgba(196, 154, 74, 0.35);
  box-shadow: 0 24px 60px rgba(43, 34, 28, 0.24);
  color: #fff8f2;
}

.hero::before {
  background: linear-gradient(90deg, #f0cf9a 0%, var(--gold) 52%, rgba(196, 154, 74, 0) 92%);
  opacity: 0.95;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(17, 10, 8, 0.48) 100%);
  pointer-events: none;
}

.hero-title,
.session-title {
  color: #fff8f2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.38);
}

.hero-subtitle,
.hero-table-text,
.session-sub {
  color: rgba(255, 248, 242, 0.78);
}

.hero-eyebrow {
  color: #f2d39b;
}

.hero-line {
  background: #f2d39b;
}

.hero-watermark {
  color: rgba(255, 248, 242, 0.08);
}

.hero-vertical {
  color: rgba(255, 248, 242, 0.5);
}

.hero-hint {
  color: rgba(255, 248, 242, 0.72);
}

.session-price {
  color: #f2cf9a;
}

.session-stat {
  border-color: rgba(255, 248, 242, 0.32);
  background: rgba(255, 253, 247, 0.92);
}

.session-hero .session-history-btn {
  border-color: rgba(255, 248, 242, 0.3);
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
}

.mode-badge {
  border: 1px solid rgba(255, 248, 242, 0.22);
  background: rgba(20, 12, 9, 0.72);
}

.menu-showcase {
  position: relative;
  height: clamp(148px, 24vw, 230px);
  margin: -4px 0 18px;
  border: 1px solid rgba(196, 154, 74, 0.45);
  border-radius: 22px;
  background: #1b110d;
  box-shadow: 0 16px 38px rgba(43, 34, 28, 0.16);
  overflow: hidden;
}

.menu-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(1.04);
}

.menu-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 10, 8, 0.86) 0%, rgba(17, 10, 8, 0.42) 48%, rgba(17, 10, 8, 0.05) 100%);
  pointer-events: none;
}

.menu-showcase figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 2px;
  max-width: min(70%, 360px);
  color: #fff8f2;
}

.showcase-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f0cf9a;
}

.menu-showcase strong {
  font-family: var(--font-display);
  font-size: clamp(17px, 3.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.menu-showcase small {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 242, 0.76);
}

@media (max-width: 359px) {
  .menu-showcase {
    height: 136px;
    border-radius: 18px;
  }

  .menu-showcase figcaption {
    left: 14px;
    bottom: 12px;
  }
}

/* ---------- 手机端头部紧凑化（保留呼叫按钮与语言切换） ---------- */
@media (max-width: 520px) {
  .header-inner {
    gap: 6px;
  }

  .brand {
    gap: 8px;
  }

  .brand-seal {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 0.02em;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-btn {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .header-actions {
    gap: 3px;
  }

  .call-staff-btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .call-staff-icon {
    font-size: 15px;
  }
}

/* ---------- 导航键颜色区分：分类 ---------- */
.cat-chip {
  position: relative;
  border: 1px solid #dccab6;
  background: #fffdf7;
  box-shadow: 0 3px 9px rgba(74, 48, 30, 0.07);
}

.cat-chip:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.cat-chip.is-active {
  border-color: var(--brand-dark);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff8f2;
  box-shadow: 0 7px 18px rgba(138, 42, 30, 0.28);
}

.cat-chip.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 248, 242, 0.62);
}

.cat-chip:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- 导航键颜色区分：免费服务 ---------- */
.service-btn {
  --service-accent: #c49a4a;
  --service-tint: #fbf1dc;
  border: 1px solid #e0d0bd;
  border-left: 3px solid var(--service-accent);
  background: #fffdf8;
  box-shadow: 0 3px 9px rgba(74, 48, 30, 0.06);
}

.service-emoji {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--service-tint);
  font-size: 16px;
}

.service-btn.is-net {
  --service-accent: #4f8582;
  --service-tint: #e7f2f0;
}

.service-btn.is-water {
  --service-accent: #4b86a6;
  --service-tint: #e7f2f8;
}

.service-btn.is-tools {
  --service-accent: #bd7434;
  --service-tint: #fbede0;
}

.service-btn.is-condiment {
  --service-accent: #84943c;
  --service-tint: #f2f5df;
}

.service-btn.is-call {
  --service-accent: #b98527;
  --service-tint: #f7e8bd;
  border-color: #d6b266;
  border-left-color: #b98527;
  background: #fff8e6;
  color: #5d3d10;
}

.service-btn.is-call .service-name {
  color: #5d3d10;
  font-weight: 700;
}

.service-btn.is-bill {
  --service-accent: #7d2118;
  --service-tint: rgba(255, 248, 242, 0.16);
  border-color: #7d2118;
  border-left-color: #ffe1c1;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff8f2;
  box-shadow: 0 6px 16px rgba(138, 42, 30, 0.26);
}

.service-btn.is-bill .service-name {
  color: #fff8f2;
  font-weight: 700;
}

.service-btn.is-bill .service-emoji {
  background: rgba(255, 248, 242, 0.16);
}

.service-btn.is-bill:hover:not(:disabled) {
  border-color: #7d2118;
  background: linear-gradient(135deg, #bd4434 0%, #7d2118 100%);
}

/* ---------- 三语切换手机头部 ---------- */
@media (max-width: 520px) {
  .site-header {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .header-inner {
    gap: 4px;
  }

  .brand {
    gap: 6px;
  }

  .brand-seal {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  .brand-name {
    font-size: 15px;
    letter-spacing: 0.01em;
  }

  .brand-secondary {
    display: none;
  }

  .call-staff-btn {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .lang-btn {
    min-height: 34px;
    padding: 0 6px;
    font-size: 11px;
  }

  .lang-switch {
    gap: 0;
    padding: 2px;
  }

  .header-actions {
    gap: 2px;
  }
}

.lang-short {
  display: none;
}

@media (max-width: 520px) {
  .lang-full {
    display: none;
  }

  .lang-short {
    display: inline;
  }
}

/* ---------- English mode: hide Japanese secondary copy ---------- */
html[data-lang="en"] .brand-secondary,
html[data-lang="en"] .cat-sub,
html[data-lang="en"] .section-sub,
html[data-lang="en"] .footer-alt,
html[data-lang="en"] .hero-vertical {
  display: none;
}

/* ---------- 封面图完整展示（不裁切图内文字） ---------- */
.hero {
  background-size: contain, contain;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-color: #1b110d;
}

/* ---------- 五模式入口：紧凑卡片 ---------- */
.mode-grid {
  gap: 8px;
}

.mode-card {
  min-height: 72px;
  padding: 10px 12px;
  gap: 8px;
  border-radius: 14px;
}

.mode-emoji {
  width: 28px;
  font-size: 20px;
  text-align: center;
}

.mode-copy strong {
  font-size: 15px;
  letter-spacing: 0.03em;
}

.mode-check {
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  font-size: 10px;
}

@media (min-width: 960px) {
  .mode-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .mode-card {
    min-height: 86px;
    padding: 12px;
  }

  .mode-copy strong {
    font-size: 15px;
  }
}

/* 人数独立框也稍微收紧 */
.guest-card {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
}

.guest-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 17px;
}

@media (max-width: 520px) {
  .wizard-card {
    padding: 14px;
    border-radius: 18px;
  }

  .step-head {
    margin-bottom: 12px;
  }
}

/* ---------- 菜品实拍图 ---------- */
.hero {
  background-image:
    linear-gradient(105deg, rgba(17, 10, 8, 0.96) 0%, rgba(17, 10, 8, 0.84) 48%, rgba(17, 10, 8, 0.46) 100%),
    var(--hero-image, url('/assets/img/hero-grill.jpg'));
}

.dish-emoji.has-photo::before,
.dish-emoji.has-photo::after {
  display: none;
}

.dish-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.dish-emoji.has-photo .soldout-badge {
  z-index: 3;
}


/* ---------- 品牌 Logo（图片） ---------- */
.brand {
  gap: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 210px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(60, 35, 20, 0.08));
}

@media (max-width: 520px) {
  .brand-logo {
    height: 34px;
    max-width: 150px;
  }
}

@media (max-width: 360px) {
  .brand-logo {
    height: 30px;
    max-width: 128px;
  }
}

/* ---------- 套餐背景图 ---------- */
.course-card.has-image {
  background-image:
    linear-gradient(180deg, rgba(14, 9, 7, 0.52) 0%, rgba(14, 9, 7, 0.86) 100%),
    var(--course-image);
  background-size: cover;
  background-position: center;
  color: #fff8f2;
  border-color: rgba(240, 207, 154, 0.42);
}

.course-card.has-image .course-card-name,
.course-card.has-image .course-card-price {
  color: #fff8f2;
}

.course-card.has-image .course-card-meta {
  color: rgba(255, 248, 242, 0.72);
}

.course-card.has-image .course-card-count {
  background: rgba(255, 255, 255, 0.16);
  color: #ffe7bd;
}

/* ---------- 套餐内容 ---------- */
.course-contents {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 154, 74, 0.28);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.72);
}

.course-contents h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
}

.course-contents h3::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 3px;
  background: var(--gold);
}

.course-contents ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-contents li {
  position: relative;
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft, var(--ink));
}

.course-contents li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 420px) {
  .course-contents ul {
    grid-template-columns: 1fr;
  }
}

.limit-chip-rule {
  flex: 1 1 100%;
  font-size: 10.5px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}
