/* ==========================================================================
   小咪厨房 · 样式表
   设计规范取自 UI 高保真稿 v1；主色按 Tommy 决定改为 #277A55（AA 4.5:1）。
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/outfit-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: "Outfit", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-cn: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;

  --bg: #F6FAF6;
  --surface: #FFFFFF;
  --tint: #E8F5EC;
  --tint-2: #D3EDDC;
  --text: #18231D;
  --text-muted: #5B6B62;
  --text-faint: #8A9890;
  --border: #E1EBE4;
  --accent: #277A55;
  --accent-fg: #FFFFFF;
  --peach: #FF8E6E;
  --peach-soft: #FFEDE6;
  --peach-text: #C4522F;
  --peach-tip-text: #A4532F;
  --danger: #D9483B;
  --danger-soft: #FDECEA;
  --draft: #E3A23B;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 40, 30, .05);
  --shadow-md: 0 1px 1px rgba(20, 40, 30, .04), 0 8px 16px -4px rgba(20, 40, 30, .08);

  /* 动效令牌（10.6） */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.3, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-1: 150ms;
  --dur-2: 220ms;
  --dur-3: 300ms;
  --dur-4: 350ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

svg.i {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
svg.logo-svg { display: block; }

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

.pad { padding: 0 20px; }
.sp { flex: 1; }
.center { text-align: center; }
.muted { color: var(--text-muted); font-size: 14px; }
.muted-sm { font-size: 13px; color: var(--text-muted); }
.danger-text { color: var(--danger); }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.center-title { font-size: 22px; font-weight: 700; text-align: center; margin-top: 16px; }
.center-sub { font-size: 14px; color: var(--text-muted); text-align: center; margin-top: 6px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-btns { display: flex; gap: 10px; align-items: center; }
.h2-lg { font-size: 24px; font-weight: 700; }
.result-count { font-size: 13px; color: var(--text-muted); margin: 14px 0 12px; }
.scroll-x { overflow-x: auto; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ---------------- 图标按钮 / 按钮 ---------------- */

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); flex: none;
  transition: transform var(--dur-1) var(--ease);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn.danger-icon { color: var(--danger); }

.btn {
  height: 48px; border-radius: var(--pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; padding: 0 22px;
  background: var(--accent); color: var(--accent-fg);
  white-space: nowrap;
  transition: transform var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sec { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: var(--danger); }
.btn.sm { height: 36px; font-size: 14px; padding: 0 14px; }
.btn.block { width: 100%; }
.btn.loading { opacity: .7; pointer-events: none; }

.txt-btn {
  font-size: 15px; color: var(--text-muted); font-weight: 500;
  min-width: 44px; height: 40px; display: inline-flex; align-items: center;
}
.txt-btn.acc { color: var(--accent); justify-content: flex-end; }

.mini {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted); background: var(--surface);
  transition: transform var(--dur-1) var(--ease);
}
.mini:active { transform: scale(.94); }
.mini.edit { color: var(--accent); background: var(--tint); border-color: transparent; }
.mini.del { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.mini svg.i { width: 18px; height: 18px; }

/* ---------------- logo / 顶栏 ---------------- */

.logo { display: flex; align-items: center; gap: 10px; }
.logo b { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.logo small { display: block; font: 500 11px "Outfit", sans-serif; color: var(--text-faint); letter-spacing: .12em; line-height: 1; }
.logo-link { display: inline-flex; }

.top-row { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.fav-btn { color: var(--peach); }

.topbar { display: flex; align-items: center; gap: 12px; padding: 6px 0 12px; }
.topbar h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.topbar.center { justify-content: space-between; }
.topbar.center h1 { font-size: 17px; font-weight: 600; }

.adm-badge {
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--tint); border-radius: var(--pill);
  padding: 2px 8px; margin-left: 6px; vertical-align: 3px;
}
.adm-badge.lg { font-size: 12px; padding: 4px 10px; vertical-align: 0; }

/* ---------------- 搜索 / chips ---------------- */

.search {
  display: flex; align-items: center; gap: 10px;
  height: 48px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--border);
  padding: 0 8px 0 18px;
  color: var(--text-faint); font-size: 15px;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39, 122, 85, .12); }
.search input { flex: 1; min-width: 0; font-size: 15px; color: var(--text); background: none; }
.search input::placeholder { color: var(--text-faint); }
.search .flt {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tint); display: grid; place-items: center; color: var(--accent);
}

.chips { display: flex; gap: 8px; align-items: center; }
.chips.wrap { flex-wrap: wrap; }
.chips-row { padding: 16px 20px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }

.chip {
  flex: none; height: 34px; padding: 0 14px;
  border-radius: var(--pill); border: 1px solid var(--border);
  background: var(--surface); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); white-space: nowrap;
  transition: transform var(--dur-1) var(--ease);
}
.chip:active { transform: scale(.97); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.chip.soft { background: var(--tint); border-color: transparent; color: var(--accent); font-weight: 500; }
.chip.faint { color: var(--text-faint); }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: var(--pill); font-size: 12px; font-weight: 500;
  background: var(--tint); color: var(--accent);
}
.tag.peach { background: var(--peach-soft); color: var(--peach-text); }
.tags-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------------- meta ---------------- */

.meta { display: flex; gap: 10px; font-size: 13px; color: var(--text-muted); align-items: center; white-space: nowrap; }
.meta span { display: inline-flex; gap: 4px; align-items: center; }
.meta svg.i { width: 15px; height: 15px; }

/* ---------------- 手机首页 ---------------- */

.page-mobile { display: block; }
.page-desktop { display: none; }
.spacer-tabbar { height: 110px; }

.greeting { font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin-top: 18px; }
.greeting-sub { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.page-mobile .search { margin-top: 14px; }

.h-sec { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; }
.h-sec h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.h-sec a { font-size: 13px; color: var(--accent); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-1) var(--ease);
}
.card:active { transform: scale(.98); }

.rcard .imgbox { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tint); }
.rcard .imgbox img { width: 100%; height: 100%; object-fit: cover; }
.rcard .fav {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; color: var(--peach);
  transition: transform var(--dur-2) var(--ease-spring);
}
.rcard .fav svg { width: 16px; height: 16px; fill: none; }
.rcard .fav[aria-pressed="true"] svg { fill: var(--peach); }
.rcard .fav.pop, .fav-detail.pop { transform: scale(1.25); }
.rcard .fav.shrink, .fav-detail.shrink { transform: scale(.85); }
.rcard .bd { padding: 10px 12px 12px; }
.rcard h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard h3 a { display: block; overflow: hidden; text-overflow: ellipsis; }

