/* ===== 星星小食堂 · 样式 ===== */

:root {
  --bg: #fff7ec;
  --bg2: #ffeedc;
  --card: #ffffff;
  --ink: #3d2b1f;
  --ink-2: #6b5344;
  --muted: #a9917f;
  --line: #f3e4d2;
  --primary: #ff8a3d;
  --primary-d: #f26b1b;
  --star: #ffc53d;
  --star-deep: #e8a010;
  --pink: #ff6b9d;
  --purple: #7c5cff;
  --mint: #22c1a4;
  --sky: #3fa9f5;
  --danger: #ef4444;
  --ok: #16a34a;
  --radius: 22px;
  --shadow-sm: 0 2px 8px rgba(146, 94, 51, .08);
  --shadow: 0 10px 26px rgba(146, 94, 51, .12);
  --shadow-lg: 0 22px 50px rgba(146, 94, 51, .18);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior-y: none;
}

body { min-height: 100vh; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; color: inherit; }

.boot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; height: 70vh; color: var(--muted); font-size: 15px;
}
.boot-emoji { font-size: 64px; animation: twinkle 1.4s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(-6deg); opacity: 1; }
  50% { transform: scale(1.18) rotate(8deg); opacity: .82; }
}

/* ================= 布局 ================= */
.kid-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 170px;
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0 10px;
  background: linear-gradient(180deg, var(--bg) 72%, rgba(255, 247, 236, 0));
}

