:root {
  color-scheme: light;
  --ink: #1f2421;
  --muted: #798078;
  --line: #dfe4de;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --green: #2e6047;
  --green-soft: #e5efe8;
  --orange: #e98a4c;
  --yellow: #f7d98b;
  --blue: #9fc9c2;
  --pink: #e8b6a8;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1440px; margin: 0 auto; padding: 42px 34px 60px; }
.topbar, .panel-heading, .list-heading, .entry-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.eyebrow, .section-kicker { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .12em; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.04em; margin-bottom: 14px; }
h2 { font-size: 21px; margin-bottom: 0; letter-spacing: -.02em; }
h3 { font-size: 17px; margin: 0; }
.subtitle { color: var(--muted); max-width: 500px; line-height: 1.7; }
.ghost-button, .secondary-button { border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); padding: 10px 14px; font-weight: 700; }
.ghost-button:hover, .secondary-button:hover { border-color: var(--green); color: var(--green); }
.workspace { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(390px, 1.35fr) minmax(240px, .75fr); gap: 18px; margin-top: 38px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.controls-panel, .result-panel { min-height: 550px; }
.wheel-panel { display: flex; flex-direction: column; align-items: center; }
.wheel-heading { width: 100%; }
.status-text, .muted { color: var(--muted); font-size: 12px; }
.count-badge { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.field-label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin: 25px 0 8px; }
.text-input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: #fbfcfa; color: var(--ink); padding: 11px 12px; outline: none; }
.text-input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-grid .field-label { margin-top: 18px; }
.switch-row { display: flex; align-items: center; gap: 9px; margin-top: 23px; color: var(--muted); font-size: 13px; }
.switch-row input { display: none; }
.switch { width: 34px; height: 20px; background: #cbd2cc; border-radius: 20px; position: relative; transition: .2s; }
.switch::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff; position: absolute; top: 2px; left: 2px; transition: .2s; box-shadow: 0 1px 3px #0002; }
.switch-row input:checked + .switch { background: var(--green); }
.switch-row input:checked + .switch::after { left: 16px; }
.data-entry { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; }
.location-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfa; }
.location-box strong, .location-box small { display: block; }
.location-box strong { font-size: 13px; margin: 3px 0; }
.location-box small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.location-box .secondary-button { flex: 0 0 auto; padding: 9px 10px; font-size: 12px; }
.location-box { flex-wrap: wrap; }
.manual-location { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
.manual-location .secondary-button { padding: 9px 10px; font-size: 12px; }
.address-autocomplete { position: relative; min-width: 0; }
.address-suggestions { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 20px #1f242126; overflow: hidden; }
.address-suggestion { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 12px; text-align: left; color: var(--ink); }
.address-suggestion:last-child { border-bottom: 0; }
.address-suggestion:hover { background: var(--green-soft); }
.address-suggestion strong, .address-suggestion small { display: block; }
.address-suggestion strong { font-size: 13px; margin-bottom: 3px; }
.address-suggestion small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.radius-row .field-label { margin: 14px 0 7px; }
.mode-row .field-label { margin: 14px 0 7px; }
.data-entry textarea { min-height: 86px; resize: vertical; margin: 15px 0 10px; font-size: 12px; line-height: 1.6; }
.wheel-stage { position: relative; width: min(100%, 390px); aspect-ratio: 1; display: grid; place-items: center; margin: 28px 0 21px; }
.wheel { width: 88%; aspect-ratio: 1; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 8px 25px #1f24211f, 0 0 0 1px var(--line); background: conic-gradient(var(--green) 0deg 60deg, var(--yellow) 60deg 120deg, var(--orange) 120deg 180deg, var(--blue) 180deg 240deg, var(--pink) 240deg 300deg, #d1dbb3 300deg 360deg); transition: transform 4.2s cubic-bezier(.12,.7,.13,1); }
.pointer { position: absolute; z-index: 2; top: -2px; width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 25px solid var(--ink); filter: drop-shadow(0 2px 1px #0002); }
.wheel-center { position: absolute; z-index: 1; width: 76px; height: 76px; display: grid; place-items: center; text-align: center; border-radius: 50%; background: #fff; color: var(--green); font-weight: 900; line-height: 1.15; box-shadow: 0 2px 9px #0002; }
.spin-button { border: 0; border-radius: 6px; background: var(--green); color: #fff; font-weight: 800; padding: 14px 42px; min-width: 150px; box-shadow: 0 6px 14px #2e604733; }
.spin-button:hover { background: #214d37; }
.spin-button:disabled { opacity: .55; cursor: wait; }
.hint { color: var(--muted); font-size: 12px; margin: 13px 0 0; }
.result-empty { display: grid; place-items: center; text-align: center; min-height: 360px; color: var(--muted); line-height: 1.7; }
.result-mark { color: var(--orange); font-size: 38px; display: block; margin-bottom: 16px; }
.result-content { padding-top: 80px; }
.result-category { color: var(--orange); font-size: 12px; font-weight: 800; }
.result-content h3 { font-size: 29px; margin: 8px 0; }
.result-meta { color: var(--muted); font-size: 13px; }
.dish-box { background: var(--green-soft); margin: 30px 0 18px; padding: 14px; border-radius: 6px; }
.result-address { color: var(--muted); font-size: 12px; line-height: 1.5; min-height: 18px; }
.result-content .secondary-button + .secondary-button { margin-top: 8px; }
.dish-box span { display: block; color: var(--green); font-size: 11px; font-weight: 800; margin-bottom: 6px; }
.dish-box strong { font-size: 17px; }
.full-width { width: 100%; }
.list-section { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.restaurant-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.restaurant-card { border: 1px solid var(--line); padding: 14px; border-radius: 6px; min-height: 118px; }
.restaurant-card.closed { opacity: .45; }
.restaurant-card h3 { font-size: 15px; margin: 8px 0 7px; }

/* ---- 品牌菜单列表（落点卡片内）---- */
.dish-box { max-height: 300px; overflow-y: auto; }
.dish-group + .dish-group { margin-top: 10px; }
.dish-group h4 { font-size: 11px; font-weight: 800; color: var(--green); margin: 0 0 4px; letter-spacing: .04em; }
.dish-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed rgba(0, 0, 0, .07); }
.dish-row:last-child { border-bottom: 0; }
.dish-name { font-size: 13px; color: var(--ink); }
.dish-price { font-size: 13px; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-empty { margin: 0; font-size: 13px; color: var(--muted); }

/* 空态/结果区互斥：原样式给 .result-empty 设了 display，导致 hidden 属性失效，
   落点卡片上方一直残留「转一下，今天就不用再纠结。」 */
.result-empty[hidden], .result-content[hidden] { display: none !important; }
.restaurant-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.tag { color: var(--green); font-size: 11px; font-weight: 800; }
@media (max-width: 1050px) { .workspace { grid-template-columns: 1fr 1.2fr; } .result-panel { grid-column: 1 / -1; min-height: auto; } .result-content { padding-top: 20px; } .result-empty { min-height: 120px; } .restaurant-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .app-shell { padding: 28px 16px 40px; } .topbar { align-items: flex-start; } .workspace { grid-template-columns: 1fr; } .controls-panel, .result-panel { min-height: auto; } .wheel-panel { order: -1; } .restaurant-list { grid-template-columns: repeat(2, 1fr); } .list-section, .panel { padding: 18px; } }

/* ---- 菜单弹层 + 内层转盘 ---- */
body.overlay-open { overflow: hidden; }
.dish-box { cursor: pointer; }
.menu-overlay { position: fixed; inset: 0; z-index: 60; background: #1f242166; display: flex; align-items: flex-end; justify-content: center; }
.menu-overlay[hidden] { display: none; }
.menu-sheet { width: min(600px, 100%); max-height: 92vh; background: #fff; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; box-shadow: 0 -10px 40px #1f242133; animation: sheetUp .26s ease-out; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: .5; } to { transform: none; opacity: 1; } }
.menu-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.menu-sheet-head h2 { font-size: 19px; margin: 6px 0 0; }
.ghost-button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 5px; padding: 9px 14px; font-weight: 700; }
.mini-wheel-block { padding: 16px 20px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.mini-wheel-stage { position: relative; width: 176px; aspect-ratio: 1; margin: 4px auto 12px; display: grid; place-items: center; }
.wheel.mini { width: 100%; border-width: 8px; transition: transform 2.2s cubic-bezier(.12,.7,.13,1); }
.wheel-center.mini { width: 56px; height: 56px; font-size: 12px; }
.spin-button.mini { padding: 11px 30px; min-width: 120px; }
.mini-result { margin-top: 14px; padding: 12px 14px; background: var(--green-soft); border-radius: 6px; text-align: left; }
.mini-result-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.mini-result-row strong { font-size: 17px; }
.mini-result-row span { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-result-meta { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.menu-sheet-body { overflow-y: auto; padding: 8px 20px 24px; }
.overlay-group + .overlay-group { margin-top: 14px; }
.overlay-group h3 { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--green); margin: 14px 0 6px; letter-spacing: .04em; }
.overlay-group h3 span { color: var(--muted); font-weight: 700; }
.overlay-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.overlay-row:last-child { border-bottom: 0; }
.overlay-price { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- 搜索框说明与空结果提示 ---- */
.search-note { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.empty-hint { line-height: 1.85; }
.empty-hint b { color: var(--ink); }

/* ---- 静态版 ---- */
.static-notice { background: var(--green-soft); }
.static-notice .section-kicker { color: var(--green); }
