/* =========================================================
   顾客点单页 · 深色微醺风格
   ========================================================= */
:root {
  --bg: #0d0b09;
  --bg-2: #14110e;
  --surface: #1a1612;
  --surface-2: #231e19;
  --surface-3: #2d2620;
  --line: rgba(236, 216, 184, 0.09);
  --line-2: rgba(236, 216, 184, 0.16);
  --text: #f2eadd;
  --text-2: #bdb09d;
  --muted: #7f7467;
  --gold: #d4ab62;
  --gold-2: #ecca8c;
  --gold-ink: #1b140b;
  --green: #7fc29b;
  --red: #e0735f;
  --radius: 18px;
  --serif: "Cormorant Garamond", "Playfair Display", "Didot", "Bodoni 72", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.ic { display: block; flex-shrink: 0; }

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(110px + var(--safe-b));
  background: var(--bg);
  position: relative;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 18px 20px 26px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(212, 171, 98, 0.22), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(150, 60, 40, 0.18), transparent 60%),
    linear-gradient(180deg, #17120d 0%, var(--bg) 100%);
}
.hero::after {
  /* 胶片颗粒 */
  content: "";
  position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-glow {
  position: absolute; z-index: -1;
  width: 260px; height: 260px; right: -70px; top: -90px;
  border-radius: 50%;
  border: 1px solid rgba(212, 171, 98, 0.18);
  box-shadow: 0 0 0 28px rgba(212, 171, 98, 0.035), 0 0 0 64px rgba(212, 171, 98, 0.025);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hero-actions { display: flex; gap: 10px; }

.round-btn {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s var(--ease), background .2s;
}
.round-btn:active { transform: scale(.92); }
.dot-badge {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 2px #17120d;
}

.table-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 171, 98, 0.35);
  background: rgba(212, 171, 98, 0.08);
  color: var(--gold-2);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.table-chip .ic { width: 18px; height: 18px; }
.table-chip.empty { color: var(--text-2); border-color: var(--line-2); background: rgba(255,255,255,.04); }
.table-chip.locked::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}

