/* ============================================================
   甩饭饭 · 设计系统 v2
   1  设计令牌        2  基础与布局      3  顶栏 / 底部导航
   4  通用组件        5  帖子行          6  首页
   7  帖子详情        8  找饭 / 发帖     9  后厨      10 帮助浮层
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 颜色 */
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-2: #fbf7f2;
  --line: #ebe1d5;
  --line-2: #f3ebe1;
  --ink: #2b221c;
  --ink-2: #5b4e44;
  --ink-3: #786a5e;   /* 米白底上约 4.7:1，达到 WCAG AA，不再是一片灰雾 */
  --deep: #2b221c;
  --deep-soft: #43362d;
  --brand: #df5417;
  --brand-2: #b8420d;
  --brand-weak: #fdf0e6;
  --brand-line: #f6d5be;
  --ok: #2f7d4f;
  --ok-weak: #eaf4ee;
  --warn: #a86a0b;
  --warn-weak: #fdf6e8;
  --err: #bf3b2f;
  --err-weak: #fdeeec;
  --pin: #d97706;

  /* 字号：整体抬一档，手机上小字不再要靠猜 */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-base: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --fs-3xl: 32px;

  /* 间距（4 为基准） */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;

  /* 圆角 / 阴影 / 动效 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(43, 34, 28, .04);
  --shadow-2: 0 6px 18px rgba(43, 34, 28, .08);
  --shadow-brand: 0 8px 24px rgba(223, 84, 23, .18);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. 基础与布局 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

img { max-width: 100%; }

h1, h2, h3 { line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--s4); }
.main { padding: var(--s5) 0 var(--s8); }

.muted { color: var(--ink-3); font-size: var(--fs-sm); }
.center { text-align: center; }

/* 双栏：桌面主内容 + 侧栏；手机自动单列 */
.cols { display: block; }
.cols > .col-main { min-width: 0; }
.cols > .col-side { min-width: 0; }
.col-side > .panel:last-child { margin-bottom: 0; }

/* ---------- 3. 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  max-width: 1000px; margin: 0 auto; padding: 0 var(--s4);
  height: 56px; display: flex; align-items: center; gap: var(--s4);
}
.brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 1.02rem; color: var(--ink); white-space: nowrap;
  letter-spacing: .01em;
}
.brand:hover { color: var(--brand); }
.brand .bowl { font-size: 1.1rem; }
.brand-sub { display: none; }

.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-2); white-space: nowrap; font-size: var(--fs-md);
  padding: 5px 10px; border-radius: var(--r-sm); transition: .15s var(--ease);
}
.nav a:hover { color: var(--brand); background: var(--brand-weak); }
.nav a.on { color: var(--brand); background: var(--brand-weak); font-weight: 600; }

.userbox { display: flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.userbox .hello { color: var(--ink-3); font-size: var(--fs-sm); max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

/* 帮助入口按钮 */
.help-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: var(--fs-sm);
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  transition: .15s var(--ease);
}
.help-btn:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-weak); }
.help-btn .qi {
  width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-weak); color: var(--brand); font-size: 10px; font-weight: 800;
}
.help-btn span.tx { display: inline; }

/* 移动端底部导航 */
.tabbar { display: none; }

/* ---------- 4. 通用组件 ---------- */

/* 卡片容器 */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s5);
  box-shadow: var(--shadow-1);
}
.panel > h2 { font-size: var(--fs-lg); margin-bottom: var(--s3); }

