/* =============================================================
   UI 精修层（在 app.css / games.css / lab.css 之后加载）
   目标：一套克制的设计系统 —— 单品牌色、统一线性图标、稳定间距节奏
   —— 只做覆盖，不改原有类名，避免回归
   ============================================================= */

/* ---------- 1. 设计令牌：收敛色板与阴影 ---------- */
:root {
  --bg:        #f4f6f8;
  --bg-soft:   #ffffff;
  --card:      #ffffff;
  --card-2:    #f7f9fa;

  --border:    #e8ecf1;
  --border-2:  #dbe2e8;

  --text:      #111820;
  --muted:     #5c6b78;
  --dim:       #95a1ac;

  /* 品牌色：单一深青绿，其余色相只用于语义提示 */
  --accent:    #0f766e;
  --accent-2:  #0d9488;
  --accent-3:  #0f766e;
  --warn:      #b45309;
  --danger:    #be123c;
  --gold:      #a16207;

  --brand-ink: #0e3b37;
  --brand-wash:#eef6f4;

  --grad:      linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  --grad-cool: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  --grad-warm: linear-gradient(135deg, #b45309 0%, #be123c 100%);

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 16px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .04);
  --shadow:    0 6px 22px rgba(17, 24, 39, .06);
  --glow:      0 6px 16px rgba(15, 118, 110, .20);

  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 24px;
  --gap-6: 32px;
}

/* ---------- 2. 基础排版 ---------- */
body {
  color: var(--text);
  font-size: 15px;
  line-height: 1.58;
  letter-spacing: 0;
}

/* 三团彩色光斑 → 一层极淡氛围，避免背景“花” */
body::before {
  background: radial-gradient(880px 460px at 50% -10%, rgba(15, 118, 110, .05), transparent 62%), var(--bg);
}

h1, h2, h3, h4 { letter-spacing: -.015em; font-weight: 650; }
.n .num, .num { font-variant-numeric: tabular-nums; }

.icon { flex: none; }

/* 滚动定位不落到固定头下面 */
html { scroll-padding-top: calc(var(--topbar-h) + 16px); }
section[id], div[id] { scroll-margin-top: calc(var(--topbar-h) + 16px); }

/* ---------- 3. 顶部栏 ---------- */
.topbar {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
/* 内容滑到头部下方时柔和过渡，不会有“贴脸、被切一刀”的硬边 */
.topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -16px; height: 16px;
  background: linear-gradient(rgba(244, 246, 248, .9), rgba(244, 246, 248, 0));
  pointer-events: none;
}
.topbar-inner { padding: 0 16px; gap: 12px; }

.brand { gap: 9px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--brand-ink);
  box-shadow: none;
}
.brand-mark svg { width: 18px; height: 18px; }

.topnav-item { font-size: 13.5px; font-weight: 500; padding: 7px 12px; }
.topnav-item.is-active { background: var(--brand-wash); color: var(--accent); box-shadow: none; font-weight: 600; }

.topbar-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  box-shadow: none; color: var(--muted);
}
.topbar-icon:hover, .topbar-icon:active { background: var(--card-2); border-color: var(--border); color: var(--text); }
.topbar-icon .icon { width: 21px; height: 21px; }

/* ---------- 4. 页面容器与纵向节奏 ---------- */
.main {
  padding: 14px 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 72px);
}
.main > *:first-child { margin-top: 0; }

.page-head { margin-bottom: 16px; gap: 10px; align-items: center; }
.page-head h1 { font-size: 21px; font-weight: 650; }
.page-head p { font-size: 12.5px; margin-top: 3px; color: var(--muted); }
.back-btn { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }
.back-btn .icon { width: 18px; height: 18px; }

/* 分组标题：中文不用大写与宽字距 */
.section-label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--dim);
  margin: 20px 2px 9px;
}
.section-label:first-child { margin-top: 0; }
.section-label-icon { display: flex; align-items: center; gap: 6px; }
.section-label-icon .icon { width: 15px; height: 15px; color: var(--dim); }

