/* ============================================================
   今天吃啥 · 样式
   设计基准：移动端竖屏 390px 宽
   主色 #c45a1b（暖橙棕） / 背景 #f7f5f0（米色） / 圆角 12px
   卡片：极浅阴影；底部 App 式固定导航（图标 + 文字）
   ============================================================ */

:root {
  --primary: #c45a1b;
  --primary-dark: #a84a14;
  --primary-soft: #fbe9dc;
  --bg: #f7f5f0;
  --card: #ffffff;
  --ink: #332820;
  --ink-2: #6f6155;
  --ink-3: #9c8f82;
  --line: #ece5da;
  --star-empty: #ddd3c7;
  --radius: 12px;
  --tabbar-h: 78px;
  --shadow-card: 0 1px 3px rgba(90, 60, 30, 0.06), 0 2px 8px rgba(90, 60, 30, 0.05);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #e9e2d6;
  font-size: 15px;
  line-height: 1.5;
}

/* 手机竖屏列：桌面端居中显示，移动端铺满 */
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 24px rgba(80, 55, 25, 0.12);
}

/* ---------------- 顶部标题栏 ---------------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 18px;
}

.status-time,
.status-battery {
  font-size: 12px;
  color: var(--ink-3);
  width: 42px;
}

.status-battery {
  text-align: right;
}

.status-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink);
}

/* ---------------- 主区域 ---------------- */

.app-main {
  padding: 14px 14px calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 18px);
}

.page[hidden] {
  display: none;
}

/* 页面顶部的灰色引导语（评分页，对应草图横线提示） */
.page-hint {
  margin: 0 2px 14px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------------- 搜索栏 ---------------- */

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--ink-3);
}

.search-bar:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.search-icon {
  flex: 0 0 auto;
}

.search-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}

.search-bar input::placeholder {
  color: var(--ink-3);
}

/* 去掉搜索框自带的清除按钮样式差异，保持简洁 */
.search-bar input::-webkit-search-cancel-button {
  appearance: none;
}

/* ---------------- 餐馆筛选 chips ---------------- */

.filter-chips {
  display: flex;
  gap: 10px;
  margin: 14px 0 16px;
}

.chip {
  flex: 0 0 auto;
  min-width: 64px;
  height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(196, 90, 27, 0.28);
}

/* ---------------- 菜单分组与菜品卡片 ---------------- */

.group + .group {
  margin-top: 20px;
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 2px 10px;
}

.group-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.group-name::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 7px;
  border-radius: 2px;
  background: var(--primary);
  vertical-align: -2px;
}

.group-count {
  font-size: 12px;
  color: var(--ink-3);
}

.dish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 9px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.dish-info {
  min-width: 0;
  flex: 1 1 auto;
}

.dish-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.dish-name .uncertain-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 5px 2px 2px;
  border-radius: 50%;
  background: #d18c2a;
  vertical-align: middle;
}

.dish-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}

.category-tag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}

.category-tag.cat-hot    { background: #fbe9dc; color: #c45a1b; }
.category-tag.cat-cold   { background: #e9f0e3; color: #5c7c43; }
.category-tag.cat-soup   { background: #e6eff2; color: #41717f; }
.category-tag.cat-staple { background: #f3ead9; color: #8a6a32; }
.category-tag.cat-other  { background: #efeae3; color: #857464; }

.uncertain-tag {
  font-size: 11px;
  color: #b07a22;
}

.dish-price {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.dish-price .unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 1px;
}

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

.empty-state {
  text-align: center;
  padding: 64px 28px 40px;
}

.empty-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-2);
}

.empty-tip {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}

/* 空状态里的行动按钮（如「去点菜」） */
.empty-cta {
  display: block;
  min-width: 168px;
  height: 46px;
  margin: 22px auto 0;
  padding: 0 32px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(196, 90, 27, 0.3);
}

/* ---------------- 底部固定 Tab 导航（App 式：图标 + 文字） ---------------- */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 30;
  display: flex;
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.tab {
  flex: 1 1 0;
  height: 56px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 0;
}

.tab-icon svg {
  width: 22px;
  height: 22px;
}

.tab-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(196, 90, 27, 0.3);
}

/* ============================================================
   今日点菜
   ============================================================ */

/* ---------------- 今日推荐 ---------------- */

.combo-section {
  margin-bottom: 20px;
}

.combo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 2px 10px;
}

.combo-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.combo-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 7px;
  border-radius: 2px;
  background: var(--primary);
  vertical-align: -2px;
}

.combo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 9px;
  background: var(--card);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.combo-card:active {
  background: #f4ece2;
}

.combo-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.combo-card-main {
  min-width: 0;
  flex: 1 1 auto;
}

.combo-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.combo-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
}

.combo-card-rest {
  font-size: 11px;
  color: var(--ink-3);
}

