:root {
  /* ===== 食邮记 · 现代饮食广报杂志风 ===== */
  --bg: #FFFFFF;
  --bg-subtle: #F3F1EB;
  --surface: #FFFFFF;
  --surface-warm: #F8F7F3;
  --surface-alt: #FAF9F6;

  /* ===== 文本阶梯（暖墨黑，确保 >= 4.5:1 AA） ===== */
  --text-main: #1C1917;
  --text-muted: #524D47;
  --text-light: #655F58;
  --border: #E5E0D6;
  --border-strong: #C9C1B3;
  --border-dashed: #DCD5C9;

  /* ===== 主品牌色：中国邮政墨绿 ===== */
  --primary: #1D4B3B;
  --primary-hover: #14362A;
  --primary-light: rgba(29, 75, 59, 0.08);
  --primary-border: rgba(29, 75, 59, 0.24);

  /* ===== 食欲点睛色：温润朱砂红（按钮、价格、邮戳） ===== */
  --seal: #C23B22;
  --seal-hover: #A6301A;
  --seal-light: rgba(194, 59, 34, 0.09);

  /* ===== 选中态 ===== */
  --active-bg: #1D4B3B;
  --active-fg: #FFFFFF;

  /* ===== 语义色 ===== */
  --accent-green: #1D4B3B;
  --accent-green-light: rgba(29, 75, 59, 0.09);
  --accent-amber: #B07218;
  --accent-amber-light: rgba(176, 114, 24, 0.11);
  --accent-blue: #2B5B84;
  --accent-blue-light: rgba(43, 91, 132, 0.09);

  --state-idle: #1D4B3B;
  --state-moderate: #B07218;
  --state-busy: #C85A32;
  --state-packed: #C23B22;

  /* ===== 克制投影（仅浮层使用） ===== */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 16px -6px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 14px 36px -12px rgba(28, 25, 23, 0.14);

  /* ===== 圆角 ===== */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* ===== 字体栈（克制 500 字重衬线标题 + 清晰无衬线正文 + 等宽数字） ===== */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "JetBrains Mono", "SF Mono", "Cascadia Mono", ui-monospace, Consolas, var(--font-body);
  --font-serif: var(--font-display);
  --font-sans: var(--font-body);
  --fw-display: 500;

  --fs-2xs: 12px;
  --fs-xs:  12px;
  --fs-sm:  13px;
  --fs-base:14.5px;
  --fs-md:  16px;
  --fs-lg:  22px;
  --fs-xl:  34px;
  --lh-tight: 1.25;
  --lh-base: 1.68;
  --lh-loose: 1.76;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  --star-gold: #C88A14;
  --danger-soft: rgba(184, 59, 43, 0.09);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

a, button, .tag-btn, .quick-btn, .report-btn, .mode-btn, .spin-action-btn, .send-btn, .btn-outline, [onclick] {
  touch-action: manipulation;
  cursor: pointer;
}

.inline-svg-icon {
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--primary);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(29, 75, 59, 0.16);
  color: var(--primary);
}

input, textarea {
  caret-color: var(--primary);
}

a {
  text-underline-offset: 3px;
}

.count-num, .dish-item-price, .dish-price-large, .queue-index-badge, .queue-big-num, .archive-score, .footer-stats b, .nutri-kcal, .nt-ring-label b, .news-date, .archive-serial {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-num);
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--border-strong) transparent;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); background-clip: content-box; }

/* ================= 顶部导航栏（通透白纸杂志栏） ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  position: relative;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 18px;
  transition: transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.brand-logo::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  pointer-events: none;
}
.brand-group:hover .brand-logo { transform: scale(1.04); }
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--fw-display);
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.brand-sub {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* ================= 顶部板块直达导航（细线指示，不做满屏胶囊盒） ================= */
.section-anchor { scroll-margin-top: 76px; }
.nav-anchors {
  display: flex;
  align-items: center;
  gap: 6px;
}
body.mode-copilot .nav-anchors { display: none; }
.nav-anchor {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 10px 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s;
}
.nav-anchor small {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-light);
}
.nav-anchor.active small {
  color: inherit;
}
.nav-anchor:hover {
  color: var(--text-main);
}
.nav-anchor.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}
.mobile-section-strip {
  display: none;
}
@media (max-width: 980px) {
  .nav-anchors { display: none; }
  .mobile-section-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
  }
  .mobile-section-strip::-webkit-scrollbar { display: none; }
  .mobile-section-strip .nav-anchor {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 5px 10px;
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: 6px;
  }
  .mobile-section-strip .nav-anchor.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
  }
}

/* ================= 双模态切换器 ================= */
.mode-toggle {
  position: relative;
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--radius-full);
}
.mode-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: 112px;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.08);
  transition: transform 0.3s var(--ease-out), width 0.3s var(--ease-out);
  z-index: 0;
}
.mode-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 6px 15px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s;
}
.mode-btn.active {
  color: var(--primary);
  font-weight: 600;
}