/* ---------- 5. 卡片：更薄的边框、更轻的投影、稳定间距 ---------- */
.card {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.card-tight { padding: 14px; }
.card-title {
  font-size: 15px; font-weight: 650; line-height: 1.4;
  margin-bottom: 13px; gap: 8px;
}
.card-title .sub { font-size: 11.5px; font-weight: 400; color: var(--dim); }
.card > .card-title + * { margin-top: 0; }

.stat { padding: 14px; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.stat-icon {
  width: 30px; height: 30px; border-radius: 9px; margin-bottom: 9px;
  font-size: 15px; filter: grayscale(.25);
}
.stat-value { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.stat-label { font-size: 11.5px; margin-top: 3px; }
.stat-hint { font-size: 11px; margin-top: 3px; }

.grid { gap: 10px; }

/* 主视觉：去掉漂浮光球，回到“白纸 + 一行数字” */
.hero {
  padding: 22px 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.hero::before, .hero::after { display: none; }
.hero-eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: none; color: var(--accent);
}
.hero-number { font-size: 46px; font-weight: 700; letter-spacing: -.035em; }
.hero-unit { font-size: 15px; font-weight: 500; color: var(--muted); }
.hero-meta { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.hero-body { margin-top: 8px; gap: 14px; }

/* ---------- 6. 统一入口行（sos / 游戏 / 实验室 / 实验室六宫格） ---------- */
.ui-list { display: flex; flex-direction: column; gap: 10px; }
.ui-list + .ui-list { margin-top: 10px; }

.ui-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  color: inherit; text-decoration: none;
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.ui-row:active { transform: scale(.992); border-color: var(--border-2); }
.ui-row:hover { border-color: var(--border-2); }

.ui-row-main { flex: 1; min-width: 0; }
.ui-row-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--text);
}
.ui-row-sub {
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
  margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ui-row-go { flex: none; color: #c6cfd8; display: grid; place-items: center; }
.ui-row-go .icon { width: 17px; height: 17px; }

/* 图标容器：统一浅底 + 单色线性图标 */
.ui-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-wash); color: var(--accent);
}
.ui-ico .icon { width: 21px; height: 21px; }
.ui-ico.is-sm { width: 32px; height: 32px; border-radius: 9px; }
.ui-ico.is-sm .icon { width: 17px; height: 17px; }
.ui-ico.is-warm { background: #fdf5e9; color: var(--warn); }
.ui-ico.is-danger { background: #fdf1f3; color: var(--danger); }
.ui-ico.is-plain { background: var(--card-2); color: var(--muted); }

/* 标签：无边框、统一的浅灰底 */
.ui-tag, .lab-card-tag, .badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; line-height: 1.5;
  padding: 2px 7px; border-radius: 6px;
  background: #f2f5f6; color: var(--muted); border: 0;
}
.lab-card-tag.is-hot, .badge-danger { background: #fdf2f4; color: #a83a52; }
.lab-card-tag.is-open, .badge-accent { background: var(--brand-wash); color: var(--accent); }
.badge-warn { background: #fdf6ec; color: #96652a; }
.badge-gold { background: #fbf5e9; color: #8a6a2f; }

/* ---------- 7. 旧入口类统一到同一视觉（不依赖模板改动） ---------- */
.sos-entry, .game-entry, .lab-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}
.sos-entry { background: var(--card); border-color: var(--border); }
.game-entry.is-lab { border-color: var(--border); }
.sos-entry-emo, .game-entry-emo, .lab-card-emo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 19px; color: var(--accent);
  background: var(--brand-wash); box-shadow: none;
}
.sos-entry-emo { color: var(--warn); background: #fdf5e9; }
.sos-entry-main, .game-entry-main, .lab-card-main { flex: 1; min-width: 0; }
.sos-entry-title, .game-entry-title, .lab-card-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.sos-entry-sub, .game-entry-sub, .lab-card-sub {
  font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 3px;
}
.lab-card { margin-bottom: 0; }
.lab-grid { gap: 10px; }
.sos-entry-go, .game-entry-go, .lab-card-go {
  font-size: 12px; font-weight: 500; color: var(--dim);
  display: inline-flex; align-items: center; gap: 2px; white-space: nowrap;
}
.lab-card-go { font-size: 0; }
.lab-card-go .icon, .lab-card-go::after { color: #c6cfd8; }

/* 实验室页头：大色块 → 白底说明卡 */
.lab-hero {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  text-align: left;
  margin-bottom: 14px;
}
.lab-hero-emo {
  width: 38px; height: 38px; border-radius: 11px; font-size: 19px;
  display: grid; place-items: center;
  background: var(--brand-wash); color: var(--accent);
  margin-bottom: 10px;
}
.lab-hero-title { font-size: 17px; font-weight: 650; margin: 0; }
.lab-hero-desc {
  font-size: 12.5px; line-height: 1.65; color: var(--muted);
  opacity: 1; margin-top: 6px;
}
.lab-hero-strip {
  margin-top: 12px; padding: 0; gap: 10px;
  background: transparent; justify-content: flex-start;
  font-size: 11.5px; color: var(--dim);
}
.lab-hero-strip i { background: var(--border-2); height: 10px; }
.lab-hero-head { display: flex; align-items: flex-start; gap: 12px; }
.lab-hero-copy { min-width: 0; }
.lab-hero-head .ui-ico { margin: 1px 0 0; }
.lab-hero-strip span { display: inline-flex; align-items: center; gap: 5px; }
.lab-hero-strip .icon { width: 14px; height: 14px; opacity: .85; }

/* 游戏中心页头与实验室同一语言：白底说明卡 */
.game-hero {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  text-align: left;
  margin-bottom: 14px;
}
.game-hero-emo { display: none; }
.game-hero-title { font-size: 17px; font-weight: 650; margin: 0; }
.game-hero-desc { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-top: 6px; opacity: 1; }
.game-hero-meta {
  display: flex; gap: 10px; margin-top: 12px; padding: 0;
  background: transparent; border-radius: 0;
  font-size: 11.5px; color: var(--dim); justify-content: flex-start;
}

.ui-row-meta { font-size: 11.5px; color: var(--dim); margin-top: 4px; }

/* 游戏卡（旧结构兜底） */
.game-card { padding: 14px; border-radius: var(--r); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.game-card-emo {
  width: 38px; height: 38px; border-radius: 11px; font-size: 19px; box-shadow: none;
  background: var(--brand-wash);
}
.game-card-title { font-size: 14.5px; font-weight: 600; }
.game-card-tag {
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: #f2f5f6; color: var(--muted); border: 0;
}
.game-card-tag.is-hot { background: #fdf1f3; color: var(--danger); }
.game-card-sub { font-size: 12.5px; color: var(--muted); }
.game-card-best { font-size: 11.5px; color: var(--dim); }
.game-card-go { font-size: 0; color: #c6cfd8; }

/* ---------- 8. 列表 ---------- */.list-item { padding: 12px 0; gap: 12px; border-bottom: 1px solid var(--border); }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { padding-bottom: 0; }
.list-title { font-size: 14px; font-weight: 600; }
.list-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-right .v { font-size: 14px; font-weight: 600; }

/* ---------- 9. 按钮 / 表单 ---------- */
.btn { border-radius: 12px; font-weight: 600; font-size: 14.5px; padding: 11px 18px; }
.btn-primary { background: var(--accent); box-shadow: 0 4px 12px rgba(15, 118, 110, .18); }
.btn-primary:hover { background: #0d6a63; box-shadow: 0 6px 16px rgba(15, 118, 110, .24); }
.btn-xl { padding: 14px 20px; font-size: 15.5px; border-radius: 13px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-ghost { box-shadow: none; background: var(--card); }
.btn-icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: none; }

.input, .select, .textarea { border-radius: 11px; padding: 12px 13px; font-size: 14.5px; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.label { font-size: 12.5px; font-weight: 500; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.help-text { font-size: 11.5px; }

/* ---------- 10. 底部导航：更薄、更安静 ---------- */
.tabbar {
  left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  height: 60px; border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--border);
  box-shadow: 0 8px 26px rgba(17, 24, 39, .10);
}
.tabbar-item { gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--dim); border-radius: 14px; }
.tabbar-item .icon { width: 21px; height: 21px; stroke-width: 1.6; }
.tabbar-item.is-active { color: var(--accent); font-weight: 600; }
.tabbar-item.is-active .icon { transform: none; }
.tabbar-item.is-active::before {
  width: 4px; height: 4px; border-radius: 50%; bottom: 5px;
  background: var(--accent);
}
.tabbar-label { letter-spacing: 0; }

/* ---------- 11. emoji 图标降权：只作为内容点缀，不再抢视觉 ---------- */
.empty .emo { font-size: 28px; opacity: .45; filter: grayscale(1); margin-bottom: 6px; }
.empty { color: var(--dim); font-size: 13px; padding: 34px 0; }
.tip-card .emo { font-size: 17px; filter: none; }
.drink-chip .emo { font-size: 24px; }
.ach-icon { filter: grayscale(.2); }

/* 提示条 */
.tip-card {
  border: 1px solid var(--border);
  background: #fbfcfc;
  border-radius: var(--r);
  padding: 13px 14px;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 12px 0;
}
/* 提示条紧跟在列表/卡片之后时，至少留出与卡片一致的间距 */
.ui-list + .tip-card,
.card + .tip-card,
.checkin-panel + .tip-card,
.lab-hero + .tip-card,
.game-hero + .tip-card { margin-top: 12px; }
.tip-card + .section-label { margin-top: 22px; }
.flash { border-radius: var(--r-sm); font-size: 13px; padding: 11px 13px; }

/* ---------- 12. 动效：短、轻，避免整屏一起“升起” ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.card, .stat, .ui-row, .sos-entry, .game-entry, .lab-card { animation-duration: .3s; }

/* 触屏设备去掉 hover 位移 */
@media (hover: none) {
  .stat:hover { transform: none; box-shadow: var(--shadow-sm); }
}

/* 桌面端放宽留白 */
@media (min-width: 768px) {
  :root { --topbar-h: 64px; }
  .main { padding: 20px 24px 96px; }
  .page-head h1 { font-size: 23px; }
  .card { padding: 18px; }
  .ui-row, .game-entry, .sos-entry, .lab-card { padding: 14px 16px; }
}

/* ---------- 13. 打卡面板：从“彩色边框块”回到一张安静的白卡 ---------- */
.checkin-panel {
  padding: 18px 16px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.checkin-panel.is-done  { background: var(--card); border-color: #d3e8e3; }
.checkin-panel.is-drank { background: var(--card); border-color: #f0e3ca; }
.ck-head { gap: 10px; }
.ck-title { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.ck-sub { font-size: 12.5px; margin-top: 5px; line-height: 1.55; }
.ck-date { font-size: 11.5px; font-weight: 600; color: var(--dim); }
.is-done .ck-date, .is-drank .ck-date { color: var(--dim); }
.ck-actions { margin-top: 14px; gap: 8px; }
.ck-btn { border-radius: 11px; padding: 11px 10px; }
.ck-btn-main { font-size: 14px; font-weight: 600; }
.ck-btn-sub { font-size: 11px; }
.ck-patch { margin-top: 9px; border-radius: 10px; font-size: 12px; }

/* ---------- 14. 日历：默认留白，只给“有记录的日子”上色 ---------- */
.cal-head, .cal-grid { gap: 6px; }
.cal-head { margin-bottom: 6px; }
.cal-head span { font-size: 10.5px; font-weight: 500; }
.cal-cell {
  aspect-ratio: auto; height: 40px; min-height: 0;
  border-radius: 9px; font-size: 12.5px; font-weight: 500;
  background: transparent; border: 1px solid transparent; color: var(--dim);
}
.cal-cell.is-clean {
  background: var(--brand-wash);
  border-color: #d3e8e3; color: var(--accent); font-weight: 600;
}
.cal-cell.is-drank {
  background: #fdf6e8;
  border-color: #f1e4cb; color: var(--warn); font-weight: 600;
}
.cal-cell.is-today { outline: 1.5px solid var(--accent); outline-offset: 1px; color: var(--text); font-weight: 600; }
.cal-legend { margin-top: 12px; font-size: 11px; gap: 14px; color: var(--dim); }
.cal-legend i { width: 9px; height: 9px; border-radius: 3px; }

/* ---------- 15. 统计小卡：数字与说明分层 ---------- */
.stat-icon { background: var(--card-2); border: 1px solid var(--border); }
.saved-equiv {
  background: var(--brand-wash); color: var(--accent);
  font-size: 11px; font-weight: 500; padding: 3px 8px;
  margin-top: 8px; justify-content: flex-start;
}

/* ---------- 16. 月历 / 区块标题 ---------- */
.cal-month-head { margin-bottom: 8px; }
.cal-month-name { font-size: 14px; font-weight: 600; }
.cal-month-sum { font-size: 11.5px; color: var(--dim); font-weight: 400; }
/* 时间线：竖线画在 8px（中心 9px），圆点必须跟着内边距重新定位，
   app.css 里的 left:-22px 是按 padding-left:26px 算的，这里改窄后不重算就会跑到卡片外面 */
.timeline { padding-left: 4px; }
.tl-item { padding: 9px 0 9px 22px; }
.tl-title { font-size: 13.5px; font-weight: 600; }
.tl-desc { font-size: 12px; line-height: 1.6; margin-top: 2px; }
.step-no { border-radius: 9px; background: var(--accent); box-shadow: none; font-weight: 600; }
.step-title { font-size: 15px; font-weight: 600; }
.step-sub { font-size: 12px; }

/* 分段控件与标签页 */
.segmented { background: var(--card-2); border-radius: 11px; padding: 3px; }
.segmented-item { border-radius: 8px; font-size: 12.5px; font-weight: 500; }
.segmented-item.is-active { background: var(--card); box-shadow: var(--shadow-sm); font-weight: 600; color: var(--text); }
.tabs { gap: 4px; }
.tab { border-radius: 9px; font-size: 12.5px; font-weight: 500; padding: 7px 12px; }

/* ---------- 17. 数据卡：数字统一墨色，靠图标与单位区分 ---------- */
.grid { align-items: stretch; }
.stat-value, .accent-text {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.stat-value.sm { font-size: 17px; }
.stat .stat-hint + .saved-equiv { margin-top: 6px; }

/* 环形进度：缩小一档，与左侧数字更平衡 */
.ring-wrap { gap: 14px; }
.ring { width: 108px; height: 108px; }
.ring-main { font-size: 22px; font-weight: 700; }
.ring-top { font-size: 10px; font-weight: 500; }
.ring-sub { font-size: 9px; }

/* ---------- 18. 展示勋章：两列、白底、细边框、选中加勾 ---------- */
.sc-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sc-chip {
  justify-content: flex-start; gap: 8px;
  padding: 9px 10px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.sc-chip-icon {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 15px;
  background: var(--card-2);
}
.sc-chip-name {
  font-size: 12px; font-weight: 500; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-chip.is-on { border-color: var(--accent); background: var(--brand-wash); box-shadow: none; }
.sc-chip.is-on .sc-chip-name { color: var(--accent); font-weight: 600; }
.sc-chip.is-on .sc-chip-icon { background: #fff; }

/* ---------- 19. 成就墙：去掉彩色描边与高光，解锁/未解锁只靠灰度区分 ---------- */
.ach {
  padding: 14px 8px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
}
.ach.is-unlocked { border-color: #d9e7e3; background: var(--card); }
.ach.is-unlocked::after { display: none; }
.ach.is-locked { opacity: 1; filter: none; }
.ach.is-locked .ach-icon { filter: grayscale(1); opacity: .3; }
.ach.is-locked .ach-name { color: var(--dim); font-weight: 500; }
.ach-icon { font-size: 26px; margin-bottom: 5px; }
.ach-name { font-size: 12px; font-weight: 600; }
.ach-desc { font-size: 10.5px; line-height: 1.45; }

/* ---------- 20. 其他细节：时间线、页脚、分隔 ---------- */
.timeline::before { left: 8px; width: 2px; background: linear-gradient(180deg, #d9e7e3, var(--border)); }
.tl-item::before { left: 0; top: 15px; width: 10px; height: 10px; }
.tl-item.is-next .tl-title { color: var(--text); }
.alert-line { border-radius: var(--r-sm); font-size: 12.5px; }
.pager-btn { border-radius: 9px; }
.empty { padding: 32px 0; }
.flash-success { background: #f1f8f6; border-color: #d9e7e3; color: var(--accent); }
.flash-error { background: #fdf3f5; border-color: #f6dde2; color: var(--danger); }
.flash-warn { background: #fdf8ee; border-color: #f3e6cb; color: var(--warn); }
.flash-info { background: var(--card-2); border-color: var(--border); color: var(--muted); }

/* 昵称旁的展示徽章：缩小、降饱和，避免把名字挤花 */
.sc-icons { gap: 3px; margin-left: 6px; vertical-align: 0; }
.sc-icon { font-size: 13px; line-height: 1; opacity: .92; }
.gold-text { color: var(--text); }
.profile-name { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.avatar-tip-row { margin-top: 12px; }

/* 头像颜色选择：圆点而非方块，色板不再抢戏 */
.avatar-swatches, .color-row { gap: 10px; }

/* ---------- 21. 酒种选择：更小的圆角与更安静的选中态 ---------- */
.drink-grid { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.drink-chip {
  padding: 12px 6px 10px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
}
.drink-chip:hover { transform: none; border-color: var(--border-2); }
.drink-chip.is-active {
  border-color: var(--accent); background: var(--brand-wash); box-shadow: none;
}
.drink-chip.is-active::after {
  width: 16px; height: 16px; top: 5px; right: 5px;
  font-size: 10px; background: var(--accent);
}
.drink-chip .emo { font-size: 24px; }
.drink-chip .nm { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.drink-chip .abv { font-size: 10.5px; color: var(--dim); }
.mood-chip {
  padding: 7px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 500;
  background: var(--card); border: 1px solid var(--border);
}
.mood-chip.is-active { border-color: var(--accent); background: var(--brand-wash); color: var(--accent); font-weight: 600; }
.quick-chip { border-radius: 9px; font-size: 12.5px; }

/* ---------- 22. 剧本杀：角色 emoji 收进统一的图标容器 ---------- */
.scene-hero { text-align: center; padding: 4px 8px 16px; }
.scene-hero-emo { display: flex; justify-content: center; margin-bottom: 10px; }
.scene-hero-title { font-size: 19px; font-weight: 650; margin: 0; }
.scene-hero-desc { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin-top: 7px; }
.scene-card { padding: 12px 14px; border-radius: var(--r); }
.scene-card-emo {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 20px;
  background: var(--brand-wash);
}
.scene-card-title { font-size: 14.5px; font-weight: 600; }
.scene-card-sub { font-size: 12px; color: var(--muted); }
.scene-card-meta { font-size: 11px; color: var(--dim); }
.scene-card-go { font-size: 0; color: #c6cfd8; }

/* ---------- 23. 统计小块图标：统一线性图标，尺寸收敛 ---------- */
.stat-icon { color: var(--muted); }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon:has(.icon) { color: var(--accent); background: var(--brand-wash); border-color: transparent; }

/* ---------- 24. 顶层纵向节奏：任何两个相邻的块之间都必须有间距 ---------- */
/* 之前只有部分块自带 margin-bottom，列表/入口组后面会直接贴住下一张卡 */
.main > * + * { margin-top: 12px; }
/* 分组标题自己带下间距（9px），不要再被通用规则顶开 */
.main > .section-label + * { margin-top: 0; }
/* 工具区 → 数据区：给一个更大的分隔，读起来是两组而不是一串 */
.ui-list + .hero,  .ui-duo + .hero,
.ui-list + .grid,  .ui-duo + .grid,
.ui-list + .card,  .ui-duo + .card { margin-top: 16px; }
.rescue + .ui-list { margin-top: 12px; }
.ui-list + .ui-duo  { margin-top: 12px; }

/* ---------- 25. 冲动急救卡：一个模块装下「撑住」与「玩一局」 ---------- */
.rescue {
  padding: 15px 15px 12px;
  border-radius: var(--r-lg);
  border: 1px solid #f0e5d4;
  background: linear-gradient(180deg, #fffdf8 0%, #fffefc 60%, #ffffff 100%);
  box-shadow: var(--shadow-sm);
}
.rescue-head { display: flex; align-items: flex-start; gap: 12px; }
.rescue-main { flex: 1; min-width: 0; }
.rescue-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 15px; font-weight: 650; line-height: 1.45; color: var(--text);
}
.rescue-sub { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.rescue-btn {
  margin-top: 13px;
  height: 46px; border-radius: 12px; font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 118, 110, .18);
}
.rescue-btn .icon { width: 18px; height: 18px; }
.rescue-alt {
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid #f4ece0;
}
.rescue-alt-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--dim);
}
.rescue-more { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.rescue-more .icon { width: 12px; height: 12px; }
.rescue-games { display: flex; align-items: stretch; gap: 6px; margin-top: 8px; }
.rescue-games a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 4px; border-radius: 9px;
  font-size: 12px; font-weight: 600; line-height: 1.3;
  color: var(--accent); background: #f1f7f5; text-decoration: none; white-space: nowrap;
}
.rescue-games a:active { background: #e6f1ee; }
.rescue-games .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--danger); }
.ui-tag.is-warm { background: #fdf4e7; color: var(--warn); }
.ui-tag.is-open { background: var(--brand-wash); color: var(--accent); }
.ui-tag.is-mute { background: var(--card-2); color: var(--dim); }

/* ---------- 26. 并排两格：深夜树洞 / 时间胶囊 ---------- */
.ui-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-tile {
  display: flex; flex-direction: column; gap: 7px;
  min-height: 104px;
  padding: 13px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: inherit; text-decoration: none;
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.ui-tile:active { transform: scale(.994); border-color: var(--border-2); }
.ui-tile-title {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 650; line-height: 1.4;
}
.ui-tile-sub { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.ui-tile .ui-ico { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 2px; }
.ui-tile .ui-ico .icon { width: 19px; height: 19px; }
.ui-tile { min-height: 112px; justify-content: flex-start; }

@media (max-width: 359px) {
  .rescue-games a { padding: 7px 3px; font-size: 11.5px; }
  .ui-tile { padding: 11px; }
  .ui-tile-title { font-size: 13px; }
}

/* ---------- 27. 邀请卡：二维码 + 邀请语 + 两个动作（不再整块外链） ---------- */
.share-invite {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfefd 0%, #ffffff 100%);
  box-shadow: var(--shadow-sm);
}
.share-invite-qr {
  width: 84px; height: 84px; flex: none;
  border-radius: 10px; background: #fff;
  border: 1px solid var(--border); padding: 3px;
}
.share-invite-main { flex: 1; min-width: 0; }
.share-invite-title { font-size: 14.5px; font-weight: 650; line-height: 1.45; color: var(--text); }
.share-invite-sub { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.share-invite-url {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.share-invite-url .icon { width: 13px; height: 13px; opacity: .8; }
.share-invite-acts { display: flex; gap: 8px; margin-top: 10px; }
.share-invite-acts .btn { flex: 1; padding: 9px 6px; font-size: 12.5px; white-space: nowrap; }
.share-invite-acts .btn .icon { width: 15px; height: 15px; }
.share-invite-acts { gap: 7px; }
.share-invite.is-mini { padding: 11px; }
.share-invite.is-mini .share-invite-qr { width: 58px; height: 58px; }
.share-invite.is-plain { background: transparent; border-style: dashed; box-shadow: none; }

/* ---------- 28. 分享页：海报 + 口号 + 转发 ---------- */
.share-hero { text-align: center; padding: 6px 8px 4px; }
.share-mark {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 16px; background: var(--brand-ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(14, 59, 55, .18);
}
.share-mark svg { width: 28px; height: 28px; }
.share-hero-title { font-size: 19px; font-weight: 650; margin: 0; }
.share-hero-sub { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin-top: 6px; }

.poster-frame {
  border-radius: var(--r);
  overflow: hidden;
  background: #0e3b37;
  border: 1px solid var(--border);
  min-height: 180px;
  display: grid; place-items: center;
}
.poster-img { display: block; width: 100%; height: auto; }
.poster-img[hidden], .poster-empty[hidden] { display: none; }
.poster-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 42px 0; color: rgba(255, 255, 255, .6); font-size: 12.5px;
}
.poster-empty .icon { width: 26px; height: 26px; }
.poster-acts { display: flex; gap: 8px; margin-top: 12px; }
.poster-acts .btn { flex: 1; }
/* display:flex 会盖掉 hidden 的默认样式，必须显式关掉 */
.poster-acts[hidden] { display: none; }

.slogan-list { display: flex; flex-direction: column; gap: 8px; }
.slogan-item {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  padding: 11px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--card-2);
  color: var(--muted); transition: border-color .16s var(--ease), background .16s var(--ease);
}
.slogan-item:active { background: #eff3f4; }
.slogan-item.is-active { border-color: var(--accent); background: var(--brand-wash); color: var(--text); }
.slogan-quote { flex: none; color: var(--dim); display: grid; place-items: center; margin-top: 1px; }
.slogan-quote .icon { width: 16px; height: 16px; }
.slogan-item.is-active .slogan-quote { color: var(--accent); }
.slogan-text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.6; }
.slogan-item.is-active .slogan-text { font-weight: 600; }
.slogan-flag { flex: none; color: var(--accent); opacity: 0; display: grid; place-items: center; }
.slogan-flag .icon { width: 16px; height: 16px; }
.slogan-item.is-active .slogan-flag { opacity: 1; }

/* 行式按钮（分享页的「系统分享 / 复制链接」） */
button.ui-row { width: 100%; text-align: left; font: inherit; cursor: pointer; }
button.ui-row .ui-row-main { display: flex; flex-direction: column; }
button.ui-row:disabled { opacity: .55; }

/* ---------- 29. 宿醉档案馆 / 一键脱身 / 另一条时间线 / 清醒契约 ---------- */
.ui-row.is-static { cursor: default; }
.ui-row.is-static:active { transform: none; background: var(--card); }

.hg-hero, .esc-hero, .wi-hero, .ct-hero {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 4px 2px 2px;
}
.hg-hero-copy, .esc-hero-copy, .wi-hero-copy, .ct-hero-copy { flex: 1; min-width: 0; }
.hg-hero-title, .esc-hero-title, .wi-hero-title, .ct-hero-title {
  font-size: 17px; font-weight: 600; margin: 0 0 4px; color: var(--text);
}
.hg-hero-desc, .esc-hero-desc, .wi-hero-desc, .ct-hero-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 0;
}

.hg-ask-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hg-ask-date { font-size: 14px; font-weight: 600; }
.hg-ask-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.hg-hint { font-size: 12px; color: var(--dim); margin-top: 6px; }
.hg-textarea {
  width: 100%; min-height: 84px; resize: vertical;
  padding: 11px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--card-2);
  font: inherit; font-size: 13.5px; color: var(--text);
}
.hg-skip {
  display: block; width: 100%; margin-top: 10px; padding: 8px;
  font-size: 12.5px; color: var(--dim);
  background: none; border: 0; cursor: pointer;
}
.hg-quote { text-align: center; padding: 18px 16px; }
.hg-quote-mark {
  display: block; font-family: Georgia, "Times New Roman", serif;
  font-size: 40px; line-height: 1; color: var(--accent); opacity: .38;
}
.hg-quote-body {
  font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--text);
  margin: 8px 0 10px;
}
.hg-quote-foot { font-size: 11.5px; color: var(--dim); }

.esc-callers { display: flex; flex-wrap: wrap; gap: 6px; }
.esc-caller {
  padding: 7px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--border); background: var(--card-2); color: var(--muted);
}
.esc-caller.is-active { border-color: var(--accent); background: var(--brand-wash); color: var(--accent); }
.esc-wait-head { display: flex; align-items: center; gap: 8px; }
.esc-wait-name { font-size: 14px; font-weight: 600; }
.esc-countdown {
  font-size: 40px; font-weight: 700; letter-spacing: 1px;
  text-align: center; margin: 10px 0 4px; color: var(--text);
}
.esc-wait-sub { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 12px; }

.esc-call {
  /* 不用 inset 简写：某些内核下不生效，会让来电层退化成"内容高度"、跑偏半屏 */
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 18, 24, .92);
}
.esc-call[hidden] { display: none; }
.esc-call.is-flash .esc-call-inner { animation: escFlash 1.1s ease-in-out infinite; }
.esc-call.is-flash .esc-call-avatar { animation: escPulse 1.1s ease-in-out infinite; }
@keyframes escFlash { 0%, 100% { opacity: 1; } 50% { opacity: .58; } }
@keyframes escPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .esc-call.is-flash .esc-call-inner,
  .esc-call.is-flash .esc-call-avatar { animation: none; }
}

.esc-test {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 10px; padding: 8px;
  font-size: 12.5px; color: var(--muted);
  background: none; border: 0; cursor: pointer;
}
.esc-test .icon { width: 15px; height: 15px; }
.esc-test-note {
  margin: 6px 0 0; font-size: 11.5px; line-height: 1.65;
  color: var(--dim); text-align: center;
}
.esc-call-inner { width: 100%; max-width: 420px; padding: 24px; text-align: center; color: #fff; }
.esc-call-avatar {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: #1d9e75;
  color: #fff; font-size: 32px; font-weight: 600; line-height: 1;
}
.esc-call-avatar .icon { width: 32px; height: 32px; color: #fff; }
.esc-call-name { font-size: 26px; font-weight: 600; }
.esc-call-sub { font-size: 13px; opacity: .7; margin-top: 6px; }
.esc-call-line { font-size: 14px; opacity: .85; margin-top: 18px; }
.esc-call-acts { display: flex; justify-content: space-between; gap: 40px; margin: 48px 0 16px; }
.esc-call-acts[hidden] { display: none; }
.esc-call-btn {
  flex: 1; border: 0; background: none; cursor: pointer; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 13px;
  -webkit-tap-highlight-color: transparent;
}
.esc-call-btn span { display: block; }
.esc-call-ico {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.5);
  transition: transform .12s ease;
}
.esc-call-btn:active .esc-call-ico { transform: scale(.9); }
.esc-call-ico .icon { width: 28px; height: 28px; color: #fff; }
.esc-call-btn.is-end .esc-call-ico { background: #e24b4a; border-color: #e24b4a; }
.esc-call-btn.is-answer .esc-call-ico { background: #1d9e75; border-color: #1d9e75; }

.esc-call-on {
  margin: 42px 0 16px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.esc-call-on[hidden] { display: none; }
.esc-call-timer {
  font-size: 15px; letter-spacing: 1.5px; opacity: .78;
  font-variant-numeric: tabular-nums;
}
.esc-call-end {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: #e24b4a; color: #fff; font-size: 14px; font-weight: 500;
}
.esc-call-end .icon { width: 17px; height: 17px; color: #fff; }
.esc-call-end:active { opacity: .82; }
.esc-call-tip { font-size: 12px; opacity: .55; }

.wi-headline { display: flex; gap: 10px; align-items: flex-start; }
.wi-headline-mark { color: var(--warn); flex: none; padding-top: 2px; }
.wi-headline-mark .icon { width: 18px; height: 18px; }
.wi-headline-text { font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--text); }
.wi-table { display: flex; flex-direction: column; }
.wi-row {
  display: grid; grid-template-columns: 1fr 96px 96px;
  align-items: center; gap: 8px;
  padding: 9px 0; border-top: 1px solid var(--border);
  font-size: 13px;
}
.wi-row:first-child { border-top: 0; }
.wi-head { font-size: 11.5px; color: var(--dim); font-weight: 600; }
.wi-label { color: var(--muted); }
.wi-col-real { text-align: center; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.wi-col-shadow { text-align: center; font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums; }
.wi-head .wi-col-real, .wi-head .wi-col-shadow { font-weight: 600; }

.ct-now-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ct-now-stake { font-size: 13px; font-weight: 600; }
.ct-now-num { font-size: 34px; font-weight: 700; color: var(--text); }
.ct-now-num span { font-size: 15px; font-weight: 500; color: var(--muted); }
.ct-now-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ct-now-grid div {
  background: var(--card-2); border-radius: var(--r-sm); padding: 10px 6px; text-align: center;
}
.ct-now-grid b { display: block; font-size: 17px; font-weight: 600; color: var(--text); }
.ct-now-grid span { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; }
.ct-broken {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  background: #fdf6ec; color: #96652a; font-size: 12.5px; line-height: 1.6;
}
.ct-stakes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-stake {
  text-align: left; padding: 11px 12px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--border); background: var(--card-2); color: var(--muted);
}
.ct-stake b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ct-stake span { display: block; font-size: 11.5px; margin-top: 3px; }
.ct-stake.is-active { border-color: var(--accent); background: var(--brand-wash); }
.ct-stake.is-active b { color: var(--accent); }
.ct-note {
  margin: 12px 0; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--card-2); font-size: 12.5px; color: var(--muted); text-align: center;
}

@media (max-width: 359px) {
  .wi-row { grid-template-columns: 1fr 74px 74px; font-size: 12px; }
  .ct-stakes { grid-template-columns: 1fr; }
}

/* 首页：宿醉提醒 / 一键脱身 / 自己说过的话 */
.hg-ask {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--r);
  border: 1px solid #f1e4cb; background: #fdfaf3;
  box-shadow: var(--shadow-sm); color: inherit; text-decoration: none;
}
.hg-ask:active { background: #fbf5e9; }
.hg-ask-main { flex: 1; min-width: 0; }
.hg-ask-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.hg-ask-text { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rescue-escape {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--card-2); color: var(--muted);
  font-size: 12.5px; font-weight: 500; text-decoration: none;
}
.rescue-escape .icon { width: 15px; height: 15px; }
.rescue-escape-sub { color: var(--dim); font-weight: 400; font-size: 11.5px; }
.hg-echo {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 14px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--card);
  box-shadow: var(--shadow-sm);
}
.hg-echo-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px; line-height: 1; color: var(--accent); opacity: .45; flex: none;
}
.hg-echo-body { font-size: 13.5px; font-weight: 500; line-height: 1.65; color: var(--text); }
.hg-echo-foot { font-size: 11.5px; color: var(--dim); margin-top: 5px; }

/* ---------- 30. 寄存柜 / 空杯图鉴 ---------- */
.lk-hero, .cup-hero { display: flex; align-items: flex-start; gap: 12px; padding: 4px 2px 2px; }
.lk-hero-copy, .cup-hero-copy { flex: 1; min-width: 0; }
.lk-hero-title, .cup-hero-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; color: var(--text); }
.lk-hero-desc, .cup-hero-desc { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 0; }

.lk-list { display: flex; flex-direction: column; gap: 10px; }
.lk-item {
  padding: 14px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow-sm);
}
.lk-item.is-ready { border-color: #f1e4cb; background: #fdfaf3; }
.lk-item-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.lk-drink { font-size: 14.5px; font-weight: 600; color: var(--text); }
.lk-occ { font-size: 12px; color: var(--muted); margin-top: 4px; }
.lk-note {
  font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 9px;
  padding-left: 10px; border-left: 2px solid var(--border);
}
.lk-bar { height: 5px; border-radius: 3px; background: var(--card-2); margin-top: 11px; overflow: hidden; }
.lk-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #0f766e, #5cb8ab); }
.lk-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-top: 6px; }
.lk-ask { font-size: 13px; font-weight: 500; color: var(--text); margin-top: 12px; }
.lk-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.lk-acts form { display: contents; }
.lk-drop { background: none; border: 0; color: var(--dim); font-size: 12.5px; padding: 6px 2px; cursor: pointer; }
.lk-kinds { display: flex; gap: 6px; }
.lk-kind {
  flex: 1; padding: 9px 6px; border-radius: 10px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card-2); color: var(--muted);
}
.lk-kind.is-active { border-color: var(--accent); background: var(--brand-wash); color: var(--accent); font-weight: 500; }
.lk-hint { font-size: 11.5px; color: var(--dim); text-align: center; margin: 9px 0 0; line-height: 1.6; }

.cup-stat {
  padding: 14px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow-sm);
}
.cup-stat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cup-stat-title { font-size: 15px; font-weight: 600; color: var(--text); }
.cup-stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.cup-stat-num { font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.cup-stat-num span { font-size: 12px; color: var(--dim); font-weight: 500; }
.cup-bar { height: 5px; border-radius: 3px; background: var(--card-2); margin-top: 12px; overflow: hidden; }
.cup-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #0f766e, #5cb8ab); }

.cup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cup-cell {
  position: relative; padding: 12px 4px 9px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--card); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: transform .1s ease;
}
.cup-cell:active { transform: scale(.97); }
.cup-cell.is-on { border-color: #bfe0d8; background: var(--brand-wash); }
.cup-emoji { font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .4; }
.cup-cell.is-on .cup-emoji { filter: none; opacity: 1; }
.cup-name { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.cup-cell.is-on .cup-name { color: var(--accent); font-weight: 500; }
.cup-count {
  position: absolute; top: 5px; right: 7px;
  font-size: 10px; font-weight: 600; color: var(--accent);
}
.cup-hint { font-size: 11.5px; color: var(--dim); text-align: center; margin: 10px 0 0; }
.cup-hint b { color: var(--accent); }
.cup-other { margin-top: 12px; }
.cup-other-row { display: flex; gap: 8px; margin-top: 8px; }
.cup-other-row .input { flex: 1; min-width: 0; }
.cup-row-emoji { font-size: 20px; width: 30px; text-align: center; flex: none; }
.cup-del { flex: none; }
.cup-del-btn { background: none; border: 0; padding: 6px; color: var(--dim); cursor: pointer; }
.cup-del-btn .icon { width: 15px; height: 15px; }

@media (max-width: 359px) {
  .cup-grid { grid-template-columns: repeat(3, 1fr); }
  .lk-acts { flex-direction: column; align-items: stretch; }
  .lk-acts form { display: block; }
  .lk-acts .btn { width: 100%; }
}
