:root {
  --paper: #f8f5ef;
  --ink: #26241f;
  --muted: #777268;
  --line: #ded9cf;
  --red: #c94435;
  --red-dark: #a93429;
  --green: #426650;
  --white: #fffdf9;
  --shadow: 0 16px 40px rgba(58, 47, 35, .16);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 72px; padding: 0 max(20px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(248,245,239,.94); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); background: var(--red); color: white; font-family: serif; font-size: 20px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Songti SC", serif; font-size: 18px; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.icon-button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 21px; display: grid; place-items: center; }
main { max-width: 1040px; margin: auto; }
.intro { margin: 20px; min-height: 210px; padding: 34px 28px; position: relative; overflow: hidden; color: white; background: #263f31; border-radius: 4px; }
.intro::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; right: -40px; top: -45px; }
.intro h1 { max-width: 500px; margin: 8px 0 10px; font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 5vw, 42px); line-height: 1.2; font-weight: 600; letter-spacing: 0; }
.intro > p:last-of-type { margin: 0; color: #d9e1da; font-size: 14px; }
.intro-art { position: absolute; right: 20px; bottom: 13px; font-size: 38px; transform: rotate(-5deg); }
.intro-art span { display: inline-block; filter: drop-shadow(0 8px 8px rgba(0,0,0,.2)); }
.intro-art span:nth-child(2) { font-size: 46px; transform: rotate(15deg); }
.eyebrow { margin: 0; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.intro .eyebrow { color: #efb44e; }
.menu-section { padding: 10px 20px 40px; }
.section-heading, .sheet-heading, .modal-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h2 { margin: 5px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 27px; letter-spacing: 0; }
.add-button { border: 1px solid var(--ink); padding: 10px 13px; background: transparent; color: var(--ink); font-weight: 700; border-radius: 3px; }
.add-button span { color: var(--red); font-size: 18px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 46px; margin: 20px 0 14px; padding: 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
.search-box span { font-size: 24px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.tab { flex: none; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); }
.tab.active { background: var(--ink); color: white; border-color: var(--ink); }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.dish-card { position: relative; min-height: 178px; padding: 18px 15px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; display: flex; flex-direction: column; overflow: hidden; }
.dish-card.selected { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.dish-emoji { font-size: 40px; height: 54px; display: flex; align-items: center; }
.dish-card h3 { margin: 4px 0 4px; font-family: Georgia, "Songti SC", serif; font-size: 18px; letter-spacing: 0; }
.dish-card p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.dish-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.category-label { color: var(--green); font-size: 11px; font-weight: 700; }
.pick-button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--ink); color: white; font-size: 22px; line-height: 1; }
.selected .pick-button { background: var(--red); }
.delete-dish { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: #9b968c; font-size: 18px; }
.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state span { font-size: 42px; }.empty-state p { margin: 10px; }.empty-state button { border: 0; color: var(--red); background: transparent; font-weight: 700; }
.cart-bar { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 620px; margin: auto; height: 68px; padding: 8px 8px 8px 13px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: white; box-shadow: var(--shadow); border-radius: 5px; }
.cart-summary { min-width: 0; flex: 1; border: 0; background: transparent; color: white; display: flex; align-items: center; text-align: left; gap: 12px; }
.cart-summary strong, .cart-summary small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.cart-summary small { margin-top: 3px; color: #aaa69e; font-size: 10px; }
.cart-icon { font-size: 28px; position: relative; }.cart-icon b { position: absolute; top: -7px; right: -10px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: var(--red); font-size: 11px; }
.submit-button { flex: none; height: 48px; padding: 0 18px; border: 0; border-radius: 3px; background: var(--red); color: white; font-weight: 700; }
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(27,25,21,.56); backdrop-filter: blur(2px); }
.sheet, .modal { position: fixed; z-index: 40; background: var(--paper); box-shadow: var(--shadow); }
.sheet { left: 0; right: 0; bottom: 0; max-width: 680px; max-height: 86vh; margin: auto; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 8px 8px 0 0; overflow-y: auto; }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #c8c3ba; }
.close-button { font-size: 30px; }
.cart-list { margin: 18px 0; border-top: 1px solid var(--line); }
.cart-item { min-height: 64px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.cart-item > span:first-child { font-size: 26px; }.cart-item-name { flex: 1; }.cart-item-name strong, .cart-item-name small { display: block; }.cart-item-name small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.stepper { display: flex; align-items: center; gap: 8px; }.stepper button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--white); border-radius: 50%; }.stepper b { min-width: 14px; text-align: center; }
.note-field, form label { display: block; }.note-field span, form label > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
textarea, form input, form select { width: 100%; border: 1px solid var(--line); border-radius: 3px; background: var(--white); padding: 12px; outline: none; resize: none; }textarea:focus, form input:focus, form select:focus { border-color: var(--green); }
.share-button, .primary-button { width: 100%; height: 50px; margin-top: 16px; border: 0; border-radius: 3px; background: var(--red); color: white; font-weight: 800; font-size: 16px; }.share-button:active, .primary-button:active { background: var(--red-dark); }
.share-hint { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.modal { left: 50%; top: 50%; width: min(92vw, 440px); max-height: 90vh; padding: 22px; transform: translate(-50%, -50%); border-radius: 6px; overflow-y: auto; }.modal.compact { width: min(92vw, 380px); }.modal form { margin-top: 18px; }.modal form label { margin: 13px 0; }
.emoji-options { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }.emoji-option { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 3px; background: var(--white); font-size: 22px; }.emoji-option.selected { border-color: var(--red); background: #fff0ec; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); padding: 11px 16px; background: #161511; color: white; border-radius: 3px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s; text-align: center; font-size: 13px; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
@media (min-width: 720px) { .topbar { padding-left: 32px; padding-right: 32px; }.intro { margin-top: 32px; min-height: 260px; padding: 50px; }.intro-art { right: 70px; bottom: 35px; font-size: 60px; }.menu-section { padding-left: 32px; padding-right: 32px; }.dish-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }.dish-card { min-height: 196px; padding: 22px; }.dish-emoji { font-size: 48px; }.intro h1 { font-size: 42px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