/* ================= 主容器 ================= */
.main-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 88px;
}

.dashboard-view { display: block; }
.copilot-view { display: none; }
.copilot-view.active { display: block; animation: viewFade 0.26s var(--ease-out) both; }
.view-enter { animation: viewFade 0.26s var(--ease-out); }
@keyframes viewFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ================= 顶部实时与核验细线状态栏 ================= */
.live-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.live-tip-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 9px 14px;
  margin-bottom: 28px;
  border-radius: 0;
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.live-audit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.live-audit-chip.is-clickable {
  border: 1px solid var(--primary-border);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.16s, border-color 0.16s, transform 0.16s;
}
.live-audit-chip.is-clickable:hover {
  background: rgba(29, 75, 59, 0.15);
  border-color: var(--primary);
}
@media (max-width: 720px) {
  .live-audit-chip { display: none; }
}
.live-tip-clock {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  padding-right: 10px;
  border-right: 1px solid var(--border-strong);
}
.live-tip-text { color: var(--text-muted); flex: 1; }
.live-refresh {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s, color 0.16s;
}
.live-refresh:hover { background: var(--bg-subtle); color: var(--primary); }
.live-refresh.refreshing svg { animation: spinSpin 0.7s linear; }

/* 回到顶部浮标 */
body.mode-copilot .back-to-top { display: none !important; }
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.back-to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ================= Hero 非对称广报编辑排版（左：直接落在纸面，右：校园实景 + 档案标本单） ================= */
.hero-picker-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.96fr;
  gap: 44px;
  margin: 8px 0 54px;
  align-items: start;
}
@media (max-width: 900px) {
  .hero-picker-grid { grid-template-columns: 1fr; gap: 24px; }
}
.picker-card {
  background: transparent;
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.hero-editorial-tag {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
}
.picker-header h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: var(--fw-display);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 12px;
}
.picker-header p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.72;
  max-width: 48ch;
}

.picker-controls {
  margin: 22px 0 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tag-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.filter-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
  align-self: center;
  margin-right: 6px;
  min-width: 32px;
  flex-shrink: 0;
}
.tag-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.tag-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}
.tag-btn.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #FFFFFF;
  font-weight: 500;
}

.hero-action-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.spin-action-btn {
  background: var(--seal);
  color: #FFFFFF;
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 12px -4px rgba(28, 25, 23, 0.25);
  transition: background-color 0.18s, transform 0.18s var(--ease-out);
}
.spin-action-btn:hover {
  background: var(--seal-hover);
  transform: translateY(-1px);
}
.spin-action-btn:active { transform: translateY(0) scale(0.99); }
.spin-action-btn.spinning .spin-icon { animation: spinSpin 0.5s linear infinite; }
.spin-action-btn:disabled { cursor: default; opacity: 0.85; }
@keyframes spinSpin { to { transform: rotate(360deg); } }

.hero-companion-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-warm);
  text-align: left;
  font-family: inherit;
  color: var(--text-main);
  transition: border-color 0.16s, background-color 0.16s;
}
.hero-companion-badge:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.hero-companion-badge img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-companion-badge strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
}
.hero-companion-badge > div > span {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.3;
  white-space: nowrap;
}

.hero-quick-paths {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
}
.quick-path-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  background: transparent;
  padding: 2px 1px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.16s, border-color 0.16s;
}
.quick-path-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.quick-path-link.is-ai {
  color: var(--primary);
  font-weight: 600;
}

/* 右侧集成画框（顶部：西邮食堂真实环境；底部：今日抽选菜品标本） */
.hero-showcase {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.hero-scene-banner {
  position: relative;
  margin: 0;
  background: #1C1917;
  overflow: hidden;
}
.hero-scene-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s var(--ease-out);
}
.hero-scene-banner:hover img { transform: scale(1.02); }
.hero-scene-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: #1C1917;
  color: #FFFFFF;
  font-size: 12px;
}
.hero-scene-pills {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}
.scene-switch {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(20, 18, 16, 0.56);
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  transition: background-color 0.16s, color 0.16s, border-color 0.16s;
}
.scene-switch.active,
.scene-switch:hover {
  background: #FFFFFF;
  color: var(--text-main);
  border-color: #FFFFFF;
}

.dish-result-card {
  position: relative;
  background: transparent;
  border-top: none;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.postmark-seal {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 2;
  color: var(--seal);
  opacity: 0.72;
  pointer-events: none;
  transform: rotate(-10deg);
  transform-origin: center;
}
.dish-result-card.animating .postmark-seal {
  animation: stampLand 0.36s var(--ease-out);
}
@keyframes stampLand {
  0% { opacity: 0.3; transform: scale(1.25) rotate(-14deg); }
  100% { opacity: 0.72; transform: scale(1) rotate(-10deg); }
}
.dish-spotlight-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-right: 48px;
}
.dish-result-thumb {
  position: relative;
  width: 108px;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  flex-shrink: 0;
  cursor: zoom-in;
}
.dish-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.thumb-zoom-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 25, 23, 0.74);
  color: #FFFFFF;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}