.ph-placeholder {
  display: grid; place-items: center;
  width: 100%; height: 100%; min-height: 120px;
  background: var(--tint); color: var(--accent);
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* 推荐大卡 */
.hero {
  position: relative; display: block;
  border-radius: var(--radius-xl); overflow: hidden; height: 196px;
  background: var(--tint);
  transition: transform var(--dur-1) var(--ease);
}
.hero:active { transform: scale(.99); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .ph-placeholder { position: absolute; inset: 0; }
.hero .ov {
  position: absolute; inset: auto 0 0 0;
  padding: 44px 18px 16px;
  background: linear-gradient(transparent, rgba(12, 30, 20, .62));
  color: #fff;
}
.hero .ov h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.hero .ov .meta { color: rgba(255, 255, 255, .92); }
.hero .badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, .94); color: var(--accent);
  font-size: 12px; font-weight: 600; border-radius: var(--pill); padding: 4px 10px;
}

/* tabbar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 84px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  padding-top: 10px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 20;
  backdrop-filter: blur(8px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; color: var(--text-faint); width: 64px;
}
.tabbar a.on { color: var(--accent); font-weight: 600; }
.tabbar svg.i { width: 24px; height: 24px; }

/* ---------------- 详情页 ---------------- */

.d-hero { height: 300px; position: relative; margin-top: -44px; overflow: hidden; background: var(--tint); }
.d-hero-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.d-hero-track::-webkit-scrollbar { display: none; }
.d-hero-track img { width: 100%; height: 100%; object-fit: cover; flex: none; scroll-snap-align: center; }
.d-hero .ph-placeholder { width: 100%; height: 100%; }
.d-hero .tb {
  position: absolute; top: 52px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  pointer-events: none;
}
.d-hero .tb > * { pointer-events: auto; }
.d-hero .tb .icon-btn { background: rgba(255, 255, 255, .92); border: 0; }
.d-hero .tb-right { display: flex; gap: 8px; }
.fav-detail[aria-pressed="true"] svg { fill: var(--peach); }
.fav-detail { transition: transform var(--dur-2) var(--ease-spring); }
/* 头图渐显 */
.d-hero-track img, .d-hero-desk img { animation: fadeIn var(--dur-4) var(--ease); }
.dots-nav { position: absolute; bottom: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots-nav span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.dots-nav span.on { background: #fff; width: 18px; border-radius: 3px; }

.d-sheet {
  background: var(--bg); border-radius: 28px 28px 0 0;
  margin-top: -28px; position: relative;
  padding: 22px 20px 40px;
}
.d-sheet h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0 0 8px; }
.d-sheet .lead { font-size: 15px; color: var(--text-muted); }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin: 18px 0 4px;
}
.stats div { padding: 12px 0; text-align: center; }
.stats div + div { border-left: 1px solid var(--border); }
.stats b { display: block; font-size: 16px; font-weight: 600; }
.stats span { font-size: 12px; color: var(--text-muted); }

