:root {
  color-scheme: light;
  --canvas: #f7f5ed;
  --paper: #fffefa;
  --ink: #20382d;
  --muted: #58685e;
  --line: #dedfd2;
  --green: #244738;
  --rust: #a44426;
  --soft: #edeee5;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 14px; min-height: 40px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--green); background: var(--paper); cursor: pointer; font-weight: 650;
}
button:hover, .button:hover { border-color: var(--green); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.primary { background: var(--green); color: white; border-color: var(--green); }
.primary:hover { background: #355d48; }
.small { font-size: 13px; padding: 8px 11px; min-height: 37px; }
.quiet { background: transparent; }
h1, h2, h3, p, dl, dd { margin: 0; }
h2 { font-size: clamp(22px, 3vw, 29px); line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.4; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; line-height: 1.25; font-weight: 780; }
.brand-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px 13px 13px 3px;
  background: var(--green); color: #fadb8e; font-family: "Songti SC", SimSun, serif; font-size: 22px;
}
.brand small { display: block; font-size: 12px; font-weight: 650; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.brand-icon { flex: none; }
.topbar > .text-link { flex: none; }
.text-link { font-size: 14px; font-weight: 650; padding: 10px 0 10px 8px; }
.text-link:hover { text-decoration: underline; }
.public-main { padding-block: 28px 44px; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: clamp(232px, 29vw, 346px);
  display: flex; align-items: center; border-radius: 22px; background: #f5cf6a;
}
.hero img { position: absolute; z-index: -2; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 64% center; }
.hero-copy { padding: 26px 0 29px clamp(23px, 6vw, 72px); }
.hero h1 { font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: clamp(36px, 6vw, 73px); line-height: 1.12; letter-spacing: -.045em; }
.hero-copy > p:last-child { font-weight: 650; margin-top: 16px; color: #2e452f; font-size: clamp(13px, 2.2vw, 17px); }
.campus { display: inline-block; border: 1px solid #74654180; padding: 5px 11px; border-radius: 30px; font-size: 12px; font-weight: 650; margin-bottom: 14px; background: #ffe69e80; }
.demo-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
.catalog { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.date { color: var(--rust); font-weight: 700; font-size: 12px; margin-bottom: 5px; letter-spacing: .06em; }
.search { width: min(100%, 250px); }
input, select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 9px; color: var(--ink); background: var(--paper);
}
textarea { resize: vertical; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px; }
.filters button { border-radius: 30px; font-size: 13px; min-height: 36px; padding: 6px 15px; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dish-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; }
.food-art { height: 142px; background: #ead7a4 url(./food.webp) no-repeat; background-size: auto 255px; }
.art-noodles { background-position: 65% 52%; }
.art-burger { background-position: 82% 81%; }
.art-fried { background-position: right 72%; }
.art-tea { background-position: 85% 4%; }
.dish-content { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px; }
.store-name, .description, .muted { font-size: 13px; color: var(--muted); line-height: 1.6; }
.store-name { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 7px; }
.store-hours { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish-content h3, .dish-content p, .list-row, .delivery-card { overflow-wrap: anywhere; }
.dish-bottom { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 10px; margin-top: auto; padding-top: 10px; }
.dish-bottom > :is(button, a, wx-open-launch-weapp, .dish-sold-out) { width: 100%; min-height: 40px; }
.dish-bottom wx-open-launch-weapp { display: block; }
.dish-sold-out { display: grid; place-items: center; border-radius: 9px; }
.price { font-size: 26px; color: var(--rust); font-weight: 760; line-height: 1; }
.price small { font-size: 14px; margin-right: 1px; }
.footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 15px 24px; color: var(--muted); font-size: 12px; }
.feedback { font-size: 14px; color: var(--green); line-height: 1.5; }
.feedback:not(:empty) { padding: 10px 13px; background: var(--soft); border-radius: 9px; margin-bottom: 14px; }
.feedback.error:not(:empty), .alert { background: #f8e8dd; color: #873823; }
.work-main { padding-block: 29px 50px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 20px; min-width: 0; }
.login-pane { width: min(100%, 420px); margin: 26px auto; padding: clamp(20px, 5vw, 34px); }
.login-pane h1 { margin-bottom: 17px; font-size: 27px; }
#demo-accounts { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
#demo-accounts .actions { margin-top: 8px; }
.stack { display: grid; gap: 13px; }
.stack label:not(.check) { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.check input { width: 17px; min-height: 17px; accent-color: var(--green); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.work-title { margin-bottom: 20px; }
.work-title h1 { font-size: clamp(24px, 4.5vw, 39px); margin-bottom: 4px; }
.work-tabs { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.panel-head { margin-bottom: 12px; }
.badge { flex: none; border-radius: 99px; color: #514730; background: #f0eddf; font-size: 12px; line-height: 1.25; padding: 5px 9px; }
.badge.success { background: #e3eee0; color: var(--green); }
.list-panel { margin-top: 12px; }
.list-panel > .muted { margin-top: 8px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 11px; padding-top: 11px; }
.delivery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.delivery-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-block: 15px; }
.delivery-card dl div { min-width: 0; }
.delivery-card dt { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.delivery-card dd { font-size: 14px; }
.alert { padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; font-size: 13px; }
.empty { color: var(--muted); padding: 22px 0; grid-column: 1 / -1; }
dialog {
  position: fixed; width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto;
  border: 1px solid var(--line); border-radius: 17px; background: var(--paper); color: var(--ink); padding: 23px;
}
dialog::backdrop { background: #16271fc0; }
dialog h2 { padding-right: 36px; margin-bottom: 15px; font-size: 23px; }
dialog .close { position: absolute; right: 14px; top: 13px; font-size: 22px; line-height: 1; min-height: 35px; padding: 5px 9px; }
dialog .feedback:not(:empty) { margin: 12px 0 0; }
#dialog-action:not(:empty) { color: var(--muted); margin-top: 10px; }
#dialog-action > button { margin-top: 9px; }
#dialog-action > p:not(:empty) { margin-top: 7px; font-size: 13px; }
.shop-options summary { cursor: pointer; font-size: 14px; font-weight: 650; }
.shop-options label { margin-top: 10px; }
.history { margin: 0; padding-left: 20px; }
.history li { margin-bottom: 12px; }
.visually-hidden { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 920px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food-art { height: 155px; background-size: auto 340px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .topbar { min-height: 60px; }
  .brand-icon { width: 34px; height: 34px; font-size: 17px; border-radius: 9px; }
  .brand { font-size: 16px; gap: 8px; }
  .public-main { padding-top: 12px; }
  .hero { min-height: 211px; align-items: stretch; border-radius: 15px; }
  .hero img { object-position: 64% center; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #f8d374 2%, #f8d374e8 25%, #f8d37400 79%); }
  .hero-copy { align-self: center; padding: 16px; }
  .hero h1 { max-width: 5em; }
  .hero-copy > p:last-child { margin-top: 9px; }
  .catalog .section-head { align-items: end; gap: 8px; }
  .search { width: min(48%, 205px); }
  .search input { font-size: 13px; }
  .catalog .filters { flex-wrap: nowrap; overflow-x: auto; padding: 3px; margin-inline: -3px; }
  .catalog .filters button { flex: none; }
  .menu-grid { gap: 9px; }
  .food-art { height: 104px; background-size: auto 208px; }
  .dish-content { padding: 10px; }
  .dish-content h3 { font-size: 16px; }
  .dish-content .muted, .store-name, .description { font-size: 12px; }
  .store-hours { font-size: 11px; }
  .dish-bottom { gap: 8px; }
  .delivery-grid { grid-template-columns: 1fr; }
  .panel { padding: 14px; }
  .list-row .actions { justify-content: flex-end; }
}