.dish-spotlight-main {
  flex: 1;
  min-width: 0;
}
.dish-result-title-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.dish-result-photo-mat {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.dish-result-photo-mat:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(173, 59, 44, 0.08);
}
.dish-result-photo-mat img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  max-height: 210px;
  object-fit: contain;
  object-position: center;
  background: #FFFFFF;
  display: block;
  border-radius: 5px;
}
.dish-result-text-mat {
  padding: 24px 20px;
  margin-bottom: 14px;
  min-height: 176px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.dish-result-text-mat svg {
  width: 28px;
  height: 28px;
  color: var(--text-light);
  flex-shrink: 0;
}
.dish-result-text-mat strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}
.dish-result-text-mat span,
.dish-result-text-mat small {
  display: block;
  font-size: 12px;
  color: var(--text-light);
}
.dish-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.dish-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 5px; }
.pill-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}
.pill-subtle {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}
.dish-name-large {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--fw-display);
  color: var(--text-main);
  line-height: 1.3;
}
.dish-price-large {
  font-size: 19px;
  color: var(--seal);
  font-weight: 600;
  white-space: nowrap;
}
.dish-meta-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.55;
}
.dish-meta-info > div { display: flex; gap: 10px; }
.dish-meta-info span { flex-shrink: 0; width: 56px; color: var(--text-light); }

.dish-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.archive-serial {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.01em;
}
.dish-action-row { display: flex; gap: 8px; flex-wrap: wrap; }

.dish-result-card.animating .dish-name-large,
.dish-result-card.animating .dish-price-large,
.dish-result-card.animating .dish-meta-info { animation: cardShift 0.3s var(--ease-out); }
.dish-result-card.rolling .dish-name-large { opacity: 0.55; }
@keyframes cardShift {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.16s, border-color 0.16s;
}
.btn-outline:hover { background: var(--bg-subtle); border-color: var(--text-main); }
.btn-outline.btn-dark {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  font-weight: 500;
}
.btn-outline.btn-dark:hover { background: var(--primary-hover); }

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 7px;
  font-weight: 500;
  transition: background-color 0.16s;
}
.btn-primary:hover { background: var(--primary-hover); }

/* ================= 板块标题（广报细线排印，不用粗重框） ================= */
.section-title-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-display);
  color: var(--text-main);
  margin: 0;
  line-height: 1.28;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.section-desc { font-size: 13.5px; color: var(--text-light); margin-top: 4px; }
.section-refresh {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}
.sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: background-color 0.16s, color 0.16s, border-color 0.16s;
}
.sort-toggle:hover { color: var(--text-main); border-color: var(--text-main); }
.sort-toggle.active { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.sort-toggle.confirming { background: var(--danger-soft); color: var(--seal); border-color: var(--seal); }

/* ================= 东西区标识与区域切换 ================= */
.zone-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.zone-pill.is-west {
  background: var(--primary-light);
  color: var(--primary);
}
.zone-pill.is-east {
  background: var(--seal-light);
  color: var(--seal);
}

.zone-view-switch {
  display: inline-flex;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.zone-board-btn {
  border: none;
  background: transparent;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color 0.15s, color 0.15s;
}
.zone-board-btn.active {
  background: var(--text-main);
  color: #FFFFFF;
}

.zone-board-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 52px;
}
.zone-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.zone-board-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.zone-board-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--fw-display);
  color: var(--text-main);
  margin: 0;
}
.zone-board-meta {
  font-size: 12.5px;
  color: var(--text-light);
}

/* ================= 东西区食堂广报栏 ================= */
.queue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid var(--text-main);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  align-items: stretch;
}
.queue-grid.queue-grid-east {
  display: block;
  border-top: 2px solid var(--seal);
}
@media (max-width: 960px) {
  .queue-grid { grid-template-columns: 1fr; }
}
.queue-card {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.16s;
}
.queue-card:last-child { border-right: none; }
.queue-card:hover { background: var(--surface-alt); }
.queue-card.is-east-spread {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  border-right: none;
  padding: 22px 24px;
}
.east-spread-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.east-spread-right {
  border-left: 1px dashed var(--border-dashed);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.east-spread-right .queue-floors-box { border-top: none; padding-top: 0; }
.east-spread-right .qf-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
@media (max-width: 960px) {
  .queue-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 4px;
  }
  .queue-card:last-child { border-bottom: none; }
  .queue-card.is-east-spread {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 4px;
  }
  .east-spread-right {
    border-left: none;
    border-top: 1px dashed var(--border-dashed);
    padding-left: 0;
    padding-top: 14px;
  }
}
.queue-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.queue-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.queue-card-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--fw-display);
}
.queue-card-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.queue-index-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.queue-index-badge.tone-idle { background: var(--primary-light); color: var(--primary); }
.queue-index-badge.tone-moderate { background: var(--accent-amber-light); color: #9A6312; }
.queue-index-badge.tone-busy { background: rgba(200, 90, 50, 0.12); color: #B44924; }
.queue-index-badge.tone-packed { background: var(--seal-light); color: var(--seal); }

.queue-score-hero {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.queue-big-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}
.queue-big-num small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 3px;
}
.queue-score-caption { font-size: 12px; color: var(--text-light); }

.queue-timeline-block { margin-bottom: 14px; }
.queue-segments {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  height: 7px;
}
.q-seg {
  border-radius: 3px;
  background: var(--bg-subtle);
}
.q-seg.filled.seg-idle { background: var(--primary); }
.q-seg.filled.seg-mod { background: var(--accent-amber); }
.q-seg.filled.seg-busy { background: var(--seal); }
.queue-timeline-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

.queue-tip-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qt-row { display: flex; align-items: flex-start; gap: 6px; }
.qt-row svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); opacity: 0.75; }

