/* 西岸今天吃什么 —— 暖白 + 橙，响应式 */
:root {
  --brand: #ff5a1f;
  --brand-2: #ff8a3d;
  --brand-soft: #fff1ea;
  --ink: #1d1b19;
  --text: #5c5752;
  --muted: #a39d97;
  --line: #efebe6;
  --bg: #f7f4f0;
  --card: #fff;
  --star: #ff9a2e;
  --gold: #c9a26b;
  --r: 14px;
  --shadow: 0 1px 2px rgba(40, 25, 10, .04), 0 6px 20px rgba(40, 25, 10, .05);
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- 顶栏 ---------- */
/* 页眉：与赛事中心各页同一套顶栏语言（品牌图标 + 名称、居中分段标签、右侧胶囊返回） */
.top { position: sticky; top: 0; z-index: 6; background: rgba(250, 248, 245, .9); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
/* 左品牌 / 中标签 / 右操作 三栏：标签页按整页居中，不受左右宽度不同影响 */
.top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-icon { width: 30px; height: 30px; flex: none; }
.brand-text { min-width: 0; }
.brand h1 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; letter-spacing: 0; white-space: nowrap; }
.brand h1::before { display: none !important; }
.brand h1::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 2px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
/* 副标题和标题文字对齐（跳过标题前 10px 方块 + 8px 间距） */
.sub { margin: 1px 0 0; font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.tabs { display: flex; gap: 2px; justify-content: center; padding: 4px; border-radius: 999px; background: #efebe5; }
.top-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.hub-back {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .15s;
}
.hub-back:hover { background: #f4f0eb; color: var(--ink); }
.tab {
  border: 0; background: none; padding: 6px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); transition: background .15s, color .15s;
}
.tab:hover:not(.active) { color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(40, 25, 10, .08), 0 2px 8px rgba(40, 25, 10, .06); }
/* 右上角身份：未登录显示「飞书登录」，登录后显示头像 + 名字，点开只有「退出登录」 */
.me-wrap { position: relative; }
.login-btn {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; transition: background .15s;
}
.login-btn:hover { background: #3a3632; color: #fff; }
.login-btn.nudge { animation: nudge .5s ease-in-out; }
@keyframes nudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.me-btn {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 2px 12px 2px 2px; max-width: 160px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.me-btn:hover { background: #f4f0eb; }
.me-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-btn .avatar { width: 28px; height: 28px; overflow: hidden; }
.me-btn .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #ffd7c2, #ffb28a); color: #8a3a12; flex: 0 0 auto;
}
.me-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 7; min-width: 120px; padding: 6px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(40, 25, 10, .06), 0 12px 32px rgba(40, 25, 10, .16);
}
.me-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.me-menu a:hover { background: #f4efe9; }
.sync { font-size: 12px; color: var(--muted); white-space: nowrap; }
.top-right .admin-link { border: 0; background: none; padding: 0; font-size: 12px; color: var(--muted); cursor: pointer; }
.top-right .admin-link:hover { color: var(--ink); }
.sync::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #34c759; margin-right: 6px; vertical-align: 1px; }
.sync.off::before { background: #ccc; }

main { padding: 24px 0 60px; }

/* ---------- 按钮 ---------- */
.link { border: 0; background: none; color: var(--brand); padding: 4px 6px; font-size: 13px; }
.link.danger { color: var(--muted); }
.link.danger:hover { color: #d4380d; }
.primary {
  border: 0; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; border-radius: 999px;
  padding: 9px 20px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(255, 90, 31, .25);
}
.primary:active { transform: translateY(1px); }
.ghost {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 8px 16px; font-size: 13px;
}
.ghost:hover { border-color: #ddd5cc; }
.ghost.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.small { padding: 4px 12px !important; font-size: 12px; box-shadow: none; }

/* ---------- 投票：左栏 + 列表 ---------- */
.side, .feed { min-width: 0; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.search input {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 14px 11px 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a39d97' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); background: linear-gradient(135deg, #2a201a, #1d1712);
  border-radius: var(--r); padding: 16px 6px; color: #f3e6cf;
}
.stats div { text-align: center; }
.stats div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.stats b { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: #b9a98f; }
.filters { display: grid; gap: 8px; }
.filters select {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--text);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a39d97' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.podium { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: var(--r); padding: 6px; box-shadow: var(--shadow); }
.podium:has(#podList:empty) { display: none; }
.pod-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 8px 4px; }
.pod-head b { font-size: 14px; font-weight: 800; color: var(--ink); }
.pod-head span { font-size: 11px; color: var(--muted); cursor: help; }
.pod b small { margin-left: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
.pod { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.pod:hover { background: #faf7f3; }
.pod .nm { flex: 1; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod b { font-size: 15px; color: var(--brand); font-variant-numeric: tabular-nums; }
.pod .thumb { position: relative; }
.pod .thumb::after {
  position: absolute; left: -4px; top: -4px; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; color: #fff; border: 2px solid #fff;
}
.p1 .thumb::after { content: "1"; background: #e7b247; }
.p2 .thumb::after { content: "2"; background: #a8b0b8; }
.p3 .thumb::after { content: "3"; background: #c88a5a; }
.p4 .thumb::after { content: "4"; background: #cfc8c0; }
.p5 .thumb::after { content: "5"; background: #cfc8c0; }
.side-actions { display: flex; justify-content: space-between; align-items: center; }

.grid { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: flex; gap: 18px; background: var(--card); padding: 14px; border-radius: 18px; cursor: pointer;
  box-shadow: var(--shadow); transition: box-shadow .15s;
}
.grid.intro .row { animation: in .35s both; animation-delay: calc(var(--i) * 25ms); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.row:hover { box-shadow: 0 0 0 1px #f3d9c9, var(--shadow); }
.row h3 { transition: color .15s; }
.row:hover h3 { color: var(--brand); }
.row.voted { box-shadow: 0 0 0 1.5px var(--brand), var(--shadow); }

/* 封面：统一圆角矩形 */
.thumb {
  position: relative; flex: 0 0 auto; width: 132px; height: 132px; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
}
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); pointer-events: none; }
.thumb span { font-size: 40px; font-weight: 800; color: rgba(0, 0, 0, .13); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.row:hover .thumb img { filter: brightness(1.06) saturate(1.1); }
.thumb.sm { width: 40px; height: 40px; border-radius: 10px; }
.thumb.sm span { font-size: 15px; }

.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; height: 132px; }
.row-title { display: flex; align-items: center; gap: 6px; }
.row-title h3 { margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-price { margin-left: auto; flex: 0 0 auto; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.crown {
  flex: 0 0 auto; width: 16px; height: 16px; background: #e7b247;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18l-1.5-10-4.5 4-3-7-3 7-4.5-4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18l-1.5-10-4.5 4-3-7-3 7-4.5-4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.row-score { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.row-score b { color: var(--star); font-size: 13px; margin-left: -3px; }
.row-score .nil { color: var(--muted); }
.row-score em { font-style: normal; font-size: 11px; color: #c25a2a; background: var(--brand-soft); padding: 0 6px; border-radius: 4px; line-height: 18px; }
.stars {
  --p: 0%; display: inline-block; flex: 0 0 auto; width: 66px; height: 12px;
  background: linear-gradient(90deg, var(--star) var(--p), #ebe6e0 var(--p));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.2' height='12'%3E%3Cpath d='M6 .5l1.6 3.5 3.8.4-2.9 2.6.8 3.8L6 8.9 2.7 10.8l.8-3.8L.6 4.4l3.8-.4z'/%3E%3C/svg%3E") repeat-x left / 13.2px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.2' height='12'%3E%3Cpath d='M6 .5l1.6 3.5 3.8.4-2.9 2.6.8 3.8L6 8.9 2.7 10.8l.8-3.8L.6 4.4l3.8-.4z'/%3E%3C/svg%3E") repeat-x left / 13.2px 12px;
}
.row-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-dish { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.vote {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 13px; transition: border-color .15s, background .15s;
}
.vote svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.vote b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 8px; }
.vote:hover { border-color: #ffc6ad; color: var(--brand); }
.vote.on { background: var(--brand-soft); border-color: #ffc6ad; color: var(--brand); }
.vote.on svg { fill: var(--brand); stroke: var(--brand); }
.vote.bump svg { animation: beat .35s; }
@keyframes beat { 50% { transform: scale(1.35); } }
.grow { flex: 1; }
.meet-btn {
  height: 30px; padding: 0 14px; border-radius: 999px; border: 0; font-size: 13px; font-weight: 600;
  background: var(--ink); color: #fff; transition: transform .15s;
}
.meet-btn:hover { background: #000; }
.empty-state { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- 分段 ---------- */
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 0 0 auto; border: 0; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--text); }
.seg button.on { background: var(--ink); color: #fff; }

/* ---------- 榜单 ---------- */
#tab-rank .seg { justify-content: center; margin-bottom: 22px; }
.rank-top { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 18px; }
.rt { background: #fff; border-radius: 18px; padding: 10px 10px 14px; text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s; }
.rt:hover { box-shadow: 0 0 0 1px #f3d9c9, var(--shadow); }
.rt:hover .rt-nm { color: var(--brand); }
.rt1 { order: 2; } .rt2 { order: 1; } .rt3 { order: 3; }
.rt-img { position: relative; height: 120px; border-radius: 14px; overflow: hidden; }
.rt1 .rt-img { height: 160px; }
.rt-img img { width: 100%; height: 100%; object-fit: cover; }
.rt-img em {
  position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-weight: 800; color: #fff; background: #c88a5a; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.rt1 .rt-img em { background: #e7b247; width: 34px; height: 34px; font-size: 17px; }
.rt2 .rt-img em { background: #a8b0b8; }
.rt-nm { margin-top: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-v { font-size: 22px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.rt-v small, .rank-val small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.rank-list { list-style: none; margin: 0; padding: 4px 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.rank-list li { display: grid; grid-template-columns: 28px 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; cursor: pointer; }
.rank-list li + li { border-top: 1px solid var(--line); }
.rank-list li:hover { background: #fcfaf8; }
.rank-no { font-size: 15px; font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rank-name { font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.rank-val { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 约饭 ---------- */
.meetup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 24px; align-items: start; }
.meetup-layout > .list-head { grid-column: 1 / -1; }
.side { display: flex; flex-direction: column; gap: 14px; }
.box { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.box h3 { margin: 0 0 10px; font-size: 15px; }
.compose { display: grid; grid-template-columns: 1.4fr 1.3fr 90px; gap: 10px; }
.compose select, .compose input {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #faf8f6; min-width: 0;
}
.compose .wide { grid-column: 1 / 3; }
.compose .primary { grid-column: 3; }
.compose .err { margin: 0; grid-column: 1 / -1; }
.compose .err:empty { display: none; }
.slots { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #faf8f6; color: var(--muted); }
.slots input { border: 0; padding: 9px 0; width: 100%; background: none; }
.list-head { margin: 0 0 12px; }
.meetup-list { display: flex; flex-direction: column; gap: 10px; }
.meetup { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.meetup .thumb { width: 64px; height: 64px; border-radius: 14px; }
.meetup.dim { opacity: .45; }
.meetup-main { flex: 1; min-width: 0; }
.meetup .title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.meetup .title a { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meetup .when { font-size: 13px; color: var(--text); margin-top: 2px; }
.meetup .when b { color: var(--brand); margin-left: 2px; }
.meetup .when span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.meetup .line { font-size: 12px; color: var(--muted); margin-top: 2px; }
.people { display: flex; gap: 4px; margin-top: 6px; }
.person {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: #f1ece6;
  border: 2px solid #fff; margin-left: -6px; position: relative;
}
.people .person:first-child { margin-left: 0; }
.person.host { background: var(--ink); color: #fff; }
.person.empty { background: none; border: 1.5px dashed #ddd5cc; }
.status { font-size: 11px; padding: 0 7px; border-radius: 999px; font-weight: 500; line-height: 19px; flex: 0 0 auto; }
.status.open { background: #e8f8e1; color: #2f8a0d; }
.status.arranging { background: #fff4e0; color: #c47a00; }
.status.done { background: #e6f0ff; color: #1d5fd1; }
.status.cancelled { background: #eee; color: #999; }
.meetup .acts { display: flex; flex-direction: column; gap: 6px; }
.meetup .acts:empty { display: none; }
.buddy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: b; }
.buddy-list li { display: flex; align-items: center; gap: 10px; }
.buddy-list li b { flex: 1; font-weight: 600; }
.buddy-list li span { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(20, 14, 10, .5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 10; padding: 20px;
}
.sheet {
  position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto;
  border-radius: 20px; padding: 0 0 20px; animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
#shopForm.sheet { padding: 22px; }
.sheet h2 { margin: 0 0 12px; font-size: 20px; }
.close {
  position: absolute; right: 24px; top: 24px; z-index: 3; border: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 18px; backdrop-filter: blur(6px);
}
#shopForm .close, .close.light { background: #f3efea; color: var(--muted); right: 14px; top: 14px; }
.hero { position: relative; height: 220px; margin: 14px 14px 0; border-radius: 18px; display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .65)); }
.hero-txt { position: relative; z-index: 1; padding: 18px 20px; color: #fff; }
.hero h2 { margin: 0; font-size: 24px; color: #fff; }
.hero-sub { font-size: 13px; opacity: .85; }
.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 20px 6px; background: #faf8f6; border-radius: 12px; padding: 12px 0; }
.scoreboard div { text-align: center; }
.scoreboard div + div { border-left: 1px solid var(--line); }
.scoreboard b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); }
.scoreboard div:first-child b { color: var(--star); }
.scoreboard span { font-size: 11px; color: var(--muted); }
.warn { margin: 8px 20px 0; font-size: 12px; color: #a35b00; background: #fff6e5; border-radius: 8px; padding: 8px 10px; }
.kv { display: grid; grid-template-columns: 44px 1fr; gap: 8px 12px; margin: 14px 20px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.detail-acts { display: flex; gap: 8px; margin: 0 20px; flex-wrap: wrap; }
.detail-acts .primary { flex: 1; }
.review-form { display: flex; flex-direction: column; gap: 10px; margin: 18px 20px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.review-form textarea { min-height: 70px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; background: #faf8f6; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.err { color: #d4380d; font-size: 12px; }
.star-input { display: flex; gap: 6px; }
.star-input button { border: 0; background: none; font-size: 28px; color: #e8e2db; padding: 0; line-height: 1; transition: .1s; }
.star-input button.on { color: var(--star); }
.star-input button:hover { color: #ffc27a; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; }
.chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.review-list { list-style: none; margin: 8px 20px 0; padding: 0; }
.review-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.review-list .rh { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.review-list .rs { color: var(--star); }
.review-list p { margin: 4px 0 0; white-space: pre-wrap; }
.review-list .rtags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.tag.hot { font-size: 11px; color: #c25a2a; background: var(--brand-soft); padding: 0 6px; border-radius: 4px; }
.review-list .del { border: 0; background: none; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #faf8f6; color: var(--ink); font-size: 14px; }
.field textarea { min-height: 70px; resize: vertical; }

.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 20;
  background: rgba(29, 27, 25, .9); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 13px;
}

/* ---------- 平板 ---------- */
@media (max-width: 980px) {
  .meetup-layout { grid-template-columns: 1fr; row-gap: 14px; }
  .meetup-layout > .list-head { margin-bottom: 0; }
  .layout { grid-template-columns: 240px minmax(0, 1fr); }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people-grid:not(.open) { display: flex; overflow-x: auto; scrollbar-width: none; }
  .people-grid:not(.open) .pcard { flex: 0 0 31%; }
}

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 12px; }
  .top-row { display: flex; flex-wrap: wrap; height: auto; gap: 0; padding-top: 10px; }
  .top-right { gap: 6px; }
  .hub-back { min-height: 30px; padding: 0 10px; font-size: 12px; }
  .login-btn { min-height: 30px; padding: 0 12px; font-size: 12px; }
  .me-btn { max-width: 112px; padding-right: 10px; font-size: 12px; }
  .me-btn .avatar { width: 24px; height: 24px; }
  .top-right .sync { display: none; }
  .brand { flex: 1; }
  .sub { display: none; }
  .tabs { order: 3; flex-basis: 100%; justify-content: space-between; padding: 8px 0; }
  .tab { flex: 1; padding: 7px 0; }
  main { padding-top: 12px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .side, .feed { min-width: 0; }
  .side { position: static; gap: 10px; }
  .stats { display: none; }
  .filters { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .filters select { padding: 8px 22px 8px 10px; font-size: 12px; background-position: right 8px center; }
  .podium { padding: 4px; }
  #podList { display: flex; overflow-x: auto; }
  .pod-head { padding: 6px 8px 2px; }
  .pod { flex: 0 0 auto; }
  .pod .nm { max-width: 90px; }
  .grid { gap: 8px; }
  .thumb { width: 96px; height: 96px; border-radius: 14px; }
  .row-main { height: 96px; gap: 3px; }
  .row-dish { display: none; }
  .row { padding: 12px; gap: 12px; border-radius: 16px; }
  .row-title h3 { font-size: 15px; }
  .stars { width: 54px; height: 10px; -webkit-mask-size: 10.8px 10px; mask-size: 10.8px 10px; }
  .rank-top { gap: 8px; }
  .rt-img { height: 84px; } .rt1 .rt-img { height: 112px; }
  .rt-v { font-size: 18px; }
  .compose { grid-template-columns: 1fr 1fr; }
  .compose select { grid-column: 1 / -1; }
  .compose .wide { grid-column: 1 / -1; }
  .compose .primary { grid-column: 1 / -1; }
  .meetup .thumb { width: 56px; height: 56px; }
  .modal { align-items: flex-end; padding: 0; }
  .sheet { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .hero { height: 190px; margin: 10px 10px 0; }
  .close { right: 20px; top: 20px; }
}

/* ---------- 阶跃必约榜 ---------- */
.bang {
  position: relative; border-radius: 22px; padding: 22px 22px 24px; margin-bottom: 24px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #3a2a1f 0%, #1d1712 55%, #15110e 100%); color: #f3e6cf;
}
.bang::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, .35), transparent 70%); pointer-events: none;
}
.bang-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.bang h2 { margin: 0; font-size: 24px; letter-spacing: 1px; color: #fff; }
.bang h2::after { content: "BIYUE"; margin-left: 10px; font-size: 11px; letter-spacing: 3px; color: var(--gold); vertical-align: 4px; }
.bang-head p { margin: 4px 0 0; font-size: 13px; color: #b9a98f; }
.bang-join {
  border: 1px solid rgba(217, 183, 126, .5); background: rgba(255, 255, 255, .04); color: #f3e6cf;
  border-radius: 999px; padding: 8px 16px; font-size: 13px;
}
.bang-join:hover { background: rgba(255, 255, 255, .1); }
.people-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bang-acts { display: flex; gap: 8px; align-items: center; }
.bang-acts .bang-join { padding: 6px 14px; }
.bang-more {
  border: 0; background: none; color: var(--gold); font-size: 13px; padding: 6px 4px; cursor: pointer;
}
.bang-more::after { content: " ›"; }
.bang-more:hover { color: #fff; }
.bang-more[hidden] { display: none; }
.people-grid .pcard { min-width: 0; padding: 12px; }
.people-grid .pname b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people-grid .pcard.add { grid-column: span 2; min-height: 120px; }
.area-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.area-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--text); cursor: pointer;
}
.area-tabs button i { font-style: normal; margin-left: 5px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.area-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.area-tabs button.on i { color: rgba(255, 255, 255, .6); }
.pcard {
  position: relative; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; text-align: left; border: 0;
}
.pcard.top1 { box-shadow: 0 0 0 1.5px #e7b247, 0 10px 30px rgba(231, 178, 71, .25); }
.pcard.top2 { box-shadow: 0 0 0 1.5px #b9c0c7; }
.pcard.top3 { box-shadow: 0 0 0 1.5px #c88a5a; }
.prank {
  position: absolute; right: 12px; top: -8px; font-style: normal; font-weight: 800; font-size: 12px; color: #fff;
  width: 22px; height: 26px; display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  background: #c88a5a;
}
.top1 .prank { background: #e7b247; }
.top2 .prank { background: #a8b0b8; }
.pcard-head { display: flex; align-items: center; gap: 10px; }
.pav {
  position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.pav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pav.md { width: 72px; height: 72px; border-radius: 14px; font-size: 22px; }
.pav.lg { width: 56px; height: 56px; font-size: 19px; }
.pname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pname b { font-size: 16px; }
.pname span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcount { text-align: center; line-height: 1.1; }
.pcount b { display: block; font-size: 20px; color: var(--brand); font-variant-numeric: tabular-nums; }
.pcount span { font-size: 11px; color: var(--muted); }
.pintro { margin: 0; color: var(--text); font-size: 13px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptags { display: flex; gap: 4px; flex-wrap: wrap; }
.ptags span { font-size: 11px; padding: 0 7px; line-height: 20px; border-radius: 999px; background: #f4efe9; color: var(--text); }
.pfoot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.pfavs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.pfavs span { font-size: 11px; color: var(--muted); margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb.xs { width: 22px; height: 22px; border-radius: 7px; }
.thumb.xs span { font-size: 10px; }
.pcard.add {
  background: transparent; border: 1.5px dashed rgba(217, 183, 126, .45); color: #f3e6cf; align-items: center; justify-content: center;
  min-height: 150px; cursor: pointer; text-align: center; gap: 4px;
}
.pcard:not(.add):hover { box-shadow: 0 0 0 1px #f3d9c9; }
.pcard.add:hover { background: rgba(255, 255, 255, .05); }
.pcard.add span { font-size: 28px; line-height: 1; color: var(--gold); }
.pcard.add b { font-size: 14px; }
.pcard.add i { font-style: normal; font-size: 12px; color: #b9a98f; }
.who { font-size: 12px; font-weight: 600; color: #fff; background: var(--ink); padding: 0 8px; border-radius: 999px; line-height: 20px; flex: 0 0 auto; }
.sheet.pad { padding: 22px; }
.close.light { background: #f3efea; color: var(--muted); }
.invite-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.invite-head h2 { margin: 0; }
.invite-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.field .chips { margin-top: 2px; }
.field .chip { color: var(--text); }
@media (max-width: 720px) {
  .bang { border-radius: 18px; padding: 18px 14px; }
  .people-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -14px; padding: 6px 14px 4px;
    scrollbar-width: none;
  }
  .people-grid::-webkit-scrollbar { display: none; }
  .pcard, .people-grid:not(.open) .pcard { flex: 0 0 82%; scroll-snap-align: start; }
  .people-grid.open { display: grid; grid-template-columns: 1fr; overflow: visible; margin: 0; padding: 0; }
  .people-grid .pcard.add { flex: 0 0 82%; min-height: 0; }
  .bang-head { align-items: center; }
  .bang-acts .bang-join { padding: 5px 10px; font-size: 12px; }
  .area-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .area-tabs button { flex: 0 0 auto; }
  .bang h2 { font-size: 20px; }
}

/* ---------- 必吃榜 ---------- */
.bang h2.eat::after { content: "BICHI"; }
.thumb.pv { width: 48px; height: 48px; border-radius: 12px; }
.thumb.pv span { font-size: 16px; }
.thumb.md { width: 56px; height: 56px; border-radius: 14px; }
.pcard-head[data-open] { cursor: pointer; }
.pcard-head[data-open]:hover b { color: var(--brand); }
.star-mini { font-style: normal; color: var(--star); font-weight: 600; margin-right: 6px; }
.live { margin-left: 0 !important; color: #2f8a0d !important; font-weight: 600; }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #34c759; margin-right: 5px; vertical-align: 1px; }

/* ---------- 摇一摇（抽卡） ---------- */
.shake {
  position: relative; overflow: hidden; border-radius: 26px; padding: 28px 24px 22px; color: #f3e6cf;
  background: radial-gradient(90% 70% at 50% 45%, #3a2a1f 0%, #1d1712 60%, #120e0b 100%);
  display: flex; flex-direction: column; align-items: center;
}
.shake::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 50% 46%, rgba(255, 138, 61, .25), transparent 40%);
}
.shake-head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shake-head h2 { margin: 0 0 4px; font-size: 22px; color: #fff; letter-spacing: 1px; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chips-row button {
  border: 1px solid rgba(217, 183, 126, .28); background: transparent; color: #cbb796; border-radius: 999px;
  padding: 5px 13px; font-size: 13px; cursor: pointer; transition: background .15s, color .15s;
}
.chips-row button:hover { color: #fff; }
.chips-row button.on { background: #f3e6cf; border-color: #f3e6cf; color: #1d1712; font-weight: 600; }
.chips-row button i { font-style: normal; font-size: 11px; margin-left: 6px; color: #5ec26a; }

.stage { position: relative; z-index: 1; width: 280px; height: 400px; margin: 26px 0 18px; perspective: 1200px; }
.deck { position: absolute; inset: 0; transition: opacity .3s; }
.deck i, .gback {
  border-radius: 20px; border: 1px solid rgba(217, 183, 126, .55);
  background:
    radial-gradient(circle at 50% 50%, transparent 52px, rgba(217, 183, 126, .25) 53px, transparent 55px),
    repeating-linear-gradient(45deg, rgba(217, 183, 126, .07) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, #2e231b, #18120e);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 0 6px rgba(0, 0, 0, .25), inset 0 0 0 7px rgba(217, 183, 126, .25);
}
.deck i { position: absolute; inset: 0; transition: transform .3s; }
.deck i:nth-child(1) { transform: translate(-14px, 10px) rotate(-7deg); }
.deck i:nth-child(2) { transform: translate(12px, 8px) rotate(6deg); }
.deck i:nth-child(3) { transform: translate(-4px, 4px) rotate(-2deg); }
.deck i:nth-child(4) { transform: none; animation: float 3.2s ease-in-out infinite; }
.deck i:nth-child(4)::after {
  content: "西岸"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 30px; font-weight: 800; letter-spacing: 6px; color: #d9b77e;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.shuffling .deck i:nth-child(1) { animation: sh1 .32s ease-in-out infinite; }
.shuffling .deck i:nth-child(2) { animation: sh2 .32s ease-in-out infinite; }
.shuffling .deck i:nth-child(3) { animation: sh1 .26s ease-in-out infinite reverse; }
.shuffling .deck i:nth-child(4) { animation: sh3 .3s ease-in-out infinite; }
@keyframes sh1 { 50% { transform: translate(-46px, -6px) rotate(-14deg); } }
@keyframes sh2 { 50% { transform: translate(44px, -10px) rotate(13deg); } }
@keyframes sh3 { 25% { transform: translate(-8px, -14px) rotate(-4deg); } 75% { transform: translate(8px, -14px) rotate(4deg); } }

.gcard {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: absolute; inset: 0; opacity: 0; pointer-events: none; border-radius: 20px;
  transform: translateY(30px) scale(.9); transition: transform .5s cubic-bezier(.2, 1.3, .4, 1), opacity .25s;
}
.gcard.out { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, 1.3, .4, 1), opacity .25s; }
.stage.done .gcard { transition: transform .12s linear; cursor: pointer; }
.gcard.out ~ .burst, .stage:has(.gcard.out) .deck { opacity: 0; }
.gcard-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.2, .4, 1); }
.gcard.flipped .gcard-in { transform: rotateY(180deg); }
.gface { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; overflow: hidden; }
.gback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.gback b { font-size: 30px; letter-spacing: 6px; color: #d9b77e; }
.gback span { font-size: 11px; letter-spacing: 4px; color: #8f7a5b; }
/* 稀有度：翻面前背面先发光，SSR 金、SR 银紫 */
.gcard[data-r="ssr"].out:not(.flipped) .gback { animation: glowG .45s ease-in-out infinite alternate; }
.gcard[data-r="sr"].out:not(.flipped) .gback { box-shadow: 0 0 40px rgba(170, 150, 255, .55), inset 0 0 0 7px rgba(200, 190, 255, .5); }
@keyframes glowG { to { box-shadow: 0 0 70px rgba(255, 196, 80, .9), inset 0 0 0 7px rgba(255, 210, 120, .8); } }
.gfront { transform: rotateY(180deg); background: #fffaf3; color: var(--ink); display: flex; flex-direction: column; }
.gcard[data-r="ssr"] .gfront { box-shadow: inset 0 0 0 3px #e7b247; }
.gcard[data-r="sr"] .gfront { box-shadow: inset 0 0 0 3px #b9b2e6; }
.gimg { position: relative; height: 63%; margin: 10px 10px 0; border-radius: 14px; overflow: hidden; }
.gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rar {
  position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 6px; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
}
.rar.ssr { background: linear-gradient(135deg, #f7d77c, #d9962b); color: #3a2200; }
.rar.sr { background: linear-gradient(135deg, #cfc8ff, #8e83d9); color: #1d1650; }
.gbody { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.gbody h3 { margin: 0; font-size: 20px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gbody p { margin: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbody .gdish { color: var(--text); }
.glare {
  position: absolute; inset: 0; border-radius: 20px; pointer-events: none; opacity: 0; mix-blend-mode: soft-light; transition: opacity .3s;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .85), transparent 45%),
    linear-gradient(115deg, transparent 30%, rgba(255, 220, 150, .5) 45%, rgba(180, 160, 255, .45) 55%, transparent 70%);
}
.stage.done .gcard:hover .glare { opacity: .9; }
.gcard[data-r="ssr"].flipped .glare { opacity: .55; }
.burst { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; opacity: 1 !important; }
.burst i {
  position: absolute; width: 8px; height: 8px; border-radius: 2px; background: #ffd56a; opacity: 0;
  animation: fly .9s cubic-bezier(.1, .7, .3, 1) var(--d) forwards;
}
.burst i:nth-child(3n) { background: #ff8a3d; width: 6px; height: 12px; }
.burst i:nth-child(4n) { background: #fff3cf; border-radius: 50%; }
@keyframes fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4) rotate(220deg); }
}

.shake-acts { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; min-height: 52px; }
.shake-acts .ghost { background: rgba(255, 255, 255, .06); border-color: rgba(217, 183, 126, .35); color: #f3e6cf; }
.shake-btn {
  border: 0; border-radius: 999px; padding: 14px 46px; font-size: 18px; font-weight: 800; letter-spacing: 4px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #ff9a5a, var(--brand) 60%, #e0450f);
  box-shadow: 0 10px 30px rgba(255, 90, 31, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .12s, filter .15s;
}
.shake-btn:hover:not(:disabled) { filter: brightness(1.08); }
.shake-btn:active:not(:disabled) { transform: scale(.96); }
.shake-btn:disabled { filter: saturate(.5) brightness(.8); cursor: default; }
.shake-btn.small { padding: 10px 24px; font-size: 15px; letter-spacing: 1px; }
.shake-tip { position: relative; z-index: 1; margin: 10px 0 0; min-height: 18px; font-size: 12px; color: #8f7a5b; }
.recent { position: relative; z-index: 1; width: 100%; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(217, 183, 126, .15); }
.recent-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #8f7a5b; margin-bottom: 8px; }
.recent-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rc {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .06); color: #e8d9bf; font-size: 12px;
}
.rc:hover { background: rgba(255, 255, 255, .12); }
.rc .thumb.xs { width: 24px; height: 24px; border-radius: 50%; }

.blind-teaser {
  width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); text-align: left; color: var(--ink);
}
.blind-teaser:hover { border-color: #f3d9c9; }
.bt-box { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; background: linear-gradient(135deg, #ffb27a, var(--brand)); position: relative; }
.bt-box::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }
.bt-txt { flex: 1; display: flex; flex-direction: column; }
.bt-txt i { font-style: normal; font-size: 12px; color: var(--muted); }
.bt-go { color: var(--brand); font-size: 13px; font-weight: 600; }

/* ---------- 饭搭盲盒 ---------- */
.blind {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: center;
  border-radius: 22px; padding: 22px 26px; margin-bottom: 24px; scroll-margin-top: 90px;
  background: linear-gradient(135deg, #fff4ec, #ffe6d6 60%, #ffd9c4); border: 1px solid #ffd8c2;
}
.blind-info h2 { margin: 0; font-size: 24px; }
.blind-info h2::after { content: "BLIND BOX"; margin-left: 10px; font-size: 11px; letter-spacing: 3px; color: var(--brand); vertical-align: 4px; }
.blind-info p { margin: 6px 0 14px; color: var(--text); font-size: 13px; }
.blind-stat { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.blind-stat b { font-size: 20px; color: var(--brand); margin-right: 3px; font-variant-numeric: tabular-nums; }
.blind-main { display: flex; align-items: center; gap: 26px; min-height: 170px; }
.blind-form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bf-label { font-size: 12px; color: var(--muted); }
.blind .chips-row { justify-content: flex-start; }
.blind .chips-row button { border-color: #f3cdb6; color: var(--text); background: rgba(255, 255, 255, .6); }
.blind .chips-row button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.blind .chips-row button.on i { color: #8ee69a; }
#bIntro { width: 100%; max-width: 420px; border: 1px solid #f3cdb6; border-radius: 12px; padding: 9px 12px; background: #fff; margin-top: 4px; }
#bIntro:focus { outline: none; border-color: var(--brand); }
/* 盒子 */
.gbox { position: relative; flex: 0 0 auto; width: 120px; height: 120px; }
.gbox-body {
  position: absolute; left: 10px; right: 10px; bottom: 0; height: 78px; border-radius: 10px;
  background: linear-gradient(180deg, #ff8a3d, #e5480f); box-shadow: 0 12px 24px rgba(229, 72, 15, .3);
  display: grid; place-items: center;
}
.gbox-body::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; transform: translateX(-50%); background: #ffd56a; }
.gbox-body b { position: relative; font-size: 30px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.gbox-lid {
  position: absolute; left: 2px; right: 2px; top: 22px; height: 26px; border-radius: 8px; z-index: 2;
  background: linear-gradient(180deg, #ffa060, #f05a1a); transform-origin: 10% 100%; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1);
}
.gbox-lid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; transform: translateX(-50%); background: #ffd56a; }
.gbox-lid::after {
  content: ""; position: absolute; left: 50%; top: -16px; width: 34px; height: 18px; transform: translateX(-50%);
  border: 5px solid #ffd56a; border-bottom: 0; border-radius: 18px 18px 0 0;
}
.gbox-glow { position: absolute; left: 50%; top: 40px; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%); opacity: 0; }
.gbox.idle { animation: bob 2.6s ease-in-out infinite; }
.gbox.waiting { animation: wobble 1.6s ease-in-out infinite; }
.gbox.open .gbox-lid { transform: translate(-8px, -26px) rotate(-28deg); }
.gbox.open .gbox-glow { opacity: 1; box-shadow: 0 0 40px 30px rgba(255, 213, 106, .7); }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes wobble { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-6deg); } 80% { transform: rotate(5deg); } 90% { transform: rotate(-3deg); } }
.blind-wait { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.blind-wait b { font-size: 16px; }
.blind-wait p { margin: 0; font-size: 13px; color: var(--text); }
.blind q, .blind-reveal q { font-size: 13px; color: var(--text); background: rgba(255, 255, 255, .7); padding: 6px 10px; border-radius: 10px; quotes: "“" "”"; }
.blind-reveal {
  flex: 1; max-width: 420px; background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 14px 30px rgba(229, 72, 15, .15);
}
.blind-reveal.reveal { animation: rise .7s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.92); } }
.br-who { display: flex; align-items: center; gap: 10px; }
.br-who span { display: block; font-size: 11px; color: var(--muted); }
.br-who b { font-size: 18px; }
.br-shop { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: #faf7f3; cursor: pointer; }
.br-shop b { display: block; font-size: 14px; }
.br-shop span { font-size: 12px; color: var(--muted); }
.br-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }

@media (max-width: 720px) {
  .shake { padding: 22px 14px 16px; border-radius: 20px; }
  .shake-head h2 { font-size: 19px; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: 100%; scrollbar-width: none; }
  .chips-row button { flex: 0 0 auto; }
  .stage { width: 240px; height: 344px; margin: 20px 0 14px; }
  .blind { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px; }
  .blind-main { flex-direction: column; align-items: stretch; gap: 14px; }
  .blind-main .gbox { align-self: center; transform: scale(.72); margin: -20px 0 -26px; }
  .blind-main .gbox.idle, .blind-main .gbox.waiting { animation: none; }
  .blind-form .shake-btn { align-self: stretch; }
  .blind-reveal { max-width: none; }
}

/* 侧栏小入口 */
.blind-entry {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r); cursor: pointer; text-align: left;
  border: 1px solid #ffd8c2; background: linear-gradient(135deg, #fff6f0, #ffe9dc); color: var(--ink); transition: border-color .15s, transform .15s;
}
.blind-entry:hover { border-color: #ffb48c; }
.blind-entry:active { transform: scale(.98); }
.be-box { position: relative; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #ffb27a, var(--brand)); }
.be-box::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.blind-entry[data-state="waiting"] .be-box { animation: wobble 1.6s ease-in-out infinite; }
.blind-entry[data-state="matched"] .be-box { background: linear-gradient(135deg, #7bd88a, #2f9a3d); }
.blind-entry[data-state="matched"] .be-box::after { content: "✓"; }
.be-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.be-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.be-txt i { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.be-go { color: var(--brand); font-size: 18px; }

/* 盲盒弹窗 */
.blind-sheet { max-width: 460px; background: linear-gradient(160deg, #fff7f1, #fff 55%); }
.blind-sheet .blind-info h2 { margin: 0; font-size: 20px; padding-right: 36px; }
.blind-sheet .blind-info h2::after { content: "BLIND BOX"; margin-left: 8px; font-size: 10px; letter-spacing: 2px; color: var(--brand); vertical-align: 3px; }
.blind-sheet .blind-info p { font-size: 13px; color: var(--text); margin: 6px 0 10px; }
.blind-sheet .blind-main { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 4px; }
.blind-sheet .gbox { align-self: center; zoom: .75; }
.blind-sheet .chips-row { justify-content: flex-start; flex-wrap: wrap; overflow: visible; }
.blind-sheet .chips-row button { border-color: #f3cdb6; color: var(--text); background: #fff; }
.blind-sheet .chips-row button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.blind-sheet .chips-row button.on i { color: #8ee69a; }
.blind-sheet .blind-form .shake-btn { align-self: stretch; margin-top: 4px; }
.blind-sheet #bIntro { max-width: none; }
.blind-sheet .blind-reveal { max-width: none; }
.blind-sheet .blind-wait { align-items: center; text-align: center; }

/* ---------- 日期时间选择器 ---------- */
.dt-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #faf8f6; color: var(--ink); font-size: 14px;
  transition: border-color .15s, background .15s;
}
.dt-btn::after {
  content: ''; flex: 0 0 auto; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
}
.dt-btn:hover, .dt-btn.open { border-color: var(--brand); background: #fff; }
.dt-btn .ph { color: var(--muted); }
.dp {
  position: fixed; z-index: 30; width: min(316px, calc(100vw - 16px)); padding: 14px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px rgba(40, 25, 10, .06), 0 20px 50px rgba(40, 25, 10, .22); animation: up .16s ease-out; user-select: none;
}
.dp button { font: inherit; border: 0; background: none; cursor: pointer; color: var(--ink); }
.dp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dp-head b { font-size: 16px; }
.dp-head span { display: flex; gap: 4px; }
.dp-head button { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--text); }
.dp-head button:hover:not(:disabled) { background: #f4efe9; }
.dp-head button:disabled { color: #d8d2cb; cursor: default; }
.dp-wk, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.dp-wk i { font-style: normal; font-size: 11px; line-height: 26px; color: var(--muted); }
.dp-days { row-gap: 2px; }
.dp-days button { height: 36px; border-radius: 50%; font-size: 14px; font-variant-numeric: tabular-nums; }
.dp-days button:hover:not(:disabled):not(.on) { background: #f4efe9; }
.dp-days .today { color: var(--brand); font-weight: 700; }
.dp-days .on { background: var(--ink); color: #fff; font-weight: 700; }
.dp-days .dis { color: #d8d2cb; cursor: default; }
.dp-sep { height: 1px; margin: 10px 0; background: var(--line); }
.dp-hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.dp-mins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.dp-hours button, .dp-mins button { height: 30px; border-radius: 8px; font-size: 13px; background: #f7f3ee; font-variant-numeric: tabular-nums; }
.dp-hours button:hover, .dp-mins button:hover { background: #efe8e0; }
.dp-hours .on, .dp-mins .on { background: var(--brand-soft); color: var(--brand); font-weight: 700; box-shadow: inset 0 0 0 1px #ffc6ad; }
.dp-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.dp-q { border: 1px solid var(--line) !important; border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--text) !important; }
.dp-q:hover { border-color: #ffc6ad !important; color: var(--brand) !important; }
.dp-ok { margin-left: auto; padding: 7px 18px; border-radius: 999px; background: var(--ink) !important; color: #fff !important; font-weight: 600; }

/* ---------- 模糊搜索下拉 ---------- */
.cb { position: relative; }
.cb-input { width: 100%; padding-right: 30px !important; cursor: text; transition: border-color .15s, background .15s; }
.cb-input:focus { outline: none; border-color: var(--brand) !important; background: #fff !important; box-shadow: 0 0 0 3px var(--brand-soft); }
.cb::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s;
}
.cb.open::after { transform: rotate(-135deg); margin-top: -2px; }
.cb-pop {
  position: fixed; z-index: 30; max-height: 264px; overflow-y: auto; padding: 6px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(40, 25, 10, .06), 0 18px 44px rgba(40, 25, 10, .2); animation: up .14s ease-out;
  scrollbar-width: thin;
}
.cb-group { padding: 8px 10px 4px; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.cb-opt { padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--ink); cursor: pointer; }
.cb-opt.hi { background: #f4efe9; }
.cb-opt.sel { color: var(--brand); font-weight: 600; }
.cb-opt mark { background: none; color: var(--brand); font-weight: 700; }
.cb-empty { padding: 14px 10px; text-align: center; font-size: 13px; color: var(--muted); }

/* 必约榜：常去的店 */
#pFavPicked:empty { display: none; }
.fav-pill { display: inline-flex; align-items: center; gap: 2px; padding-right: 4px; }
.fav-pill button {
  border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; padding: 0 4px; cursor: pointer; opacity: .7;
}
.fav-pill button:hover { opacity: 1; }
#pFavSearch:disabled { cursor: not-allowed; color: var(--muted); }
.fav-meta { margin-left: 8px; font-size: 12px; color: var(--muted); }