/* 卡片头：标题 + 右侧操作 */
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s2);
}
.card-head h2 { font-size: var(--fs-lg); margin: 0; display: flex; align-items: center; gap: 6px; }
.card-head .more { font-size: var(--fs-sm); color: var(--ink-3); white-space: nowrap; }
.card-head .more:hover { color: var(--brand); }
.head-acts { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.card-sub { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--s2); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm); padding: 6px 14px;
  font-size: var(--fs-md); font-family: inherit; line-height: 1.5;
  cursor: pointer; white-space: nowrap;
  transition: .15s var(--ease);
}
.btn:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-weak); }
.btn.primary {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 1px 2px rgba(223, 84, 23, .28);
}
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.small { padding: 3px 10px; font-size: var(--fs-sm); border-radius: 7px; }
.btn.danger:hover { border-color: var(--err); color: var(--err); background: var(--err-weak); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.6;
  padding: 1px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line);
  vertical-align: middle; white-space: nowrap;
}
.badge.anon { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); border-style: dashed; }
.badge.named { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.badge.pin { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.badge.ok { background: var(--ok-weak); color: var(--ok); border-color: #c9e2d3; }
.badge.err { background: var(--err-weak); color: var(--err); border-color: #f4cbc6; }

/* 排序 / 筛选 chip */
.sortbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sortbar a {
  padding: 4px 12px; border-radius: 999px; font-size: var(--fs-sm);
  color: var(--ink-2); border: 1px solid var(--line); background: var(--surface);
  line-height: 1.6; transition: .15s var(--ease);
}
.sortbar a:hover { color: var(--deep); border-color: #d8cabb; background: var(--surface-2); }
.sortbar a.active { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 600; }

.chip-line { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: var(--fs-sm);
  color: var(--ink-2); border: 1px solid var(--line); background: var(--surface);
  line-height: 1.7; transition: .15s var(--ease);
}
.chip b { font-weight: 500; font-size: var(--fs-xs); opacity: .5; }
.chip:hover { text-decoration: none; color: var(--deep); border-color: #d8cabb; background: var(--surface-2); }
.chip.on { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 600; }
.chip.on b { opacity: .8; }
/* 「大咖推荐」来源 chip 走大咖的深绿，一眼和口味标签分开 */
.chip.chip-star { color: #1f5142; background: #f2f8f4; border-color: #cfe3d7; }
.chip.chip-star:hover { color: #163c31; background: #e6f1ea; border-color: #b8d6c6; }
.chip.chip-star.on { background: #1f5142; border-color: #1f5142; color: #fff; }

/* 展示用标签 */
.tag {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  font-size: var(--fs-xs); line-height: 1.75;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2);
  transition: .15s var(--ease);
}
.tag:hover { text-decoration: none; background: var(--deep); color: #fff; border-color: var(--deep); }
.tag.sm { font-size: var(--fs-xs); padding: 0 8px; }
/* 「大咖推荐」来源标：深绿，和口味标签区分开 */
.tag.tag-star {
  color: #1f5142; background: #e6f1ea; border-color: #cfe3d7; font-weight: 600;
}
.tag.tag-star:hover { background: #d9ebe1; color: #163c31; border-color: #b8d6c6; }
.tag-star-ico { margin-right: 3px; }

/* 表单 */
.form-box { max-width: 400px; margin: var(--s8) auto; }
.field { margin-bottom: var(--s4); }
.field > label {
  display: block; font-size: var(--fs-md); font-weight: 600;
  margin-bottom: 5px; color: var(--ink);
}
.field input[type=text], .field input[type=password], .field input[type=number],
.field input[type=file], .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 11px; font-size: var(--fs-base); font-family: inherit;
  background: #fff; color: var(--ink); transition: .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223, 84, 23, .12);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field .hint { color: var(--ink-3); font-size: var(--fs-sm); margin-top: 5px; }
.checkline { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-md); }
.checkline input { width: 15px; height: 15px; accent-color: var(--brand); }
.label-note { color: var(--ink-3); font-weight: 400; font-size: var(--fs-sm); margin-left: 6px; }

/* 提示条 */
.flash {
  padding: 9px 13px; border-radius: var(--r-sm); margin-bottom: var(--s3);
  font-size: var(--fs-md); border: 1px solid; display: flex; gap: 6px; align-items: flex-start;
}
.flash.ok { background: var(--ok-weak); color: var(--ok); border-color: #c9e2d3; }
.flash.error { background: var(--err-weak); color: var(--err); border-color: #f4cbc6; }
.flash.warn { background: var(--warn-weak); color: var(--warn); border-color: #f0e0c4; }

/* 空状态 */
.empty {
  padding: var(--s6) var(--s4); text-align: center;
  color: var(--ink-3); font-size: var(--fs-md);
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r-md);
}

/* 分页 */
.pager { display: flex; gap: 5px; margin-top: var(--s4); align-items: center; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 30px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--ink-2); background: var(--surface); text-align: center;
}
.pager a:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-weak); text-decoration: none; }
.pager .cur { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 600; }

/* 页脚 */
.footer { text-align: center; padding: var(--s6) var(--s4) var(--s8); }
.footer-slogan { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; }
.footer-sub { color: var(--ink-3); font-size: var(--fs-xs); margin-top: 4px; }
.footer-link { color: var(--ink-3); font-size: var(--fs-xs); margin-left: 8px; }
.footer-link:hover { color: var(--brand); }

/* ---------- 5. 帖子行（首页 / 板块 / 找饭通用） ---------- */
.plist { display: block; }

.prow {
  display: flex; align-items: center; gap: var(--s3);
  padding: 7px 10px; border-radius: var(--r-md);
  color: var(--ink); text-decoration: none;
  transition: background .14s var(--ease);
}
.prow + .prow { box-shadow: inset 0 1px 0 var(--line); }
.prow:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }

.prow-thumb {
  position: relative;
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px;
  overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(140deg, #fdf3ea, #f8e6d6);
  border: 1px solid var(--brand-line);
  font-size: 19px; line-height: 1;
}
.prow-thumb .th-emoji {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: inherit; line-height: 1;
}
.prow-thumb img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.prow-main { flex: 1 1 auto; min-width: 0; }
/* 标题行：标题占满剩余宽度，右端挂 1–2 枚口味标签 */
.prow-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.prow-line .prow-title { flex: 1 1 auto; min-width: 0; }
/* 标签占固定一列并右对齐，各行标签竖向成列，不会随标题长短参差 */
.prow-tags { flex: 0 0 auto; display: flex; gap: 4px; max-width: 118px; overflow: hidden; }
.prow-tag {
  font-size: 10.5px; line-height: 16px; font-weight: 500;
  color: var(--ink-3); background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: 4px;
  padding: 0 5px; white-space: nowrap;
}
.prow-title {
  display: block;
  font-size: var(--fs-base); font-weight: 600; line-height: 1.42;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prow:hover .prow-title { color: var(--brand); }
.prow-meta {
  margin-top: 2px; display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-sm); color: var(--ink-3);
  white-space: nowrap; overflow: hidden;
}
.prow-meta .sep { opacity: .45; }
.prow-meta .loc { color: var(--ink-2); }
.prow-meta .who { color: var(--ink-2); font-weight: 600; }
.prow-meta .pin-icon { margin-right: 0; }

.prow-stats {
  flex: 0 0 auto; display: flex; gap: var(--s3);
  font-size: var(--fs-sm); color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.prow-stats b { color: var(--ink-2); font-weight: 600; }

/* 紧凑版（侧栏 / 附近的美食） */
.prow--sm { padding: 6px 8px; gap: 10px; }
.prow--sm .prow-thumb { width: 38px; height: 38px; border-radius: 8px; font-size: 15px; }
.prow--sm .prow-title { font-size: var(--fs-md); font-weight: 600; }
.prow--sm .prow-meta { font-size: var(--fs-xs); }
.prow--sm .prow-stats { font-size: var(--fs-xs); gap: 8px; }
.prow--sm .who { display: none; }

.pin-icon { color: var(--pin); margin-right: 4px; font-size: .9em; }
.img-count { color: var(--ink-3); font-size: var(--fs-xs); margin-left: 5px; }

/* 混在找饭结果里的大咖帖：深绿竖条 + 「大咖」小标，不与圈友帖混淆 */
.prow--star { position: relative; }
.prow--star::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #2b6d59, #1f5142);
}
.prow--star .prow-thumb { background: linear-gradient(140deg, #eef4f0, #dce9e2); border-color: #d5e5db; }
.prow-meta .kol-badge {
  flex: 0 0 auto;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: #1f5142; background: #e6f1ea;
  border: 1px solid #cfe3d7; border-radius: 4px;
  padding: 0 4px; line-height: 15px;
}
.prow-meta .kol-name { color: #1f5142; font-weight: 600; }

/* ---------- 6. 首页 ---------- */
/* Hero：居中一条横幅 */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: linear-gradient(118deg, #b2490f 0%, #9d3a0b 58%, #83300a 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: 22px 28px 18px;
  margin-bottom: var(--s5);
  box-shadow: 0 8px 24px rgba(83, 36, 12, .14);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 620px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-xs); letter-spacing: .14em;
  padding: 3px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  opacity: .96;
}
.hero-title {
  font-size: 1.8rem; font-weight: 800; letter-spacing: .06em;
  margin-top: 9px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hero-desc {
  font-size: var(--fs-sm); opacity: .9; margin-top: 8px; line-height: 1.72;
  max-width: 56ch; text-wrap: balance;
}
.hero-desc strong { font-size: inherit; font-weight: 700; opacity: 1; }
.hero-quote {
  margin-top: 7px; font-size: var(--fs-sm); font-weight: 500;
  color: #f3ddce; letter-spacing: .02em; opacity: .86;
}
.hero-act { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-top: 15px; position: relative; }
.hero-btn {
  background: #fff; color: var(--brand-2); border: none; font-weight: 700;
  padding: 9px 20px; border-radius: 999px; font-size: var(--fs-md);
  display: inline-flex; align-items: center; gap: 5px; transition: .16s var(--ease);
  box-shadow: 0 2px 8px rgba(90, 30, 0, .16);
}
.hero-btn:hover { background: #fff6ef; color: var(--brand-2); transform: translateY(-1px); text-decoration: none; }
.hero-btn.ghost {
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: none;
}
.hero-btn.ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.hero-visits {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 11px; padding: 0;
  font-size: var(--fs-xs); color: #fff; opacity: .72;
  background: none; border: 0; white-space: nowrap;
}
.hero-visits b { font-weight: 800; font-size: var(--fs-base); }
.hv-dot {
  width: 4px; height: 4px; border-radius: 50%; background: #e8c4a6; flex: 0 0 auto;
}
@keyframes hvPulse {
  0% { box-shadow: 0 0 0 0 rgba(185, 246, 202, .7); }
  70% { box-shadow: 0 0 0 6px rgba(185, 246, 202, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 246, 202, 0); }
}

/* 分区入口（首页最上方的两个入口卡） */
.sec-panel { padding-bottom: var(--s4); }
.sec-panel .card-head { margin-bottom: var(--s3); }
.sec-panel .card-head .more { font-weight: 400; }
.sec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s3); }
.sec-card {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  transition: .15s var(--ease);
}
.sec-card:hover {
  text-decoration: none; border-color: #d8cabb;
  background: var(--surface-2); transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.sec-icon {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--brand-weak); border: 1px solid var(--brand-line);
}
.sec-body { min-width: 0; flex: 1 1 auto; display: block; }
.sec-name { font-size: var(--fs-lg); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sec-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-sm); color: var(--ink-2); margin-top: 3px; line-height: 1.62;
}
.sec-count {
  flex: 0 0 auto; align-self: center;
  display: inline-flex; align-items: center; gap: 1px;
  padding-left: 8px;
  font-size: var(--fs-sm); color: var(--ink-3); white-space: nowrap;
}
.sec-go { font-style: normal; font-size: 15px; opacity: .55; margin-left: 1px; }
.sec-card:hover .sec-count { color: var(--brand); }
.sec-card:hover .sec-go { opacity: 1; }

/* 侧栏小提示 */
.tip-card { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); }
.tip-card h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.tip-card p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.tip-card .btn { margin-top: var(--s3); }

/* 附近的美食：城市切换 */
.nearby-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.nearby-head h2 { margin: 0; font-size: var(--fs-lg); display: flex; align-items: center; gap: 5px; }
.cs { position: relative; flex: 0 0 auto; }
.cs-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.6;
  padding: 3px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  max-width: 140px;
}
.cs-btn > span:not(.cs-pin) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-btn:hover { border-color: var(--deep); color: var(--ink); }
.cs-btn[aria-expanded="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.cs-caret { font-style: normal; font-size: 9px; opacity: .8; }
.cs-menu {
  position: absolute; right: 0; top: calc(100% + 7px); z-index: 70;
  width: min(280px, 76vw); padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}
.cs-hint { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 7px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 32vh; overflow-y: auto; }
.cs-geo {
  width: 100%; margin-top: 9px; padding: 7px; font-family: inherit; font-size: var(--fs-sm);
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  background: transparent; color: var(--brand-2); cursor: pointer;
}
.cs-geo:hover { border-color: var(--brand); background: var(--brand-weak); }
.cs-geo:disabled { opacity: .6; cursor: default; }
.nearby-sub { font-size: var(--fs-xs); color: var(--ink-3); margin: 1px 0 6px; }
.nearby-more { margin-top: var(--s2); font-size: var(--fs-sm); text-align: right; }
.nearby-more a { color: var(--ink-3); }
.nearby-more a:hover { color: var(--brand); }
.nearby-more a + a { margin-left: 10px; }
.nearby-more .nm-star { color: #1f5142; }

/* 定位提示条 */
.nv-toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 90;
  max-width: 88vw; padding: 8px 16px; border-radius: 999px;
  background: rgba(43, 34, 28, .94); color: #fff; font-size: var(--fs-sm);
  box-shadow: var(--shadow-2);
}

/* ---------- 7. 帖子详情 ---------- */
.post-head { border-bottom: 1px solid var(--line-2); padding-bottom: var(--s3); margin-bottom: var(--s4); }
.post-head h1 { font-size: 1.28rem; margin-bottom: var(--s2); word-break: break-word; }
.post-meta {
  color: var(--ink-3); font-size: var(--fs-sm);
  display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center;
}
.post-meta a { color: var(--ink-2); }
.post-meta a:hover { color: var(--brand); }
.post-content { white-space: pre-wrap; word-break: break-word; font-size: var(--fs-base); line-height: 1.85; }
.post-content a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }

.post-loc {
  margin-top: var(--s3); font-size: var(--fs-md); color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
}
.pl-main { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-width: 0; }
.pl-sub { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-loc a { color: var(--ink-2); }
.post-loc .place-name { color: var(--ink); }
.post-loc .place-name::before { content: "· "; color: var(--ink-3); }
.map-link {
  margin-left: 2px; font-size: var(--fs-xs); color: var(--ink-3) !important;
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px;
  white-space: nowrap;
}
.map-link:hover { color: var(--brand) !important; border-color: var(--brand-line); text-decoration: none; }
.loc-tag { color: var(--warn); font-weight: 600; }
.loc-addr { color: var(--ink-3); font-size: var(--fs-sm); }
.nav-link {
  margin-left: 2px; font-size: var(--fs-xs); color: var(--ink-2) !important;
  border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 999px; padding: 1px 9px; white-space: nowrap;
}
.nav-link:hover { background: #fff; text-decoration: none; }
.post-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: var(--s3); }
.post-acts { margin-top: var(--s4); display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }

/* 图片：统一缩略图，点击放大 */
.img-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.img-grid a {
  position: relative; display: block; width: 132px; height: 132px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface-2); cursor: zoom-in;
}
.img-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.img-grid a:hover img { transform: scale(1.05); }
.img-grid a::after {
  content: "⤢"; position: absolute; right: 6px; bottom: 4px; font-size: 13px;
  color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity .2s;
}
.img-grid a:hover::after { opacity: .95; }
/* 只有一张图时给大一点，别缩成小方块 */
.img-grid a:only-child { width: 188px; height: 188px; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 220; display: none;
  align-items: center; justify-content: center; padding: var(--s5);
  background: rgba(22, 14, 8, .97);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 84vh; border-radius: 8px;
  object-fit: contain; box-shadow: 0 12px 44px rgba(0, 0, 0, .55);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.35rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  color: #fff; font-size: var(--fs-sm); letter-spacing: .08em; opacity: .8;
}
body.lb-open { overflow: hidden; }

/* 点赞 */
.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 16px; cursor: pointer; font-family: inherit;
  font-size: var(--fs-md); color: var(--ink-2); transition: .15s var(--ease);
}
.like-btn:hover { border-color: #f4cbc6; color: var(--err); background: var(--err-weak); }
.like-btn.liked { background: var(--err-weak); border-color: #f4cbc6; color: var(--err); font-weight: 600; }

/* 评论 */
.comment { padding: var(--s3) 0; border-bottom: 1px dashed var(--line-2); }
.comment:last-child { border-bottom: none; }
.comment .who { font-weight: 600; font-size: var(--fs-md); }
.comment .who .muted { font-weight: 400; margin-left: var(--s2); }
.comment .body { white-space: pre-wrap; word-break: break-word; margin-top: 2px; font-size: var(--fs-base); line-height: 1.75; }
.comment .acts { margin-top: 4px; }

/* 跟贴配图：选图预览 + 缩略图 */
.cm-form { margin-bottom: var(--s4); }
/* 文件框藏起来但保持可点（display:none 在部分浏览器里点 label 弹不出选择框） */
.cm-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.cm-tools { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.cm-pick {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px dashed var(--brand-line); background: var(--surface-2);
  color: var(--ink-2); border-radius: 999px; padding: 4px 12px;
  font-size: var(--fs-sm); cursor: pointer; line-height: 1.6;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.cm-pick:hover { border-color: var(--brand); color: var(--brand); }
.cm-pick em { font-style: normal; font-size: var(--fs-xs); color: var(--ink-3); }
.cm-hint { font-size: var(--fs-xs); color: var(--ink-3); }
.cm-previews { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cm-previews:not(:empty) { margin: 0 0 var(--s2); }
.cm-pv {
  position: relative; width: 68px; height: 68px; border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid var(--line); background: var(--surface-2);
}
.cm-pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-pv-x {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; padding: 0;
  border: none; border-radius: 50%; background: rgba(22, 14, 8, .6); color: #fff;
  font-size: 11px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cm-pv-x:hover { background: var(--err); }
.cm-grid { margin-top: var(--s2); gap: 6px; }
.cm-grid a { width: 96px; height: 96px; border-radius: var(--r-sm); }
.cm-grid a:only-child { width: 132px; height: 132px; }

/* 掌柜补地点 */
.admin-loc { margin-top: var(--s4); border-top: 1px dashed var(--line-2); padding-top: var(--s3); }
.admin-loc summary { cursor: pointer; font-size: var(--fs-sm); color: var(--ink-3); list-style: none; }
.admin-loc summary::-webkit-details-marker { display: none; }
.admin-loc summary::before { content: "✎ "; }
.admin-loc summary:hover { color: var(--brand); }
.admin-loc input[type=text] {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 10px; font-size: var(--fs-md); font-family: inherit; background: #fff; margin-top: var(--s2);
}
.admin-loc input[type=text]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223, 84, 23, .12); }
.loc-edit-row { display: flex; gap: var(--s2); }
.loc-edit-row input { flex: 1; min-width: 0; }

/* ---------- 8. 找饭 / 发帖 ---------- */
.find-form { display: flex; gap: var(--s2); margin-bottom: var(--s3); }
.find-form input[type=text] {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 12px; font-size: var(--fs-base); font-family: inherit; background: #fff;
}
.find-form input[type=text]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223, 84, 23, .12); }

.filter { border-top: 1px solid var(--line-2); padding-top: var(--s3); }
.find-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; }
.find-row:last-child { margin-bottom: 0; }
.find-label {
  flex: 0 0 auto; width: 74px; padding-top: 4px;
  font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap;
}
.find-more { margin-top: var(--s3); }
.find-more > summary {
  cursor: pointer; font-size: var(--fs-sm); color: var(--brand-2); list-style: none;
  padding: 5px 0; display: inline-flex; align-items: center; gap: 4px;
}
.find-more > summary::-webkit-details-marker { display: none; }
.find-more > summary::after { content: "▾"; font-size: 10px; opacity: .65; margin-left: 3px; }
.find-more[open] > summary::after { content: "▴"; }
.find-more > summary:hover { color: var(--brand); }
.find-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.find-head h2 { margin: 0; font-size: var(--fs-lg); }

/* 发帖：地点与标签 */
.loc-row { display: flex; gap: var(--s2); align-items: stretch; }
.loc-picker { position: relative; flex: 1; min-width: 0; }
.loc-picker > input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 11px; font-size: var(--fs-base); font-family: inherit; background: #fff; color: var(--ink);
}
.loc-picker > input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223, 84, 23, .12); }
.loc-row > #placeInput, .loc-field > input[type=text] {
  width: 100%; margin-top: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 11px; font-size: var(--fs-base); font-family: inherit; background: #fff; color: var(--ink);
}
.loc-field > input[type=text]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223, 84, 23, .12); }
.geo-btn { white-space: nowrap; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); max-height: 344px; overflow: auto;
  overscroll-behavior: contain;
}
/* 定位结果的小标题：说明这串是什么 */
.ac-head {
  position: sticky; top: 0; z-index: 1;
  padding: 6px 12px; font-size: var(--fs-xs); color: var(--ink-3);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.ac-item {
  padding: 8px 12px; font-size: var(--fs-md); cursor: pointer;
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
}
.ac-item:hover, .ac-item:active { background: var(--brand-weak); }
.ac-prov { color: var(--ink-3); font-size: var(--fs-xs); white-space: nowrap; }
.ac-empty { padding: 10px 12px; color: var(--ink-3); font-size: var(--fs-sm); }

/* 高德检索结果：店名一行、地址一行 */
.ac-item.poi { align-items: flex-start; min-height: 52px; }
.ai-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ai-main b {
  font-weight: 600; font-size: var(--fs-md); color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ai-main em {
  font-style: normal; font-size: var(--fs-xs); color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 选好地点后的一行：城市 · 区 · 街道 + 导航 */
.loc-done {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  margin-top: var(--s2); font-size: var(--fs-sm); color: var(--ink-2);
}
.loc-done[hidden] { display: none; }
.ld-text { flex: 1 1 auto; min-width: 0; }
.ld-nav {
  white-space: nowrap; font-size: var(--fs-xs); border-radius: 999px; padding: 2px 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2) !important;
}
.ld-nav:hover { background: #fff; text-decoration: none; }
.ld-nav[hidden] { display: none; }

.tag-group { margin-bottom: var(--s2); }
.tag-group-name { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 5px; }
.tag-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { position: relative; cursor: pointer; }
.tag-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tag-chip span {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: var(--fs-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: .15s var(--ease); user-select: none;
}
.tag-chip input:checked + span {
  background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 600;
}
.tag-chip input:disabled + span { opacity: .35; cursor: not-allowed; }
.tag-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(223, 84, 23, .18); }

/* ---------- 9. 后厨（后台） ---------- */
.admin-nav { display: flex; gap: 5px; margin-bottom: var(--s4); flex-wrap: wrap; }
.admin-nav a {
  padding: 4px 13px; border-radius: var(--r-sm); font-size: var(--fs-md);
  color: var(--ink-2); border: 1px solid var(--line); background: var(--surface);
}
.admin-nav a:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-weak); text-decoration: none; }
.admin-nav a.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s3) var(--s4);
}
.stat-card .num { font-size: 1.45rem; font-weight: 700; color: var(--brand-2); line-height: 1.3; }
.stat-card .lbl { color: var(--ink-3); font-size: var(--fs-sm); }