.queue-floors-box {
  border-top: 1px dashed var(--border-dashed);
  padding: 10px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qf-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
}
.qf-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}
.qf-tag {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.qf-desc {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.canteen-hours-details {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.canteen-hours-details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 500;
  font-size: 12px;
  padding: 4px 0;
  user-select: none;
}
.canteen-hours-details[open] summary { margin-bottom: 6px; }
.chd-body {
  padding-left: 8px;
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.55;
}
.chd-sum { color: var(--text-light); }

.report-row { border-top: 1px dashed var(--border-dashed); padding-top: 12px; }
.report-label { font-size: 12px; color: var(--text-light); margin-bottom: 8px; display: block; }
.report-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.canteen-jump-btn {
  width: 100%;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 12.5px;
}
.report-btn {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  text-align: center;
  transition: background-color 0.16s, color 0.16s, border-color 0.16s;
}
.report-btn:hover { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }

/* ================= 搜索与筛选栏 ================= */
.filter-search-box {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.search-field { position: relative; flex: 1; min-width: 220px; display: flex; align-items: center; }
.search-field-icon { position: absolute; left: 12px; color: var(--text-light); pointer-events: none; }
.search-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 9px 36px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }
.search-clear {
  position: absolute;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-clear:hover { background: var(--border-strong); color: var(--text-main); }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.zone-filter-pills { flex: 0 1 auto; max-width: 100%; }
.canteen-sub-pills { width: 100%; padding-top: 10px; border-top: 1px dashed var(--border-dashed); }
.floor-sub-pills { width: 100%; padding-top: 8px; }
.filter-sub-label { font-size: 12px; color: var(--text-light); font-weight: 600; }
.period-pills { width: 100%; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--border); }
.ledger-pub-tag {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-light);
}

/* 工具条：计数 + 目录/网格视图切换 */
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 2px 16px;
}
.dishes-count { font-size: 13px; color: var(--text-light); }
.dishes-count b { color: var(--primary); font-weight: 600; }

.archive-view-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.view-tab-btn {
  border: none;
  background: transparent;
  padding: 5px 13px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color 0.16s, color 0.16s, box-shadow 0.16s;
}
.view-tab-btn.active {
  background: var(--surface);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.08);
}

/* ================= 菜品库分栏：左侧杂志目录 + 右侧吸附标本预览 ================= */
.archive-split-layout.mode-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 32px;
  align-items: start;
}
.archive-split-layout.mode-grid {
  display: block;
}
@media (max-width: 940px) {
  .archive-split-layout.mode-ledger { grid-template-columns: minmax(0, 1fr); }
  .specimen-panel { display: none; }
}

.menu-ledger-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  border-top: 2px solid var(--text-main);
}
.ledger-stall-block {
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  padding: 16px 14px 14px;
  transition: background-color 0.14s, border-color 0.14s;
}
.ledger-stall-block.is-active {
  background: var(--surface-warm);
  border-left-color: var(--seal);
}
.ledger-stall-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.ledger-stall-title-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.ledger-stall-title {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: var(--fw-display);
  color: var(--text-main);
  margin: 0;
}
.ledger-stall-loc {
  font-size: 12.5px;
  color: var(--text-light);
}
.ledger-stall-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-light);
}
.ledger-from {
  color: var(--primary);
  font-family: var(--font-num);
  font-weight: 600;
}
.ledger-zoom-mini {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
}
.ledger-zoom-mini:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.ledger-dish-rows {
  display: flex;
  flex-direction: column;
}
.ledger-dish-row {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 6px;
  border: none;
  border-bottom: 1px dashed var(--border-dashed);
  background: transparent;
  text-align: left;
  font-family: inherit;
  border-radius: 4px;
  transition: background-color 0.12s;
}
.ledger-dish-row:last-child { border-bottom: none; }
.ledger-dish-row:hover,
.ledger-dish-row.is-active {
  background: rgba(29, 75, 59, 0.055);
}
.ledger-dish-row.is-search-row {
  border-bottom: 1px solid var(--border);
  padding: 11px 10px;
  border-radius: 0;
}
.ledger-dish-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ledger-dish-name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
}
.ledger-dish-sub {
  font-size: 12px;
  color: var(--text-light);
}
.ledger-dish-price {
  flex-shrink: 0;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  color: var(--seal);
  white-space: nowrap;
}