.hero-body { margin-top: 38px; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: .6; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: .005em;
  margin-top: 10px;
  background: linear-gradient(180deg, #fbf3e3 0%, #e6c993 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline { margin-top: 10px; color: var(--text-2); font-size: 13px; letter-spacing: .08em; }

.notice {
  margin-top: 20px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(212, 171, 98, 0.08);
  border: 1px solid rgba(212, 171, 98, 0.18);
  color: var(--gold-2);
  font-size: 13px;
}
.notice .ic { width: 16px; height: 16px; }

/* ---------- 分类导航 ---------- */
.cat-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 11, 9, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.cat-nav-inner {
  display: flex; gap: 26px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-tab {
  position: relative;
  flex-shrink: 0;
  padding: 15px 0 13px;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  transition: color .25s;
}
.cat-tab::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width .3s var(--ease);
}
.cat-tab.active { color: var(--text); font-weight: 600; }
.cat-tab.active::after { width: 18px; }

/* ---------- 区块标题 ---------- */
.section-head { display: flex; align-items: baseline; gap: 10px; padding: 0 20px; }
.section-head h2 { font-size: 19px; font-weight: 600; letter-spacing: .04em; }
.section-en {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 15px; opacity: .85;
}

/* ---------- 今夜推荐 ---------- */
.featured { padding: 26px 0 6px; }
.featured-track {
  display: flex; gap: 12px;
  padding: 14px 20px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}
.featured-track::-webkit-scrollbar { display: none; }
.feat-card {
  position: relative;
  flex: 0 0 148px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  padding: 10px 10px 12px;
  text-align: left;
  transition: transform .25s var(--ease);
}
.feat-card:active { transform: scale(.97); }
.feat-card .art { width: 100%; height: 132px; border-radius: 12px; }
.feat-card .art svg { width: 108px; height: 108px; }
.feat-name { margin-top: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-en { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-foot { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }

/* ---------- 酒杯插画容器 ---------- */
.art {
  --tint: #c9a46a;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  color: #eadbc1;
  background:
    radial-gradient(70% 60% at 50% 62%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 72%),
    linear-gradient(160deg, #262019, #16120e);
}
.art::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.03);
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art svg { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }

/* ---------- 菜单 ---------- */
.menu { padding: 8px 0 0; }
.cat-section { padding: 28px 0 4px; scroll-margin-top: 54px; }
.cat-section .section-head { margin-bottom: 6px; }
.cat-count { margin-left: auto; color: var(--muted); font-size: 12px; }

.item {
  position: relative;
  display: flex; gap: 14px;
  margin: 0 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.item:last-child { border-bottom: 0; }
.item .art { width: 92px; height: 104px; flex-shrink: 0; border-radius: 16px; }
.item .art svg { width: 84px; height: 84px; }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-title { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.item-en {
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--gold); opacity: .9;
  margin-top: 1px;
}
.item-desc {
  margin-top: 5px;
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  height: 19px; padding: 0 7px;
  border-radius: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--line-2); color: var(--text-2);
}
.tag .ic { width: 11px; height: 11px; }
.tag-signature { color: var(--gold-2); border-color: rgba(212,171,98,.4); background: rgba(212,171,98,.08); }
.tag-new { color: #9fd3b4; border-color: rgba(127,194,155,.4); background: rgba(127,194,155,.08); }
.tag-hot { color: #f0a088; border-color: rgba(224,115,95,.4); background: rgba(224,115,95,.08); }
.tag-na { color: #a9c6e6; border-color: rgba(140,180,225,.35); background: rgba(140,180,225,.07); }
.tag-abv { color: var(--muted); }

.item-foot { margin-top: auto; padding-top: 9px; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--gold-2); line-height: 1; letter-spacing: .01em; }
.price small { font-family: var(--sans); font-size: 12px; font-weight: 500; margin-right: 1px; color: var(--gold); }
.price-from { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-left: 2px; font-weight: 400; }

.item.sold-out { cursor: default; }
.item.sold-out .art, .item.sold-out .item-main > *:not(.item-foot) { opacity: .4; }
.item.sold-out .price { opacity: .4; }
.sold-label {
  font-size: 12px; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: 999px; padding: 4px 10px;
}

/* 加减按钮 */
.add-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 4px 14px rgba(212, 171, 98, 0.28);
  transition: transform .2s var(--ease);
}
.add-btn .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.add-btn:active { transform: scale(.88); }
.spec-btn {
  position: relative;
  height: 30px; padding: 0 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  font-size: 12.5px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 171, 98, 0.25);
}
.spec-btn .count-pip {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--red); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
}
.stepper .minus { border: 1px solid var(--line-2); color: var(--text-2); }
.stepper .plus { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.stepper .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.stepper .num { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.lg button { width: 38px; height: 38px; }
.stepper.lg .num { min-width: 40px; font-size: 18px; }

/* 骨架屏 */
.skeleton {
  height: 104px; margin: 18px 20px; border-radius: 16px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.foot { text-align: center; padding: 34px 20px 10px; color: var(--muted); font-size: 12px; }
.foot-sub { font-family: var(--serif); font-style: italic; font-size: 13px; opacity: .7; }
.foot-rule { display: flex; align-items: center; gap: 12px; margin: 0 auto 14px; max-width: 200px; color: var(--gold); opacity: .6; font-size: 10px; }
.foot-rule::before, .foot-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.foot-rule::after { transform: scaleX(-1); }

/* ---------- 底部购物车 Dock ---------- */
.dock {
  position: fixed; z-index: 40;
  left: 50%; bottom: calc(14px + var(--safe-b));
  width: min(528px, calc(100% - 24px));
  height: 62px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 7px 0 8px;
  border-radius: 999px;
  background: rgba(30, 25, 20, 0.86);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transform: translate(-50%, 140%);
  transition: transform .45s var(--ease);
}
.dock.show { transform: translate(-50%, 0); }
.dock-bag {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--gold-2);
}
.dock-bag .ic { width: 22px; height: 22px; }
.dock-bag.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95); } }
.dock-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--red); color: #fff;
  font-size: 11.5px; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px #1e1914;
}
.dock-info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.dock-total { font-family: var(--serif); font-size: 22px; color: var(--text); font-weight: 600; }
.dock-total b { font-weight: 600; }
.dock-sub { font-size: 11.5px; color: var(--muted); }
.dock-go {
  height: 48px; padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  font-weight: 700; font-size: 15px; letter-spacing: .06em;
  box-shadow: 0 6px 18px rgba(212, 171, 98, 0.3);
}
.dock-go:active { transform: scale(.97); }