.servings { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.servings .st {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--pill);
  background: var(--surface); height: 30px; position: relative;
}
.servings .st button {
  width: 36px; height: 100%; text-align: center; position: relative;
  color: var(--accent); font-weight: 600; font-size: 16px;
}
.servings .st button::after { content: ""; position: absolute; inset: -4px 0; }
.servings .st b { display: inline-block; font-weight: 600; color: var(--text); min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.servings .st b.roll-up { animation: rollUp var(--dur-2) var(--ease); }
.servings .st b.roll-down { animation: rollDown var(--dur-2) var(--ease); }
@keyframes rollUp { from { opacity: 0; transform: translateY(45%); } }
@keyframes rollDown { from { opacity: 0; transform: translateY(-45%); } }

.ing { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px 16px; list-style: none; }
.ing li { list-style: none; height: 46px; }
.ing li + li { border-top: 1px dashed var(--border); }
.ing-label { display: flex; align-items: center; gap: 12px; height: 100%; font-size: 15px; cursor: pointer; }
.ing .ck { position: absolute; opacity: 0; width: 0; height: 0; }
.ing .ck-box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid #C5D3CA; flex: none;
  display: grid; place-items: center; color: transparent;
}
.ing .ck-box svg { width: 13px; height: 13px; stroke-width: 3; }
.ing .ck:checked + .ck-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.ing li.done .nm { color: var(--text-faint); position: relative; }
.ing li.done .nm::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.ing li.done .nm::after { transform: scaleX(1); }
.ing .amt { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-muted); min-width: 72px; text-align: right; transition: opacity var(--dur-2) var(--ease); }

.steps { list-style: none; }
.steps li { list-style: none; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 38px; bottom: 4px;
  width: 2px; background: var(--tint-2); border-radius: 2px;
}
.steps .n {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--tint); color: var(--accent);
  font: 600 15px "Outfit", sans-serif;
  display: grid; place-items: center;
}
.steps p { font-size: 15px; padding-top: 4px; }
.steps img { width: 100%; height: 132px; object-fit: cover; border-radius: var(--radius-md); margin-top: 10px; }
.steps .tip { margin-top: 8px; font-size: 13px; color: var(--peach-tip-text); background: var(--peach-soft); border-radius: 10px; padding: 6px 10px; }

.draft-banner {
  background: #FFF6E5; color: #8A5A12;
  padding: 8px 20px; font-size: 13px; text-align: center;
}

/* ---------------- 空状态 ---------------- */

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; color: var(--text-muted); }
.empty svg { color: var(--tint-2); }
.empty p { font-size: 15px; font-weight: 500; }
.empty span { font-size: 13px; color: var(--text-faint); }

/* ---------------- 分类页 ---------------- */

.cat-grid { gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-1) var(--ease);
}
.cat-card:active { transform: scale(.98); }
.cat-card b { font-size: 16px; font-weight: 600; }
.cat-card span:last-child { font-size: 13px; color: var(--text-muted); }
.side .emo, .cat-card .emo {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--tint); display: grid; place-items: center; color: var(--accent);
}
.cat-card .emo.lg { width: 40px; height: 40px; border-radius: 12px; }
.cat-card .emo.lg svg { width: 22px; height: 22px; }

/* ---------------- 密码页 ---------------- */