/* 右侧吸附标本预览台 */
.specimen-panel {
  position: sticky;
  top: 84px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.specimen-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.specimen-loc {
  color: var(--primary);
  font-weight: 600;
}
.specimen-photo-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  padding: 6px;
  margin-bottom: 14px;
  cursor: zoom-in;
}
.specimen-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #FFFFFF;
  border-radius: 4px;
  display: block;
}
.specimen-zoom-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.8);
  color: #FFFFFF;
}
.specimen-photo-empty {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
  color: var(--text-light);
  font-size: 12px;
}
.specimen-switch-east {
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary);
  background: #FFFFFF;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.specimen-switch-east:hover {
  background: var(--primary);
  color: #FFFFFF;
}
.specimen-photo-empty strong { color: var(--primary); font-weight: 600; font-size: 12.5px; }
.specimen-photo-empty svg { width: 38px; height: 38px; opacity: 0.45; }
.specimen-head { margin-bottom: 10px; }
.specimen-stall {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: var(--fw-display);
  color: var(--text-main);
  margin-bottom: 4px;
}
.specimen-dish-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.specimen-dish-name { font-size: 14px; font-weight: 600; color: var(--primary); }
.specimen-dish-price { font-family: var(--font-num); font-size: 15px; font-weight: 600; color: var(--seal); white-space: nowrap; }
.specimen-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.specimen-source {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 14px;
}
.specimen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.specimen-actions .btn-outline { flex: 1 1 auto; }
.specimen-empty { padding: 36px 12px; text-align: center; color: var(--text-light); font-size: 13px; }

.dishes-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.dishes-empty svg { color: var(--primary); opacity: 0.55; margin-bottom: 12px; }
.dishes-empty p { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.dishes-empty span { font-size: 13px; color: var(--text-light); }

.load-more {
  grid-column: 1 / -1;
  align-self: center;
  margin: 18px auto 4px;
  padding: 10px 28px;
  border: 1px solid var(--primary);
  background: var(--surface);
  color: var(--primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background-color 0.16s, color 0.16s;
}
.load-more:hover { background: var(--primary); color: #FFFFFF; }

/* ===== 图览网格模式（可切换） ===== */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  align-items: start;
}

.stall-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s;
}
.stall-card:hover { border-color: var(--border-strong); }
.stall-cover {
  position: relative;
  aspect-ratio: 16 / 8;
  background: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.stall-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 6px;
  background: #FFFFFF;
  display: block;
  transition: transform 0.35s var(--ease-out);
}
.stall-card:hover .stall-cover img { transform: scale(1.03); }
.stall-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
}
.stall-cover-empty svg { width: 44px; height: 44px; opacity: 0.4; }
.stall-photo-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(28, 25, 23, 0.78);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  cursor: zoom-in;
}
.stall-photo-zoom:hover { background: var(--primary); }

.cover-evidence-tag {
  position: absolute;
  right: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(29, 75, 59, 0.88);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
}

.stall-body { padding: 14px 16px 16px; }
.stall-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.stall-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: var(--fw-display);
  color: var(--text-main);
}
.stall-loc { font-size: 12px; color: var(--text-light); flex-shrink: 0; }
.stall-pending-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #9A6312;
  background: var(--accent-amber-light);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.stall-dishes { display: flex; flex-direction: column; }
.stall-dish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 6px;
  border: none;
  background: transparent;
  border-bottom: 1px dashed var(--border-dashed);
  font-family: inherit;
  border-radius: 5px;
  transition: background-color 0.14s;
}
.stall-dish:last-child { border-bottom: none; }
.stall-dish:hover { background: var(--surface-warm); }
.stall-dish-name { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-main); line-height: 1.45; }
.stall-dish-price {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--seal);
  white-space: nowrap;
  text-align: right;
}
.price-note-dot { color: var(--accent-amber); display: inline-flex; }
.stall-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.stall-from { color: var(--primary); font-weight: 600; }
.stall-meta-dot { color: var(--border-strong); }

.kcal-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg-subtle);
  padding: 0 5px;
  border-radius: 4px;
  white-space: nowrap;
  vertical-align: 1px;
}

/* 抽屉营养面板 */
.nutri-panel {
  border-radius: var(--radius-md);
  background: var(--surface-warm);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.nutri-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.nutri-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-main); }
