:root {
  --bg: #fffdf9;
  --bg-soft: #fff4f7;
  --bg-deep: #ffe9f1;
  --card: #ffffff;
  --ink: #4a3428;
  --ink-2: #6b4d40;
  --muted: #9a7b6c;
  --line: #f2e3d7;
  --pink-line: #ffe0ec;
  --brand: #ff7fa8;
  --brand-2: #ffa8c5;
  --brand-deep: #ef5f8c;
  --radius: 22px;
  --shadow: 0 8px 22px rgba(180, 120, 92, 0.09);
  --shadow-soft: 0 4px 14px rgba(180, 120, 92, 0.07);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background: linear-gradient(180deg, #fff8f3 0, var(--bg) 260px);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Yuanti SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  min-height: 100dvh;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }

.boot { padding: 40vh 0; text-align: center; color: var(--muted); }

/* ---------- 通用 ---------- */

.screen { padding: 0 16px calc(96px + var(--safe-b)); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(12px + var(--safe-t)) 16px 8px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.97) 64%, rgba(255, 250, 245, 0));
  backdrop-filter: blur(8px);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 15px;
  background: linear-gradient(140deg, #ffb3cc, #ff7fa8);
  display: grid; place-items: center; font-size: 21px;
  box-shadow: 0 6px 16px rgba(255, 127, 168, 0.32);
}
.brand h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: 0.6px; }
.brand p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }

.topbar-home { padding-bottom: 0; }
.home-logo { transform: rotate(-4deg); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-soft);
  font-size: 17px; color: var(--ink-2);
  border: 1px solid var(--line);
}
.icon-btn:active { transform: scale(0.92); }

/* ---------- 首页欢迎卡片 ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(120deg, #ffffff 0%, #fff8fb 55%, #fff0f6 100%);
  border: 1px solid var(--pink-line);
  border-radius: 26px;
  padding: 18px 12px 18px 20px;
  margin-top: 6px;
  box-shadow: 0 10px 28px rgba(190, 120, 90, 0.08);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -46px; top: -46px;
  width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(255, 150, 180, 0.16), transparent 70%);
  border-radius: 50%;
}
.hero-copy { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-kicker {
  font-size: 9px;
  letter-spacing: 2.2px;
  color: #d38aa4;
  font-weight: 800;
}
.hero-title {
  margin: 5px 0 6px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #43301f;
  line-height: 1.2;
}
.hero-sub { margin: 0 0 11px; font-size: 13px; color: #8a7166; line-height: 1.5; }
.hero-notice {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  background: #fff4f8;
  border: 1px solid #ffdcea;
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 12px;
  color: #a35c74;
  line-height: 1.45;
  max-width: 100%;
}
.hero-notice .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); margin-top: 5px; flex: 0 0 auto;
}
.notice-text { word-break: break-word; }
.hero-art {
  width: 112px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(255, 140, 170, 0.16));
}

/* ---------- 搜索 / 分类 ---------- */

.menu-tools { display: flex; gap: 9px; padding: 14px 0 2px; align-items: center; }
.search {
  flex: 1;
  min-width: 0;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 15px;
  outline: none;
  box-shadow: var(--shadow-soft);
}
.search:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(255, 127, 168, 0.14); }
.search::placeholder { color: #c4a696; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 11px 0 3px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.16s;
  box-shadow: 0 2px 6px rgba(180, 120, 92, 0.05);
}
.chip.on {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(255, 127, 168, 0.36);
}