.lock { padding: 0 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lock-ill { width: 120px; height: 120px; margin: 20px 0; }
.lock h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.lock .sub { color: var(--text-muted); font-size: 15px; margin-top: 6px; }

.field { width: 100%; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }

.input {
  height: 52px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; font-size: 16px; color: var(--text);
}
.input input, .input textarea, .input select { flex: 1; min-width: 0; background: none; font-size: 16px; }
.input.err { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 72, 59, .12); }
.input.err svg.i { color: var(--danger); }
.input.shake { animation: shake var(--dur-3) var(--ease); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  16% { transform: translateX(-6px); }
  33% { transform: translateX(6px); }
  50% { transform: translateX(-6px); }
  66% { transform: translateX(6px); }
  83% { transform: translateX(-3px); }
}

.input .eye { width: 34px; height: 34px; display: grid; place-items: center; color: var(--text-faint); border-radius: 50%; }
.input .eye:hover { background: var(--tint); }

.err-msg { display: flex; gap: 6px; align-items: center; color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 20px; }
.err-msg svg.i { width: 16px; height: 16px; }

.login-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-md);
}
.login-card h1 { font-size: 26px; font-weight: 700; }
.login-card .sub { color: var(--text-muted); font-size: 15px; margin-top: 6px; }

/* ---------------- 管理列表 ---------------- */

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.summary div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; }
.summary b { font: 600 22px "Outfit", sans-serif; display: block; line-height: 1.2; }
.summary span { font-size: 12px; color: var(--text-muted); }

.alist { display: flex; flex-direction: column; gap: 10px; }
.aitem {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 10px;
  transition: transform var(--dur-1) var(--ease);
}
.aitem:active { transform: scale(.995); }
.aitem img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.aitem .thumb-ph {
  width: 64px; height: 64px; border-radius: 12px; flex: none;
  background: var(--tint); color: var(--accent);
  display: grid; place-items: center;
}
.aitem .tx { flex: 1; min-width: 0; }
.aitem h3 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aitem .sm { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aitem .acts { display: flex; gap: 6px; }

.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 4px; vertical-align: 2px; }
.status-dot.draft { background: var(--draft); }
.status-dot.pending { background: var(--text-faint); }
.status-dot.processing { background: var(--accent); animation: breathe 1.2s ease-in-out infinite; }
.status-dot.failed { background: var(--danger); }

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hint {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--tint); color: #245F45;
  border-radius: var(--radius-md); padding: 10px 12px;
  font-size: 13px; margin-bottom: 14px;
}
.hint svg.i { width: 18px; height: 18px; margin-top: 1px; }
.hint.warn { background: #FFF6E5; color: #8A5A12; }

/* ---------------- 新建 / 编辑表单 ---------------- */

.dish { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: 12px; overflow: hidden; }
.dish.open { border-color: #BFE0CC; box-shadow: 0 0 0 3px rgba(39, 122, 85, .08); }
/* 新建页：提示条和第一道菜之间只留面板的 16px 间距 */
.dform > .hint { margin: 0; }
#dishes > .dish:first-child { margin-top: 0; }
.dish-h { display: flex; align-items: center; gap: 4px; padding: 0 6px 0 0; }
.dish-toggle { display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 14px; flex: 1; min-width: 0; text-align: left; min-height: 56px; }
.dish-h .no {
  font: 600 12px var(--font-cn); color: #fff;
  background: var(--accent); border-radius: var(--pill); padding: 2px 8px; flex: none;
}
.dish-h .no.done { background: var(--tint); color: var(--accent); }
.dish-h h3 { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish-h .prog { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.dish-h img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.dish-h .chev { color: var(--text-faint); transition: transform var(--dur-2) var(--ease); }
.dish.open .dish-h .chev { transform: rotate(180deg); }
.dish-h .icon-btn { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-faint); }
.dish-b {
  border-top: 1px solid var(--border); padding: 14px;
  display: flex; flex-direction: column; gap: 16px;
  animation: dropIn var(--dur-3) var(--ease);
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.f label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; gap: 8px; }
.f label em { font-style: normal; color: var(--danger); }
.f label small { font-weight: 400; color: var(--text-faint); font-size: 12px; }
.f label small.rec-hint { color: var(--danger); }

.inp {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: #FBFDFB;
  padding: 0 6px 0 12px; font-size: 15px;
}
.inp .t { flex: 1; min-width: 0; }
.inp.ta { align-items: flex-start; padding: 10px 6px 10px 12px; min-height: 84px; }
.inp.ta textarea { flex: 1; min-height: 64px; resize: vertical; line-height: 1.55; font-size: 15px; background: none; }
.inp.rec { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39, 122, 85, .12); background: #fff; }
.inp.ph-text input::placeholder, .inp.ph-text textarea::placeholder { color: var(--text-faint); }

.mic {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent); background: var(--tint); flex: none;
  position: relative;
}
.mic::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
.mic svg.i { width: 17px; height: 17px; }
.mic.on { background: var(--danger); color: #fff; }
.mic.on::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: rgba(217, 72, 59, .15);
  animation: micPulse 1.6s ease-in-out infinite;
}
.mic.unsupported { color: var(--text-faint); background: #EEF4F0; }

@keyframes micPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .6; }
}

.recbar {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; background: #FFF5F3; border: 1px solid #F8D3CD;
  border-radius: var(--pill); padding: 6px 6px 6px 12px;
  font-size: 13px; color: #B23A2E;
  animation: dropIn var(--dur-2) var(--ease);
}
.recbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(217, 72, 59, .18); flex: none; }
.recbar .wave { display: flex; align-items: center; gap: 2px; height: 18px; flex: 1; }
.recbar .wave i { display: block; width: 3px; border-radius: 2px; background: #E8867C; height: 8px; animation: waveJump 0.8s ease-in-out infinite; }
.recbar .wave i:nth-child(odd) { animation-duration: 0.65s; }
.recbar .wave i:nth-child(3n) { animation-duration: 0.9s; }
.recbar .stop { margin-left: auto; height: 28px; padding: 0 12px; border-radius: var(--pill); background: var(--danger); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; flex: none; }

@keyframes waveJump {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}

.pics { display: flex; gap: 8px; flex-wrap: wrap; }
.pic { width: 72px; height: 72px; border-radius: 12px; position: relative; flex: none; }
.pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.pic .x {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #1d2a23; color: #fff;
  display: grid; place-items: center; border: 2px solid #fff;
  padding: 0;
}
.pic .x::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.pic .x svg { width: 10px; height: 10px; stroke-width: 3; }
.pic .cover {
  position: absolute; left: 4px; bottom: 4px;
  font-size: 10px; background: rgba(0, 0, 0, .55); color: #fff;
  border-radius: 6px; padding: 1px 5px;
}
.pic.uploading img { opacity: .5; }
.pic .bar { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .5); overflow: hidden; }
.pic .bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) linear; }