.nutri-title svg { color: var(--primary); }
.nutri-kcal { font-family: var(--font-num); font-size: 19px; font-weight: 700; color: var(--seal); }
.nutri-kcal small { font-size: 12px; color: var(--text-light); font-weight: 500; margin-left: 2px; }
.nutri-bars { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.nbar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.nbar-label { width: 42px; color: var(--text-muted); flex-shrink: 0; }
.nbar-track { flex: 1; height: 6px; background: var(--bg-subtle); border-radius: 999px; overflow: hidden; }
.nbar-track i { display: block; height: 100%; border-radius: 999px; }
.nbar-val { width: 46px; text-align: right; font-weight: 600; color: var(--text-main); }
.nutri-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nutri-foot span { font-size: 12px; color: var(--text-light); flex: 1; line-height: 1.4; }
.nutri-add {
  flex-shrink: 0;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}
.nutri-add:hover { background: var(--primary-hover); }

/* 今日营养摄入工作台（暖石底单层模块，不套白盒子阴影） */
.nutri-tracker {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.nt-summary { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nt-ring { position: relative; width: 88px; height: 88px; }
.nt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nt-ring-bg { fill: none; stroke: var(--bg-subtle); stroke-width: 6; }
.nt-ring-fg { fill: none; stroke: var(--primary); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 213.6; stroke-dashoffset: 213.6; transition: stroke-dashoffset 0.6s var(--ease-out); }
.nt-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nt-ring-label b { font-family: var(--font-num); font-size: 20px; font-weight: 700; color: var(--text-main); line-height: 1; }
.nt-ring-label small { font-size: 12px; color: var(--text-light); }
.nt-macros { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-muted); }
.nt-macro { display: flex; align-items: center; gap: 6px; }
.nt-macro b { color: var(--text-main); font-weight: 600; }
.ntm-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.nt-goal-note { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.nt-list { flex: 1; min-width: 240px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.nt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 8px 5px 12px;
  font-size: 12px;
  color: var(--text-main);
}
.nt-chip b { color: var(--seal); font-weight: 600; }
.nt-chip-x {
  border: none;
  background: var(--bg-subtle);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nt-empty { font-size: 13px; color: var(--text-light); align-self: center; line-height: 1.6; }

/* 待复核与单菜卡（图览搜索结果） */
.lv-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  white-space: nowrap;
}
.lv-badge.lv-pending { background: var(--accent-amber-light); color: #9A6312; }
.price-pending { text-decoration: underline dashed var(--accent-amber); text-underline-offset: 3px; }
.price-note {
  font-size: 12px;
  color: #9A6312;
  background: var(--accent-amber-light);
  padding: 5px 9px;
  border-radius: 6px;
  margin: 4px 0 6px;
}

.dish-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.18s;
}
.dish-item-card:hover { border-color: var(--border-strong); }
.dish-item-title { font-family: var(--font-display); font-size: 16px; font-weight: var(--fw-display); margin-bottom: 4px; line-height: 1.35; }
.dish-item-price { font-size: 15px; font-weight: 600; color: var(--seal); margin-bottom: 8px; }
.dish-item-sub { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; }

.dish-flavor { margin-bottom: 6px; }
.flavor-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}
.flavor-badge.spicy { background: var(--seal-light); color: var(--seal); }
.flavor-badge.mild { background: var(--primary-light); color: var(--primary); }

.dish-item-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-subtle);
}
.dish-time-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(28, 25, 23, 0.78);
  color: #FFFFFF;
}
.dish-item-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  background: #FFFFFF;
  display: block;
}
.dish-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-light);
}
.dish-cover-icon { width: 52px; height: 52px; color: var(--primary); opacity: 0.45; }
.dish-cover-icon svg { width: 100%; height: 100%; }
.dish-cover-hint { font-size: 12px; color: var(--text-light); }