table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.tbl th { color: var(--ink-3); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl code {
  background: var(--brand-weak); padding: 1px 7px; border-radius: 5px;
  font-size: .95em; letter-spacing: .05em; color: var(--brand-2);
}
.inline-form { display: inline; }
.row-acts { white-space: nowrap; }
.row-acts .btn { margin-right: 4px; }

/* ---------- 10. 帮助浮层 ---------- */
.help-modal {
  position: fixed; inset: 0; z-index: 230; display: none;
  align-items: center; justify-content: center; padding: var(--s4);
  background: rgba(30, 20, 12, .46);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.help-modal.open { display: flex; }
.help-card {
  width: min(520px, 100%); max-height: min(84vh, 660px); overflow: auto;
  background: var(--surface); border-radius: var(--r-lg);
  padding: var(--s5) var(--s5) var(--s4);
  box-shadow: 0 24px 60px rgba(30, 20, 12, .3);
  animation: helpPop .18s var(--ease);
}
@keyframes helpPop {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.help-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.help-head h3 { font-size: var(--fs-base); }
.help-head p { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }
.help-x {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: var(--surface-2); color: var(--ink-3); font-size: 14px; cursor: pointer;
}
.help-x:hover { background: var(--brand-weak); color: var(--brand); }
.help-list { list-style: none; margin-top: var(--s4); display: grid; gap: 13px; }
.help-list li { display: flex; gap: 10px; align-items: flex-start; }
.help-n {
  flex: 0 0 auto; width: 21px; height: 21px; margin-top: 1px;
  border-radius: 7px; background: var(--brand-weak); color: var(--brand-2);
  font-size: var(--fs-xs); font-weight: 700; display: grid; place-items: center;
}
.help-list b { display: block; font-size: var(--fs-md); }
.help-list p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; margin-top: 1px; }
.help-foot {
  margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line-2);
  display: flex; gap: var(--s2); flex-wrap: wrap;
}
body.help-open { overflow: hidden; }

/* ---------- 11. 大咖探店 ---------- */
.star-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.star-head h2 { font-size: var(--fs-xl); display: flex; align-items: center; gap: 6px; }
.star-sub { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 6px; line-height: 1.72; max-width: 62ch; text-wrap: pretty; }
.star-sub b { color: var(--ink); font-weight: 600; }
.star-head-stat { font-size: var(--fs-sm); color: var(--ink-3); white-space: nowrap; }
.star-head-stat b { color: var(--brand); font-size: var(--fs-lg); font-weight: 800; }

/* 大咖头像墙：先挑人，再看店 */
.kol-wall { padding: var(--s4) var(--s4) var(--s3); }
.kw-grid {
  display: grid; gap: var(--s3) var(--s2);
  grid-template-columns: repeat(auto-fit, minmax(96px, 118px));
  justify-content: space-between;
  margin-top: var(--s3);
}
.kw-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px 9px; border: 1px solid transparent; border-radius: var(--r-md);
  background: none; cursor: pointer; color: var(--ink-2); font: inherit;
  transition: .16s var(--ease);
}
.kw-item:hover { background: var(--surface-2); color: var(--ink); }
.kw-item.on { background: var(--brand-weak); border-color: var(--brand-line); color: var(--ink); }
.kw-av {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(140deg, #f4711f, #c1440c); color: #fff;
  font-weight: 800; font-size: var(--fs-xl);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
  transition: .18s var(--ease);
}
.kw-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kw-item:hover .kw-av { transform: translateY(-2px); }
.kw-item.on .kw-av { box-shadow: 0 0 0 3px var(--brand); }
.kw-name {
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kw-n { font-size: 11px; color: var(--ink-3); }

/* 首页「大咖新片」里的头像小条：点一下直达那位大咖 */
.teaser-kols { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--s2); }
.tk { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tk:hover { text-decoration: none; color: var(--ink); }
.tk-av {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  display: grid; place-items: center; background: linear-gradient(140deg, #f4711f, #c1440c);
  color: #fff; font-size: var(--fs-sm); font-weight: 700;
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
  transition: .16s var(--ease);
}
.tk-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk:hover .tk-av { box-shadow: 0 0 0 2px var(--brand); transform: translateY(-1px); }
.tk-name { font-size: var(--fs-xs); max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-hint { font-size: var(--fs-xs); color: var(--ink-3); margin-left: auto; }

/* 逐批展开 */
.scard-cell { display: flex; min-width: 0; }
.scard-grid[data-fold] { margin-bottom: 0; }
.fold-bar { display: flex; justify-content: center; margin-top: var(--s3); }
.fold-btn { min-width: 200px; }
.star-note {
  font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.8;
  text-align: center; margin: var(--s3) auto var(--s2); max-width: 62ch;
}
.star-note a { color: var(--brand); }

/* 帖子详情：店名待补的征集条 */
.ask-name {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: var(--s4); padding: 11px 14px;
  background: var(--brand-weak); border: 1px solid var(--brand-line);
  border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.75;
}
.ask-name b { color: var(--brand-2); }


.kol-av {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #f4711f, #c1440c);
  color: #fff; font-weight: 700; font-size: var(--fs-md);
}
.kol-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kol-av.lg { width: 40px; height: 40px; font-size: var(--fs-lg); }
.kol-av.xl { width: 64px; height: 64px; font-size: var(--fs-2xl); }
.kol-av.ph { background: var(--surface-2); border: 1px solid var(--line); }

/* 大咖区块 */
.star-block { padding: var(--s4); }
.star-block-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.star-block-id { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.star-block-id:hover { text-decoration: none; color: var(--ink); }
.star-block-txt { display: flex; flex-direction: column; min-width: 0; }
.star-block-txt b { font-size: var(--fs-lg); }
.star-block-sub { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.star-block-sub .sep { margin: 0 4px; font-style: normal; }
.star-block-bio { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s2); line-height: 1.7; }
.star-block .more { font-size: var(--fs-sm); color: var(--brand); white-space: nowrap; margin-left: auto; }

/* 探店卡片：竖排封面 + 标题 + 店名 */
.scard-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3); margin-top: var(--s3);
}
.scard-grid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.scard-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.scard-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.star-teaser .card-head { margin-bottom: var(--s2); }
.scard { display: flex; flex-direction: column; gap: 5px; color: var(--ink); min-width: 0; height: 100%; }
.scard:hover { text-decoration: none; color: var(--ink); }
.scard-fig {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.scard-fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.scard:hover .scard-fig img { transform: scale(1.035); }
.scard-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; }
.scard-play {
  position: absolute; left: 6px; bottom: 6px;
  font-size: 10.5px; color: #fff; background: rgba(30, 16, 6, .55);
  padding: 1px 7px; border-radius: 999px;
}
.scard-title {
  font-size: var(--fs-md); font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.scard-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: var(--ink-3); }
.scard-foot {
  align-self: flex-start; margin-top: auto;
  font-size: 11px; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line-2);
  padding: 0 7px; border-radius: 999px;
}
.scard-place {
  color: var(--brand); font-weight: 600;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scard-kol {
  background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--ink-2); padding: 0 6px; border-radius: 999px;
}

/* 单大咖页头部 */
.kol-hero { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.kol-hero-main { flex: 1 1 260px; min-width: 0; }
.kol-hero-name { font-size: var(--fs-xl); font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kol-hero-bio { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 5px; line-height: 1.7; }
.kol-hero-sub { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 5px; }
.kol-hero-sub b { color: var(--brand); font-size: var(--fs-base); }

/* 帖子详情：来源条 + 封面大图 */
.src-bar {
  display: flex; align-items: center; gap: 10px;
  margin-top: var(--s4); padding: 9px 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.src-txt { flex: 1 1 auto; min-width: 0; }
.src-name { font-size: var(--fs-md); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.src-sub { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.src-sub .sep { margin: 0 4px; font-style: normal; }
.cover-shot {
  display: block; margin-top: var(--s4); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
}
.cover-shot img { display: block; width: 100%; height: auto; }

/* ---------- 12. 响应式 ---------- */
/* 平板以上：首页双栏 */
@media (min-width: 900px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: var(--s3); align-items: start; }
  .brand-sub {
    display: inline; font-size: var(--fs-xs); font-weight: 500;
    color: var(--ink-3); margin-left: 8px; letter-spacing: .04em;
  }
}

/* 平板：卡片别挤成四列 */
@media (max-width: 1023px) and (min-width: 720px) {
  .scard-grid, .scard-grid.wide, .scard-grid.four, .scard-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 手机 */
@media (max-width: 719px) {
  html { font-size: 15px; }
  .wrap { padding: 0 var(--s3); }
  .main { padding: var(--s3) 0 var(--s6); }

  /* 顶栏：只留品牌 + 帮助 + 用户，导航挪到底部 */
  .topbar .inner { height: 52px; gap: var(--s2); }
  .nav { display: none; }
  .brand { font-size: .98rem; }
  .help-btn span.tx { display: none; }
  .help-btn { padding: 4px 8px; }

  /* 底部导航 */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: flex; padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
    font-size: 10.5px; color: var(--ink-3); padding: 3px 0; border-radius: 10px;
    line-height: 1.3;
  }
  .tabbar a .ti { font-size: 17px; line-height: 1.1; }
  .tabbar a.on { color: var(--brand); font-weight: 600; }
  .tabbar a.tb-main .ti {
    width: 34px; height: 22px; border-radius: 999px; background: var(--brand);
    color: #fff; display: grid; place-items: center; font-size: 15px;
    box-shadow: 0 2px 8px rgba(223, 84, 23, .35);
  }
  .tabbar a.tb-main { color: var(--brand); font-weight: 600; }
  body { padding-bottom: 60px; }

  .panel { padding: var(--s4); border-radius: var(--r-md); margin-bottom: var(--s2); }
  .panel > h2, .card-head h2 { font-size: var(--fs-base); }

  /* Hero 变紧凑（仍然居中） */
  .hero {
    padding: 16px 16px 15px; border-radius: var(--r-md); margin-bottom: var(--s3);
  }
  .hero-inner { max-width: none; width: 100%; }
  .hero-title { font-size: 1.5rem; margin-top: 6px; }
  .hero-desc { font-size: var(--fs-xs); line-height: 1.66; margin-top: 6px; }
  .hero-quote { display: none; }
  .hero-act { width: 100%; gap: var(--s2); margin-top: 12px; }
  .hero-btn { flex: 1; justify-content: center; padding: 8px 14px; font-size: var(--fs-md); }
  .hero-visits { margin-top: 9px; font-size: 11px; padding: 0; }
  .hero-visits b { font-size: var(--fs-md); }

  /* 分区入口：竖排两行 */
  .sec-list { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .sec-panel .card-head .more { display: none; }
  .sec-card { padding: 10px 12px; gap: 10px; align-items: center; }
  .sec-icon { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
  .sec-name { font-size: var(--fs-md); }
  .sec-desc { -webkit-line-clamp: 2; font-size: var(--fs-xs); margin-top: 1px; }
  .sec-count { font-size: var(--fs-xs); }

  /* 帖子行更紧 */
  .prow { padding: 8px; gap: 10px; }
  .prow-thumb { width: 46px; height: 46px; border-radius: 9px; font-size: 17px; }
  .prow-title { font-size: var(--fs-md); }
  .prow-meta { font-size: var(--fs-xs); gap: 5px; }
  .prow-stats { gap: 8px; font-size: var(--fs-xs); }
  .prow-meta .hide-sm { display: none; }
  .prow--sm .prow-thumb { width: 36px; height: 36px; font-size: 14px; }

  /* 图片缩略图一行三张 */
  .img-grid { gap: 7px; }
  .img-grid a { width: calc((100% - 14px) / 3); height: auto; aspect-ratio: 1 / 1; }
  .img-grid a:only-child { width: 62%; }
  .lightbox { padding: 10px; }
  .lightbox img { max-height: 78vh; }
  .lb-close { width: 36px; height: 36px; top: 10px; right: 10px; }
  .lb-prev, .lb-next { width: 36px; height: 36px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }

  /* 表单 */
  .loc-row { flex-direction: column; align-items: stretch; }
  .geo-btn { width: 100%; }
  .form-box { margin: var(--s4) 0; }
  .field textarea { min-height: 130px; }

  /* 找饭筛选 */
  .find-form { flex-wrap: nowrap; }
  .find-form input[type=text] { flex: 1 1 auto; min-width: 0; }
  .find-row { flex-direction: column; gap: 4px; }
  .find-label { width: auto; padding-top: 0; }
  .find-label::after { content: "："; }

  .nearby-more { text-align: left; }
  .cs-menu { width: min(260px, 82vw); }

  /* 大咖探店：两列封面 */
  .scard-grid, .scard-grid.wide, .scard-grid.four, .scard-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) 10px; }
  .kol-wall { padding: var(--s3); }
  /* 5 位大咖正好铺满一行：auto-fit 会折掉空轨道，1fr 把剩余宽度均分，
     右下角不会再空出一块。名字允许折两行，长名不被截断。 */
  .kw-grid { grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    justify-content: stretch; gap: 6px 2px; }
  .kw-item { padding: 8px 2px 7px; gap: 5px; }
  .kw-av { width: 48px; height: 48px; font-size: var(--fs-base); }
  .kw-name { font-size: 11px; line-height: 1.25; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    text-align: center; word-break: break-all; }
  .kw-n { font-size: 10px; }
  .tk-hint { display: none; }
  .fold-btn { width: 100%; }
  .scard-title { font-size: var(--fs-sm); }
  .scard-meta { gap: 2px 6px; }
  .scard-date { flex: 1 0 100%; }
  .star-head h2 { font-size: var(--fs-lg); }
  .star-head-stat { font-size: var(--fs-xs); }
  .star-block { padding: var(--s3); }
  .kol-hero { gap: var(--s3); }
  .kol-av.xl { width: 52px; height: 52px; font-size: 20px; }
  .kol-hero-name { font-size: var(--fs-lg); }

  .footer { padding: var(--s5) var(--s3) var(--s6); }
}

/* 极窄屏 */
@media (max-width: 360px) {
  .prow-stats .st-c { display: none; }
}

/* 「求店名」小标 */
.scard-ask {
  font-size: 10.5px; color: var(--brand-2); font-weight: 600;
  background: #fff; border: 1px solid var(--brand-line);
  padding: 0 6px; border-radius: 999px;
}
/* hidden 优先级高于 .scard-cell 的 flex */
.scard-cell[hidden] { display: none !important; }

/* ============================================================
   v3 首页：饭票 · 档口 · 大咖入口
   目标：一眼看出「这是一桌人吃出来的名单」，不是又一个内容站
   ============================================================ */

/* ---- Hero：票根质感 ---- */
.hero { padding: 22px 28px 18px; }
.hero-title { margin-top: 9px; }
.ht-txt { position: relative; }
/* 印章：手写感的「亲测好吃」 */
.hero-seal {
  position: absolute; right: 20px; top: 20px; z-index: 2;
  width: 60px; height: 60px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: .08em;
  color: rgba(255, 255, 255, .9); transform: rotate(-9deg);
  border: 2px solid rgba(255, 255, 255, .5); border-radius: 10px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .13);
  text-align: center; pointer-events: none; display: none;
}
.hero-tear { display: none; }

/* ---- 分区卡：档口编号 ---- */
.sec-card { position: relative; overflow: hidden; }
.sec-no {
  position: absolute; right: 10px; bottom: -20px; z-index: 0;
  font-size: 62px; font-weight: 900; line-height: 1; letter-spacing: -.05em;
  color: var(--brand); opacity: .055; pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.sec-body, .sec-icon, .sec-count { position: relative; z-index: 1; }

/* ---- 区块小标 ---- */
.head-note {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--ok); background: var(--ok-weak);
  border: 1px solid #d3e8dc; border-radius: 999px;
  padding: 0 7px; margin-left: 2px;
}

/* ---- 大咖入口：深色门头 + 紧凑片单 ---- */
.star-gate { padding: 0; overflow: hidden; }
.gate-top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 18px;
  background: linear-gradient(100deg, #1f5142 0%, #163c31 100%);
  color: #fff;
}
.gate-id { min-width: 0; }
.gate-tag {
  font-size: 10.5px; font-weight: 500; letter-spacing: .06em;
  color: #9ed3bc; margin-left: 8px; vertical-align: 2px;
}
.gate-id h2 { font-size: var(--fs-lg); color: #fff; }
.gate-sub { font-size: var(--fs-sm); color: rgba(255, 255, 255, .68); margin-top: 3px; }
.gate-side { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.gate-avs { display: flex; padding-left: 8px; }
.gate-av {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  margin-left: -8px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #2b6152; color: #d9f0e4; font-size: 12px; font-weight: 700;
  border: 2px solid #24594a;
  transition: transform .15s var(--ease), border-color .15s var(--ease);
}
.gate-av:hover { transform: translateY(-2px); border-color: #fff; }
.gate-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gate-enter {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-sm); color: #fff; white-space: nowrap;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; padding: 4px 12px;
  transition: .15s var(--ease);
}
.gate-enter b { font-weight: 700; }
.gate-enter:hover { background: rgba(255, 255, 255, .22); color: #fff; text-decoration: none; }

.glist { padding: 6px 10px 10px; }
.grow {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--r-sm);
  color: var(--ink); transition: background .14s var(--ease);
}
.grow + .grow { box-shadow: inset 0 1px 0 var(--line-2); }
.grow:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.grow-thumb {
  flex: 0 0 auto; width: 76px; height: 45px; border-radius: 7px;
  overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(140deg, #eef4f0, #dce9e2);
  border: 1px solid var(--line);
}
.grow-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grow-ph { font-size: 16px; opacity: .7; }
.grow-main { flex: 1 1 auto; min-width: 0; }
.grow-title {
  display: block; font-size: var(--fs-md); font-weight: 600; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grow:hover .grow-title { color: var(--brand); }
.grow-meta {
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
  font-size: var(--fs-xs); color: var(--ink-3);
  white-space: nowrap; overflow: hidden;
}
.grow-meta .sep { opacity: .4; font-style: normal; }
.grow-kol { color: var(--brand-2); font-weight: 600; }
.grow-place { color: var(--ink-2); }
.grow-stat {
  flex: 0 0 auto; font-size: var(--fs-xs); color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .hero { padding: 16px 16px 15px; }
  .hero-title { font-size: 1.45rem; }
  .gate-top { padding: 12px 14px; gap: 10px; }
  .gate-side { margin-left: 0; width: 100%; justify-content: space-between; }
  .gate-sub { font-size: var(--fs-xs); }
  .grow { gap: 9px; padding: 6px 6px; }
  .grow-thumb { width: 62px; height: 38px; }
  .grow-stat { display: none; }
  .grow-title { font-size: var(--fs-sm); }
  .sec-no { font-size: 34px; left: 34px; }
}

/* 大咖板块的标签条 */
.star-tags {
  flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px dashed var(--line);
}
.star-tags-lab {
  font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .06em;
  margin-right: 2px;
}

/* 大咖排序条：默认（播放前 3 置顶）/ 按播放量 / 按日期 */
.star-sort {
  flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.sort-opt {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: var(--fs-sm); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 11px; background: var(--surface);
  transition: .14s var(--ease);
}
.sort-opt span { font-size: 10.5px; color: var(--ink-3); }
.sort-opt:hover {
  border-color: var(--brand-line); background: var(--brand-weak);
  color: var(--brand-2); text-decoration: none;
}
.sort-opt.on { background: #1f5142; border-color: #1f5142; color: #fff; font-weight: 600; }
.sort-opt.on span { color: rgba(255, 255, 255, .68); }

/* 卡片左上角「最火」小旗（默认排序里的播放量 Top3） */
.scard-hot {
  position: absolute; left: 6px; top: 6px; z-index: 1;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: linear-gradient(100deg, #df5417, #b8420d);
  padding: 1px 6px; border-radius: 4px;
  box-shadow: 0 1px 5px rgba(120, 44, 6, .3);
}

/* 侧栏的「附近的美食」一行更窄，只留一枚标签，别把标题挤没 */
.prow--sm .prow-tag:nth-child(2) { display: none; }
.prow--sm .prow-tags { max-width: 80px; }
.prow--sm .prow-tag { font-size: 10px; line-height: 15px; }

/* 热门置顶区与「其余按日期」之间的分界 */
.scard-sep {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 0; padding-top: 8px;
  font-size: var(--fs-xs); color: var(--ink-3);
  border-top: 1px dashed var(--line);
}

/* ============================================================
   11  饭局 / 请帖  ｜  帖子里组一桌，发张请帖，到点收摊
   ============================================================ */

/* ---- 评论区入口 ---- */
.dinner-jump { border-color: var(--brand-line); color: var(--brand); background: var(--brand-weak); }
.dinner-jump:hover { background: var(--brand); color: #fff; }

.dinner-box {
  border: 1px dashed var(--brand-line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fffaf5, var(--surface));
  margin-bottom: var(--s4);
  overflow: hidden;
}
.dinner-box > summary {
  display: flex; align-items: center; gap: var(--s3);
  padding: 11px 14px; cursor: pointer; list-style: none;
  transition: background .15s var(--ease);
}
.dinner-box > summary::-webkit-details-marker { display: none; }
.dinner-box > summary:hover { background: var(--brand-weak); }
.db-ico { font-size: 20px; line-height: 1; }
.db-txt { display: flex; flex-direction: column; min-width: 0; }
.db-txt b { font-size: var(--fs-base); }
.db-txt em { font-style: normal; font-size: var(--fs-sm); color: var(--ink-3); }
.db-cta { margin-left: auto; font-size: var(--fs-sm); color: var(--brand); font-weight: 600; white-space: nowrap; }
.dinner-box[open] > summary { border-bottom: 1px dashed var(--brand-line); }
.db-close { display: none; }
.dinner-box[open] .db-open { display: none; }
.dinner-box[open] .db-close { display: inline; }
.dinner-form { padding: var(--s4) 14px var(--s3); }
.dinner-form .field { margin-bottom: var(--s3); }
.dinner-form textarea { min-height: 74px; }
.dinner-form input[type=datetime-local] {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 10px; font-size: var(--fs-base); font-family: inherit; background: #fff; color: var(--ink);
}
.dinner-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.dinner-quick .chip { font-size: var(--fs-xs); padding: 2px 9px; cursor: pointer; }
.dinner-submit { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.dinner-submit .muted { font-size: var(--fs-sm); }

.dinner-guest {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; margin-bottom: var(--s4);
  border: 1px dashed var(--line); border-radius: var(--r-md);
  background: var(--surface-2); font-size: var(--fs-sm); color: var(--ink-2);
}
.dg-ico { font-size: 18px; }

/* ---- 进行中的饭局卡（饭票） ---- */
.dinner-card {
  position: relative; margin: 18px 0 var(--s4);
  padding: 16px 15px 12px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fffaf4 0%, #fff 62%);
  box-shadow: var(--shadow-1);
}
.dinner-card::after {  /* 右侧撕口 */
  content: ""; position: absolute; right: -1px; top: 12px; bottom: 12px; width: 5px;
  background: radial-gradient(circle at 5px 4px, var(--bg) 3.5px, transparent 4px) repeat-y;
  background-size: 5px 14px;
}
.dc-tab {
  position: absolute; left: 14px; top: -9px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: linear-gradient(100deg, #df5417, #b8420d);
  padding: 1px 8px; border-radius: 5px;
  box-shadow: 0 1px 5px rgba(120, 44, 6, .25);
}
.dc-head { display: flex; align-items: center; gap: 9px; }
.dc-av {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 700;
  color: #fff; background: var(--brand); opacity: .9;
}
.dc-name { font-size: var(--fs-md); }
.dc-name b { font-weight: 700; }
.dc-when { font-size: var(--fs-xs); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.dw-time, .dw-loc { white-space: nowrap; }
.dc-left { color: var(--brand); font-weight: 600; }
.dc-body { display: flex; gap: 10px; align-items: flex-start; margin: 9px 0 8px; }
.dc-thumb {
  flex: 0 0 auto; width: 64px; height: 64px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.dc-body .dc-note { flex: 1 1 auto; min-width: 0; margin: 0; }
.dc-note {
  margin: 9px 0 8px; padding: 9px 11px;
  font-size: var(--fs-md); line-height: 1.7; white-space: pre-wrap; word-break: break-word;
  background: var(--surface-2); border-left: 2px solid var(--brand-line); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.dc-stats { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: var(--fs-sm); }
.dc-stat { color: var(--ink-3); }
.dc-stat.go b { color: var(--ok); font-size: var(--fs-lg); font-weight: 800; }
.dc-stat.no {
  color: var(--ink-3); font-size: var(--fs-xs);
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 1px 8px;
}
.dc-names { color: var(--ink-2); font-size: var(--fs-sm); }
.dc-share { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.dc-link {
  flex: 1 1 170px; min-width: 0;
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  padding: 5px 8px; font-size: var(--fs-xs); color: var(--ink-3);
  background: #fff; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.btn.copied { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ---- 收摊记录（评论区里的那条） ---- */
.comment--dinner {
  border-left: 3px solid var(--brand-line);
  background: var(--surface-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s3) var(--s3) var(--s3) 14px;
  margin: 8px 0;
}
.comment--dinner .who { color: var(--ink-2); }
/* 卡片里的换行由行距控制，别让 HTML 缩进被 pre-wrap 放大成空行 */
.comment--dinner .body { white-space: normal; }
.cm-row { display: flex; gap: 8px; font-size: var(--fs-md); margin-top: 3px; }
.cm-k {
  flex: 0 0 auto; font-size: var(--fs-xs); color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  padding: 0 6px; line-height: 18px; height: 20px; margin-top: 2px;
}
.cm-link { font-size: var(--fs-sm); color: var(--ink-3); }
.cm-link:hover { color: var(--brand); }

/* ---- 请帖页 ---- */
.invite-wrap { max-width: 540px; margin: 8px auto 40px; }
.invite {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 34px rgba(43, 34, 28, .10);
  overflow: hidden;
}
.invite::before {  /* 顶端齿孔 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; z-index: 2;
  background: radial-gradient(circle at 9px 0, var(--bg) 4.5px, transparent 5px) repeat-x;
  background-size: 18px 7px;
}
.invite-top {
  position: relative;
  padding: 26px 24px 18px;
  background:
    radial-gradient(120% 100% at 100% 0, rgba(223, 84, 23, .10), transparent 60%),
    linear-gradient(180deg, #fff6ee, #fff);
  border-bottom: 1px dashed var(--brand-line);
  text-align: center;
}
.invite-kicker {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .18em; color: var(--brand);
  background: #fff; border: 1px solid var(--brand-line); border-radius: 999px;
  padding: 2px 12px; margin-bottom: 10px;
}
.invite-top h1 {
  font-size: 21px; line-height: 1.45; letter-spacing: -.01em;
  margin-bottom: 7px; word-break: break-word;
}
.invite-loc { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 7px; line-height: 1.6; }
.invite-cover { background: var(--surface-2); border-bottom: 1px dashed var(--brand-line); }
.invite-cover img { display: block; width: 100%; height: 172px; object-fit: cover; }
.invite-body { padding: 18px 24px 6px; }
.invite-host { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.iv-av {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: var(--fs-base); font-weight: 800;
  color: #fff; background: linear-gradient(140deg, #e86a2c, #b8420d);
  box-shadow: 0 3px 10px rgba(184, 66, 13, .28);
}
.iv-who { font-size: var(--fs-md); color: var(--ink-2); }
.iv-who b { color: var(--ink); font-size: var(--fs-base); }
.iv-sep { color: var(--ink-3); margin: 0 4px; }
.iv-who a { color: var(--ink-3); }
.iv-who a:hover { color: var(--brand); }

.invite-note {
  font-size: 15px; line-height: 1.85; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-2);
  border-left: 3px solid var(--brand);
  margin-bottom: 16px;
}
.invite-clock {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 14px;
  border-radius: var(--r-sm);
  background: var(--brand-weak); border: 1px dashed var(--brand-line);
}
.invite-clock.closed { background: var(--surface-2); border-color: var(--line); }
.ic-label { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .04em; }
.ic-time { font-size: var(--fs-lg); font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.invite-clock.closed .ic-time { color: var(--ink-2); font-size: var(--fs-base); }

.invite-people { padding-bottom: 12px; }
.ip-line { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; flex-wrap: wrap; }
.ip-k { flex: 0 0 40px; font-size: var(--fs-xs); color: var(--ink-3); padding-top: 4px; }
.ip-list { display: flex; gap: 6px; flex-wrap: wrap; }
.ip-chip {
  font-size: var(--fs-sm); padding: 2px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
}
.ip-chip.go { background: var(--ok-weak); border-color: #cfe6d8; color: var(--ok); font-weight: 600; }
.ip-chip.no { color: var(--ink-3); text-decoration: line-through; }
.ip-empty { font-size: var(--fs-sm); color: var(--ink-3); padding-top: 3px; }

.invite-foot { padding: 4px 24px 20px; }
.iv-ask { font-size: var(--fs-md); color: var(--ink-2); margin-bottom: 10px; text-align: center; }
.iv-btns { display: flex; gap: 10px; }
.iv-btns .btn.big { flex: 1; padding: 11px 10px; font-size: var(--fs-lg); border-radius: var(--r-md); }
.iv-sign { margin-bottom: 12px; }
.iv-sign input[type=text] {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 11px; font-size: var(--fs-base); font-family: inherit;
}
.iv-sign input[type=text]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223, 84, 23, .12); }
.iv-anon { display: flex; align-items: center; gap: 7px; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.iv-anon input { width: 15px; height: 15px; accent-color: var(--brand); }
.iv-sign-name { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 4px; }
.iv-yours {
  padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--ok-weak); border: 1px solid #cfe6d8;
  font-size: var(--fs-md); color: var(--ink-2); margin-bottom: 10px;
}
.iv-yours b { font-size: var(--fs-lg); }
.iv-yours b.yes { color: var(--ok); }
.iv-yours b.no { color: var(--ink-3); }
.iv-tip { display: block; font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }
.iv-change summary {
  cursor: pointer; list-style: none; font-size: var(--fs-sm); color: var(--ink-3); text-align: center;
}
.iv-change summary::-webkit-details-marker { display: none; }
.iv-change summary::before { content: "✎ "; }
.iv-change summary:hover { color: var(--brand); }
.iv-change .invite-form { margin-top: 12px; }
.iv-done {
  padding: 12px 14px; margin-bottom: 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px dashed var(--line);
  font-size: var(--fs-md); color: var(--ink-2); text-align: center;
}
.iv-done b { color: var(--ink); }
.iv-share { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 0 24px 14px; }
.iv-share-tip { font-size: var(--fs-xs); color: var(--ink-3); }
.invite-note-foot {
  padding: 10px 24px 14px; border-top: 1px dashed var(--line-2);
  font-size: var(--fs-xs); color: var(--ink-3); text-align: center; line-height: 1.7;
}

/* ---- 请帖：抬头信息 / 署名 / 鸽子提示 / 开桌模板（v22） ---- */
.invite-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-2);
}
.im-item {
  display: inline-flex; align-items: center; gap: 3px;
  background: #fff; border: 1px solid var(--brand-line); border-radius: 999px;
  padding: 2px 10px; line-height: 1.5; white-space: nowrap;
}
.iv-sign-label {
  display: block; font-size: var(--fs-xs); color: var(--ink-3);
  letter-spacing: .04em; margin-bottom: 5px;
}
.iv-sign-hint { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 5px; }
.iv-pigeon {
  margin-top: 9px; text-align: center;
  font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.6;
}
.dc-join { flex: 0 0 auto; margin-left: auto; }
.dinner-tpl {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px;
}
.dt-k { font-size: var(--fs-xs); color: var(--ink-3); }
.dinner-tpl .chip { font-size: var(--fs-xs); padding: 2px 9px; cursor: pointer; }

@media (max-width: 560px) {
  .invite-top { padding: 22px 18px 16px; }
  .invite-cover img { height: 138px; }
  .invite-body { padding: 16px 18px 4px; }
  .invite-foot { padding: 2px 18px 18px; }
  .iv-share { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 0 24px 14px; }
.iv-share-tip { font-size: var(--fs-xs); color: var(--ink-3); }
.invite-note-foot { padding: 10px 18px 14px; }
  .invite-top h1 { font-size: 19px; }
  .iv-btns .btn.big { font-size: var(--fs-base); padding: 10px 6px; }
  .dc-share .dc-link { flex: 1 1 100%; }
}

/* ===================== 地图选点弹层 ===================== */
.mp {
  position: fixed; inset: 0; z-index: 940;
  display: flex; align-items: center; justify-content: center;
}
.mp[hidden] { display: none; }
.mp-mask { position: absolute; inset: 0; background: rgba(18, 16, 14, .52); }
.mp-card {
  position: relative; display: flex; flex-direction: column;
  width: 100%; height: 100%; background: #fff; overflow: hidden;
}
.mp-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.mp-x {
  border: 0; background: none; padding: 2px 6px; cursor: pointer;
  font-size: 17px; line-height: 1.4; color: var(--ink-2); border-radius: 6px;
}
.mp-x:hover { background: var(--surface); }
.mp-title { font-size: var(--fs-sm); color: var(--ink-2); }
.mp-search { position: relative; padding: 10px 12px 0; flex: 0 0 auto; }
.mp-input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: var(--fs-base); font-family: inherit;
  background: var(--surface); color: var(--ink);
}
.mp-input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(223, 84, 23, .12); }
.mp-list {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 4px); z-index: 6;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); max-height: 236px; overflow: auto;
}
.mp-list[hidden] { display: none; }
.mp-item { padding: 9px 12px; cursor: pointer; }
.mp-item:hover, .mp-item:active { background: var(--brand-weak); }
.mp-item b {
  display: block; font-size: var(--fs-md); font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mp-item em {
  display: block; font-style: normal; font-size: var(--fs-xs); color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mp-map { position: relative; flex: 1 1 auto; min-height: 200px; margin-top: 10px; overflow: hidden; }
.mp-canvas { width: 100%; height: 100%; }
.mp-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  pointer-events: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3));
}
.mp-pin-dot {
  position: absolute; left: 50%; bottom: -2px; width: 10px; height: 4px;
  margin-left: -5px; border-radius: 50%; background: rgba(0, 0, 0, .22);
}
.mp-foot {
  flex: 0 0 auto; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: #fff;
}
.mp-addr { display: flex; flex-direction: column; gap: 2px; min-height: 36px; margin-bottom: 8px; }
.mp-a1 { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.mp-a2 { font-size: var(--fs-sm); color: var(--ink-3); }
.mp-acts { display: flex; gap: var(--s2); }
.mp-acts .btn { flex: 1 1 0; min-width: 0; }

@media (min-width: 760px) {
  .mp-card {
    width: 720px; height: 620px; border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
  }
}

/* 发帖页地点框下面那排按钮 */
.loc-acts { display: flex; gap: var(--s2); margin-top: var(--s2); }
.loc-acts .btn { flex: 1 1 0; min-width: 0; }

/* ---------- 后厨 · 改帖页 ---------- */
.edit-panel { max-width: 780px; margin: 0 auto var(--s4); }
.edit-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.edit-head h2 { font-size: var(--fs-lg); }
.edit-head-acts { display: flex; gap: var(--s2); }
.edit-sub { font-size: var(--fs-sm); color: var(--ink-3); margin: 4px 0 var(--s4); }
.edit-body { min-height: 260px; font-size: var(--fs-md); line-height: 1.75; }
.edit-row2 { display: flex; gap: var(--s3); flex-wrap: wrap; }
.edit-row2 .field { flex: 1 1 220px; min-width: 0; }

/* 现有配图：一张一张地看，能换能删 */
.edit-imgs { display: flex; flex-wrap: wrap; gap: 12px; }
.ei { width: 148px; }
.ei > a {
  display: block; width: 148px; height: 148px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
}
.ei > a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ei-ops { display: flex; gap: 6px; margin-top: 6px; }
.ei-ops > * { flex: 1 1 0; margin: 0; min-width: 0; }
.ei-ops .btn { width: 100%; justify-content: center; }
.ei-file { position: relative; overflow: hidden; display: inline-flex; }
.ei-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* 大咖资料块 */
.star-box {
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  padding: var(--s3); background: var(--surface-2);
}
.star-box-head { font-weight: 600; margin-bottom: var(--s3); color: var(--ink-2); }
.star-src-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s2); }
.star-src-grid input { min-width: 0; }
.edit-cover img {
  width: 100%; max-width: 320px; border-radius: 10px; border: 1px solid var(--line); display: block;
}
.cover-clear {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: var(--fs-sm); color: var(--ink-3); cursor: pointer;
}

.edit-save { display: flex; gap: var(--s2); margin-top: var(--s4); }
.edit-danger { border-color: #f4cbc6; }
.edit-danger h2 { color: var(--err); }

@media (max-width: 560px) {
  .star-src-grid { grid-template-columns: 1fr; }
  .ei, .ei > a { width: calc(50% - 6px); }
  .ei > a { height: auto; aspect-ratio: 1 / 1; }
}

/* 改帖页里的地点框：跟发帖页同一副长相，别退回浏览器默认样式 */
#locEditForm input[type=text] {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 11px; font-size: var(--fs-md); font-family: inherit; background: #fff;
  margin-bottom: 8px; color: var(--ink);
}
#locEditForm input[type=text]:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223, 84, 23, .12);
}
#locEditForm .loc-edit-row { margin-bottom: 8px; }
#locEditForm .loc-edit-row input[type=text] { margin-bottom: 0; }

/* ---------- 上传提示：进度和失败原因都留在配图区，别只在页顶一闪 ---------- */
.up-info, .up-err {
  margin-top: 8px; padding: 9px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); line-height: 1.55;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
}
.up-info.ok { border-color: #bfe3c6; background: #f1faf3; color: #256b3a; }
.up-info.err, .up-err {
  border-color: #f3c9c3; background: #fff4f2; color: #a63a26; font-weight: 600;
}
.up-err { margin: 0 0 12px; }

/* ============================================================
   v4 外观修订（2026-11-04）
   方向：不追新、不靠图，做成一本能反复翻的口碑册子。
   令牌已全局抬升对比度与字号；这一层只放新增组件与局部修正，
   全部集中在文件末尾，便于整体撤掉 / 微调。
   ============================================================ */

/* ---- 口碑卡：前三家用版式立住分量，不放食物图 ---- */
.fcard-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3); margin-top: var(--s3);
}
.fcard {
  display: flex; flex-direction: column; min-height: 172px;
  padding: 15px 16px 13px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.fcard:hover {
  color: var(--ink); text-decoration: none; border-color: #d8cabb;
  transform: translateY(-2px); box-shadow: var(--shadow-2);
}
.fcard--lead {
  background: var(--deep); border-color: var(--deep); color: #fdf8f3;
  box-shadow: var(--shadow-2);
}
.fcard--lead:hover { color: #fdf8f3; border-color: var(--deep); }
.fc-top { display: flex; align-items: baseline; gap: 9px; }
.fc-no {
  font-size: 23px; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  opacity: .26; font-variant-numeric: tabular-nums;
}
.fc-kind { font-size: 11px; letter-spacing: .12em; color: var(--ink-3); }
.fcard--lead .fc-no { opacity: .45; }
.fcard--lead .fc-kind { color: rgba(255, 255, 255, .62); }
.fc-title {
  margin-top: 11px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fc-quote {
  margin-top: 7px; font-size: var(--fs-sm); line-height: 1.68; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fcard--lead .fc-quote { color: rgba(255, 255, 255, .74); }
.fc-foot {
  margin-top: auto; padding-top: 11px;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: var(--fs-xs); color: var(--ink-3);
}
.fcard--lead .fc-foot { color: rgba(255, 255, 255, .62); }
.fc-place { color: var(--ink-2); }
.fcard--lead .fc-place { color: rgba(255, 255, 255, .85); }
.plist--rest { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px dashed var(--line); }

/* ---- 列表：缩略图抬一档，行距松一点，别再像表格 ---- */
.prow { padding: 9px 10px; gap: var(--s4); }
.prow-thumb { width: 64px; height: 64px; font-size: 22px; }
.prow--sm { gap: 10px; }
.prow--sm .prow-thumb { width: 46px; height: 46px; font-size: 18px; }
.prow-tag { font-size: 11px; }
.prow-title { letter-spacing: .005em; }

/* ---- 首次来访：一条不挡路的说明 ---- */
.first-hint {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--s4); padding: 10px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--r-sm); background: var(--surface);
  font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65;
}
.first-hint[hidden] { display: none; }
.fh-tx { flex: 1 1 auto; min-width: 0; }
.fh-tx b { color: var(--ink); font-weight: 600; }
.fh-x {
  flex: 0 0 auto; padding: 3px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2); font: inherit; font-size: var(--fs-xs); cursor: pointer;
}
.fh-x:hover { background: var(--deep); color: #fff; border-color: var(--deep); }

/* ---- 找饭：默认一排城市 + 一个「更多筛选」 ---- */
.find-row--top { margin-bottom: 4px; }
.filter-extra { margin-top: var(--s2); border-top: 1px dashed var(--line-2); padding-top: var(--s2); }
.filter-extra > summary {
  cursor: pointer; list-style: none; padding: 4px 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
}
.filter-extra > summary::-webkit-details-marker { display: none; }
.filter-extra > summary::after { content: "▾"; font-size: 10px; opacity: .6; }
.filter-extra[open] > summary::after { content: "▴"; }
.filter-extra > summary:hover { color: var(--deep); }
.fe-count { font-size: var(--fs-xs); font-weight: 400; color: var(--ink-3); }
.fe-body { padding-top: var(--s3); }

/* ---- 帖子详情：标题更立得住、正文行宽收住、单图放大 ---- */
.post-head { padding-bottom: var(--s4); }
.post-head h1 { font-size: var(--fs-2xl); line-height: 1.34; margin-bottom: var(--s2); }
.post-content { max-width: 68ch; line-height: 1.86; }
.post-loc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: start; gap: 6px 14px;
}
.pl-sub { justify-content: flex-end; }
.img-grid a { width: 148px; height: 148px; }
.img-grid a:only-child {
  position: relative; width: min(100%, 560px); height: auto; aspect-ratio: 4 / 3;
}
.img-grid a:only-child img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cm-grid a { width: 108px; height: 108px; }

/* ---- 大咖封面：统一压一层底部暗罩，角标不再五颜六色 ---- */
.scard-fig::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44%;
  background: linear-gradient(180deg, transparent, rgba(20, 12, 6, .46));
  pointer-events: none;
}
.scard-play {
  left: auto; right: 6px; bottom: 6px; z-index: 1;
  background: rgba(20, 12, 6, .62); border: 1px solid rgba(255, 255, 255, .2);
  letter-spacing: .02em;
}
.scard-hot { background: var(--deep); box-shadow: none; }
.head-note {
  color: var(--ink-2); background: var(--surface-2);
  border-color: var(--line); font-size: 11px;
}

/* ---- 登录页：先说清进来能得到什么 ---- */
.login-title { text-align: center; font-size: var(--fs-xl); }
.login-lead {
  text-align: center; margin: 9px 0 16px;
  font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.72;
}
.login-note { font-size: var(--fs-xs); }

/* ---- 手机：附近上提、口碑卡横滑、按钮不再掉到左对齐 ---- */
@media (max-width: 719px) {
  .panel { margin-bottom: var(--s3); }
  .first-hint { padding: 9px 11px; gap: 8px; margin-bottom: var(--s3); }

  .cols { display: flex; flex-direction: column; gap: var(--s3); }
  .col-side { order: -1; }
  .col-main { order: 0; }
  /* 手机上不再只露 3 条，6 条全给 */
  .nearby-more { display: flex; justify-content: space-between; gap: 8px; }

  .fcard-grid {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .fcard { flex: 0 0 82%; min-height: 0; padding: 12px 13px; scroll-snap-align: start; }
  .fc-title { margin-top: 7px; font-size: var(--fs-base); }
  .fc-foot { padding-top: 8px; }

  .prow { gap: 10px; }
  .prow-thumb { width: 52px; height: 52px; font-size: 19px; }
  .prow--sm .prow-thumb { width: 44px; height: 44px; font-size: 16px; }

  .post-head h1 { font-size: var(--fs-xl); }
  .post-loc { grid-template-columns: 1fr; gap: 5px; }
  .pl-sub { justify-content: flex-start; }
  .img-grid a { width: calc((100% - 14px) / 3); height: auto; aspect-ratio: 1 / 1; }
  .img-grid a img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .img-grid a:only-child { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; }

  .tabbar a { font-size: 11px; }
  .filter-extra > summary { padding: 6px 0; }
}

/* ---- v4 二轮收紧：首屏让内容进视野，大咖片单默认收起 ---- */
/* 「小圈子亲测」与今日人数并成一行，省掉一整行高度 */
.hero { padding: 18px 26px 16px; }
.hero-top {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px 16px;
}
.hero-visits { margin-top: 0; }
.hero-title { font-size: 1.75rem; margin-top: 8px; }
.hero-desc { margin-top: 7px; line-height: 1.7; max-width: 60ch; }
.hero-quote { display: none; }
.hero-act { margin-top: 13px; }
.hero-btn { padding: 8px 18px; }

/* 大咖门头下面那串「最新视频」默认不铺开：这里卖的是老店，不是新片 */
.gate-fold > summary {
  list-style: none; cursor: pointer; padding: 8px 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); color: var(--ink-2);
  background: var(--surface);
}
.gate-fold > summary::-webkit-details-marker { display: none; }
.gate-fold > summary::after { content: "▾"; font-size: 10px; opacity: .6; }
.gate-fold[open] > summary::after { content: "▴"; }
.gate-fold > summary:hover { color: var(--deep); background: var(--surface-2); }
.gate-fold[open] .glist { border-top: 1px solid var(--line-2); }

/* 「更多筛选」做成看得出来能点的胶囊 */
.filter-extra > summary {
  padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface-2);
}
.filter-extra > summary:hover { background: var(--surface); border-color: #d8cabb; }

@media (max-width: 719px) {
  .hero { padding: 13px 14px; }
  .hero-top { gap: 4px 10px; }
  .hero-title { font-size: 1.4rem; margin-top: 6px; }
  .hero-desc {
    font-size: 11.5px; line-height: 1.6; margin-top: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-act { margin-top: 10px; }
  .hero-btn { padding: 7px 12px; font-size: 13px; }
  .hero-visits { font-size: 10.5px; }
  .gate-fold > summary { padding: 9px 14px; }
}

/* 横滑卡片多露一截，让「还能往右翻」一眼可见 */
@media (max-width: 719px) {
  .fcard { flex-basis: 76%; }
}

/* ============================================================
   v5 修订（2026-11-05）
   两件事：帖子里的图一律缩略图，点开才放大；首屏横幅恢复从容的
   纵向节奏与暖色，不再压成一条数据条。规则同样集中在末尾，便于撤掉。
   ============================================================ */

/* ---- 首屏：有开场、有题记、有落款，像一册口碑本的扉页 ---- */
.hero {
  padding: 24px 30px 16px;
  background: linear-gradient(112deg, #f4711f 0%, #e0561a 52%, #c1440c 100%);
  box-shadow: 0 10px 28px rgba(150, 60, 12, .17);
}
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  left: -78px; bottom: -94px; width: 210px; height: 210px;
  background: rgba(255, 255, 255, .055);
}
.hero::after {
  right: -64px; top: -86px; width: 246px; height: 246px;
  background: rgba(255, 255, 255, .075);
}
.hero-inner { max-width: 600px; }
.hero-kicker { letter-spacing: .1em; opacity: .9; }
.hero-title {
  font-size: 2rem; letter-spacing: .03em; margin-top: 9px;
  text-shadow: 0 2px 10px rgba(120, 40, 0, .16);
}
.hero-desc {
  font-size: var(--fs-md); line-height: 1.72; margin-top: 8px;
  max-width: 54ch; opacity: .96;
}
.hero-desc strong {
  display: block; font-size: var(--fs-lg); font-weight: 700;
  margin-bottom: 2px; opacity: 1;
}
.hero-quote {
  display: block; margin-top: 9px; padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: var(--fs-md); font-weight: 500; letter-spacing: .02em;
  color: #fff7ee; opacity: .93;
}
.hero-act { margin-top: 15px; }
.hero-btn { padding: 9px 21px; }
.hero-visits {
  margin-top: 11px; padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: var(--fs-xs); opacity: .62;
}
.hero-visits b { font-size: inherit; font-weight: 600; }
.hv-dot { width: 5px; height: 5px; background: #ffe4c9; }
/* 细描边小印记：留一点手作感，不做促销式大红章 */
.hero-mark {
  position: absolute; right: 24px; top: 22px; z-index: 2;
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .42); border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8); transform: rotate(-7deg);
  font-size: 10px; font-weight: 600; line-height: 1.35;
  letter-spacing: .08em; text-align: center; pointer-events: none;
}

/* ---- 帖子实拍：统一缩略图，点开交给灯箱 ---- */
.photos { margin-top: var(--s4); }
.ph-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 12px;
  padding-bottom: 7px; border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-xs);
}
.ph-label { font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.ph-tip { color: var(--ink-3); }
.img-grid { margin-top: 11px; gap: 9px; }
.img-grid a { width: 132px; height: 132px; border-radius: var(--r-sm); }
/* 单张也只给一张稍大的缩略图，不再铺满正文宽度 */
.img-grid a:only-child,
.img-grid.is-single a {
  position: relative; width: 220px; height: 220px; aspect-ratio: auto;
}
.img-grid a:only-child img,
.img-grid.is-single a img { position: absolute; inset: 0; width: 100%; height: 100%; }
.img-grid.cm-grid a { width: 108px; height: 108px; }
.ph-flag {
  position: absolute; left: 5px; top: 5px; z-index: 1;
  padding: 1px 6px; border-radius: 4px;
  background: rgba(28, 18, 10, .6); color: #fff;
  font-size: 10px; letter-spacing: .04em;
}
@media (hover: none) {
  .img-grid a::after { opacity: .68; }
}

@media (max-width: 719px) {
  .hero { padding: 20px 16px 15px; border-radius: var(--r-md); }
  .hero-mark { display: none; }
  .hero-inner { max-width: none; width: 100%; }
  .hero-title { font-size: 1.7rem; margin-top: 8px; }
  .hero-desc {
    font-size: 12.5px; line-height: 1.68; margin-top: 8px;
    display: block; -webkit-line-clamp: unset; overflow: visible;
    max-width: none;
  }
  .hero-desc strong { font-size: 15px; margin-bottom: 2px; }
  .hero-quote {
    display: block; font-size: 12px; margin-top: 8px; padding-top: 8px;
  }
  .hero-act { width: 100%; gap: var(--s2); margin-top: 13px; }
  .hero-btn { flex: 1; justify-content: center; padding: 9px 14px; font-size: 13px; }
  .hero-visits { margin-top: 11px; padding-top: 9px; font-size: 10.5px; }
  .ph-tip { font-size: 10.5px; }
  .img-grid { gap: 7px; }
  .img-grid a,
  .img-grid.cm-grid a { width: calc((100% - 14px) / 3); height: auto; aspect-ratio: 1 / 1; }
  .img-grid a:only-child,
  .img-grid.is-single a {
    width: 56%; max-width: 200px; height: auto; aspect-ratio: 1 / 1;
  }
}

/* ============================================================
   v6 修订（2026-11-05）· 实名区「允许匿名跟贴」开关
   新规则只加在末尾这一层，前面版式原样保留，整层删掉即可撤回
   ============================================================ */
.anon-opt-field {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.anon-opt-label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: var(--fs-md); color: var(--ink);
  cursor: pointer;
}
.anon-opt-label input,
.cm-anon input {
  width: 16px; height: 16px; margin: 0;
  accent-color: var(--brand); flex: none;
}
.anon-opt-field .hint { margin-top: 6px; }

.badge.anon-on {
  background: var(--surface-2); color: var(--ink-2);
  border-color: var(--line); border-style: dashed;
}
.badge.anon-off {
  background: var(--surface-2); color: var(--ink-3); border-color: var(--line);
}

.cm-anon {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px dashed var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: var(--fs-sm); color: var(--ink-2);
  cursor: pointer; line-height: 1.6; white-space: nowrap;
}
.cm-anon:hover { border-color: var(--brand-line); }
.cm-anon input:checked + span { color: var(--brand-2); font-weight: 600; }
.anon-note {
  margin: -6px 0 var(--s4); padding: 7px 12px;
  border-left: 2px solid var(--brand-line); background: var(--surface-2);
  color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.7;
}
.cm-anon-tag { margin-left: 6px; font-weight: 400; }
.anon-real {
  margin-left: 8px; font-size: var(--fs-xs); font-weight: 400;
  color: var(--ink-3); border-bottom: 1px dotted var(--line);
}
@media (max-width: 719px) {
  .cm-anon { padding: 4px 10px; }
  .anon-note { margin-top: 0; }
}

/* ============================================================
   v7 修订（2026-11-05）· 不登录也能留言，界面不再解释匿名规则
   新规则只加在末尾这一层，整层删掉即可撤回
   ============================================================ */
.cm-guest { margin-bottom: 8px; }
.cm-name {
  width: 100%; max-width: 280px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 11px; font-size: var(--fs-md); font-family: inherit;
  background: #fff; color: var(--ink); transition: .15s var(--ease);
}
.cm-name::placeholder { color: var(--ink-3); }
.cm-name:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(223, 84, 23, .12);
}
@media (max-width: 719px) {
  .cm-name { max-width: none; }
}

/* ============================================================
   v8 修订（2026-11-06）· 附近的美食：按距离排 + 一整页
   新规则只加在末尾这一层，整层删掉即可撤回
   ============================================================ */

/* 首页侧栏：推荐 / 离我最近 */
.nearby-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; flex-wrap: wrap;
}
.nearby-tools .nearby-sub { flex: 1 1 auto; min-width: 0; }
.nearby-sort {
  display: inline-flex; gap: 2px; padding: 2px; flex: 0 0 auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
}
.ns-btn {
  font: inherit; font-size: 11px; line-height: 1.5; padding: 2px 8px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-3); cursor: pointer; white-space: nowrap;
}
.ns-btn:hover { color: var(--ink); }
.ns-btn.on { background: var(--deep); color: #fff; }
.dist { color: var(--brand-2); font-variant-numeric: tabular-nums; }

/* 「看全部」做成一个真正能点的按钮，而不是角落里一行小字 */
.nearby-more {
  display: flex; flex-direction: column; align-items: stretch; gap: 7px;
  margin-top: var(--s3); text-align: left;
}
.nearby-more .nm-all {
  display: block; text-align: center; padding: 8px 10px;
  border-radius: var(--r-sm); border: 1px solid var(--brand-line);
  background: var(--brand-weak); color: var(--brand-2); font-weight: 600;
}
.nearby-more .nm-all:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.nm-links { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); }
.nm-links a + a { margin-left: 0; }

/* 附近整页 */
.nb-hero { padding: var(--s4); }
.nb-title { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.nb-title h1 { margin: 0; font-size: var(--fs-xl); }
.nb-lead { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.nb-locate { white-space: nowrap; }
.nb-ctrl { margin-top: var(--s3); border-top: 1px dashed var(--line); padding-top: var(--s2); }
.nb-row { display: flex; align-items: center; gap: var(--s2); padding: 5px 0; flex-wrap: wrap; }
.nb-lab { font-size: var(--fs-xs); color: var(--ink-3); width: 62px; flex: 0 0 62px; }
.nb-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-tabs button {
  font: inherit; font-size: var(--fs-sm); padding: 5px 12px; line-height: 1.5;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); cursor: pointer;
}
.nb-tabs button span { font-size: 10px; color: var(--ink-3); margin-left: 5px; }
.nb-tabs button:hover { border-color: var(--brand); color: var(--ink); }
.nb-tabs button.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.nb-tabs button.on span { color: rgba(255, 255, 255, .72); }
.nb-src button { padding: 4px 11px; }
.nb-sub { font-size: var(--fs-xs); color: var(--ink-3); margin: var(--s2) 0 0; }
.nb-list { margin-top: var(--s3); }
.nb-more {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: var(--s3);
}
.nb-more .btn { min-width: 190px; }
.nb-note { margin-top: var(--s3); }

@media (max-width: 719px) {
  .nb-hero { padding: var(--s3); }
  .nb-title { flex-direction: column; gap: var(--s2); }
  .nb-locate { width: 100%; }
  .nb-lab { width: 100%; flex: 1 0 100%; }
  .nb-tabs { width: 100%; }
  .nb-tabs button { flex: 1 1 auto; padding: 6px 8px; font-size: var(--fs-xs); }
  .nb-tabs button span { display: none; }
  .nm-links { flex-wrap: wrap; }
  .nearby-more { gap: 6px; }
  .nb-more { flex-direction: column; align-items: stretch; }
  .nb-more .btn { width: 100%; }
}
@media (max-width: 360px) {
  .kw-av { width: 44px; height: 44px; }
  .kw-name { font-size: 10px; }
}