.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; min-width: 0; }
.brand-logo {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(140deg, #ffd66b, #ff8a3d);
  border-radius: 15px;
  box-shadow: 0 6px 14px rgba(255, 138, 61, .35);
  position: relative;
}
.brand-logo::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 17px; border: 2px dashed rgba(255, 197, 61, .65);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand-text { min-width: 0; }
.brand-title {
  font-size: 17px; font-weight: 800; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(90deg, #f26b1b, #ff6b9d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pill-stars {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 999px;
  background: #fff3cf; color: #b07500;
  font-weight: 800; font-size: 13px; flex: none;
  box-shadow: inset 0 0 0 1.5px #ffe08a;
}
.pill-stars .num { font-size: 15px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-size: 18px;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.icon-btn:active { transform: scale(.92); }

/* ================= Hero ================= */
.hero {
  position: relative; overflow: hidden;
  border-radius: 26px;
  padding: 22px 22px 24px;
  background: linear-gradient(125deg, #5b3df5 0%, #7c5cff 38%, #ff8a3d 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(124, 92, 255, .3);
}
.hero::after {
  content: ""; position: absolute; right: -46px; top: -56px;
  width: 190px; height: 190px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.hero-hi { font-size: 13px; opacity: .92; letter-spacing: .4px; display: flex; align-items: center; gap: 6px; }
.hero-title { font-size: 25px; font-weight: 900; margin: 6px 0 8px; letter-spacing: .5px; text-shadow: 0 2px 10px rgba(50, 20, 120, .25); }
.hero-note {
  font-size: 13px; opacity: .96; background: rgba(255,255,255,.18);
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-badge {
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3);
}

/* hero 里飘着的小星星 */
.hero-star {
  position: absolute; z-index: 1; color: #ffe9a8;
  animation: floaty 3.6s ease-in-out infinite; user-select: none; pointer-events: none;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .9; }
  50% { transform: translateY(-10px) rotate(14deg); opacity: .55; }
}

/* ================= 分类 ================= */
.cat-row {
  display: flex; gap: 9px; overflow-x: auto; padding: 16px 2px 10px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 999px;
  background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-weight: 700;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform .15s, border-color .15s, background .15s;
}
.cat-chip:active { transform: scale(.94); }
.cat-chip.on {
  background: linear-gradient(135deg, #ff8a3d, #ff6b9d);
  color: #fff; border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 8px 18px rgba(255, 122, 69, .35);
}

/* ================= 菜品网格 ================= */
.section-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 14px 0 12px;
}
.section-title { font-size: 17px; font-weight: 900; }
.section-sub { font-size: 12px; color: var(--muted); }

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.dish-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: transform .16s, box-shadow .16s;
}
.dish-card:active { transform: scale(.97); }
.dish-card.out { opacity: .55; filter: grayscale(.4); }
.dish-top { display: flex; gap: 12px; align-items: center; }
.dish-emoji {
  width: 62px; height: 62px; flex: none;
  display: grid; place-items: center; font-size: 34px;
  border-radius: 18px;
  background: var(--bg2);
}
.dish-name { font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.dish-desc {
  font-size: 12px; color: var(--muted); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  font-size: 10.5px; padding: 2.5px 8px; border-radius: 999px;
  background: var(--bg2); color: var(--ink-2); font-weight: 700;
}
.tag.hot { background: #ffe4e6; color: #be123c; }
.tag.star { background: #fff3cf; color: #b07500; }

.dish-foot {
  display: flex; align-items: center; margin-top: 11px;
}
.price { font-size: 19px; font-weight: 900; color: var(--primary-d); }
.price small { font-size: 12px; margin-right: 1px; font-weight: 700; }

.add-btn {
  margin-left: auto;
  width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 21px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #ffb057, #ff7a45);
  box-shadow: 0 6px 12px rgba(255, 122, 69, .32);
  transition: transform .12s;
}
.add-btn:active { transform: scale(.86); }
.add-btn.in-cart {
  background: linear-gradient(140deg, #22c1a4, #12a18a);
  box-shadow: 0 6px 12px rgba(34, 193, 164, .3);
}
.badge-cart {
  position: absolute; top: 10px; right: 10px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--pink); color: #fff;
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(255, 107, 157, .4);
}

.empty {
  text-align: center; color: var(--muted); padding: 40px 10px;
}
.empty-emoji { font-size: 52px; margin-bottom: 10px; }
.empty-title { font-size: 16px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }

/* ================= 底部餐盘条 ================= */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 68px; z-index: 45;
  display: flex; align-items: center; gap: 12px;
  max-width: 1120px; margin: 0 auto;
  padding: 0 16px;
}
.cart-inner {
  flex: 1; display: flex; align-items: center; gap: 12px;
  background: #2f2a54;
  color: #fff; border-radius: 999px;
  padding: 10px 10px 10px 18px;
  box-shadow: 0 14px 32px rgba(47, 42, 84, .38);
}
.cart-emoji-bowl { font-size: 24px; }
.cart-info-bar { flex: 1; min-width: 0; }
.cart-count-bar { font-size: 12px; opacity: .75; }
.cart-total-bar { font-size: 17px; font-weight: 900; }
.cart-go {
  flex: none; padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #ffd66b, #ff9a3d);
  color: #5b3a00; font-weight: 900; font-size: 14px;
  box-shadow: 0 6px 14px rgba(255, 170, 60, .45);
}
.cart-go:active { transform: scale(.95); }

/* ================= 底部 Tab ================= */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(255, 255, 255, .96);
  border-top: 1.5px solid var(--line);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(10px);
}
.tabbar-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--muted); font-weight: 700;
  padding: 4px 16px; border-radius: 12px;
}
.tabbar-item .ti { font-size: 21px; line-height: 1.15; }
.tabbar-item.on { color: var(--primary-d); }
.tabbar-item.on .ti { transform: translateY(-1px) scale(1.08); }

/* ================= 弹层 ================= */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(43, 30, 18, .48);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: 100%; max-width: 560px;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
  max-height: 88vh; overflow-y: auto;
  animation: slideUp .28s cubic-bezier(.2, .9, .3, 1);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }

.sheet-handle {
  width: 42px; height: 5px; border-radius: 999px;
  background: var(--line); margin: 4px auto 14px;
}
.sheet-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 900; margin-bottom: 12px;
}
.sheet-close {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px;
  background: var(--bg2); color: var(--ink-2); font-size: 14px;
}

/* 详情 */
.detail-emoji {
  width: 84px; height: 84px; flex: none;
  display: grid; place-items: center; font-size: 46px;
  border-radius: 22px; background: var(--bg2);
}
.detail-name { font-size: 20px; font-weight: 900; }
.detail-desc { font-size: 13px; color: var(--muted); margin-top: 3px; }

.price-box {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); margin-top: 14px;
}
.price-box .price { font-size: 23px; }