/* ================= 公开信息核验与更新日志（2×2 细线时间轴） ================= */
.news-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid var(--text-main);
  margin-bottom: 44px;
}
@media (max-width: 760px) {
  .news-timeline { grid-template-columns: 1fr; }
}
.news-item {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 18px 20px;
}
.news-item:nth-child(even) { border-right: none; }
@media (max-width: 760px) {
  .news-item { border-right: none; padding: 16px 4px; }
}
.news-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.news-tag { font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 2px 9px; border-radius: var(--radius-full); }
.news-date { font-size: 12px; color: var(--text-light); font-family: var(--font-num); }
.news-title { font-family: var(--font-display); font-size: 16px; font-weight: var(--fw-display); color: var(--text-main); margin-bottom: 6px; line-height: 1.45; }
.news-summary { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ================= 模式 B：AI 导餐（邮政档案开放式对话流，不套重卡片外框） ================= */
.copilot-container {
  max-width: 860px;
  margin: 0 auto;
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
}
.copilot-header {
  padding: 14px 4px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.copilot-profile { display: flex; align-items: center; gap: 11px; }
.copilot-avatar {
  width: 38px;
  height: 38px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.copilot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.copilot-name { font-family: var(--font-display); font-size: 16.5px; font-weight: var(--fw-display); color: var(--text-main); }
.copilot-status { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.copilot-tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.chat-stream {
  flex: 1;
  padding: 20px 4px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  background: transparent;
}
.chat-msg { display: flex; align-items: flex-start; max-width: 84%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.agent { align-self: flex-start; }

.msg-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.62;
}
.user .msg-bubble {
  background: var(--primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}
.agent .msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.gen-card {
  margin-top: 12px;
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 12px 14px;
}
.gen-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gen-card-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal);
}

.refusal-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent-amber-light);
}
.refusal-card .gen-card-title::before { display: none; }
.refusal-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(184, 122, 30, 0.14);
  color: #9A6312;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rec-chips {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border-top: 1px dashed var(--border-dashed);
}
.rec-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--border-dashed);
  padding: 9px 6px;
  font-family: inherit;
  border-radius: 6px;
  transition: background-color 0.16s;
}
.rec-chip:last-child { border-bottom: none; }
.rec-chip:hover { background: var(--surface-alt); }
.rec-chip-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 7px;
}
.rec-chip-icon svg { width: 18px; height: 18px; }
.rec-chip-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rec-chip-name { font-size: 13px; font-weight: 600; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-chip-price { font-size: 12px; color: var(--seal); font-weight: 600; }

.quick-questions-bar {
  padding: 10px 4px;
  background: transparent;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  scrollbar-width: none;
}
.quick-questions-bar::-webkit-scrollbar { display: none; width: 0; height: 0; }
.quick-btn {
  white-space: nowrap;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  transition: background-color 0.16s, color 0.16s, border-color 0.16s;
}
@media (hover: hover) {
  .quick-btn:hover { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
}
.quick-btn:active { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }

.chat-input-area {
  padding: 10px 0 14px;
  background: transparent;
  display: flex;
  gap: 10px;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  transition: background-color 0.16s, border-color 0.16s;
}
.chat-input:focus { background: var(--surface); border-color: var(--primary); outline: none; }
.send-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s;
}
.send-btn:hover { background: var(--primary-hover); }

/* ================= 证据链抽屉 ================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 25, 23, 0.42);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  justify-content: flex-end;
}
.drawer-backdrop.open { display: flex; }
.drawer-content {
  width: 440px;
  max-width: 92vw;
  background: var(--surface);
  height: 100%;
  box-shadow: -12px 0 40px rgba(26, 25, 23, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.28s var(--ease-out);
}
@keyframes slideDrawer { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideUpSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-title { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 18px; color: var(--text-main); }
.drawer-close {
  border: none;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  padding: 6px;
  border-radius: 50%;
}
.drawer-close:hover { background: var(--border-strong); color: var(--text-main); }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }

.evidence-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.price-photo {
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-subtle);
}
.price-photo-cap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.price-photo img {
  width: 100%;
  background: #FFFFFF;
  padding: 8px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.evidence-photo-box {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  margin-bottom: 16px;
}
.evidence-photo-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 20px 18px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--surface-warm);
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-light);
}
.photo-placeholder .photo-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.55;
  flex-shrink: 0;
}
.photo-placeholder .photo-icon svg,
.photo-placeholder svg {
  width: 48px;
  height: 48px;
  display: block;
}

.photo-zoom {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 19, 17, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  padding: 0;
}
.photo-zoom.open { display: flex; }
.lighttable-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(12, 13, 12, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #F6F3EC;
  font-size: 13px;
}
.lighttable-cap {
  font-family: var(--font-num);
  font-size: 12.5px;
  color: rgba(246, 243, 236, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lighttable-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lighttable-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #F6F3EC;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}
.lighttable-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}
.lighttable-stage {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-in;
}
.lighttable-stage.zoomed {
  display: block;
  padding: 20px;
  cursor: zoom-out;
}
.lighttable-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.25s var(--ease-out);
}
.lighttable-stage.zoomed img {
  flex: none;
  display: block;
  margin: 0 auto;
  max-width: none;
  max-height: none;
  width: min(2200px, 195vw);
  height: auto;
}
.evidence-data-list { list-style: none; font-size: 13px; line-height: 1.75; margin-bottom: 20px; color: var(--text-muted); }
.evidence-data-list strong { color: var(--text-main); font-weight: 600; }

.drawer-actions {
  border-top: 1px dashed var(--border-dashed);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  gap: 10px;
}
.drawer-cta { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-size: 14px; padding: 11px 16px; }

/* ================= 页脚 ================= */
.site-footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: 12.5px;
  line-height: 1.75;
}
.footer-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-dashed);
}
.footer-stats b {
  color: var(--primary);
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  margin-right: 3px;
}
.footer-brand { font-family: var(--font-display); font-size: 17px; font-weight: var(--fw-display); color: var(--text-main); margin-bottom: 2px; }
.footer-brand span { color: var(--text-light); font-weight: 400; font-size: 12px; letter-spacing: 0.5px; }
.footer-meta { color: var(--text-light); margin-top: 4px; font-size: 12px; }
.footer-compliance { margin-top: 10px; }
.footer-compliance-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  background: var(--primary-light);
  color: var(--primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s, border-color 0.16s, color 0.16s;
}
.footer-compliance-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.compliance-doc-figure img {
  max-height: 300px;
  object-fit: contain;
  background: #FFFFFF;
}
.compliance-meta-box {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
}
.compliance-meta-box strong { color: var(--text-main); font-weight: 600; }
.compliance-clauses {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.compliance-clause {
  border-left: 2px solid var(--primary-border);
  padding: 4px 0 4px 12px;
}
.compliance-clause-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}
.compliance-clause p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ================= 手机端适配（≤560px） ================= */
.mobile-tabbar { display: none; }