.addpic {
  width: 72px; height: 72px; border-radius: 12px;
  border: 1.5px dashed #B9D6C4; background: #F6FBF8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--accent); font-size: 11px; font-weight: 500; flex: none;
  transition: transform var(--dur-1) var(--ease);
}
.addpic:active { transform: scale(.96); }
.addpic svg.i { width: 22px; height: 22px; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr 92px 34px; gap: 8px; align-items: center; }
.row .inp { min-height: 40px; font-size: 14px; }
.row .rm { width: 34px; height: 40px; display: grid; place-items: center; color: var(--text-faint); position: relative; }
.row .rm::after { content: ""; position: absolute; inset: -3px; }
.row .mic { width: 34px; height: 34px; }

.add-line { display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-size: 14px; font-weight: 500; height: 36px; margin-top: 6px; }
.add-line svg.i { width: 18px; height: 18px; }

.stepf { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: flex-start; }
.stepf .n {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--tint); color: var(--accent);
  font: 600 13px "Outfit", sans-serif;
  display: grid; place-items: center; margin-top: 9px;
}
.stepf + .stepf { margin-top: 8px; }
.stepf .step-actions { display: flex; gap: 4px; margin-top: 4px; }
.stepf .step-actions button { font-size: 12px; color: var(--text-muted); padding: 4px 8px; border-radius: 8px; }
.stepf .step-actions button:hover { background: var(--tint); color: var(--accent); }

.add-dish {
  margin-top: 12px; width: 100%; height: 56px;
  border-radius: var(--radius-lg); border: 1.5px dashed #A9CFB8;
  background: #F3FAF5; color: var(--accent);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  transition: transform var(--dur-1) var(--ease);
}
.add-dish:active { transform: scale(.99); }