.combo-card-role {
  padding: 1px 8px;
  border-radius: 999px;
  background: #e6eff2;
  color: #41717f;
  font-size: 11px;
  font-weight: 600;
}

.combo-card-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.combo-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.combo-card-price .unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 1px;
}

.combo-pick-btn {
  min-height: 38px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(196, 90, 27, 0.25);
}

.combo-card.is-selected .combo-pick-btn {
  background: var(--primary-dark);
  box-shadow: none;
}

.combo-total-line {
  margin: 4px 2px 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.combo-total-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.combo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.combo-hint {
  flex: 1 1 auto;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------------- 通用按钮 ---------------- */

.btn {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-shuffle {
  flex: 0 0 auto;
  background: var(--card);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-card);
}

.btn-copy {
  width: 100%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(196, 90, 27, 0.3);
}

/* ---------------- 我的选择 ---------------- */

.pick-section {
  margin-bottom: 20px;
}

.section-title {
  margin: 0 2px 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 7px;
  border-radius: 2px;
  background: var(--primary);
  vertical-align: -2px;
}

.pick-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pick-label {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.pick-name-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.pick-name-input:focus {
  border-color: var(--primary);
}

.pick-name-input::placeholder {
  color: var(--ink-3);
}

.pick-result {
  min-height: 46px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.pick-selected {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.pick-selected-meta {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

.pick-line {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 14px;
  color: var(--ink);
  word-break: break-all;
}

.pick-hint {
  font-size: 13px;
  color: var(--ink-3);
}

.copy-tip {
  margin: 8px 2px 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------------- 从全部菜单里选 ---------------- */

.allmenu-section {
  margin-bottom: 8px;
}

.allmenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.allmenu-arrow {
  font-size: 12px;
  color: var(--ink-3);
  transition: transform 0.15s ease;
}

.allmenu-toggle[aria-expanded="true"] .allmenu-arrow {
  transform: rotate(180deg);
}

.allmenu-body {
  margin-top: 12px;
}

.allmenu-group + .allmenu-group {
  margin-top: 16px;
}

.allmenu-group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 2px 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}

.allmenu-group-head::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 13px;
  margin-right: 7px;
  border-radius: 2px;
  background: var(--primary);
  vertical-align: -2px;
}

.allmenu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 7px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.allmenu-row:active {
  background: #f4ece2;
}

.allmenu-row.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.allmenu-row-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  word-break: break-all;
}

.allmenu-row .category-tag {
  flex: 0 0 auto;
}

.allmenu-row-price {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ---------------- 轻提示 Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 20px);
  transform: translateX(-50%);
  z-index: 60;
  max-width: 82%;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(51, 40, 32, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  animation: toast-in 0.2s ease;
}

.toast[hidden] {
  display: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ============================================================
   菜单库：餐馆地址 + 导航按钮
   ============================================================ */

.rest-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -3px 2px 10px;
}

.rest-address {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-3);
  word-break: break-all;
}

.rest-pin {
  flex: 0 0 auto;
}

.rest-info .nav-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: var(--card);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.rest-info .nav-btn:active {
  background: var(--primary-soft);
}

/* ============================================================
   汇总出单
   ============================================================ */

.summary-input-section {
  margin-bottom: 18px;
}

.summary-textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1.5px dashed var(--ink-3);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  resize: vertical;
  outline: none;
}

.summary-textarea:focus {
  border-style: solid;
  border-color: var(--primary);
}

.summary-textarea::placeholder {
  color: var(--ink-3);
  line-height: 1.8;
}

.btn-summary-go {
  width: 100%;
  margin-top: 12px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(196, 90, 27, 0.3);
}

.summary-tip {
  margin: 10px 2px 0;
  font-size: 12px;
  color: var(--ink-3);
}

.summary-tip-center {
  text-align: center;
}

/* 解析失败提示框 */
.summary-errors {
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #f2d4b8;
  border-radius: var(--radius);
  background: #fdf1e7;
  color: #a8541a;
  font-size: 12.5px;
}

.summary-errors-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.summary-errors ol {
  margin: 0;
  padding-left: 18px;
}

.summary-errors li + li {
  margin-top: 2px;
}

.summary-error-raw {
  color: #8a5a2b;
  word-break: break-all;
}

/* 分组结果卡片 */
.sum-group {
  padding: 12px 14px 10px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.sum-group-unknown {
  border: 1.5px dashed #e3b778;
  background: #fffaf2;
  box-shadow: none;
}

.sum-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px;
}

.sum-group-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
}

.sum-group-name::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  margin-right: 7px;
  border-radius: 2px;
  background: var(--primary);
  vertical-align: -2px;
}

.sum-group-hint {
  font-size: 11px;
  color: #b07a22;
  text-align: right;
}

.sum-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0 8px;
}

.sum-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.sum-row-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-all;
}

.sum-row-person {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
}

.sum-row-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.sum-row-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.sum-row-price .unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 1px;
}

.sum-row.is-unresolved .sum-row-name {
  color: #9a6414;
}