@media (max-width: 560px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  body { padding-bottom: 72px; }

  .navbar { padding: 10px 14px; }
  .brand-logo { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
  .brand-title { font-size: 16px; }
  .brand-sub { display: none; }
  .mode-toggle { display: none; }

  .main-wrapper { padding: 14px 14px 28px; }

  .live-tip-bar { padding: 9px 12px; font-size: 12.5px; margin-bottom: 18px; }
  .live-tip-clock { font-size: 13px; }

  .hero-picker-grid { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .picker-header h1 { font-size: 28px; }
  .hero-action-cluster { flex-direction: column; align-items: stretch; }
  .spin-action-btn { width: 100%; }
  .hero-companion-badge { width: 100%; }
  .dish-result-card { padding: 14px 16px 16px; }
  .postmark-seal { top: 4px; right: 6px; transform: scale(0.8) rotate(-8deg); }
  .dish-spotlight-row { padding-right: 0; }
  .dish-result-thumb { width: 92px; height: 70px; }
  .dish-name-large { font-size: 18px; }
  .dish-price-large { font-size: 17px; padding-top: 0; }

  .tag-group { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
  .tag-group::-webkit-scrollbar { display: none; }
  .tag-group .tag-btn { flex: 0 0 auto; padding: 5px 11px; font-size: 12.5px; }

  .section-title-bar { margin: 32px 0 12px; flex-wrap: wrap; gap: 8px; }
  .section-title { font-size: 19px; }
  .section-refresh { flex-wrap: wrap; gap: 8px; white-space: normal; }

  .queue-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .queue-card,
  .queue-card.is-east-spread { padding: 16px 4px; }
  .filter-sub-label { flex-shrink: 0; white-space: nowrap; }

  .filter-search-box { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; min-width: 0; max-width: 100%; }
  .search-field { min-width: 0; width: 100%; }
  .search-input { font-size: 15px; }
  .filter-pills { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; gap: 6px; padding-bottom: 2px; scrollbar-width: none; }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pills .tag-btn { white-space: nowrap; flex: 0 0 auto; }

  .ledger-stall-block { padding: 14px 6px; min-width: 0; max-width: 100%; }
  .ledger-dish-row { gap: 10px; }
  .ledger-dish-price { white-space: normal; text-align: right; max-width: 46%; font-size: 13px; line-height: 1.35; }
  .dishes-grid { grid-template-columns: 1fr; gap: 14px; }

  .nutri-tracker { flex-direction: column; gap: 14px; padding: 16px; }
  .nt-list { min-width: 0; width: 100%; }
  .news-timeline { grid-template-columns: 1fr; gap: 0; }

  .copilot-container {
    height: calc(100vh - 134px);
    height: calc(100dvh - 134px);
    max-height: none;
  }
  .copilot-header { padding: 10px 2px; }
  .copilot-name { font-size: 14px; }
  .copilot-tagline { font-size: 12px; }
  .chat-stream { padding: 12px 2px; gap: 12px; }
  .chat-msg { max-width: 92%; }
  .msg-bubble { padding: 10px 14px; font-size: 14px; }
  .quick-questions-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 2px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
  }
  .chat-input-area { padding: 10px 0; }
  .chat-input { font-size: 16px; padding: 9px 12px; }

  .back-to-top { display: none !important; }

  .drawer-backdrop { justify-content: center; align-items: flex-end; }
  .drawer-content {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 86vh;
    border-radius: 16px 16px 0 0;
    animation: slideUpSheet 0.28s var(--ease-out);
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid var(--border);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .mtab {
    position: relative;
    flex: 1;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
  }
  .mtab svg { width: 21px; height: 21px; }
  .mtab.active { color: var(--primary); font-weight: 600; }
  .mtab-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(20px);
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--accent-amber);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }
  .mtab-badge.hot { background: var(--seal); }

  .dish-result-photo-mat img {
    aspect-ratio: 16 / 8;
    max-height: 170px;
  }
  .dish-result-header {
    padding-right: 0;
    gap: 10px;
  }
  .dish-result-text-mat {
    padding: 16px 14px;
    min-height: 148px;
  }
}