.stepper {
  margin-left: auto;
  display: flex; align-items: center; gap: 2px;
  background: var(--bg2); border-radius: 999px; padding: 3px;
}
.stepper button {
  width: 34px; height: 34px; border-radius: 999px;
  background: #fff; font-size: 18px; font-weight: 800;
  color: var(--primary-d);
  box-shadow: var(--shadow-sm);
}
.stepper button:disabled { opacity: .4; }
.stepper .qty {
  min-width: 34px; text-align: center; font-weight: 900; font-size: 16px;
}

.btn-primary {
  display: block; width: 100%;
  padding: 15px 18px; border-radius: 18px;
  background: linear-gradient(135deg, #ff9a3d, #ff6b45);
  color: #fff; font-size: 16px; font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 122, 69, .35);
  transition: transform .12s, opacity .12s;
  text-align: center;
}
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .5; box-shadow: none; }
.btn-ghost {
  display: block; width: 100%;
  padding: 13px 18px; border-radius: 16px;
  background: #fff; color: var(--ink-2); font-size: 14.5px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.btn-mini {
  padding: 7px 13px; border-radius: 999px;
  background: var(--bg2); color: var(--ink-2);
  font-size: 12px; font-weight: 800;
}
.btn-mini.danger { background: #ffe4e6; color: #be123c; }
.btn-mini.ok { background: #d9f5e7; color: #15803d; }

/* 购物车清单 */
.cart-line {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border-radius: 16px;
  padding: 11px 12px; margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
}
.cart-emoji {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center; font-size: 26px;
  border-radius: 14px; background: var(--bg2);
}
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-size: 14px; font-weight: 800; }
.cart-price { font-size: 12px; color: var(--muted); margin-top: 1px; }

.field { margin-top: 12px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 800;
  color: var(--ink-2); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
  background: #fff; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); }

.sum-row {
  display: flex; align-items: center;
  margin: 14px 0 12px;
}
.sum-row .lbl { font-weight: 800; color: var(--ink-2); }
.sum-row .price { margin-left: auto; font-size: 24px; }

.hint { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* 名字选择 */
.name-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.name-chip {
  padding: 9px 15px; border-radius: 999px;
  background: #fff; font-size: 13.5px; font-weight: 800;
  color: var(--ink-2); box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}
.name-chip.on {
  background: #fff3cf; color: #b07500; border-color: var(--star);
}

/* 成功页 */
.success-wrap { text-align: center; padding: 8px 4px 4px; }
.success-emoji { font-size: 68px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop {
  0% { transform: scale(.2); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-title { font-size: 23px; font-weight: 900; margin: 8px 0 4px; }
.success-sub { color: var(--muted); font-size: 13.5px; }
.order-no-big {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 16px 0 6px; padding: 12px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff3cf, #ffe9b0);
  color: #a06a00; font-size: 26px; font-weight: 900;
  letter-spacing: 2px;
  box-shadow: inset 0 0 0 2px #ffdd88;
}
.success-stars {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 8px 0 4px; padding: 8px 16px; border-radius: 999px;
  background: #f3e8ff; color: #7e22ce; font-weight: 800; font-size: 14px;
}
.success-actions { margin-top: 18px; display: grid; gap: 10px; }

/* ================= 我的订单 ================= */
.order-card {
  background: #fff; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
}
.order-top { display: flex; align-items: center; gap: 8px; }
.order-no { font-weight: 900; font-size: 15px; }
.order-time { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.badge {
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
}
.badge.cooking { background: #fff3cf; color: #b07500; }
.badge.ready   { background: #d9f5e7; color: #15803d; }
.badge.done    { background: var(--bg2); color: var(--muted); }
.badge.cancelled { background: #ffe4e6; color: #be123c; }

.steps { display: flex; align-items: center; margin: 12px 0 10px; }
.step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 5px; font-size: 11px; color: var(--muted); font-weight: 700;
  position: relative;
}
.step::before {
  content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2.5px;
  background: var(--line); z-index: 0;
}
.step:first-child::before { display: none; }
.step.done::before { background: var(--star); }
.step-dot {
  width: 27px; height: 27px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--bg2); color: var(--muted);
  font-size: 12px; font-weight: 900;
  position: relative; z-index: 1;
  border: 2px solid #fff;
}
.step.done .step-dot { background: var(--star); color: #7a5200; }
.step.done { color: var(--ink-2); }

.order-items {
  font-size: 13px; color: var(--ink-2);
  background: var(--bg); border-radius: 12px; padding: 10px 12px;
  line-height: 1.8;
}
.order-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 11px;
}
.order-total { font-size: 17px; font-weight: 900; color: var(--primary-d); }
.order-stars { font-size: 12px; color: var(--muted); }
.order-foot .btn-mini:first-of-type { margin-left: auto; }

/* ================= 星星宝库 ================= */
.star-hero {
  border-radius: 24px; padding: 22px;
  background: linear-gradient(135deg, #2f2a54, #5b3df5);
  color: #fff; text-align: center;
  box-shadow: 0 16px 34px rgba(91, 61, 245, .3);
  position: relative; overflow: hidden;
}
.star-hero .big {
  font-size: 44px; font-weight: 900; letter-spacing: 1px;
  color: #ffe08a; margin: 4px 0;
}
.reward-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px; margin-top: 14px;
}
.reward-card {
  background: #fff; border-radius: 18px; padding: 15px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
}
.reward-emoji { font-size: 34px; }
.reward-name { font-weight: 800; margin-top: 6px; }
.reward-desc { font-size: 12px; color: var(--muted); margin: 3px 0 10px; }
.reward-cost {
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; color: var(--star-deep);
}

.wish-form { display: flex; gap: 8px; margin: 10px 0 14px; }
.wish-form input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 14px; background: #fff; outline: none;
}
.wish-form input:focus { border-color: var(--purple); }
.wish-form button {
  flex: none; padding: 0 18px; border-radius: 14px;
  background: linear-gradient(135deg, #7c5cff, #5b3df5);
  color: #fff; font-weight: 900; font-size: 14px;
}
.wish-item {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border-radius: 15px;
  padding: 12px 14px; margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
}
.wish-item.done { opacity: .55; }
.wish-emoji { font-size: 22px; }
.wish-name { font-weight: 800; font-size: 14px; }
.wish-note { font-size: 11.5px; color: var(--muted); }

/* ================= 家长后台 ================= */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
}
.login-card {
  width: 100%; max-width: 360px; text-align: center;
  background: #fff; border-radius: 24px; padding: 32px 26px;
  box-shadow: var(--shadow);
}
.login-emoji { font-size: 52px; }
.login-title { font-size: 21px; font-weight: 900; margin: 10px 0 6px; }
.login-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.pin-input {
  width: 100%; text-align: center; letter-spacing: 12px;
  font-size: 24px; font-weight: 900;
  border: 2px solid var(--line); border-radius: 16px;
  padding: 13px 10px 13px 22px; outline: none;
}
.pin-input:focus { border-color: var(--primary); }

.admin-wrap { max-width: 960px; margin: 0 auto; padding: 16px 16px 60px; }
.admin-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.admin-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-tab {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: #fff; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.admin-tab.on {
  background: linear-gradient(135deg, #2f2a54, #5b3df5); color: #fff;
}
.panel {
  background: #fff; border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.admin-order-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 4px; border-bottom: 1px dashed var(--line);
}
.admin-order-row:last-child { border-bottom: none; }

/* ================= Toast & 彩带 ================= */
.toast-root {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 120;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(47, 42, 84, .92); color: #fff;
  padding: 11px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  animation: toastIn .25s ease, toastOut .3s ease 2.4s forwards;
}
.toast.err { background: rgba(200, 50, 50, .94); }
@keyframes toastIn { from { transform: translateY(-16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(-14px); opacity: 0; } }

.confetti-root {
  position: fixed; inset: 0; z-index: 110;
  pointer-events: none; overflow: hidden;
}
.confetti-bit {
  position: absolute; top: -40px;
  font-size: 22px;
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: .2;
  }
}

/* ================= 响应式 ================= */
@media (min-width: 720px) {
  .sheet {
    border-radius: 26px;
    margin-bottom: 6vh;
    max-width: 480px;
  }
  .overlay { align-items: center; }
  .cart-bar { bottom: 24px; }
  .tabbar {
    position: sticky; bottom: 0;
    max-width: 1120px; margin: 0 auto;
    border-radius: 18px 18px 0 0;
    border: 1.5px solid var(--line);
    margin-top: -68px;
  }
  .kid-wrap { padding-bottom: 90px; }
}

@media (max-width: 380px) {
  .dish-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 21px; }
}