/* 菜名旁的小标签 */
.sum-tag {
  display: inline-block;
  margin: 0 0 2px 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #efeae3;
  color: #857464;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 17px;
  vertical-align: 2px;
}

.sum-tag-warn {
  background: #fbe2cc;
  color: #b05a14;
}

/* 手动切店 / 归店小按钮 */
.sum-switch {
  display: inline-flex;
  gap: 6px;
}

.sum-switch-btn {
  min-height: 30px;
  padding: 4px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.sum-switch-btn.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* 小计 */
.sum-subtotal {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  text-align: right;
  font-size: 13px;
  color: var(--ink-2);
}

.sum-subtotal b {
  font-size: 15px;
  color: var(--primary);
}

/* 总价大条 */
.sum-grand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  margin: 2px 0 14px;
  border-radius: var(--radius);
  background: var(--primary-soft);
}

.sum-grand-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}

.sum-grand-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

/* 复制文字 / 保存为图片 */
.summary-actions {
  display: flex;
  gap: 10px;
}

.btn-plain {
  flex: 1 1 0;
  background: var(--card);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-card);
}

.btn-save {
  flex: 1 1 0;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(196, 90, 27, 0.3);
}

/* ============================================================
   评分
   ============================================================ */

/* 评分卡片 */
.rate-card {
  padding: 13px 14px 11px;
  margin-bottom: 10px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.rate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rate-name {
  min-width: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.rate-sub {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.rate-date {
  margin-left: 8px;
  color: var(--primary);
  font-weight: 600;
}

/* 星星按钮：触控区域留足 42px */
.rate-stars {
  display: flex;
  gap: 2px;
  margin: 6px 0 2px;
}

.star-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.star-btn:active {
  transform: scale(0.88);
}

.star-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--star-empty);
  transition: fill 0.1s ease;
}

.star-btn.is-on svg {
  fill: var(--primary);
}

.rate-stats {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* 更早的评分（折叠区复用 allmenu-toggle 样式） */
.rate-older {
  margin-top: 2px;
}

.rate-older-toggle {
  min-height: 46px;
}

.rate-older-body {
  margin-top: 10px;
}

/* 提交评分 */
.rate-submit-wrap {
  margin-top: 16px;
}

.rate-submit-wrap[hidden] {
  display: none;
}

.rate-weight-tip {
  margin: 0 2px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

.btn-rate-submit {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(196, 90, 27, 0.3);
}

/* ============================================================
   数据迁移（导出 / 导入）
   ============================================================ */

.data-section {
  margin-top: 28px;
}

.data-card {
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.data-tip {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.data-actions {
  display: flex;
  gap: 10px;
}

.data-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 10px;
  font-size: 14px;
}

/* ============================================================
   今日点菜：定店（今天去哪家）
   ============================================================ */

.store-section {
  margin-bottom: 20px;
}

.store-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 8px;
}

.store-pick-head .section-title {
  margin: 0;
}

.btn-pick-helper {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(196, 90, 27, 0.3);
  font-size: 14px;
}

.store-pick-hint {
  margin: 0 2px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.store-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.store-card:active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.store-card-main {
  min-width: 0;
  flex: 1 1 auto;
}

.store-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.store-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.store-card-rate {
  color: var(--primary);
  font-weight: 600;
}

.store-card-cta {
  flex: 0 0 auto;
  padding: 7px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

/* 定店后顶部固定的锁定条（吸在标题栏下方） */
.store-lock-bar {
  position: sticky;
  top: 54px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -14px -14px 18px; /* 抵消 .app-main 左右内边距，让锁定条通栏 */
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(90, 60, 30, 0.08);
}

.store-lock-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.store-lock-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.store-lock-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

.store-lock-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: var(--card);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.store-nav-btn:active {
  background: var(--primary-soft);
}

.store-switch-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   汇总：单店清单（不再按餐馆分组）
   ============================================================ */

/* 今天去哪家店（店头） */
.sum-store-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--primary-soft);
}

.sum-store-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.sum-store-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
}

.sum-store-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-2);
}

/* 店名和大家不一致的行：高亮 + 提示 + 剔除/改店 */
.sum-row.is-conflict {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #f2d4b8;
  border-radius: 10px;
  background: #fdf1e7;
}

.sum-conflict-msg {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b05a14;
}

.sum-conflict-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sum-fix-btn,
.sum-drop-btn {
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.sum-fix-btn {
  border: 0;
  background: var(--primary);
  color: #fff;
}

.sum-drop-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
}

/* 还没定店时的引导 */
.summary-nostore {
  padding: 20px 16px;
  margin-bottom: 12px;
  border: 1.5px dashed #e3b778;
  border-radius: var(--radius);
  background: #fffaf2;
  text-align: center;
}

.summary-nostore-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}

.summary-nostore-tip {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.summary-nostore .btn {
  min-width: 160px;
}
