:root {
  --paper: #f5f5f3;
  --paper-deep: #eeeeea;
  --card: #ffffff;
  --ink: #242522;
  --muted: #777872;
  --line: #e7e7e2;
  --coral: #b53228;
  --coral-dark: #96271f;
  --coral-soft: #fbeae7;
  --green: #287052;
  --green-soft: #e8f3ed;
  --gold: #aa772d;
  --shadow: 0 18px 60px rgba(30, 28, 24, .14);
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled), a { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid rgba(181, 50, 40, .28); outline-offset: 3px; }
.site-header { height: 70px; padding: 0 max(24px, calc((100% - 1180px) / 2 + 24px)); display: flex; align-items: center; justify-content: space-between; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand span { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 19px; letter-spacing: .04em; }
.brand small { font-size: 10px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.open-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 650; }
.open-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.open-pill.closed { color: var(--coral); }
.open-pill.closed i { background: var(--coral); }
.text-button { border: 0; background: none; padding: 10px 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.text-button:hover { color: var(--coral); }
.text-button svg { width: 18px; }
main { min-height: 70vh; }
.store-panel { max-width: 1180px; margin: 24px auto 26px; min-height: 216px; display: grid; grid-template-columns: 1fr 43%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.store-copy { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.store-title-row { display: flex; align-items: center; gap: 14px; }
h1 { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: .03em; }
.store-status { flex: 0 0 auto; padding: 5px 9px; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 650; }
.store-status.closed { color: var(--coral); background: var(--coral-soft); }
.store-subtitle { margin: 12px 0 23px; color: #565751; font-size: 14px; }
.store-facts { display: flex; flex-wrap: wrap; gap: 18px; }
.store-facts span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.store-facts b { font-weight: 500; }
.store-facts svg { width: 15px; height: 15px; }
.store-service { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.store-photo { position: relative; min-height: 216px; overflow: hidden; background: #e7e3dc; }
.store-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.store-photo span { position: absolute; left: 16px; bottom: 16px; padding: 7px 10px; border-radius: 6px; background: rgba(25, 24, 21, .82); color: white; font-size: 11px; }
.order-shell { max-width: 1180px; margin: 0 auto 64px; scroll-margin-top: 20px; }
.mode-heading, .menu-intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
h2 { font-size: 22px; line-height: 1.25; margin: 0; letter-spacing: .01em; }
.section-kicker { margin: 0 0 6px; color: var(--coral); font-size: 10px; font-weight: 700; }
.kitchen-note { color: var(--muted); font-size: 11px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 17px 0 12px; }
.mode-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; text-align: left; gap: 13px; transition: border-color .16s, background .16s; }
.mode-card:hover { border-color: #c8c8c1; }
.mode-card.selected { border-color: var(--coral); background: #fffaf9; }
.mode-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; }
.mode-icon.coral { background: var(--coral-soft); color: var(--coral); }
.mode-icon.green { background: var(--green-soft); color: var(--green); }
.mode-icon.amber { background: #fff2d9; color: #9a5a12; }
.mode-icon svg { width: 21px; }
.mode-copy { display: flex; flex-direction: column; gap: 4px; }
.mode-copy strong { font-size: 16px; }
.mode-copy small { color: var(--muted); font-size: 11px; }
.mode-radio { margin-left: auto; width: 18px; height: 18px; border: 1.5px solid #cecec7; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.selected .mode-radio { border-color: var(--coral); }
.selected .mode-radio::after { content: ""; width: 9px; height: 9px; background: var(--coral); border-radius: 50%; }
.selection-bar { width: 100%; border: 1px solid var(--line); border-left: 3px solid var(--coral); background: var(--card); color: var(--ink); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; text-align: left; }
.selection-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; }
.selection-icon svg { width: 18px; }
.selection-bar > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.selection-bar small { color: var(--muted); font-size: 10px; }
.selection-bar strong { font-size: 13px; }
.selection-change { margin-left: auto; display: flex; align-items: center; font-size: 11px; color: var(--coral); }
.selection-change svg { width: 15px; }
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 26px; margin-top: 34px; align-items: start; }
.menu-intro { margin-bottom: 15px; }
.menu-intro > span { color: var(--muted); font-size: 11px; }
.category-nav { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 11px; margin-bottom: 10px; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: var(--paper); }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav button { flex: 0 0 auto; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 9px 14px; color: var(--muted); font-size: 12px; font-weight: 600; }
.category-nav button.active { color: var(--coral); background: var(--coral-soft); }
.menu-category { scroll-margin-top: 58px; margin-bottom: 24px; }
.menu-category h3 { font-size: 16px; margin: 0 0 11px; display: flex; align-items: center; gap: 10px; }
.menu-category h3::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dish-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; min-height: 138px; }
.dish-art { width: 112px; height: 112px; display: grid; place-items: center; position: relative; overflow: hidden; background: #eeeae3; border-radius: 8px; align-self: center; }
.dish-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.dish-art.image-missing::before { content: "菜品图片"; color: #9a958b; font-size: 11px; }
.dish-art .dish-tag { position: absolute; left: 0; top: 0; background: var(--coral); color: white; font-size: 9px; padding: 4px 7px; border-radius: 0 0 6px 0; }
.dish-info { padding: 2px 0 1px; min-width: 0; display: flex; flex-direction: column; }
.dish-info h4 { margin: 0 0 6px; font-size: 14px; line-height: 1.4; }
.dish-info p { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-bottom { margin-top: auto; padding-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.dish-price { color: var(--coral); font-size: 19px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.dish-price small { font-size: 11px; margin-right: 2px; font-weight: 650; }
.dish-price span { color: var(--muted); font-size: 9px; font-weight: 400; margin-left: 2px; }
.add-button { border: 0; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: white; padding: 0; }
.add-button:hover { background: var(--coral-dark); }
.add-button svg { width: 16px; height: 16px; stroke-width: 2.2; }
.add-button.has-options { width: auto; border-radius: 16px; padding: 0 10px; display: flex; gap: 3px; font-size: 10px; }
.quantity-control { display: flex; align-items: center; gap: 8px; }
.quantity-control button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; padding: 0; }
.quantity-control button:last-child { background: var(--coral); color: white; border-color: var(--coral); }
.quantity-control svg { width: 14px; height: 14px; }
.quantity-control b { min-width: 12px; text-align: center; font-size: 12px; }
.sold-out .dish-photo { filter: grayscale(1); }
.sold-out .dish-art, .sold-out .dish-info { opacity: .55; }
.sold-out-label { border: 1px solid var(--line); color: var(--muted); border-radius: 15px; padding: 5px 8px; font-size: 10px; }
.cart-aside { position: sticky; top: 18px; }
.cart-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cart-card-header { padding: 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart-card-header h3 { margin: 0; font-size: 17px; }
.cart-card-header span { font-size: 10px; color: var(--muted); }
.cart-empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.cart-empty .empty-bowl { width: 54px; height: 40px; margin: 0 auto 15px; border: 2px solid #c9c9c2; border-top: 0; border-radius: 0 0 34px 34px; position: relative; }
.cart-empty .empty-bowl::before { content: ""; position: absolute; width: 62px; height: 2px; background: #c9c9c2; left: -6px; top: 0; }
.cart-empty p { margin: 0; font-size: 12px; }
.cart-empty small { display: block; font-size: 10px; margin-top: 7px; color: #999a94; }
.cart-lines { padding: 6px 18px; max-height: 330px; overflow-y: auto; }
.cart-line { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border: 0; }
.cart-line-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.cart-line-top strong { font-weight: 650; }
.cart-line-top span { white-space: nowrap; font-weight: 700; }
.cart-line-options { font-size: 10px; color: var(--muted); margin: 5px 0 10px; }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; }
.remove-line { border: 0; background: none; color: var(--muted); font-size: 10px; padding: 4px; }
.cart-total { padding: 16px 18px; background: #fafaf8; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.cart-total-row span { font-size: 11px; color: var(--muted); }
.cart-total-row strong { color: var(--coral); font-size: 26px; }
.cart-total-row strong small { font-size: 12px; }
.primary-button { border: 0; background: var(--coral); color: white; min-height: 46px; padding: 0 21px; border-radius: 10px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary-button:hover { background: var(--coral-dark); }
.primary-button.full { width: 100%; }
.secondary-button { border: 1px solid var(--line); background: var(--card); color: var(--ink); min-height: 43px; padding: 0 17px; border-radius: 10px; font-weight: 650; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.secondary-button:hover { border-color: #aaa9a2; }
.danger-button { color: var(--coral); border-color: #e8c5c1; }
.mobile-cart { display: none; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 10px; }
.site-footer > div { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.site-footer img { border-radius: 7px; }
.site-footer strong { font-size: 13px; }
.site-footer p { margin: 0; }
.site-footer a { margin-left: auto; }
.site-footer a:hover { color: var(--coral); }

/* Dialogs */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(24, 32, 28, .48); backdrop-filter: blur(5px); }
.sheet { width: min(620px, calc(100% - 28px)); max-height: min(88dvh, 850px); margin: auto; padding: 0; border: 0; border-radius: 25px; background: var(--paper); box-shadow: var(--shadow); overflow-y: auto; }
.sheet[open] { animation: sheet-in .23s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet-header { padding: 24px 25px 19px; display: flex; align-items: center; justify-content: space-between; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 4; }
.sheet-header h2 { font-size: 24px; }
.icon-button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; padding: 0; flex: 0 0 auto; }
.icon-button svg { width: 18px; }
.party-picker { margin: 18px 22px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.party-picker > span { display: flex; flex-direction: column; gap: 5px; }
.party-picker strong { font-size: 14px; }
.party-picker small { color: var(--muted); font-size: 11px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 31px; height: 31px; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; display: grid; place-items: center; padding: 0; }
.stepper svg { width: 14px; }
.stepper b { min-width: 34px; font-size: 13px; text-align: center; }
.table-legend { display: flex; align-items: center; gap: 15px; padding: 5px 24px 13px; font-size: 10px; color: var(--muted); }
.table-legend span { display: flex; align-items: center; gap: 5px; }
.table-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--card); border: 1px solid #aaa293; }
.table-legend i.chosen { background: var(--green); border-color: var(--green); }
.table-legend i.busy { background: #c9c4ba; border-color: #c9c4ba; }
.table-legend button { margin-left: auto; border: 0; background: none; color: var(--green); font-size: 10px; padding: 4px; }
.table-list { padding: 0 22px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.table-card { min-height: 116px; border: 1.5px solid var(--line); background: var(--card); border-radius: 17px; padding: 13px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; }
.table-card strong { font-size: 16px; }
.table-card small { font-size: 10px; color: var(--muted); }
.table-card .table-capacity { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--green); }
.table-card .table-capacity svg { width: 13px; height: 13px; }
.table-card.selected { border-color: var(--green); background: var(--green-soft); }
.table-card.selected::after { content: "✓"; position: absolute; top: 7px; right: 8px; color: var(--green); font-weight: 800; }
.table-card.occupied { background: #eae7e0; color: #969288; }
.table-card.occupied small, .table-card.occupied .table-capacity { color: #aaa59b; }
.table-card.too-small:not(.occupied) { opacity: .45; }
.sheet-footer { padding: 17px 22px max(17px, env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; position: sticky; bottom: 0; }
.sheet-footer > div { display: flex; flex-direction: column; gap: 4px; }
.sheet-footer small { color: var(--muted); font-size: 10px; }
.sheet-footer strong { font-size: 14px; }
.pickup-options { display: grid; gap: 11px; padding: 20px 23px 12px; }
.pickup-card { border: 1.5px solid var(--line); background: var(--card); border-radius: 15px; padding: 16px; display: flex; align-items: center; gap: 13px; text-align: left; }
.pickup-card > svg { color: var(--green); }
.pickup-card span { display: flex; flex-direction: column; gap: 4px; }
.pickup-card strong { font-size: 14px; }
.pickup-card small { font-size: 11px; color: var(--muted); }
.pickup-card.selected { border-color: var(--green); background: var(--green-soft); }
.sheet-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 11px; font-weight: 400; }
.time-grid-label { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.time-grid-label strong, .arrival-heading strong { font-size: 13px; }
.time-grid-label small, .arrival-heading small { color: var(--muted); font-size: 10px; }
.time-chip-grid, .arrival-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.time-chip { min-height: 39px; padding: 7px 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 11px; white-space: nowrap; }
.time-chip.selected { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 750; }
.arrival-picker { margin: 0 22px 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
.arrival-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.soft-note { color: var(--muted); font-size: 11px; line-height: 1.7; padding: 0 25px 22px; margin: 0; }
.dish-detail { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 24px; }
.dish-detail .dish-art { border-radius: 17px; height: 150px; }
.dish-detail h2 { margin: 5px 0 9px; }
.dish-detail p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.option-section { padding: 0 24px 18px; }
.option-section h3 { margin: 0 0 11px; font-size: 13px; }
.option-pills { display: flex; gap: 9px; flex-wrap: wrap; }
.option-pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 15px; font-size: 12px; }
.option-pill.selected { border-color: var(--coral); color: var(--coral); background: #fff6ef; font-weight: 650; }
.dish-option-footer { padding: 15px 24px 22px; display: flex; align-items: center; gap: 15px; }
.dish-option-footer .primary-button { flex: 1; }
.dish-option-footer .dish-price { font-size: 24px; }
.checkout-body { padding: 19px 23px; }
.checkout-summary { border-radius: 15px; background: var(--green); color: white; padding: 15px 17px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.checkout-summary svg { width: 24px; height: 24px; }
.checkout-summary span { display: flex; flex-direction: column; gap: 3px; }
.checkout-summary small { color: rgba(255,255,255,.67); font-size: 10px; }
.checkout-summary strong { font-size: 14px; }
.checkout-lines { margin-bottom: 19px; }
.checkout-line { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.checkout-line > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.checkout-line small { color: var(--muted); font-size: 10px; }
.checkout-line > strong { white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 650; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 13px; color: var(--ink); outline: none; font-size: 13px; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,101,84,.08); }
.field textarea { min-height: 74px; resize: vertical; }
.payment-note { display: flex; align-items: center; gap: 9px; background: var(--paper-deep); border-radius: 12px; padding: 12px; font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.payment-note svg { width: 18px; color: var(--green); }
.checkout-total { display: flex; align-items: center; justify-content: space-between; padding: 15px 23px; background: var(--card); border-top: 1px solid var(--line); position: sticky; bottom: 0; }
.checkout-total > span { display: flex; flex-direction: column; gap: 2px; font-size: 10px; color: var(--muted); }
.checkout-total strong { font-size: 25px; color: var(--coral); }
.checkout-total .primary-button { min-width: 170px; }
.empty-orders { text-align: center; padding: 55px 24px; color: var(--muted); }
.empty-orders svg { width: 45px; height: 45px; margin-bottom: 15px; color: #b9b2a5; }
.empty-orders h3 { color: var(--ink); font-family: var(--serif); font-size: 21px; margin: 0 0 9px; }
.empty-orders p { font-size: 12px; }
.recent-orders { padding: 16px 22px; }
.recent-order { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 15px; margin-bottom: 11px; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.recent-order > span { display: flex; flex-direction: column; gap: 4px; }
.recent-order small { font-size: 10px; color: var(--muted); }
.recent-order strong { font-size: 13px; }
.recent-order .status-chip { margin-left: auto; }
.order-detail { padding: 22px; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin: 0 auto 13px; }
.success-mark svg { width: 30px; height: 30px; stroke-width: 2.4; }
.order-success-title { text-align: center; margin-bottom: 22px; }
.order-success-title h3 { font-family: var(--serif); font-size: 25px; margin: 0 0 7px; }
.order-success-title p { color: var(--muted); font-size: 12px; margin: 0; }
.order-number { background: var(--ink); color: white; border-radius: 15px; padding: 17px; text-align: center; margin-bottom: 19px; }
.order-number small { display: block; font-size: 10px; color: rgba(255,255,255,.6); margin-bottom: 6px; letter-spacing: .1em; }
.order-number strong { font-size: 21px; letter-spacing: .08em; }
.status-timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 25px; }
.status-step { text-align: center; position: relative; color: #aaa69d; font-size: 10px; }
.status-step::before { content: ""; height: 3px; background: #ddd8ce; position: absolute; top: 9px; left: 0; right: 0; }
.status-step:first-child::before { left: 50%; }
.status-step:last-child::before { right: 50%; }
.status-step i { position: relative; z-index: 1; display: grid; place-items: center; margin: 0 auto 8px; width: 21px; height: 21px; background: #ddd8ce; border-radius: 50%; color: white; font-style: normal; font-size: 10px; }
.status-step.active { color: var(--green); }
.status-step.active::before { background: var(--green); }
.status-step.active i { background: var(--green); }
.order-info-card { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 15px; margin-bottom: 14px; }
.order-info-row { display: flex; justify-content: space-between; gap: 15px; padding: 6px 0; font-size: 12px; }
.order-info-row span { color: var(--muted); }
.order-info-row strong { text-align: right; }
.order-items-card { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 13px 15px; margin-bottom: 16px; }
.order-item { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 7px 0; }
.order-item small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.order-actions { display: flex; gap: 10px; }
.order-actions > * { flex: 1; }
.status-chip { display: inline-flex; border-radius: 999px; padding: 6px 9px; font-size: 10px; font-weight: 650; background: var(--paper-deep); color: var(--muted); white-space: nowrap; }
.status-chip.pending { background: #f7e5cb; color: #936120; }
.status-chip.preparing { background: var(--coral-soft); color: var(--coral); }
.status-chip.ready { background: var(--green-soft); color: var(--green); }
.status-chip.completed { background: var(--green-soft); color: var(--green); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 105px; transform: translate(-50%, 20px); max-width: calc(100% - 36px); padding: 12px 17px; border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading { padding: 50px; text-align: center; color: var(--muted); font-size: 13px; }
.error-card { grid-column: 1 / -1; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 25px; text-align: center; }
.error-card p { color: var(--muted); font-size: 12px; }
.error-card button { margin-top: 8px; }


@media (min-width: 900px) {
  .store-panel, .order-shell, .site-footer { width: calc(100% - 48px); }
  .cart-sheet { width: min(680px, calc(100% - 28px)); }
}
@media (max-width: 1080px) and (min-width: 900px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
  .dish-grid { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .store-panel, .order-shell, .site-footer { width: calc(100% - 36px); }
  .store-panel { grid-template-columns: 1fr 42%; }
  .store-copy { padding: 24px; }
  .menu-layout { grid-template-columns: 1fr; margin-top: 30px; }
  .cart-aside { display: none; }
  .mobile-cart { position: fixed; z-index: 20; left: 14px; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); border: 0; border-radius: 12px; background: var(--ink); color: white; min-height: 58px; box-shadow: 0 10px 30px rgba(24, 25, 22, .25); padding: 8px 9px; align-items: center; justify-content: space-between; text-align: left; }
  .mobile-cart.visible { display: flex; }
  .mobile-cart .mobile-cart-count { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: var(--coral); font-weight: 800; }
  .mobile-cart .mobile-cart-label { display: flex; flex-direction: column; gap: 2px; margin-right: auto; margin-left: 11px; }
  .mobile-cart .mobile-cart-label small { color: rgba(255,255,255,.65); font-size: 9px; }
  .mobile-cart .mobile-cart-label strong { font-size: 16px; }
  .mobile-cart .mobile-cart-action { display: flex; align-items: center; gap: 5px; background: white; color: var(--ink); border-radius: 9px; padding: 11px 14px; font-size: 12px; font-weight: 700; }
  .mobile-cart .mobile-cart-action svg { width: 15px; }
  .site-footer { padding-bottom: 100px; }
}
@media (max-width: 699px) {
  .site-header { height: 58px; padding: 0 12px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; border-radius: 8px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 9px; }
  .header-actions { gap: 10px; }
  .open-pill { display: none; }
  .text-button { font-size: 11px; }
  .text-button svg { width: 16px; }
  .store-panel, .order-shell, .site-footer { width: calc(100% - 20px); }
  .store-panel { min-height: 146px; margin: 10px auto 22px; grid-template-columns: 1fr 40%; border-radius: 12px; }
  .store-copy { padding: 16px 13px; }
  .store-title-row { gap: 8px; flex-wrap: wrap; }
  h1 { font-size: 22px; }
  .store-status { padding: 3px 6px; font-size: 9px; }
  .store-subtitle { margin: 8px 0 15px; font-size: 10px; white-space: nowrap; }
  .store-facts { flex-direction: column; gap: 7px; }
  .store-facts span { font-size: 10px; }
  .store-facts svg { width: 13px; height: 13px; }
  .store-service { display: none; }
  .store-photo { min-height: 146px; }
  .store-photo span { left: 8px; bottom: 8px; padding: 5px 6px; font-size: 9px; white-space: nowrap; }
  h2 { font-size: 19px; }
  .section-kicker { font-size: 9px; }
  .kitchen-note { font-size: 10px; }
  .mode-grid { gap: 8px; margin: 13px 0 9px; }
  .mode-card { min-height: 112px; padding: 11px 10px; gap: 7px; border-radius: 10px; flex-direction: column; align-items: flex-start; }
  .mode-icon { width: 34px; height: 34px; border-radius: 8px; }
  .mode-icon svg { width: 18px; }
  .mode-copy strong { font-size: 13px; }
  .mode-copy small { font-size: 9px; white-space: normal; line-height: 1.45; }
  .mode-radio { display: none; }
  .mode-radio { width: 15px; height: 15px; }
  .selected .mode-radio::after { width: 7px; height: 7px; }
  .selection-bar { padding: 10px 11px; gap: 9px; }
  .selection-icon { width: 31px; height: 31px; }
  .selection-bar strong { font-size: 11px; }
  .selection-change { font-size: 10px; }
  .menu-layout { margin-top: 25px; }
  .menu-main { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: start; }
  .menu-intro { grid-column: 1 / -1; margin-bottom: 6px; }
  .category-nav { margin: 0; padding: 5px 0; flex-direction: column; gap: 0; overflow: visible; border-radius: 10px; background: var(--card); }
  .category-nav button { width: 100%; min-height: 50px; padding: 10px 3px; border-radius: 0; border-left: 3px solid transparent; font-size: 11px; line-height: 1.35; }
  .category-nav button.active { border-left-color: var(--coral); background: var(--coral-soft); }
  .menu-category { margin-bottom: 12px; background: var(--card); border-radius: 10px; overflow: hidden; scroll-margin-top: 10px; }
  .menu-category h3 { margin: 0; padding: 12px 11px 3px; font-size: 13px; }
  .menu-category h3::after { display: none; }
  .dish-grid { display: block; padding: 0 10px; }
  .dish-card { grid-template-columns: 88px minmax(0, 1fr); gap: 9px; min-height: 119px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dish-card:last-child { border-bottom: 0; }
  .dish-art { width: 88px; height: 92px; border-radius: 7px; }
  .dish-info { padding: 0; }
  .dish-info h4 { font-size: 13px; margin-bottom: 4px; }
  .dish-info p { font-size: 9px; line-height: 1.45; }
  .dish-bottom { padding-top: 6px; gap: 4px; }
  .dish-price { font-size: 17px; }
  .dish-price span { display: none; }
  .add-button { width: 27px; height: 27px; }
  .add-button.has-options { width: 27px; padding: 0; }
  .add-button.has-options span { display: none; }
  .quantity-control { gap: 5px; }
  .quantity-control button { width: 25px; height: 25px; }
  .quantity-control b { font-size: 11px; min-width: 10px; }
  .dish-detail .dish-art { width: 120px; height: 125px; }
  .site-footer { padding: 20px 0 96px; flex-wrap: wrap; gap: 10px; }
  .site-footer p { width: 100%; order: 3; line-height: 1.6; }
  .sheet { width: 100%; max-width: none; max-height: 91dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .sheet-header { padding: 19px 18px 15px; }
  .sheet-header h2 { font-size: 21px; }
  .table-list { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 16px; }
  .table-card { min-height: 104px; }
  .party-picker { margin: 14px 16px 10px; padding: 12px; }
  .table-legend { padding-left: 18px; padding-right: 18px; gap: 10px; }
  .sheet-footer { padding-left: 17px; padding-right: 17px; }
  .dish-detail { grid-template-columns: 120px 1fr; gap: 14px; padding: 19px; }
  .dish-detail h2 { font-size: 20px; }
  .dish-detail p { font-size: 11px; }
  .option-section { padding-left: 19px; padding-right: 19px; }
  .checkout-body { padding: 16px 17px; }
  .checkout-total { padding: 13px 17px max(13px, env(safe-area-inset-bottom)); }
  .checkout-total .primary-button { min-width: 145px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .order-detail { padding: 19px 17px; }
  .toast { bottom: 88px; }
}
@media (max-width: 370px) {
  .brand small { display: none; }
  .mode-copy small { display: none; }
  .mode-card { padding: 12px; }
  .menu-main { grid-template-columns: 68px minmax(0, 1fr); gap: 7px; }
  .dish-card { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .dish-art { width: 76px; height: 86px; }
  .dish-info p { -webkit-line-clamp: 1; }
  .table-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 699px) {
  .time-chip-grid, .arrival-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .time-chip { min-height: 37px; font-size: 10px; }
  .arrival-picker { margin: 0 16px 12px; padding: 12px; }
  .arrival-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pickup-options { padding-left: 17px; padding-right: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.store-photo.no-cover { display: grid; place-items: center; }
.store-photo.no-cover::before { content: "门店图片"; color: #9a958b; font-size: 12px; }

/* 外卖地址与桌位关闭状态 */
.field-tip { color: var(--muted); font-size: 10px; line-height: 1.55; }
.order-info-row.address-row { align-items: flex-start; }
.order-info-row.address-row strong { max-width: 68%; text-align: right; line-height: 1.6; overflow-wrap: anywhere; }
.table-card.closed { border-style: dashed; }

/* 到店导航、微信分享与外卖地址操作 */
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.store-action { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #dedfd8; border-radius: 8px; background: #fff; color: #4e584f; font-size: 11px; font-weight: 650; transition: border-color .16s, color .16s, background .16s; }
.store-action:hover { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.store-action svg { width: 15px; height: 15px; }
.order-address-actions { margin: -4px 0 12px; padding: 0 14px 12px; display: flex; justify-content: flex-end; gap: 15px; }
.order-address-actions a, .order-address-actions button { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 11px; font-weight: 700; }
.order-address-actions svg { width: 14px; height: 14px; }
@media (max-width: 699px) {
  .store-actions { gap: 6px; margin-top: 11px; }
  .store-action { min-height: 30px; padding: 0 8px; gap: 4px; border-radius: 7px; font-size: 9px; }
  .store-action svg { width: 12px; height: 12px; }
  .order-address-actions { padding-left: 12px; padding-right: 12px; }
}

/* 顾客付款：付款方式一目了然，扫码与到账核对分开呈现。 */
.checkout-payment { min-width: 0; margin: 18px 0; padding: 0; border: 0; }
.checkout-payment legend { margin-bottom: 10px; padding: 0; color: var(--ink); font-size: 13px; font-weight: 750; }
.checkout-payment-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(96px,1fr)); gap: 8px; }
.checkout-payment-option { position: relative; min-height: 62px; padding: 9px 8px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.checkout-payment-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkout-payment-option > i { display: none; margin-left: auto; color: var(--green); font-style: normal; }
.checkout-payment-option.selected { border-color: #7e9b84; background: #f4f8f3; box-shadow: inset 0 0 0 1px #7e9b84; }
.checkout-payment-option.selected > i { display: inline; }
.checkout-payment-option:focus-within { outline: 3px solid rgba(181,50,40,.2); outline-offset: 2px; }
.checkout-payment-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #e7e9e5; color: #5c645d; font-size: 12px; font-weight: 800; }
.checkout-payment-option.wechat .checkout-payment-icon { background: #16a05d; color: white; }
.checkout-payment-option.alipay .checkout-payment-icon { background: #1677ff; color: white; }
.checkout-payment .payment-note { margin: 10px 0 0; }
.customer-payment-panel { margin-bottom: 14px; padding: 20px; border: 1px solid #ddcda9; border-radius: 16px; background: #fffaf0; text-align: center; }
.customer-payment-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; text-align: left; }
.customer-payment-heading > span { display: grid; gap: 2px; }
.customer-payment-heading small { color: var(--muted); font-size: 11px; }
.customer-payment-heading strong { color: var(--coral); font-family: var(--serif); font-size: 30px; }
.payment-brand { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; font-size: 17px; font-style: normal; font-weight: 800; }
.payment-brand.wechat { background: #16a05d; }
.payment-brand.alipay { background: #1677ff; }
.customer-payment-panel h3 { font-size: 17px; }
.payment-payee { margin: 6px 0 15px; color: var(--muted); font-size: 12px; }
.customer-payment-qr { display: block; width: min(250px,100%); height: 280px; margin: 0 auto; object-fit: contain; border: 8px solid white; border-radius: 10px; background: white; box-shadow: 0 3px 15px rgba(65,48,20,.08); }
.payment-scan-tip { margin: 10px auto 0; color: #756449; font-size: 11px; line-height: 1.7; }
.payment-custom-note { margin: 14px 0; padding-top: 12px; border-top: 1px dashed #ddcda9; color: #756449; font-size: 11px; line-height: 1.7; }
.payment-declare-tip { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.customer-payment-panel.paid, .customer-payment-panel.checking { display: flex; align-items: center; gap: 12px; text-align: left; }
.customer-payment-panel.paid { border-color: #c9dfce; background: #f1f8f2; }
.customer-payment-panel.checking { border-color: #edc472; background: #fff7e4; }
.customer-payment-panel.paid h3, .customer-payment-panel.checking h3 { font-size: 14px; }
.customer-payment-panel.paid p, .customer-payment-panel.checking p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.payment-result-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #3f8552; color: white; font-weight: 800; }
.customer-payment-panel.checking .payment-result-icon { background: #b47a19; }
.payment-missing { padding: 18px; color: #8a5e28; font-size: 12px; }
@media (max-width: 480px) {
  .checkout-payment-option { flex-wrap: wrap; gap: 5px; font-size: 11px; }
  .customer-payment-panel { padding: 16px; }
  .customer-payment-qr { height: 250px; }
}

/* 完整营业流程：接单状态、每日库存、加菜、配送费与售后。 */
.ordering-notice { margin: 16px 0 0; padding: 14px 16px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid #e6c78e; border-radius: 12px; background: #fff8e9; color: #77501b; }
.ordering-notice[hidden] { display: none; }
.ordering-notice > svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.ordering-notice strong { display: block; font-size: 13px; }
.ordering-notice p { margin: 4px 0 0; font-size: 11px; line-height: 1.65; }
.dish-stock { display: inline-flex; width: fit-content; margin: 7px 0 0; padding: 3px 7px; border-radius: 6px; background: #f1f4ef; color: var(--green); font-size: 9px; font-weight: 700; }
.dish-stock.low { background: #fff1e6; color: #a34c18; }
.time-chip:disabled, .pickup-card:disabled { cursor: not-allowed; opacity: .43; }
.delivery-rule { margin: 14px 0 0; padding: 11px 13px; border-left: 3px solid #d9a548; background: #fffaf0; color: #755c32; font-size: 10px; line-height: 1.75; }
.checkout-price-breakdown { margin: 14px 0 0; padding: 12px 0 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px 20px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 11px; }
.checkout-price-breakdown b { margin-left: 6px; color: var(--ink); }
.minimum-warning { margin: 8px 0 0; color: var(--coral); text-align: right; font-size: 11px; }
.cart-fee-row, .cart-grand-total { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 11px; }
.cart-grand-total { padding-top: 9px; border-top: 1px dashed var(--line); color: var(--ink); }
.cart-grand-total strong { color: var(--coral); font-size: 20px; }
.order-price-lines { margin-top: 8px; padding-top: 11px; display: grid; gap: 7px; border-top: 1px dashed var(--line); }
.order-price-lines > span { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.order-price-lines b { color: var(--ink); }
.order-price-lines .grand { padding-top: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.order-price-lines .grand b { color: var(--coral); font-size: 20px; }
.order-service-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.order-service-actions button { flex: 1; min-width: 130px; }
.order-service-actions svg { width: 16px; height: 16px; }
.shop-reply, .payment-issue, .refund-panel { margin: 12px 0; padding: 14px 16px; border-radius: 12px; font-size: 12px; line-height: 1.7; }
.shop-reply { border: 1px solid #c9dfce; background: #f1f8f2; color: #376343; }
.shop-reply p, .payment-issue p, .refund-panel p { margin: 5px 0; }
.shop-reply small, .refund-panel small { color: var(--muted); font-size: 10px; }
.payment-issue { border: 1px solid #edc472; background: #fff7e4; color: #795511; }
.refund-panel { border: 1px solid #ead9d2; background: #fff7f3; color: #874a3a; }
@media (max-width: 480px) {
  .ordering-notice { padding: 12px 13px; }
  .checkout-total { gap: 10px; }
  .checkout-total > span { font-size: 10px; }
  .checkout-total strong { font-size: 23px; }
}
