/* ==========================================================================
   食光记打卡 · iOS（Web）设计系统
   玻璃拟态 · 蓝青主色 · 深浅色/少女粉/蓝灰主题（从微信版 app.wxss 移植）
   ========================================================================== */

:root {
  --bg: #F5F7FB;
  --bg2: #EEF2F8;
  --card: rgba(255, 255, 255, 0.60);
  --card-solid: #FFFFFF;
  --card-border: rgba(255, 255, 255, 0.75);
  --text: #1B1F27;
  --text-sub: #8A909C;
  --ink: #3BA3F0;
  --on-ink: #FFFFFF;
  --accent: #3BA3F0;
  --accent-2: #3EC9D8;
  --accent-soft: rgba(59, 163, 240, 0.10);
  --brand: #3BA3F0;
  --brand-2: #3EC9D8;
  --brand-deep: #2E7FD0;
  --brand-soft: rgba(59, 163, 240, 0.10);
  --glass-grad: linear-gradient(135deg, #5AA6FF 0%, #3EC9D8 100%);
  --kcal: #F5A623;
  --tile: #FBF3DC;
  --danger: #EF6A7A;
  --danger-soft: rgba(239, 106, 122, 0.10);
  --divider: rgba(20, 24, 40, 0.07);
  --shadow: 0 8px 24px rgba(64, 120, 200, 0.16);
  --radius-btn: 12px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --card-pad: 18px;
  --font: 'LXGW WenKai', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
}

/* 主题覆盖 */
.theme-light { --bg:#F5F7FB; --bg2:#EEF2F8; --card:rgba(255,255,255,0.60); --card-solid:#fff; --text:#1B1F27; --text-sub:#8A909C; --ink:#3BA3F0; --accent:#3BA3F0; --brand:#3BA3F0; --brand-2:#3EC9D8; --brand-deep:#2E7FD0; --brand-soft:rgba(59,163,240,0.10); --kcal:#F5A623; --tile:#FBF3DC; }
.theme-dark { --bg:#0C0E16; --bg2:#161A28; --card:rgba(30,34,50,0.60); --card-solid:#171B28; --card-border:rgba(255,255,255,0.10); --text:#F2F4F9; --text-sub:#9AA1B0; --ink:#6CC0FF; --on-ink:#0A1A2E; --accent:#6CC0FF; --accent-2:#4CD7E8; --brand:#6CC0FF; --brand-2:#4CD7E8; --brand-deep:#5AA6FF; --brand-soft:rgba(108,192,255,0.16); --glass-grad:linear-gradient(135deg,#4C9CFF 0%,#2FB8CC 100%); --kcal:#FFB84D; --tile:rgba(245,166,35,0.14); --danger:#FF8390; --danger-soft:rgba(255,131,144,0.16); --divider:rgba(255,255,255,0.08); --shadow:0 8px 24px rgba(0,0,0,0.50); }
.theme-pink { --bg:#FFF5F8; --bg2:#FFEDF2; --card:rgba(255,255,255,0.72); --card-solid:#fff; --text:#3A2A30; --text-sub:#9B8A90; --ink:#FF6A9C; --accent:#FF6A9C; --brand:#FF6A9C; --brand-2:#FF9BBE; --brand-deep:#F04D86; --brand-soft:rgba(255,106,156,0.12); --kcal:#F59E0B; --tile:#FFF0E6; }
.theme-slate { --bg:#F3F5F8; --bg2:#E8ECF2; --card:rgba(255,255,255,0.66); --card-solid:#fff; --text:#1E2733; --text-sub:#7C8794; --ink:#2F5B8F; --accent:#2F5B8F; --brand:#2F5B8F; --brand-2:#5C84B5; --brand-deep:#1F4370; --brand-soft:rgba(47,91,143,0.10); --kcal:#E08A00; --tile:#F4F0E8; }

@media (prefers-color-scheme: dark) {
  .theme-auto {
    --bg:#0C0E16; --bg2:#161A28; --card:rgba(30,34,50,0.60); --card-solid:#171B28; --card-border:rgba(255,255,255,0.10);
    --text:#F2F4F9; --text-sub:#9AA1B0; --ink:#6CC0FF; --on-ink:#0A1A2E; --accent:#6CC0FF; --accent-2:#4CD7E8;
    --brand:#6CC0FF; --brand-2:#4CD7E8; --brand-deep:#5AA6FF; --brand-soft:rgba(108,192,255,0.16);
    --glass-grad:linear-gradient(135deg,#4C9CFF 0%,#2FB8CC 100%); --kcal:#FFB84D; --tile:rgba(245,166,35,0.14);
    --danger:#FF8390; --danger-soft:rgba(255,131,144,0.16); --divider:rgba(255,255,255,0.08); --shadow:0 8px 24px rgba(0,0,0,0.50);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, textarea, select { font-family: var(--font); }
a { color: inherit; text-decoration: none; }

/* 应用容器（移动优先，居中） */
#app { position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

/* 背景柔光 */
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-glow::before {
  content:''; position:absolute; top:-90px; right:-70px; width:260px; height:260px; border-radius:50%;
  background: radial-gradient(circle, rgba(90,166,255,0.35), rgba(90,166,255,0) 70%);
}
.bg-glow::after {
  content:''; position:absolute; top:30%; left:-110px; width:240px; height:240px; border-radius:50%;
  background: radial-gradient(circle, rgba(179,157,255,0.32), rgba(179,157,255,0) 70%);
}

/* 页面内容层 */
.page { position: relative; z-index: 1; padding: 0 12px 24px; min-height: 100vh; animation: fadeUp .4s ease both; }
.page-nopad { padding: 0; }

/* ============ 玻璃卡片 ============ */
.card {
  position: relative;
  background: var(--card);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
  margin: 12px 0;
  box-shadow: var(--shadow);
  animation: fadeUp .5s ease both;
}
.card-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.accent { color: var(--brand); }
.muted { color: var(--text-sub); font-size: 13px; }

/* ============ 按钮 ============ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-btn); font-size: 16px; font-weight: 600;
  padding: 11px 0; text-align: center; border: none; width: 100%;
  cursor: pointer; transition: transform .16s cubic-bezier(.34,1.56,.64,1), opacity .16s ease;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); opacity: .92; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 3px 10px rgba(59,163,240,.16); }
.btn-ghost { background: var(--bg2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { font-size: 13px; padding: 8px 0; }
.btn-inline { width: auto; padding: 9px 18px; }

/* ============ 导航栏 ============ */
.nav-bar { position: sticky; top: 0; z-index: 50; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; }
.nav-inner { display: flex; align-items: center; gap: 10px; }
.nav-back { width: 32px; height: 32px; border-radius: 10px; background: var(--card); border: 1px solid var(--card-border); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: var(--text); }
.nav-title { font-size: 17px; font-weight: 800; color: var(--text); flex: 1; }
.nav-spacer { width: 32px; }

/* ============ 自定义底部 TabBar（Dock）============ */
.tab-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 900;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: var(--card);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-around;
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; cursor: pointer; color: var(--text-sub); font-size: 11px; transition: color .2s; }
.tab-item svg { width: 24px; height: 24px; }
.tab-item.active { color: var(--brand); }

/* ============ 登录卡 ============ */
.login-card { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; text-align: center; }
.login-logo { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 16px; }
.login-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.login-tip { color: var(--text-sub); margin: 0 0 24px; font-size: 13px; }

/* ============ 表单 ============ */
.field { margin-bottom: 14px; text-align: left; }
.field-label { font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--divider);
  background: var(--card-solid); color: var(--text); font-size: 15px; outline: none;
}
.input:focus { border-color: var(--brand); }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.code-btn { flex: 0 0 auto; white-space: nowrap; padding: 0 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); border: none; font-size: 13px; font-weight: 600; cursor: pointer; }
.code-btn[disabled] { opacity: .5; }

.seg { display: flex; background: var(--bg2); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.seg button { flex: 1; border: none; background: transparent; padding: 9px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-sub); cursor: pointer; }
.seg button.active { background: var(--card-solid); color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.08); }

.link { color: var(--brand); font-size: 13px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-sub); text-align: left; margin: 8px 0 16px; }
.check-row input { width: 16px; height: 16px; }

/* ============ 首页 · 今日 ============ */
.greeting { font-size: 22px; font-weight: 800; margin: 4px 2px 2px; }
.greeting-sub { color: var(--text-sub); font-size: 13px; margin: 0 2px 14px; }

.hero { display: flex; align-items: center; gap: 18px; }
.ring-wrap { position: relative; width: 118px; height: 118px; flex: 0 0 auto; }
.ring-wrap canvas { width: 118px; height: 118px; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-kcal { font-size: 26px; font-weight: 800; color: var(--kcal); line-height: 1; }
.ring-unit { font-size: 11px; color: var(--text-sub); }
.hero-right { flex: 1; min-width: 0; }
.hero-goal { font-size: 13px; color: var(--text-sub); }
.hero-left { font-size: 13px; color: var(--text-sub); margin-top: 2px; }
.hero-left b { color: var(--danger); font-weight: 700; }

.macro-list { margin-top: 14px; }
.macro-row { margin-bottom: 10px; }
.macro-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.macro-head b { color: var(--text); font-weight: 700; }
.macro-bar { height: 7px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.macro-fill { height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.22,1,.36,1); }
.fill-protein { background: #6CC0FF; }
.fill-fat { background: #F5A623; }
.fill-carbs { background: #43C77B; }

/* 喝水 */
.water-head { display: flex; justify-content: space-between; align-items: baseline; }
.water-big { font-size: 26px; font-weight: 800; }
.water-big small { font-size: 13px; color: var(--text-sub); font-weight: 600; }
.water-bar { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin: 10px 0 12px; }
.water-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5AA6FF, #3EC9D8); transition: width .6s; }
.water-btns { display: flex; gap: 8px; }
.water-btns .btn { flex: 1; padding: 9px 0; font-size: 13px; }

/* 建议卡 */
.advice-text { font-size: 14px; line-height: 1.7; }

/* 三餐卡 */
.meal-card { cursor: pointer; }
.meal-head { display: flex; align-items: center; gap: 8px; }
.meal-emoji { font-size: 20px; }
.meal-name { font-size: 16px; font-weight: 700; flex: 1; }
.meal-kcal { font-size: 14px; font-weight: 700; color: var(--kcal); }
.meal-add { font-size: 13px; color: var(--text-sub); }
.meal-items { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.meal-item { display: flex; align-items: center; gap: 10px; }
.meal-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg2); flex: 0 0 auto; }
.meal-item-name { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meal-item-kcal { font-size: 13px; color: var(--text-sub); }

/* 登录卡 */
.login-prompt { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; text-align: center; }
.login-prompt .emoji { font-size: 52px; }

/* ============ 拍照 / 记录 ============ */
.camera-stage { border-radius: 16px; overflow: hidden; position: relative; background: #0F1420; }
.camera-stage img, .camera-stage canvas { display: block; width: 100%; max-height: 46vh; object-fit: cover; }
.camera-actions { display: flex; gap: 10px; margin-top: 14px; }
.camera-actions .btn { flex: 1; }

.food-item { border: 1px solid var(--divider); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--card-solid); }
.food-item-head { display: flex; align-items: center; margin-bottom: 8px; }
.food-item-head .idx { font-size: 13px; font-weight: 700; color: var(--brand); flex: 1; }
.food-remove { border: none; background: var(--danger-soft); color: var(--danger); border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.food-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.food-grid .input { padding: 9px 10px; font-size: 13px; }
.food-grid label { font-size: 11px; color: var(--text-sub); display: block; margin-bottom: 3px; }
.total-bar { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; font-weight: 700; }

.meal-type-seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.meal-type-seg .mt { padding: 8px 14px; border-radius: 999px; background: var(--bg2); color: var(--text-sub); font-size: 13px; font-weight: 600; border: none; cursor: pointer; }
.meal-type-seg .mt.active { background: var(--brand); color: #fff; }

/* ============ 报告 ============ */
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav { width: 34px; height: 34px; border-radius: 10px; background: var(--bg2); border: none; color: var(--text); font-size: 16px; cursor: pointer; }
.cal-title { font-size: 16px; font-weight: 700; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 3px; }
.cal-week span { text-align: center; font-size: 11px; color: var(--text-sub); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell { aspect-ratio: 1; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; color: var(--text); position: relative; }
.cal-cell.blank { cursor: default; }
.cal-cell.future { color: var(--text-sub); opacity: .5; }
.cal-cell.today::after { content:''; position:absolute; bottom:4px; width:4px; height:4px; border-radius:50%; background: var(--brand); }
.cal-cell.selected { outline: 2px solid var(--brand); outline-offset: -2px; }
.cal-heat-0 { background: var(--bg2); }
.cal-heat-1 { background: var(--brand-soft); }
.cal-heat-2 { background: rgba(59,163,240,0.22); }
.cal-heat-3 { background: rgba(59,163,240,0.42); color: #fff; }
.cal-heat-4 { background: var(--brand); color: #fff; }
.cal-legend { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-sub); margin-top: 8px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.day-summary { display: flex; gap: 12px; margin: 12px 0; }
.day-summary .stat { flex: 1; background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px; text-align: center; }
.day-summary .stat .v { font-size: 22px; font-weight: 800; }
.day-summary .stat .l { font-size: 12px; color: var(--text-sub); }
.day-summary .stat.kcal .v { color: var(--kcal); }
.day-summary .stat.water .v { color: var(--brand); }

.chart-card canvas { width: 100%; height: 200px; }
.chart-toggle { float: right; font-size: 12px; color: var(--brand); background: none; border: none; cursor: pointer; }
.trend-stats { display: flex; gap: 10px; margin-bottom: 10px; }
.trend-stats .t { flex: 1; text-align: center; font-size: 12px; color: var(--text-sub); }
.trend-stats .t b { display: block; font-size: 18px; color: var(--text); }

/* ============ 我的 ============ */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex: 0 0 auto; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 19px; font-weight: 800; }
.profile-role { font-size: 12px; color: var(--text-sub); }
.role-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--brand-soft); color: var(--brand); margin-left: 6px; }
.role-badge.admin { background: rgba(245,166,35,.15); color: #E08600; }

.group-card { padding: 4px 0; }
.group-row { display: flex; align-items: center; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--divider); cursor: pointer; }
.group-row:last-child { border-bottom: none; }
.group-row .ic { font-size: 18px; width: 24px; text-align: center; }
.group-row .tt { flex: 1; font-size: 15px; }
.group-row .arrow { color: var(--text-sub); font-size: 14px; }
.group-row .val { color: var(--text-sub); font-size: 13px; }

.theme-dots { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 11px; color: var(--text-sub); }
.theme-dot .sw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; }
.theme-dot.active .sw { border-color: var(--brand); }
.theme-dot.active { color: var(--text); font-weight: 600; }

/* ============ 底部弹层 ============ */
.mask { position: fixed; inset: 0; background: rgba(10,12,18,0.5); z-index: 1200; animation: maskIn .2s ease both; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; background: var(--card-solid); border-radius: 20px 20px 0 0; padding: 12px 16px 0; max-height: 78vh; display: flex; flex-direction: column; animation: sheetUp .28s cubic-bezier(.22,1,.36,1) both; }
.sheet-grip { width: 36px; height: 4px; border-radius: 999px; background: var(--divider); margin: 4px auto 14px; }
.sheet-title { font-size: 17px; font-weight: 700; text-align: center; }
.sheet-body { overflow-y: auto; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.sheet-sub { text-align: center; font-size: 13px; color: var(--text-sub); margin: 4px 0 14px; }

/* 选择列表 */
.opt-list { display: flex; flex-direction: column; }
.opt-item { padding: 14px 8px; border-bottom: 1px solid var(--divider); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.opt-item:last-child { border-bottom: none; }
.opt-item.active { color: var(--brand); font-weight: 700; }
.opt-item.active::after { content: '✓'; }

/* 居中弹窗 */
.center-mask { align-items: center; }
.center-dialog { width: 82%; max-width: 340px; background: var(--card-solid); border-radius: 20px; padding: 22px 20px; text-align: center; animation: popSpring .3s cubic-bezier(.34,1.56,.64,1) both; }
.center-dialog .emoji { font-size: 40px; margin-bottom: 6px; }
.center-dialog .title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.center-dialog .content { font-size: 14px; color: var(--text-sub); line-height: 1.6; margin-bottom: 18px; }
.dialog-btns { display: flex; gap: 10px; }
.dialog-btns .btn { flex: 1; }

/* Toast */
#toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(20,22,30,0.9); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; z-index: 3000; max-width: 80%; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }

/* 礼花 canvas */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; }

/* 加载态 */
.loading-wrap { display: flex; flex-direction: column; align-items: center; padding: 100px 0; color: var(--text-sub); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--bg2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 12px; }

/* 空态 */
.empty { text-align: center; color: var(--text-sub); font-size: 13px; padding: 24px 0; }

/* 动效 */
@keyframes fadeUp { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
@keyframes maskIn { from { opacity:0; } to { opacity:1; } }
@keyframes sheetUp { from { transform: translateY(40%); opacity:.6; } to { transform: translateY(0); opacity:1; } }
@keyframes popSpring { 0% { opacity:0; transform: scale(.82); } 70% { opacity:1; transform: scale(1.06); } 100% { opacity:1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity:1; } 50% { transform: scale(1.25); opacity:.55; } }

.ai-badge { display:inline-block; font-size:10px; font-weight:600; color:#E08600; background:rgba(255,149,0,0.14); padding:2px 7px; border-radius:5px; }
.tip-box { background: var(--brand-soft); color: var(--brand-deep); font-size:13px; line-height:1.6; border-radius:10px; padding:10px 12px; margin-top:12px; }
.theme-dark .tip-box, .tip-box { color: var(--brand-deep); }

/* 管理后台 */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-cell { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 14px; }
.stat-cell .v { font-size: 22px; font-weight: 800; }
.stat-cell .l { font-size: 12px; color: var(--text-sub); }
.user-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.user-row:last-child { border-bottom: none; }
.fb-item { border-bottom: 1px solid var(--divider); padding: 10px 0; }
.fb-item:last-child { border-bottom: none; }
.fb-meta { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

/* 协议/关于 */
.doc { font-size: 14px; line-height: 1.8; color: var(--text); }
.doc h2 { font-size: 16px; margin: 18px 0 8px; }
.doc p { margin: 8px 0; }
.doc .upd { color: var(--text-sub); font-size: 12px; }