/* ---------- Sheet ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.backdrop.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 60;
  left: 50%; bottom: 0;
  width: min(560px, 100%);
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  border: 1px solid var(--line-2); border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
  transform: translate(-50%, 105%);
  transition: transform .45s var(--ease);
  visibility: hidden;
}
.sheet.show { transform: translate(-50%, 0); visibility: visible; }
.sheet-handle { width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 10px auto 0; flex-shrink: 0; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px 6px; }
.sheet-header h3 { font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.sheet-body { overflow-y: auto; padding: 8px 22px 16px; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 14px 22px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-hint { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.sheet-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.4); color: var(--text);
  backdrop-filter: blur(6px);
}
.sheet-close .ic { width: 18px; height: 18px; }
.text-btn { color: var(--muted); font-size: 13px; }

.primary-btn {
  width: 100%; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  font-size: 16px; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 8px 22px rgba(212, 171, 98, 0.25);
  transition: transform .2s var(--ease), opacity .2s;
}
.primary-btn:active { transform: scale(.98); }
.primary-btn:disabled { opacity: .5; }
.ghost-btn {
  height: 52px; padding: 0 20px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); color: var(--text);
  font-weight: 600;
}
.ghost-btn .ic { width: 18px; height: 18px; }

/* 商品详情 */
.detail-art { margin: 14px -6px 0; height: 236px; border-radius: 22px; }
.detail-art svg { width: 190px; height: 190px; }
.detail-head { margin-top: 20px; }
.detail-name { font-size: 22px; font-weight: 600; letter-spacing: .03em; }
.detail-en { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.detail-desc { margin-top: 10px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.opt-group { margin-top: 22px; }
.opt-title { font-size: 13px; color: var(--muted); margin-bottom: 10px; letter-spacing: .06em; }
.opt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  height: 38px; padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 14px;
  transition: all .2s var(--ease);
}
.opt-chip small { color: var(--muted); margin-left: 4px; font-size: 12px; }
.opt-chip.active { border-color: var(--gold); color: var(--gold-2); background: rgba(212, 171, 98, 0.1); }
.detail-foot { display: flex; align-items: center; gap: 14px; }
.detail-foot .primary-btn { flex: 1; }

/* 购物车 */
.deliver-row {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: left;
}
.deliver-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(212,171,98,.12); color: var(--gold-2); }
.deliver-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.deliver-text small { color: var(--muted); font-size: 11.5px; }
.deliver-text b { font-size: 16px; }
.deliver-row.missing b { color: var(--red); font-weight: 500; font-size: 14px; }
.deliver-change { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12.5px; }
.deliver-change .ic { width: 15px; height: 15px; }
.deliver-row.locked .deliver-change { display: none; }

.cart-lines { margin-top: 6px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line .art { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.cart-line .art svg { width: 46px; height: 46px; }
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: 14.5px; }
.cart-line-opts { color: var(--muted); font-size: 12px; margin-top: 1px; }
.cart-line-price { font-family: var(--serif); color: var(--gold-2); font-size: 17px; margin-top: 2px; font-weight: 600; }
.cart-line.invalid { opacity: .5; }

.note-box { margin-top: 18px; }
.note-box label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; letter-spacing: .06em; }
.note-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.note-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); transition: all .2s; }
.note-chip.active { border-color: var(--gold); color: var(--gold-2); background: rgba(212,171,98,.08); }
textarea, .field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-size: 15px;
  resize: none;
  outline: none;
  transition: border-color .2s;
}
textarea:focus, .field input:focus { border-color: var(--gold); }
::placeholder { color: #5f574d; }

.sum-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; color: var(--text-2); }
.sum-val { font-family: var(--serif); font-size: 28px; color: var(--text); font-weight: 600; }

/* 桌号选择 */
.table-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.table-opt {
  height: 46px; border-radius: 12px;
  border: 1px solid var(--line-2);
  font-weight: 600; font-size: 14px;
  color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px;
}
.table-opt.active { border-color: var(--gold); color: var(--gold-2); background: rgba(212,171,98,.1); }

/* 呼叫服务 */
.call-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 8px; }
.call-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 6px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform .2s var(--ease), border-color .2s;
}
.call-card .ic { width: 28px; height: 28px; color: var(--gold-2); margin-bottom: 4px; }
.call-card b { font-size: 14px; font-weight: 600; }
.call-card small { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 12.5px; }
.call-card:active { transform: scale(.96); border-color: var(--gold); }