.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--border);
  padding: 12px 20px calc(30px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center;
  z-index: 30;
}
.bottombar.column { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
.bottombar .info { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.bottombar .info b { display: block; font-size: 14px; color: var(--text); }
.bottombar .saved { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.bottombar .saved svg.i { color: var(--draft); }
.bottombar .row-btns > .btn { flex: 1; }
.bottombar .row-btns > .btn:last-child { flex: 2; }

.seg { display: flex; background: #EEF4F0; border-radius: var(--pill); padding: 3px; height: 44px; align-items: center; }
.seg button {
  flex: 1; text-align: center; height: 36px; border-radius: var(--pill);
  font-size: 13px; color: var(--text-muted);
}
.seg button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }

.cover-edit { position: relative; height: 168px; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.cover-edit img { width: 100%; height: 100%; object-fit: cover; }
.cover-edit .ph-placeholder { height: 100%; }
.cover-edit .chg { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.cover-edit .chg button {
  height: 32px; padding: 0 12px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .94);
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
}
.cover-edit .chg svg.i { width: 16px; height: 16px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------------- 提交详情 ---------------- */

.status-card { padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.raw-card { padding: 16px; margin-top: 12px; }
.raw-card h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.raw-field { margin-bottom: 14px; }
.raw-field > span { font-size: 12px; font-weight: 600; color: var(--text-faint); letter-spacing: .06em; display: block; margin-bottom: 4px; }
.raw-field p { font-size: 15px; }
.raw-list { list-style: none; padding-left: 0; }
.raw-list li { font-size: 15px; padding: 3px 0; }
.raw-list li em { font-style: normal; color: var(--text-muted); margin-left: 6px; }
ol.raw-list { padding-left: 20px; }
ol.raw-list li { list-style: decimal; }

.notify-line { font-size: 12px; color: var(--text-muted); text-align: center; margin: 14px 0 0; }
.notify-line .txt-btn { min-width: auto; height: auto; padding: 0 4px; font-size: 12px; }

.success-anim { display: flex; justify-content: center; margin-top: 20px; }
.success-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: #E8F5EC;
  display: grid; place-items: center; position: relative;
  animation: floatIn var(--dur-4) var(--ease);
}
.success-circle .success-check { position: absolute; width: 56px; height: 56px; bottom: 6px; right: 6px; }
.success-circle .success-check path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck var(--dur-4) var(--ease-spring) 350ms forwards;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* ---------------- 弹窗 / 底部弹层 ---------------- */

dialog.modal {
  border: 0; padding: 0; background: transparent; margin: auto;
  max-width: 100%; max-height: 100%;
}
dialog.modal::backdrop { background: rgba(14, 28, 20, .42); animation: fadeIn var(--dur-3) var(--ease); }
dialog.modal .modal-inner {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 22px;
  width: min(420px, calc(100vw - 40px));
  margin: auto;
  text-align: center;
  animation: sheetUp var(--dur-4) var(--ease);
}
dialog.modal .warn {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--danger-soft); color: var(--danger);
  display: grid; place-items: center; margin: 0 auto 14px;
}
dialog.modal .warn svg.i { width: 30px; height: 30px; }
dialog.modal h2 { font-size: 20px; font-weight: 700; }
dialog.modal p { font-size: 14px; color: var(--text-muted); margin: 8px auto 0; }
dialog.modal .pv {
  display: flex; gap: 12px; align-items: center; text-align: left;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px; margin: 18px 0;
}
dialog.modal .pv img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
dialog.modal .pv .thumb-ph { width: 52px; height: 52px; border-radius: 10px; background: var(--tint); color: var(--accent); display: grid; place-items: center; }
dialog.modal .pv b { font-size: 15px; }
dialog.modal .pv span { display: block; font-size: 12px; color: var(--text-muted); }
dialog.modal .btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
dialog.modal [hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* 页面进入：淡入并上移 8px。不用 fill-mode，播完不留 transform，免得影响里面的 fixed 底栏 */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.page-mobile > :not(.tabbar), .dwrap { animation: pageIn var(--dur-3) var(--ease-out); }
.sk-list { height: 420px; }
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.sheet-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: 10px 22px calc(24px + env(safe-area-inset-bottom));
  animation: sheetUp var(--dur-4) var(--ease);
}
/* 拖拽条：手机底部弹层（含删除确认 dialog.sheet-modal，PRD §6.6）40×5；≥768 宽居中弹窗时隐藏 */
.sheet-mobile .grab, dialog.modal.sheet-modal .grab { width: 40px; height: 5px; border-radius: 3px; background: #D5DED8; margin: 0 auto 22px; }
.sheet-scrim { position: fixed; inset: 0; background: rgba(14, 28, 20, .42); z-index: 55; animation: fadeIn var(--dur-3) var(--ease); }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(12px);
  background: rgba(24, 35, 29, .92); color: #fff;
  padding: 10px 18px; border-radius: var(--pill);
  font-size: 14px; z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 骨架屏 ---------------- */

.skeleton { background: #EEF3EF; border-radius: var(--radius-lg); position: relative; overflow: hidden; animation: fadeIn var(--dur-2) var(--ease) 200ms both; }
/* 200ms 内数据回来就看不到骨架，不会闪一下 */
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------------- 进入动画 ---------------- */

[data-stagger] > * { animation: cardIn var(--dur-3) var(--ease) both; }
[data-stagger] > *:nth-child(1) { animation-delay: 0ms; }
[data-stagger] > *:nth-child(2) { animation-delay: 40ms; }
[data-stagger] > *:nth-child(3) { animation-delay: 80ms; }
[data-stagger] > *:nth-child(4) { animation-delay: 120ms; }
[data-stagger] > *:nth-child(5) { animation-delay: 160ms; }
[data-stagger] > *:nth-child(6) { animation-delay: 200ms; }
[data-stagger] > *:nth-child(7) { animation-delay: 240ms; }
[data-stagger] > *:nth-child(8) { animation-delay: 280ms; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- 桌面布局 ---------------- */

.dnav { height: 68px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.dnav .in { max-width: 1240px; margin: 0 auto; padding: 0 40px; height: 100%; display: flex; align-items: center; gap: 32px; }
.dnav nav { display: flex; gap: 6px; }
.dnav nav a { font-size: 15px; color: var(--text-muted); height: 36px; padding: 0 14px; border-radius: var(--pill); display: inline-flex; align-items: center; }
.dnav nav a.on { background: var(--tint); color: var(--accent); font-weight: 600; }
.dnav .search { height: 42px; width: 340px; margin-left: auto; }
.admin-session-note { font-size: 14px; color: var(--text-muted); }

.dwrap { max-width: 1240px; margin: 0 auto; padding: 36px 40px 56px; }
.dhome { display: grid; grid-template-columns: 232px 1fr; gap: 36px; }

.side h4 { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--text-faint); margin: 0 0 10px 12px; }
.side ul { list-style: none; margin-bottom: 28px; }
.side li { height: 44px; border-radius: var(--radius-md); font-size: 15px; color: var(--text-muted); border: 1px solid transparent; }
.side li a { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 100%; }
.side li .c { margin-left: auto; font: 500 13px "Outfit", sans-serif; color: var(--text-faint); }
.side li.on { background: var(--surface); border-color: var(--border); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.side li.on .c { color: var(--accent); }
.side .chips { flex-wrap: wrap; padding-left: 6px; margin-bottom: 22px; }

.dhero { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 36px; }
.dhero img { width: 100%; height: 340px; object-fit: cover; }
.dhero .ph-placeholder { height: 340px; }
.dhero .tx { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: linear-gradient(160deg, #F2FAF5, #fff 60%); }
.dhero h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.dhero p { color: var(--text-muted); font-size: 16px; max-width: 400px; }

.ddetail { display: grid; grid-template-columns: 7fr 5fr; gap: 36px; align-items: start; }
.detail-title-lg { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.d-hero-desk { height: 380px; border-radius: var(--radius-xl); overflow: hidden; background: var(--tint); margin-bottom: 24px; position: relative; }
.d-hero-desk .d-hero-track { height: 100%; }
.ddetail-right { position: sticky; top: 96px; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; }
.panel h2 { font-size: 18px; font-weight: 600; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }


/* ---------------- 管理端布局（<768 单栏手机 / 768–1199 单栏平板 / ≥1200 双栏） ---------------- */

.panel.admin-right-placeholder, .desk-only { display: none; }
.dadmin { display: block; }
.admin-side { display: flex; flex-direction: column; gap: 14px; }
.admin-main-panel { display: flex; flex-direction: column; gap: 16px; }
.admin-mobile-topbar .tb-right { display: flex; gap: 4px; align-items: center; }
.aitem.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39, 122, 85, .1); }
.edit-grid, .edit-grid .col, .dish-b .col { display: flex; flex-direction: column; gap: 16px; }
.est { font-size: 11px; color: var(--draft); background: #FFF6E5; border-radius: var(--pill); padding: 1px 6px; margin-left: 4px; font-weight: 500; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.status-line small { color: var(--text-faint); font-size: 12px; margin-left: auto; }
.danger-ghost { color: var(--danger); }
.inp.sel { position: relative; padding-right: 10px; }
.inp.sel select { appearance: none; -webkit-appearance: none; background: none; height: 42px; font-size: 15px; padding-right: 22px; }
.inp.sel svg.i { position: absolute; right: 12px; pointer-events: none; color: var(--text-faint); }
.row .inp input { width: 100%; min-width: 0; background: none; }
.row { grid-template-columns: minmax(0, 1fr) 92px 34px; }
.recbar .interim { flex: 1; min-width: 0; color: #C98A82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-sr .mic { color: var(--text-faint); background: #EEF4F0; }
.step-actions button:disabled { opacity: .35; pointer-events: none; }
.stepf .step-actions button { min-height: 32px; }
.more-info summary { font-size: 14px; color: var(--accent); font-weight: 500; cursor: pointer; min-height: 36px; display: flex; align-items: center; }
.more-info[open] > * + * { margin-top: 10px; }

.menu-wrap { position: relative; display: inline-flex; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 132px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 6px;
  display: flex; flex-direction: column;
  animation: dropIn var(--dur-2) var(--ease);
}
.menu[hidden] { display: none; }
.menu button { text-align: left; font-size: 14px; padding: 0 12px; min-height: 40px; border-radius: 8px; white-space: nowrap; }
.menu button:hover, .menu button:focus-visible { background: var(--tint); color: var(--accent); }
.photo-menu { left: 0; right: auto; top: calc(100% + 4px); min-width: 112px; }
.pic.failed img { opacity: .4; }
.pic .retry {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; font-weight: 600; color: var(--danger); background: rgba(255, 255, 255, .55); border-radius: 12px;
}
.pic .retry svg.i { width: 16px; height: 16px; }

@media (max-width: 767px) {
  .admin-page .panel { background: transparent; border: 0; padding: 0; border-radius: 0; }
  .admin-page .panel-head { display: none; }
  .is-form .admin-side { display: none; }
  .admin-page.is-form { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  .admin-mobile-topbar { padding: 10px 20px 6px; }
  dialog.modal.sheet-modal { margin: auto 0 0; width: 100%; }
  dialog.modal.sheet-modal .modal-inner { width: 100%; border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; padding-top: 10px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  .admin-mobile-topbar { display: none; }
  .desk-only { display: inline-flex; }
  .admin-page .bottombar { position: sticky; bottom: 0; margin: 4px -20px -20px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); padding: 14px 20px; background: #FBFDFB; }
  .admin-page .bottombar.column { flex-direction: row; align-items: center; justify-content: space-between; }
  .admin-page .bottombar .info { margin-right: auto; }
  dialog.modal.sheet-modal .grab { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .is-form .admin-side { display: none; }
  .dadmin { max-width: 760px; margin: 0 auto; }
}
@media (min-width: 1200px) {
  .dadmin { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 28px; align-items: start; }
  .admin-side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
  .panel.admin-right-placeholder { display: flex; justify-content: center; min-height: 420px; }
  .dadmin .aitem { background: var(--bg); }
  .edit-grid, .dish-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 24px; align-items: start; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 767px) {
  .page-desktop { display: none !important; }
  .dnav { display: none; }
  .dnav.admin-nav { display: none; }
  .dwrap { padding: 16px 20px 40px; }
  .grid3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ddetail { grid-template-columns: 1fr; }
  .dhome { grid-template-columns: 1fr; }
  .side { display: none; }
}

@media (min-width: 768px) {
  .page-mobile { display: none; }
  .page-desktop { display: block; }
  .tabbar { display: none; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .dhome { grid-template-columns: 1fr; }
  .side { display: none; }
  .dhero { grid-template-columns: 1fr; }
  .dhero img, .dhero .ph-placeholder { height: 260px; }
}

@media (max-width: 360px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr 1fr; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-stagger] > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .success-circle { animation: none !important; }
  .success-circle .success-check path { stroke-dashoffset: 0 !important; animation: none !important; }
  .status-dot.processing { animation: none !important; opacity: 1 !important; }
  .recbar .wave i { animation: none !important; transform: none !important; }
  .mic.on::before { animation: none !important; }
  .skeleton::after { animation: none !important; display: none; }
  .d-hero-track img { transform: none !important; }
}