.chips.sub { padding: 6px 0 2px; gap: 6px; align-items: center; }
.chips-label { flex: 0 0 auto; font-size: 11px; color: #bda294; letter-spacing: 0.5px; }
.chip.mini { padding: 5px 12px; font-size: 12px; background: #fffdfb; border-color: var(--line); color: var(--muted); }
.chip.mini.on { background: #ffe4ee; color: var(--brand-deep); border-color: #ffc9dc; font-weight: 700; }

/* ---------- 区块 ---------- */

.section { margin-top: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  padding-left: 11px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 4px; height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffb3cc, #ff7fa8);
}
.section-count, .section-hint { font-size: 12px; color: #b08a7a; }

/* ---------- 主厨推荐 ---------- */

.featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 66%;
  max-width: 250px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--pink-line);
  transition: transform 0.12s;
}
.featured-card:active { transform: scale(0.98); }
.featured-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fff1e7, #ffe3ee);
  display: grid;
  place-items: center;
}
.featured-photo img { width: 100%; height: 100%; object-fit: cover; }
.featured-photo .ph { font-size: 40px; color: #ffb0cb; }
.featured-add {
  position: absolute; right: 10px; bottom: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; display: grid; place-items: center;
  font-size: 18px; box-shadow: 0 4px 12px rgba(255, 127, 168, 0.42);
}
.featured-info { padding: 10px 13px 12px; }
.featured-name { font-size: 15px; font-weight: 800; }
.featured-desc {
  font-size: 12px; color: var(--muted); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 菜品网格 ---------- */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding-top: 2px; }

.dish {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.14s;
  border: 1px solid #fff0f5;
}
.dish:active { transform: scale(0.97); }
.dish.picked {
  box-shadow: 0 0 0 3px var(--brand), 0 10px 26px rgba(255, 127, 168, 0.3);
  transform: scale(1.02);
}

.dish-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: linear-gradient(135deg, #fff2e9, #ffe4ef);
  display: grid; place-items: center;
  font-size: 34px;
  color: #ffb0cb;
  object-fit: cover;
}
.dish-photo.broken { display: none; }
.dish-body { padding: 9px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dish-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.dish-desc {
  font-size: 12px; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-ing { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.dish-ing span {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fff6f0;
  color: #b07a5e;
  border: 1px solid #f6e3d5;
  white-space: nowrap;
}

.dish .add {
  position: absolute; right: 9px; bottom: 9px;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 20px; font-weight: 400; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(255, 127, 168, 0.4);
}
.dish .add:active { transform: scale(0.88); }

.dish .qty-badge {
  position: absolute; top: 8px; right: 8px;
  min-width: 25px; height: 25px; padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 3px 9px rgba(255, 127, 168, 0.45);
  border: 2px solid #fff;
}

.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 14px; line-height: 1.6; }
.empty .big { font-size: 44px; margin-bottom: 12px; }

/* ---------- 底部导航 ---------- */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex;
  background: rgba(255, 253, 250, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + var(--safe-b));
  box-shadow: 0 -4px 18px rgba(180, 120, 92, 0.07);
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0;
  color: #bda294;
  font-size: 11px;
  border-radius: 14px;
  transition: all 0.16s;
}
.tab .ico { font-size: 20px; line-height: 1.1; }
.tab.on { color: var(--brand-deep); font-weight: 800; background: #fff0f5; }

/* ---------- 购物车 ---------- */

.cart-bar {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(72px + var(--safe-b));
  z-index: 25;
  background: linear-gradient(135deg, #ff8fb3, #ff5f92);
  color: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 26px rgba(255, 95, 146, 0.34);
  transform: translateY(160%);
  transition: transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.cart-bar.show { transform: translateY(0); }
.cart-bar .sum { flex: 1; font-size: 14px; }
.cart-bar .sum b { color: #fff3b0; }
.cart-bar .go {
  background: rgba(255, 255, 255, 0.96); color: var(--brand-deep);
  padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: 14px;
}

.sheet-mask {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(74, 52, 40, 0.36);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(2px);
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  padding: 8px 0 calc(16px + var(--safe-b));
  max-height: 86vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(180, 120, 92, 0.16);
}
.sheet.show { transform: translateY(0); }
.sheet-handle { width: 42px; height: 4px; border-radius: 2px; background: #f0d6c6; margin: 7px auto 5px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; }
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.sheet-body { overflow-y: auto; padding: 0 18px; flex: 1; }
.sheet-foot { padding: 12px 18px 4px; border-top: 1px dashed var(--line); }

.cart-item { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.cart-item:last-child { border-bottom: 0; }
.ci-top { display: flex; align-items: center; gap: 10px; }
.ci-top .ci-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; }
.cart-item .ci-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ci-note-input {
  width: 100%; margin-top: 6px; padding: 7px 10px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px;
  outline: none;
}
.ci-note-input:focus { border-color: var(--brand-2); }
.ci-del {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff2f5; color: #c98196; font-size: 13px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.ci-del:active { transform: scale(0.9); }

.people-row { display: flex; align-items: center; gap: 12px; padding: 2px 0; }
.round-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line);
  color: var(--brand-deep); font-size: 18px;
  display: grid; place-items: center;
}
.round-btn:active { transform: scale(0.9); }
.people-num { font-size: 20px; font-weight: 800; min-width: 28px; text-align: center; }
.people-unit { font-size: 13px; color: var(--muted); }

.seg-row { display: flex; gap: 8px; }
.seg {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.seg.on {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 127, 168, 0.28);
}

.confirm-block { margin: 6px 0 12px; }
.confirm-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.confirm-row:last-child { border-bottom: 0; }
.confirm-row i { font-style: normal; color: var(--muted); font-size: 12px; }
.confirm-row b { color: var(--brand-deep); }
.confirm-meta {
  background: #fff; border: 1px solid var(--pink-line); border-radius: 16px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.confirm-meta > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.confirm-meta span { color: var(--muted); }
.confirm-meta b { color: var(--ink); }
.confirm-note b { max-width: 60%; text-align: right; }
.confirm-tip { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0 4px; }

.success { text-align: center; padding: 14px 6px 6px; }
.success-icon { font-size: 54px; margin-bottom: 8px; }
.success h2 { margin: 0 0 6px; font-size: 20px; font-weight: 900; color: var(--ink); }
.success p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.success-meta {
  display: inline-block; font-size: 13px; color: #a35c74;
  background: #fff4f8; border: 1px solid #ffdcea; border-radius: 999px; padding: 6px 14px;
}

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 29px; height: 29px; border-radius: 50%;
  background: #fff0f5; color: var(--brand-deep);
  font-size: 17px; display: grid; place-items: center;
  border: 1.5px solid var(--pink-line);
}
.stepper button:active { transform: scale(0.88); }
.stepper span { min-width: 18px; text-align: center; font-weight: 800; }

.field { margin: 10px 0 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font-size: 16px; outline: none;
  box-shadow: var(--shadow-soft);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(255, 127, 168, 0.14);
}
.field textarea { min-height: 72px; resize: vertical; }

.check-row {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 2px 12px;
  font-size: 14px; color: var(--ink-2);
}
.check-row input { width: 19px; height: 19px; accent-color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 700;
  background: #fff2f6; color: var(--ink-2);
}
.btn.block { width: 100%; }
.btn.primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 127, 168, 0.34);
}
.btn.primary:active { filter: brightness(0.96); transform: translateY(1px); }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); }
.btn.danger { background: #ffe8ea; color: #cf3f63; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 999px; }
.btn:disabled { opacity: 0.55; }

/* ---------- 登录 ---------- */

.login-wrap {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: "🍓";
  position: absolute; top: 8%; left: 8%;
  font-size: 30px; opacity: 0.45; transform: rotate(-14deg);
}
.login-wrap::after {
  content: "🧁";
  position: absolute; bottom: 10%; right: 9%;
  font-size: 34px; opacity: 0.45; transform: rotate(10deg);
}
.login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: 0 16px 40px rgba(180, 120, 92, 0.14);
  border: 1.5px solid #fff0f5;
  backdrop-filter: blur(8px);
}
.login-logo {
  width: 68px; height: 68px; border-radius: 22px;
  background: linear-gradient(140deg, #ffb3cc, #ff6f9d);
  display: grid; place-items: center; font-size: 36px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(255, 111, 157, 0.3);
  transform: rotate(-4deg);
}
.login-card h1 { margin: 0 0 4px; font-size: 23px; font-weight: 800; letter-spacing: 0.8px; }
.login-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.login-hint { text-align: center; font-size: 12px; color: #b89483; margin-top: 18px; }

/* ---------- 订单 ---------- */

.order-summary {
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 9px 14px;
  margin-top: 12px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.order-summary b { color: var(--brand-deep); }

.order-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px 16px;
  margin-bottom: 12px;
  border: 1px solid #fff0f5;
}
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.order-time { font-size: 12px; color: var(--muted); }
.badge { font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.badge.pending { background: #fff3cf; color: #b7791f; }
.badge.preparing { background: #e8e2ff; color: #6d5bd0; }
.badge.ready { background: #dff6e9; color: #1f9d63; }
.badge.done { background: #f0ece9; color: #8a7166; }

.order-meta {
  font-size: 12px;
  color: #a35c74;
  background: #fff6f9;
  border-radius: 8px;
  padding: 4px 9px;
  display: inline-block;
  margin-bottom: 9px;
}

.order-list { margin: 0; padding: 0; list-style: none; }
.order-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed #f8eadf; }
.order-list li:last-child { border-bottom: 0; }
.order-list .q { color: var(--brand-deep); font-weight: 800; }
.order-note {
  margin-top: 9px; font-size: 13px;
  background: #fff6f0; border-radius: 12px; padding: 9px 12px; color: var(--ink-2);
}
.order-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 7px;
  background: #fff4f7; color: var(--muted); margin-left: 6px; font-weight: 500;
}
.tag.star { background: #fff3cf; color: #b7791f; }

/* ---------- 管理 ---------- */

.admin-head { margin-top: 18px; }

.admin-card {
  background: #fff;
  border: 1px solid var(--pink-line);
  border-radius: 20px;
  padding: 14px;
  margin-top: 10px;
  box-shadow: var(--shadow-soft);
}
.admin-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.admin-notice {
  width: 100%;
  min-height: 66px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 15px;
  resize: vertical;
  outline: none;
  background: #fffdfb;
}
.admin-notice:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(255, 127, 168, 0.12); }
.admin-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

.admin-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border-radius: 18px; padding: 10px;
  margin-bottom: 10px; box-shadow: var(--shadow-soft);
  border: 1px solid #fff0f5;
}
.admin-thumb {
  width: 58px; height: 58px; border-radius: 14px; object-fit: cover;
  background: linear-gradient(135deg, #fff2e9, #ffe4ef);
  display: grid; place-items: center; font-size: 23px; color: #ffb0cb;
  flex: 0 0 auto; overflow: hidden;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-main { flex: 1; min-width: 0; }
.admin-main .t { font-size: 15px; font-weight: 700; }
.admin-main .s { font-size: 12px; color: var(--muted); }
.admin-main .s.off { color: #cf3f63; }

.offline-tip { font-size: 12px; color: #b7791f; background: #fff3cf; border-radius: 12px; padding: 9px 12px; margin: 10px 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(126px + var(--safe-b)); z-index: 100;
  transform: translate(-50%, 20px);
  background: rgba(74, 52, 40, 0.94); color: #fff;
  padding: 11px 20px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all 0.22s;
  max-width: 82vw; text-align: center;
  box-shadow: 0 8px 24px rgba(74, 52, 40, 0.26);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 点菜页：左侧分类 + 右侧竖向列表 ---------- */

.tool-btn {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}
.tool-btn.primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 14px rgba(255, 127, 168, 0.3);
}
.tool-btn.active { border-color: var(--brand-2); color: var(--brand-deep); background: #fff2f6; }

.notice-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a35c74;
  background: #fff6f9;
  border: 1px solid #ffe0ec;
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.notice-ico { flex: 0 0 auto; }
.notice-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-layout { display: flex; gap: 10px; align-items: flex-start; }

.cat-nav {
  width: 80px;
  flex: 0 0 80px;
  position: sticky;
  top: calc(66px + var(--safe-t));
  max-height: calc(100dvh - 160px - var(--safe-t) - var(--safe-b));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0 4px;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-item {
  position: relative;
  text-align: left;
  padding: 11px 8px 11px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-2);
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.cat-item.on {
  background: #fff0f5;
  color: var(--brand-deep);
  font-weight: 800;
}
.cat-item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.dish-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 80px;
}

.dish-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 9px;
  border: 1px solid #fff0f5;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s;
}
.dish-row:active { transform: scale(0.99); }

.dish-row-img {
  position: relative;
  width: clamp(70px, 20vw, 80px);
  height: clamp(70px, 20vw, 80px);
  flex: 0 0 auto;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff2e9, #ffe4ef);
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #ffb0cb;
}
.dish-row-img img { width: 100%; height: 100%; object-fit: cover; }
.dish-row.resting .dish-row-img img { filter: grayscale(0.45) opacity(0.72); }

.dish-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dish-row-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.dish-row-name .star { font-size: 11px; margin-left: 3px; }
.dish-row-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-row-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 1px; }

.dish-row-action { flex: 0 0 auto; align-self: flex-end; padding-bottom: 2px; }

.plus-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(255, 127, 168, 0.4);
}
.plus-btn:active { transform: scale(0.9); }

.mini-stepper {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #fff2f6;
  border-radius: 999px;
  padding: 2px;
  border: 1px solid #ffe0ec;
}
.mini-stepper button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-deep);
  font-size: 14px;
  display: grid;
  place-items: center;
  border: 1px solid #ffdcea;
}
.mini-stepper span { min-width: 14px; text-align: center; font-size: 12px; font-weight: 800; }

.rest-badge.sm {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 249, 0.72);
  color: #8a7166;
  font-size: 11px;
  font-weight: 800;
}
.rest-text { font-size: 11px; color: #b3a094; }

.filter-hint { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }

/* ---------- 菜品卡片 v2 ---------- */

.dish-photo-wrap { position: relative; }
.dish-photo-wrap .dish-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.dish-photo-wrap .dish-photo.ph {
  display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(135deg, #fff2e9, #ffe4ef); color: #ffb0cb;
}
.dish.resting .dish-photo-wrap img { filter: grayscale(0.45) opacity(0.72); }

.rest-badge {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(255, 253, 249, 0.7);
  color: #8a7166; font-size: 13px; font-weight: 800; letter-spacing: 1px;
  backdrop-filter: blur(1px);
}
.feat-badge {
  position: absolute; left: 8px; top: 8px;
  background: linear-gradient(135deg, #ffb36b, #ff8a4c);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(255, 138, 76, 0.35);
}

.add-btn {
  margin: 0 10px 10px;
  padding: 9px 0;
  border-radius: 999px;
  background: #fff2f6;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid #ffdcea;
}
.add-btn:active { transform: scale(0.97); }
.add-btn.off { background: #f6f1ec; color: #b3a094; border-color: #eee3da; }

.dish-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.d-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.d-tag.master { background: #fff3cf; color: #b7791f; }
.d-tag.learning { background: #e8e2ff; color: #6d5bd0; }
.d-tag.new { background: #ffe4ee; color: #d9537d; }
.d-tag.plain { background: #f6f1ec; color: #8a7166; }

/* ---------- 菜品详情 ---------- */

.detail-photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #fff2e9, #ffe4ef);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo .ph { font-size: 48px; color: #ffb0cb; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-desc { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.detail-info {
  background: #fff;
  border: 1px solid var(--pink-line);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.detail-info > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.detail-info span { color: var(--muted); }
.detail-info b.ok { color: #1f9d63; }
.detail-info b.off { color: #cf3f63; }
.detail-ing { font-size: 12px; color: var(--muted); }

/* ---------- 管理页增强 ---------- */

.admin-actions { display: flex; gap: 9px; margin-top: 14px; }
.admin-actions .btn { flex: 1; padding: 11px 8px; font-size: 14px; }
.admin-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.admin-tools { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.mini-btn {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  display: grid; place-items: center;
}
.mini-btn.wide { width: auto; padding: 0 9px; font-size: 11px; }
.mini-btn:disabled { opacity: 0.35; }
.admin-item.resting .admin-thumb img { filter: grayscale(0.5) opacity(0.7); }

.tag-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-choice {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
}
.tag-choice input { accent-color: var(--brand); }
.tag-choice:has(input:checked) {
  border-color: #ffc9dc;
  background: #fff2f6;
  color: var(--brand-deep);
  font-weight: 700;
}

.row { display: flex; gap: 9px; }
.row > * { flex: 1; }
.mt { margin-top: 14px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