/* 我的订单 */
.order-row {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  text-align: left;
}
.order-row-main { flex: 1; min-width: 0; }
.order-row-top { display: flex; align-items: center; gap: 8px; }
.order-row-no { font-weight: 700; letter-spacing: .04em; }
.order-row-items { color: var(--muted); font-size: 12.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row-total { font-family: var(--serif); font-size: 19px; color: var(--gold-2); font-weight: 600; }
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st-pending { color: var(--gold-2); background: rgba(212,171,98,.12); }
.st-making { color: #8fc0f0; background: rgba(120,170,230,.12); }
.st-done { color: var(--green); background: rgba(127,194,155,.12); }
.st-cancelled { color: var(--muted); background: rgba(255,255,255,.06); }
.st-pending::before, .st-making::before { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.empty-state { text-align: center; padding: 40px 0 30px; color: var(--muted); }
.empty-state .ic { width: 40px; height: 40px; margin: 0 auto 12px; opacity: .5; }

/* ---------- 订单追踪 ---------- */
.track {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  max-width: 560px; margin: 0 auto;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(212,171,98,.16), transparent 70%),
    var(--bg);
  transform: translateY(100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
}
.track.show { transform: translateY(0); visibility: visible; }
.track-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.track-top-title { font-size: 15px; font-weight: 600; color: var(--text-2); }
.track-body { flex: 1; overflow-y: auto; padding: 4px 22px 20px; }
.track-foot { display: flex; gap: 10px; padding: 12px 22px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); }
.track-foot .primary-btn { flex: 1; }

.track-hero { text-align: center; padding: 18px 0 26px; }
.track-emblem {
  position: relative;
  width: 112px; height: 112px; margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--gold-2);
  background: radial-gradient(circle, rgba(212,171,98,.18), rgba(212,171,98,.04) 70%);
  border: 1px solid rgba(212,171,98,.3);
}
.track-emblem .ic { width: 46px; height: 46px; stroke-width: 1.4; }
.track-emblem::before, .track-emblem::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(212,171,98,.4);
  animation: ripple 2.4s infinite var(--ease);
}
.track-emblem::after { animation-delay: 1.2s; }
.track-emblem.making .ic { animation: shake 1.2s infinite ease-in-out; }
.track-emblem.done { color: var(--green); border-color: rgba(127,194,155,.4); background: radial-gradient(circle, rgba(127,194,155,.18), rgba(127,194,155,.03) 70%); }
.track-emblem.done::before, .track-emblem.done::after, .track-emblem.cancelled::before, .track-emblem.cancelled::after { display: none; }
.track-emblem.cancelled { color: var(--muted); border-color: var(--line-2); background: rgba(255,255,255,.03); }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
@keyframes shake { 0%,100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-3px); } }
.track-title { margin-top: 22px; font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.track-sub { margin-top: 6px; color: var(--text-2); font-size: 13.5px; }
.track-no {
  display: inline-flex; gap: 14px; margin-top: 18px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; color: var(--text-2);
}
.track-no b { color: var(--text); letter-spacing: .06em; }

.steps { display: flex; justify-content: space-between; position: relative; margin: 8px 6px 26px; }
.steps::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 2px; background: var(--surface-3); }
.steps-fill { position: absolute; left: 14px; top: 13px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .8s var(--ease); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 64px; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 2px solid var(--surface-3);
  color: var(--muted);
  transition: all .4s var(--ease);
}
.step-dot .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.step-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.step-time { font-size: 11px; color: var(--muted); opacity: .7; margin-top: -6px; font-variant-numeric: tabular-nums; min-height: 15px; }
.step.done .step-dot { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.step.done .step-label { color: var(--text-2); }
.step.current .step-dot { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(212,171,98,.15); color: var(--gold-2); }
.step.current .step-label { color: var(--gold-2); font-weight: 600; }

.receipt-card {
  position: relative;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
}
.receipt-card h4 { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .08em; margin-bottom: 6px; }
.r-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--line-2); }
.r-line:last-of-type { border-bottom: 0; }
.r-line small { display: block; color: var(--muted); font-size: 12px; }
.r-line .q { color: var(--muted); margin-left: 6px; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-2); }
.r-total b { font-family: var(--serif); font-size: 24px; color: var(--gold-2); }
.r-note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); color: var(--text-2); font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 100;
  left: 50%; top: calc(16px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -150%);
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(40, 33, 26, 0.95);
  border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  color: var(--text);
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
  transition: transform .4s var(--ease);
  backdrop-filter: blur(10px);
}
.toast.show { transform: translate(-50%, 0); }
.toast .ic { width: 18px; height: 18px; color: var(--gold-2); }

/* 飞入购物车 */
.fly-dot {
  position: fixed; z-index: 90;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 14px var(--gold);
  pointer-events: none;
  transition: transform .6s cubic-bezier(.5, -0.4, .7, 1), opacity .6s;
}

@media (min-width: 600px) {
  body { background: #070605; }
  .app { box-shadow: 0 0 0 1px var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
