﻿:root {
  --green: #1b8a5a;
  --green-dark: #146b46;
  --green-light: #e6f4ec;
  --text: #1c2b24;
  --muted: #6b7f74;
  --line: #e6ece8;
  --bg: #f4f7f5;
  --card: #ffffff;
  --orange: #ef8a3c;
  --red: #d94a4a;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(27, 138, 90, 0.08);
}

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

html, body { margin: 0; overflow-x: hidden; }
body {
  background: #dfe7e2;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  max-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
}

.appbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--bg);
  flex: 0 0 auto;
}
.appbar h1 { font-size: 17px; font-weight: 600; margin: 0; }
.icon-btn {
  width: 36px; height: 36px; border: 0; background: transparent; font-size: 22px;
  color: var(--text); cursor: pointer; border-radius: 10px;
}
.icon-btn:active { background: #e9efeb; }
.hidden { display: none !important; }

.screen {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 16px 92px;
  -webkit-overflow-scrolling: touch;
}

.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  display: flex; flex-direction: column; gap: 2px;
}
.tabbar a span { font-size: 10px; line-height: 1; }
.tabbar a.active { color: var(--green); font-weight: 600; }

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

h2.section { font-size: 15px; margin: 20px 0 10px; color: var(--text); }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.hero {
  background: linear-gradient(135deg, #1b8a5a, #2fae74);
  color: #fff;
  border-radius: 20px;
  padding: 20px;
  margin: 8px 0 14px;
  box-shadow: 0 10px 24px rgba(27, 138, 90, 0.25);
}
.hero .big { font-size: 44px; font-weight: 700; line-height: 1; }
.hero .unit { font-size: 15px; margin-left: 6px; opacity: .9; }
.hero .sub { opacity: .92; font-size: 13px; margin-top: 8px; }
.hero .quick { display: flex; gap: 10px; margin-top: 16px; }
.hero .quick button {
  flex: 1; border: 0; border-radius: 12px; padding: 11px; font-size: 14px;
  background: rgba(255,255,255,.18); color: #fff; font-weight: 600;
}
.hero .quick button.primary { background: #fff; color: var(--green-dark); }

.stat-mini { text-align: center; padding: 12px 6px; }
.stat-mini .v { font-size: 22px; font-weight: 700; color: var(--green-dark); }
.stat-mini .k { font-size: 12px; color: var(--muted); margin-top: 4px; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 14px; padding: 14px;
  font-size: 16px; font-weight: 600; background: var(--green); color: #fff; cursor: pointer;
}
.btn:disabled { opacity: .5; }
.btn.ghost { background: var(--green-light); color: var(--green-dark); }
.btn.danger { background: #fdecec; color: var(--red); }
.btn.small { width: auto; padding: 8px 14px; font-size: 13px; border-radius: 10px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea { min-width: 0;
  width: 100%; border: 1px solid var(--line); background: #fbfcfb;
  border-radius: 12px; padding: 13px; font-size: 15px; color: var(--text); outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--green); background: #fff; }
.field textarea { min-height: 88px; resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; cursor: pointer;
}
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }

.list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.list-item:last-child { border-bottom: 0; }
.list-item .ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto;
}
.list-item .t { font-size: 15px; font-weight: 500; }
.list-item .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.list-item .chev { color: #c3cfc8; font-size: 20px; margin-left: auto; }

.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge {
  text-align: center; padding: 12px 4px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow); cursor: pointer;
}
.badge .em { font-size: 26px; filter: grayscale(1); opacity: .45; }
.badge.on .em { filter: none; opacity: 1; }
.badge .nm { font-size: 11px; margin-top: 6px; color: var(--muted); }
.badge.on .nm { color: var(--text); font-weight: 600; }

.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell {
  aspect-ratio: 1; border-radius: 10px; background: #f2f6f3; display: flex;
  align-items: center; justify-content: center; font-size: 12px; color: var(--muted);
}
.cal-cell.ok { background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.cal-cell.relapse { background: #fdecec; color: var(--red); font-weight: 600; }
.cal-cell.today { outline: 2px solid var(--green); }
.cal-cell.empty { background: transparent; }

.timeline .item { display: flex; gap: 12px; padding: 10px 0; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: #cfe3d7; margin-top: 6px; flex: 0 0 auto; }
.timeline .dot.done { background: var(--green); }

.breath-wrap { text-align: center; padding: 10px 0 0; }
.breath-circle {
  width: 190px; height: 190px; margin: 14px auto 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7fd0a6, var(--green));
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 17px; transition: transform 4s ease-in-out, opacity .4s;
  box-shadow: 0 12px 30px rgba(27,138,90,.35);
}
.breath-circle.inhale { transform: scale(1.18); }
.breath-circle.exhale { transform: scale(.86); }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: rgba(28,43,36,.92); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(20,30,25,.45); display: flex;
  align-items: center; justify-content: center; z-index: 60; padding: 24px;
}
.modal {
  background: #fff; border-radius: 18px; padding: 22px; width: 320px; max-width: 100%;
  text-align: center;
}
.modal .em { font-size: 52px; }
.modal h3 { margin: 10px 0 6px; }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
.center { text-align: center; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; }


/* ---------- v2 视觉校准（对照 Calicat 设计稿） ---------- */
:root {
  --primary: #10b981;
  --primary-dark: #0b8f66;
  --green-soft: #e9f9f1;
  --ink: #0f172a;
  --muted2: #64748b;
  --line2: #e9eef2;
  --warm: #fff7ed;
  --warm-text: #b45309;
}

/* 首页头部 */
.home-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 0 14px; }
.home-head .greet { font-size: 13px; color: var(--muted2); }
.home-title { font-size: 26px; margin: 4px 0 0; letter-spacing: -0.4px; color: var(--ink); }
.home-actions { display: flex; align-items: center; gap: 10px; }
.round-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06); font-size: 17px; cursor: pointer;
}
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #a7f3d0, #10b981);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* 圆环进度 */
.ring-card { display: flex; align-items: center; gap: 18px; padding: 18px; }
.ring {
  width: 108px; height: 108px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), #e7edf0 0);
  display: flex; align-items: center; justify-content: center;
}
.ring-inner {
  width: 86px; height: 86px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-num { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; }
.ring-unit { font-size: 11px; color: var(--muted2); margin-top: 2px; }
.ring-label { font-size: 11px; color: var(--muted2); margin-top: 4px; }
.ring-right { flex: 1; min-width: 0; }
.ring-top { font-size: 15px; color: var(--ink); }
.ring-top b { color: var(--primary-dark); }
.fire { margin-right: 2px; }
.bar { height: 7px; background: #eef2f5; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.green { color: var(--primary-dark); font-weight: 600; }
.soft { font-size: 12px; color: var(--muted2); background: var(--green-soft); padding: 7px 10px; border-radius: 10px; }

/* 三个统计卡 */
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { background: #fff; border-radius: 14px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.sc-ico { width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 10px; background: #f1f7f4; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.sc-v { font-size: 18px; font-weight: 700; color: var(--ink); }
.sc-k { font-size: 11px; color: var(--muted2); margin-top: 3px; }

.pill { background: var(--green-soft); color: var(--primary-dark); font-size: 12px; padding: 5px 10px; border-radius: 99px; font-weight: 600; }

/* 今日任务 */
.task-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.task { display: flex; align-items: center; gap: 12px; background: #f8fafb; border-radius: 14px; padding: 13px 14px; cursor: pointer; }
.task.done { background: var(--green-soft); }
.task-check {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d5dee4; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700;
}
.task.done .task-check { background: var(--primary); border-color: var(--primary); }
.task-t { font-size: 14px; font-weight: 600; color: var(--ink); }
.task-s { font-size: 12px; color: var(--muted2); margin-top: 2px; }
.task-chev { margin-left: auto; color: #c3cfd7; font-size: 20px; }

.link { color: var(--primary-dark); font-size: 13px; text-decoration: none; }

/* 里程碑 */
.ms-banner {
  display: flex; align-items: center; gap: 12px; background: #fff1f2; border-radius: 14px;
  padding: 13px; margin: 12px 0;
}
.ms-ico { font-size: 22px; }
.ms-body { flex: 1; min-width: 0; }
.ms-t { font-size: 14px; font-weight: 600; color: #9f1239; }
.ms-s { font-size: 12px; color: #be5a6d; margin-top: 2px; }
.ms-left { font-size: 12px; color: #be5a6d; white-space: nowrap; }
.ms-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.ms-item { display: flex; gap: 10px; align-items: flex-start; }
.ms-dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--primary-dark);
  font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px;
}
.ms-item-t { font-size: 13.5px; color: var(--ink); }
.ms-item-s { font-size: 11.5px; color: var(--muted2); margin-top: 1px; }

/* 打卡页头 */
.chk-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 8px; }
.chk-center { text-align: center; }
.chk-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.chk-date { font-size: 12px; color: var(--muted2); margin-top: 2px; }
.banner-green {
  display: flex; gap: 12px; align-items: center; background: var(--green-soft);
  border-radius: 16px; padding: 14px; margin-bottom: 14px;
}
.banner-green .b-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.b-t { font-size: 14px; font-weight: 600; color: var(--ink); }
.b-s { font-size: 12px; color: var(--muted2); margin-top: 3px; }

/* 步骤卡片 */
.step { padding: 18px 16px; }
.step-title { font-size: 15.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.step-title .num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.opt-hint { margin-left: auto; font-size: 12px; color: var(--muted2); font-weight: 400; }
.opt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.opt {
  border: 1.5px solid var(--line2); border-radius: 14px; padding: 14px 6px; text-align: center; cursor: pointer;
  background: #fff; transition: all .15s;
}
.opt.on { border-color: var(--primary); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.opt-ico { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 50%; background: #f1f5f8; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.opt.on .opt-ico { background: var(--primary); color: #fff; }
.opt-t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.opt-s { font-size: 11px; color: var(--muted2); margin-top: 3px; }
.foot { margin-top: 12px; font-size: 11.5px; color: var(--muted2); }

.warm-tip {
  margin-top: 12px; background: var(--warm); color: var(--warm-text); font-size: 12.5px;
  padding: 11px 12px; border-radius: 12px;
}

/* 心情 */
.mood-row { display: flex; justify-content: space-between; margin-top: 14px; }
.mood { text-align: center; cursor: pointer; flex: 1; }
.mood-e {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; background: #f4f7f8;
  display: flex; align-items: center; justify-content: center; font-size: 22px; transition: all .15s;
}
.mood.on .mood-e { background: var(--primary); box-shadow: 0 6px 14px rgba(16, 185, 129, .35); transform: translateY(-2px); }
.mood-k { font-size: 11.5px; color: var(--muted2); margin-top: 6px; }
.mood.on .mood-k { color: var(--primary-dark); font-weight: 600; }

/* 备注 */
.note {
  width: 100%; min-height: 92px; border: 1px solid var(--line2); border-radius: 12px; padding: 12px;
  font-size: 14px; color: var(--ink); background: #fbfcfd; margin-top: 12px; resize: vertical; outline: none;
  font-family: inherit;
}
.note:focus { border-color: var(--primary); background: #fff; }
.note-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted2); }

/* 深色经验条 */
.banner-dark {
  display: flex; align-items: center; gap: 12px; background: #0c3b2e; color: #fff;
  border-radius: 16px; padding: 14px 16px; margin: 4px 0 14px;
}
.banner-dark .b-ico { font-size: 20px; }
.banner-dark .b-body { flex: 1; }
.banner-dark .b-t { font-size: 13.5px; font-weight: 600; color: #fff; }
.banner-dark .b-s { font-size: 11.5px; color: #9fd8bf; margin-top: 2px; }
.xp { background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; }

.btn-lg { padding: 16px; font-size: 16.5px; border-radius: 16px; }
.later { text-align: center; font-size: 12.5px; color: var(--muted2); padding: 14px 0 4px; cursor: pointer; }

/* ---------- 战绩 / 徽章 / 饮水 v3 ---------- */
.segmented {
  display: flex; background: #fff; border-radius: 14px; padding: 5px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.seg { flex: 1; text-align: center; font-size: 13.5px; color: var(--muted2); padding: 9px 0; border-radius: 10px; cursor: pointer; }
.seg.on { background: var(--primary); color: #fff; font-weight: 600; }

.stats-hero {
  background: #0c3b2e; border-radius: 20px; padding: 18px; color: #fff;
  box-shadow: 0 12px 26px rgba(12, 59, 46, .25); margin-bottom: 14px;
}
.sh-title { font-size: 13px; color: #bfe4d5; }
.sh-pill { background: rgba(16, 185, 129, .2); color: #7ff0c0; font-size: 11.5px; padding: 5px 9px; border-radius: 99px; }
.sh-big { font-size: 40px; font-weight: 700; line-height: 1.1; margin: 10px 0 6px; }
.sh-big span { font-size: 14px; margin-left: 6px; color: #bfe4d5; font-weight: 400; }
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; margin-top: 8px; }
.sh-grid > div { text-align: center; }
.sh-v { font-size: 16px; font-weight: 700; }
.sh-k { font-size: 11px; color: #9fd8bf; margin-top: 3px; }

.legend { font-size: 11.5px; color: var(--muted2); display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; }
.chart { margin: 6px 0 2px; }
.insight { margin-top: 10px; background: var(--green-soft); color: #0b6b4c; font-size: 12.5px; padding: 11px 12px; border-radius: 12px; line-height: 1.5; }

.lv-ring {
  width: 92px; height: 92px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(#34d399 calc(var(--p) * 1%), rgba(255,255,255,.15) 0);
  display: flex; align-items: center; justify-content: center;
}
.lv-inner { width: 74px; height: 74px; border-radius: 50%; background: #0c3b2e; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lv-k { font-size: 10px; color: #9fd8bf; }
.lv-n { font-size: 20px; font-weight: 700; color: #fff; margin-top: 2px; }
.lv-sub { font-size: 12px; color: #bfe4d5; margin-top: 6px; }
.lv-bar { height: 6px; background: rgba(255,255,255,.15); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: #34d399; border-radius: 99px; }

.badge3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bcard { background: #fff; border-radius: 16px; padding: 16px 8px 14px; text-align: center; box-shadow: var(--shadow); cursor: pointer; }
.bcircle {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--green-soft);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.bname { font-size: 13px; font-weight: 600; color: var(--ink); }
.bdesc { font-size: 10.5px; color: var(--muted2); margin-top: 4px; line-height: 1.4; }
.bcard.locked { background: #f7f9fa; box-shadow: none; }
.bcard.locked .bcircle { background: #eef2f5; filter: grayscale(1); opacity: .55; }
.bcard.locked .bname { color: #94a3b8; }

.water-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.cup { width: 32px; height: 38px; border-radius: 8px; background: #f1f5f8; display: flex; align-items: center; justify-content: center; font-size: 16px; filter: grayscale(1); opacity: .5; }
.cup.on { background: #e0f2fe; filter: none; opacity: 1; }

#btnBack{background:#fff;border-radius:50%;box-shadow:0 2px 8px rgba(15,23,42,.06);width:38px;height:38px;display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1}

/* ---------- 日志 / 课程 / 我的 / 设置 v4 ---------- */
.month-nav { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.month-nav button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 18px; color: var(--ink); }
.mn-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.mn-sub { font-size: 12px; color: var(--muted2); margin-top: 2px; }

.calendar-card { padding: 14px 12px; }
.cal2-head { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11.5px; color: var(--muted2); margin-bottom: 6px; }
.cal2-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal2 {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #475569; border-radius: 50%; cursor: pointer;
}
.cal2.empty { cursor: default; }
.cal2.ok { background: #e9f9f1; color: #0b8f66; font-weight: 600; }
.cal2.craving { background: #fff4e5; color: #b45309; font-weight: 600; }
.cal2.relapse { background: #ffe4e6; color: #be123c; font-weight: 600; }
.cal2.today { outline: 2px solid var(--primary); outline-offset: 1px; }
.cal2 i { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; }
.dot-green { background: #10b981; }
.dot-orange { background: #f59e0b; }
.dot-pink { background: #f43f5e; }
.cal2-legend { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-size: 11.5px; color: var(--muted2); }
.cal2-legend span { display: flex; align-items: center; gap: 5px; }
.cal2-legend i { position: static; width: 8px; height: 8px; border-radius: 50%; }

.log-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.log-row:last-child { border-bottom: 0; }
.log-ico { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; }
.log-ico.ok { background: #e9f9f1; }
.log-ico.bad { background: #ffe4e6; }
.log-ico.warn { background: #fff4e5; }
.log-body { flex: 1; min-width: 0; }
.log-t { font-size: 14px; font-weight: 600; color: var(--ink); }
.log-s { font-size: 12px; color: var(--muted2); margin-top: 3px; }
.pill2 { font-size: 11px; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.pill2.good { background: #e9f9f1; color: #0b8f66; }
.pill2.warn { background: #fff4e5; color: #b45309; }
.pill2.bad { background: #ffe4e6; color: #be123c; }

.course-hero {
  display: flex; gap: 16px; align-items: center; background: #0c3b2e; border-radius: 20px;
  padding: 18px; color: #fff; box-shadow: 0 12px 26px rgba(12, 59, 46, .25); margin-bottom: 14px;
}
.ch-ring {
  width: 84px; height: 84px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(#34d399 calc(var(--p) * 1%), rgba(255,255,255,.16) 0);
  display: flex; align-items: center; justify-content: center;
}
.ch-inner { width: 66px; height: 66px; border-radius: 50%; background: #0c3b2e; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ch-num { font-size: 17px; font-weight: 700; }
.ch-k { font-size: 10px; color: #9fd8bf; margin-top: 2px; }
.ch-title { font-size: 17px; font-weight: 700; }
.ch-sub { font-size: 12px; color: #bfe4d5; margin-top: 6px; }
.ch-btn { margin-top: 10px; background: #10b981; color: #fff; border: 0; border-radius: 99px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; }

.feat-card { padding: 14px; }
.feat-cover {
  height: 150px; border-radius: 14px; background: linear-gradient(135deg, #d1fae5, #6ee7b7);
  display: flex; align-items: center; justify-content: center; font-size: 56px; margin-bottom: 12px;
}
.feat-meta { font-size: 11.5px; color: var(--muted2); }
.feat-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 6px; line-height: 1.4; }
.feat-desc { font-size: 13px; color: #475569; margin-top: 6px; line-height: 1.6; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; background: #e9f9f1; display: flex; align-items: center; justify-content: center; font-size: 16px; }

.course-row { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.course-row:last-child { border-bottom: 0; }
.course-thumb { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #d1fae5, #a7f3d0); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: 0 0 auto; }
.course-body { flex: 1; min-width: 0; }
.cbar { height: 5px; background: #eef2f5; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.cbar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.cok { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.course-chev { color: #c3cfd7; font-size: 20px; }

.health-card { background: #0c3b2e; border-radius: 18px; padding: 16px; margin-bottom: 14px; color: #fff; }
.h-row { display: flex; justify-content: space-between; padding: 12px 0 0; font-size: 13px; color: #bfe4d5; }
.h-row b { color: #fff; font-weight: 600; }

.menu-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu-row:last-child { border-bottom: 0; }
.menu-ico { width: 40px; height: 40px; border-radius: 12px; background: #eef7f3; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.menu-body { flex: 1; min-width: 0; }

.tagchip { background: #f1f5f8; color: #475569; font-size: 11.5px; padding: 6px 10px; border-radius: 99px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); }

.set-group { font-size: 12.5px; color: var(--muted2); margin: 18px 4px 8px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-value { font-size: 12.5px; color: #94a3b8; white-space: nowrap; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: #e2e8f0; border-radius: 99px; transition: .2s; display: block;
}
.switch i::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(20px); }

.cal2 { height: 38px; aspect-ratio: auto; font-size: 12.5px; }
.cal2-grid { gap: 3px; }
.cal2 i { bottom: 2px; width: 3px; height: 3px; }
.calendar-card { padding: 14px 10px; }

/* ---------- 登录 / 欢迎 / 引导 v5 ---------- */
/* 登录 */
.lg-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 0; }
.lg-help { border: 0; background: #fff; color: var(--muted2); font-size: 12.5px; padding: 8px 14px; border-radius: 99px; box-shadow: var(--shadow); }
.lg-logo {
  width: 64px; height: 64px; border-radius: 18px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 18px 0 14px;
  box-shadow: 0 10px 22px rgba(16, 185, 129, .28);
}
.lg-title { font-size: 28px; margin: 0; letter-spacing: -0.5px; }
.lg-sub { color: var(--muted2); font-size: 14px; margin: 8px 0 4px; line-height: 1.5; }
.lg-brand { color: #94a3b8; font-size: 12.5px; margin: 6px 0 18px; }
.lg-last { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.lg-onetap { background: var(--primary); color: #fff; border: 0; border-radius: 99px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; }
.seg2 { display: flex; background: #fff; border-radius: 14px; padding: 5px; margin: 16px 0 14px; box-shadow: var(--shadow); }
.seg2-item { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; color: var(--muted2); border-radius: 10px; }
.seg2-item.on { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.lg-form { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.lg-input { display: flex; align-items: center; gap: 10px; background: #f6f8f9; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.lg-cc { font-size: 14px; color: var(--ink); padding-right: 10px; border-right: 1px solid #e2e8f0; }
.lg-ic { font-size: 14px; }
.lg-input input { flex: 1; border: 0; background: transparent; font-size: 15px; outline: none; min-width: 0; }
.lg-clear { color: #cbd5e1; font-size: 12px; }
.lg-send { color: var(--green-dark); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lg-send.disabled { color: #94a3b8; }
.lg-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted2); margin: 4px 0 14px; }
.lg-agree input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--primary); }
.lg-tip { text-align: center; color: #94a3b8; font-size: 11.5px; margin: 10px 0 0; }
.lg-divider { display: flex; align-items: center; gap: 12px; color: #b6c2c9; font-size: 12px; margin: 22px 0 14px; }
.lg-divider::before, .lg-divider::after { content: ''; flex: 1; height: 1px; background: #e6ece8; }
.lg-others { display: flex; justify-content: center; gap: 34px; }
.lg-other { text-align: center; font-size: 11px; color: var(--muted2); }
.lg-other-ico { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 6px; box-shadow: var(--shadow); }
.lg-cs { text-align: center; font-size: 12.5px; color: var(--muted2); margin-top: 22px; }
.lg-cs b { color: var(--green-dark); }
.lg-footer { text-align: center; font-size: 11px; color: #b6c2c9; line-height: 1.8; margin: 18px 0 8px; }

/* 欢迎页 */
.wc-screen {
  position: absolute; inset: 0; background: #0b3b2e; color: #fff; padding: 16px 22px 26px;
  display: flex; flex-direction: column; align-items: center; overflow-y: auto; z-index: 30;
}
.wc-top { align-self: flex-end; }
.wc-skip { background: rgba(255,255,255,.12); color: #d7efe2; border: 0; padding: 7px 14px; border-radius: 99px; font-size: 12px; }
.wc-logo { width: 58px; height: 58px; border-radius: 16px; background: #10b981; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-top: 12px; }
.wc-title { font-size: 26px; margin: 14px 0 6px; letter-spacing: -0.4px; }
.wc-sub { color: #a7d8c2; font-size: 13.5px; margin: 0; }
.wc-orb {
  width: 236px; height: 236px; border-radius: 50%; background: rgba(16,185,129,.12);
  display: flex; align-items: center; justify-content: center; margin: 26px 0 22px;
  box-shadow: 0 0 0 22px rgba(16,185,129,.06);
}
.wc-orb-inner {
  width: 196px; height: 196px; border-radius: 50%; background: linear-gradient(160deg, #34d399, #0ea5e9 70%, #1e40af);
  display: flex; align-items: center; justify-content: center; font-size: 62px;
}
.wc-features { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.wc-feature { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.07); border-radius: 14px; padding: 13px 14px; }
.wc-f-ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(16,185,129,.2); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.wc-f-t { font-size: 13.5px; font-weight: 600; }
.wc-f-s { font-size: 11.5px; color: #9fc9b6; margin-top: 2px; }
.wc-dots { display: flex; gap: 6px; margin: 20px 0 12px; }
.wc-dots i { width: 16px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.25); }
.wc-dots i.on { width: 22px; background: #10b981; }
.wc-btn { width: 100%; }

/* 引导 */
.onb-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 12px; }
.onb-step { background: var(--green-soft); color: var(--green-dark); font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; }
.onb-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.onb-progress i { flex: 1; height: 4px; border-radius: 99px; background: #e2e8f0; }
.onb-progress i.on { background: var(--primary); }
.onb-title { font-size: 23px; margin: 0 0 6px; letter-spacing: -0.3px; }
.onb-sub { color: var(--muted2); font-size: 13px; margin: 0 0 18px; }
.onb-bottom { position: sticky; bottom: 0; padding: 14px 0 8px; background: linear-gradient(to top, var(--bg) 70%, transparent); }

.radio-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.radio-row {
  display: flex; align-items: center; justify-content: space-between; background: #fff;
  border: 1.5px solid var(--line2); border-radius: 14px; padding: 15px 16px; font-size: 14px;
}
.radio-row.on { border-color: var(--primary); background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d5dee4; position: relative; }
.radio-row.on .radio-dot { border-color: var(--primary); background: var(--primary); }
.radio-row.on .radio-dot::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; }

.pack-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.pack { background: #fff; border: 1.5px solid var(--line2); border-radius: 12px; padding: 12px 4px; text-align: center; }
.pack.on { border-color: var(--primary); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(16,185,129,.1); }
.pack-ico { font-size: 16px; }
.pack-t { font-size: 11.5px; font-weight: 600; margin-top: 6px; }
.pack-s { font-size: 10px; color: var(--muted2); margin-top: 2px; }

.benefit-dark { background: #0c3b2e; border-radius: 20px; padding: 18px; color: #fff; margin: 16px 0; }
.benefit-ico { font-size: 16px; }
.benefit-label { font-size: 12.5px; color: #a7d8c2; margin-top: 6px; }
.benefit-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.benefit-row span { font-size: 13px; color: #d7efe2; }
.benefit-big { font-size: 32px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); margin-top: 14px; padding-top: 12px; }
.benefit-grid > div { text-align: center; }
.benefit-grid b { font-size: 15px; display: block; }
.benefit-grid span { font-size: 10.5px; color: #9fc9b6; }

.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reason { border: 1.5px solid var(--line2); border-radius: 12px; padding: 14px; text-align: center; font-size: 13.5px; background: #fff; }
.reason.on { border-color: var(--primary); background: var(--green-soft); color: var(--green-dark); font-weight: 600; }

.goal-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.goal { background: #fff; border: 1.5px solid var(--line2); border-radius: 12px; padding: 12px 4px; text-align: center; }
.goal.on { border-color: var(--primary); background: var(--green-soft); }
.goal-t { font-size: 13px; font-weight: 700; }
.goal-s { font-size: 10px; color: var(--muted2); margin-top: 4px; }

.promise { background: #0c3b2e; border-radius: 20px; padding: 18px; color: #fff; margin-top: 16px; }
.promise-head { font-size: 12.5px; color: #a7d8c2; }
.promise-body { font-size: 13px; line-height: 1.9; margin-top: 10px; color: #eafaf1; }
.promise-k { font-size: 10.5px; color: #9fc9b6; }
.promise-name { font-size: 16px; font-weight: 700; margin-top: 4px; }
.promise-btn { background: rgba(255,255,255,.12); color: #d7efe2; border: 0; border-radius: 99px; padding: 8px 14px; font-size: 12px; }


/* ---------- 消息 / 日志详情 / 课程详情 / 徽章详情 / 权限 v6 ---------- */
.msg-tabs { display: flex; gap: 8px; margin: 8px 0 12px; }
.msg-tab { padding: 8px 14px; border-radius: 99px; background: #fff; font-size: 13px; color: var(--muted2); box-shadow: var(--shadow); position: relative; }
.msg-tab.on { background: #0c3b2e; color: #fff; font-weight: 600; }
.msg-badge { background: #10b981; color: #fff; font-size: 10px; border-radius: 99px; padding: 1px 6px; margin-left: 5px; }
.msg-banner { background: var(--green-soft); color: #0b6b4c; font-size: 12.5px; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.msg-group { display: flex; justify-content: space-between; color: var(--muted2); font-size: 12px; margin: 14px 4px 8px; }
.msg-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); position: relative; cursor: pointer; }
.msg-row:last-child { border-bottom: 0; }
.msg-ico { width: 42px; height: 42px; border-radius: 50%; background: #eef7f3; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.msg-body { flex: 1; min-width: 0; }
.msg-t { font-size: 14px; font-weight: 600; color: var(--ink); }
.msg-s { font-size: 12.5px; color: #64748b; margin-top: 4px; line-height: 1.5; }
.msg-time { font-size: 11px; color: #b6c2c9; margin-top: 6px; }
.msg-dot { position: absolute; right: 2px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.msg-end { text-align: center; color: #b6c2c9; font-size: 12px; margin: 22px 0 10px; }

.log-hero { background: #0c3b2e; border-radius: 20px; padding: 18px; color: #fff; margin: 8px 0 14px; }
.lh-date { font-size: 12px; color: #9fc9b6; }
.lh-title { font-size: 22px; font-weight: 700; margin-top: 4px; }
.lh-pill { background: rgba(16,185,129,.2); color: #7ff0c0; font-size: 11.5px; padding: 5px 10px; border-radius: 99px; }
.lh-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); margin-top: 14px; padding-top: 12px; }
.lh-grid > div { text-align: center; }
.lh-grid b { font-size: 16px; display: block; }
.lh-grid span { font-size: 11px; color: #9fc9b6; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted2); }
.kv:last-child { border-bottom: 0; }
.kv b { color: var(--ink); font-weight: 600; }
.c-good { color: #0b8f66 !important; }
.c-bad { color: #be123c !important; }
.c-warn { color: #b45309 !important; }
.craving { background: #f8fafb; border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.xp-banner { display: flex; align-items: center; gap: 12px; background: var(--green-soft); border-radius: 16px; padding: 14px; }
.xp-ico { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }

.bd-hero { background: #0c3b2e; border-radius: 0 0 26px 26px; padding: 52px 18px 22px; color: #fff; text-align: center; margin: -4px -16px 14px; position: relative; }
.bd-back { position: absolute; left: 16px; top: 14px; background: rgba(255,255,255,.12); color: #fff; }
.bd-share { position: absolute; right: 16px; top: 14px; background: rgba(255,255,255,.12); color: #fff; }
.bd-ring { width: 120px; height: 120px; margin: 6px auto 14px; border-radius: 50%; background: rgba(16,185,129,.16); display: flex; align-items: center; justify-content: center; }
.bd-icon { width: 88px; height: 88px; border-radius: 50%; background: #10b981; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.bd-name { font-size: 24px; font-weight: 700; }
.bd-pill { background: rgba(255,255,255,.15); color: #d7efe2; font-size: 11px; padding: 5px 10px; border-radius: 99px; }
.bd-pill.ok { background: rgba(16,185,129,.25); color: #7ff0c0; }
.bd-date { font-size: 11.5px; color: #9fc9b6; margin-top: 10px; }
.bd-cond { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bd-cond:last-child { border-bottom: 0; }
.bd-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d5dee4; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; font-style: normal; }
.bd-check.on { background: var(--primary); border-color: var(--primary); }

.perm-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 12px; }
.perm-skip { background: #fff; border: 0; color: var(--muted2); font-size: 12px; padding: 7px 12px; border-radius: 99px; box-shadow: var(--shadow); }
.perm-visual { background: var(--green-soft); border-radius: 22px; padding: 28px 16px 18px; text-align: center; }
.perm-bell { width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 52px; box-shadow: 0 0 0 18px rgba(16,185,129,.08); }
.perm-chips { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.perm-chips span { background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 11.5px; color: var(--green-dark); }
.perm-note { background: #f8fafb; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: #475569; margin-top: 14px; line-height: 1.6; }
.perm-note span { color: var(--muted2); font-size: 11.5px; }
.perm-quiet { color: var(--muted2); font-size: 11.5px; margin: 14px 0 16px; }

.cd-cover { height: 180px; border-radius: 18px; background: linear-gradient(140deg, #bae6fd, #38bdf8 55%, #0369a1); display: flex; align-items: center; justify-content: center; font-size: 64px; margin-top: 6px; }
.cd-audio { margin: 12px 0 6px; }
.cd-bar { height: 5px; background: #e6ece8; border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.cd-bar i { display: block; height: 100%; background: var(--primary); }
.cd-controls { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 6px 0 14px; }
.cd-ctrl { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 15px; }
.cd-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 20px; box-shadow: 0 8px 18px rgba(16,185,129,.35); }
.cd-point { display: flex; gap: 10px; padding: 8px 0; font-size: 13.5px; color: #334155; line-height: 1.6; }
.cd-num { width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-size: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 2px; }
.cd-quote { background: #0c3b2e; border-radius: 18px; padding: 16px; color: #fff; margin: 4px 0 16px; }
.cd-quote-label { font-size: 12px; color: #9fc9b6; }
.cd-quote-text { font-size: 15px; line-height: 1.8; margin-top: 8px; }

/* ---------- 底部导航（按设计稿） ---------- */
.tabbar {
  height: 79px;
  padding: 8px 8px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  border-top: 1px solid #eef2f5;
  gap: 0;
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 10px;
  text-decoration: none;
  padding-top: 2px;
}
.tabbar a svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.tabbar a.active { color: #10b981; }
.tabbar a.active span { font-weight: 400; }
.tab-sos { position: relative; }
.tab-sos .sos-btn {
  width: 49px; height: 49px; border-radius: 50%;
  background: #10b981; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: -22px;
  border: 4px solid #fff;
  box-shadow: 0 8px 18px rgba(16, 185, 129, .35);
}
.tab-sos .sos-btn svg { width: 24px; height: 24px; stroke-width: 2; }
.tab-sos.active { color: #10b981; }

/* ---------- SOS 急救（按设计稿） ---------- */
.rs-screen {
  position: absolute; inset: 0; z-index: 25;
  background: #0b3b2e; color: #fff;
  display: flex; flex-direction: column;
  padding: 14px 18px 18px;
  overflow-y: auto;
}
.rs-head { display: flex; align-items: center; justify-content: space-between; }
.rs-head .round-btn { background: rgba(255,255,255,.12); color: #fff; }
.rs-title { font-size: 15px; font-weight: 600; }
.rs-sub { text-align: center; font-size: 12px; color: #9fc9b6; margin: 18px 0 6px; }
.rs-phase-title { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: .5px; }

.rs-orb {
  position: relative; width: 300px; height: 300px; margin: 22px auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.rs-halo { position: absolute; border-radius: 50%; background: rgba(16,185,129,.10); }
.rs-halo.h1 { width: 300px; height: 300px; }
.rs-halo.h2 { width: 250px; height: 250px; background: rgba(16,185,129,.14); }
.rs-halo.h3 { width: 200px; height: 200px; background: rgba(16,185,129,.2); }
.rs-core {
  width: 172px; height: 172px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #6ee7b7, #10b981 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #063a2b; transition: transform 1s ease-in-out;
  box-shadow: 0 18px 40px rgba(16,185,129,.35);
}
.rs-core .k { font-size: 13px; font-weight: 600; color: #064e3b; }
.rs-core .n { font-size: 52px; font-weight: 800; line-height: 1.05; color: #063a2b; }
.rs-core .u { font-size: 11px; color: #064e3b; opacity: .8; }
.rs-core.inhale { transform: scale(1.08); }
.rs-core.exhale { transform: scale(.9); }

.rs-chips { display: flex; justify-content: center; gap: 8px; margin: 14px 0 12px; }
.rs-chip {
  padding: 8px 14px; border-radius: 10px; font-size: 12px;
  background: rgba(255,255,255,.08); color: #9fc9b6;
}
.rs-chip.on { background: #10b981; color: #fff; font-weight: 600; }

.rs-progress { height: 4px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; margin: 0 4px; }
.rs-progress i { display: block; height: 100%; background: #10b981; border-radius: 99px; transition: width .4s; }
.rs-round { text-align: center; font-size: 11.5px; color: #9fc9b6; margin-top: 8px; }

.rs-actions { margin-top: auto; padding-top: 16px; }
.rs-actions-card { background: rgba(255,255,255,.06); border-radius: 18px; padding: 14px 14px 10px; }
.rs-actions-title { font-size: 13px; color: #ffd88a; margin-bottom: 10px; }
.rs-action {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px;
  background: rgba(255,255,255,.06); border-radius: 12px; margin-bottom: 8px;
  font-size: 12.5px; color: #e6f4ec;
}
.rs-action .ico { font-size: 15px; }
.rs-start { margin-top: 12px; }

/* ================= v8 字体校準（对齐 Calicat 设计稿） =================
   设计稿字号抽样：页面主标题 21-22 / 卡片标题 14-15 / 正文 13 / 次要 11-12
   / 标签 10 / 大数字 30-40 / 按钮 14-16 / Tab 10
   本段统一覆盖前序规则，确保所有页面字号一致。 */
body { font-size: 13px; }
.appbar h1 { font-size: 16px; font-weight: 600; }
.icon-btn { font-size: 20px; }

/* 页面主标题 */
.home-title { font-size: 21px; }
.greet { font-size: 12px; }

/* 通用卡片 / 分组标题 */
.card b, .section-title { font-size: 15px; }
h2.section { font-size: 15px; }

/* 正文与次要文字 */
.muted { font-size: 12px; }
.log-t, .task-t, .msg-t, .menu-row .log-t, .set-row .log-t { font-size: 14px; }
.log-s, .task-s, .msg-s, .set-row .log-s, .ms-item-s { font-size: 11px; }
.msg-time, .ms-item-s { font-size: 10px; }

/* 数字与统计 */
.sc-v { font-size: 17px; }
.sc-k { font-size: 10px; }
.stat-mini .v { font-size: 18px; }
.stat-mini .k { font-size: 10px; }
.sh-v { font-size: 15px; }
.sh-k { font-size: 10px; }
.ring-num { font-size: 28px; }
.ring-top { font-size: 13px; }

/* 标签 / 胶囊 / 按钮 */
.pill, .pill2, .tagchip { font-size: 10px; }
.chip { font-size: 12px; }
.btn { font-size: 16px; }
.btn.small { font-size: 12px; }
.btn-lg { font-size: 16px; }
.later { font-size: 12px; }

/* 首页 */
.task-t { font-size: 14px; }
.hero .sub, .b-s { font-size: 11px; }
.b-t { font-size: 14px; }

/* 打卡 */
.onb-step { font-size: 11px; }
.step-title { font-size: 14px; }
.opt-t { font-size: 13px; }
.opt-s, .foot { font-size: 10px; }
.note { font-size: 13px; }
.note-count, .note-foot { font-size: 10px; }
.warm-tip { font-size: 11px; }
.mood-k { font-size: 10px; }

/* 战绩 */
.sh-title { font-size: 11px; }
.sh-pill { font-size: 10px; }
.seg { font-size: 12px; }
.legend { font-size: 10px; }
.insight { font-size: 11px; }

/* 徽章 */
.bname { font-size: 11px; }
.bdesc { font-size: 9px; }
.bd-name { font-size: 22px; }
.bd-pill { font-size: 10px; }
.bd-date { font-size: 11px; }

/* 日志 */
.mn-title { font-size: 15px; }
.mn-sub { font-size: 11px; }
.cal2 { font-size: 12px; }
.cal2-head, .cal2-legend { font-size: 10px; }
.lh-date { font-size: 11px; }
.lh-title { font-size: 18px; }
.lh-pill { font-size: 10px; }
.lh-grid b { font-size: 15px; }
.lh-grid span { font-size: 10px; }
.kv { font-size: 13px; }

/* 课程 */
.ch-title { font-size: 15px; }
.ch-sub { font-size: 11px; }
.ch-num { font-size: 16px; }
.ch-k { font-size: 9px; }
.feat-meta { font-size: 10px; }
.feat-title { font-size: 17px; }
.feat-desc { font-size: 12px; }
.cd-quote-text { font-size: 14px; }
.cd-point { font-size: 13px; }

/* 消息 */
.msg-tab { font-size: 12px; }
.msg-t { font-size: 14px; }
.msg-s { font-size: 12px; }
.msg-time { font-size: 10px; }
.msg-banner { font-size: 11px; }

/* 我的 / 设置 */
.tagchip { font-size: 9px; }
.h-row { font-size: 12px; }
.set-group { font-size: 11px; }
.set-value { font-size: 11px; }
.perm-chips span { font-size: 10px; }
.perm-note { font-size: 11px; }
.perm-quiet { font-size: 10px; }

/* 登录 / 引导 / 欢迎 */
.lg-title { font-size: 26px; }
.lg-sub { font-size: 13px; }
.lg-brand { font-size: 11px; }
.seg2-item { font-size: 13px; }
.lg-input input { font-size: 15px; }
.lg-cc { font-size: 13px; }
.lg-send { font-size: 11px; }
.lg-agree, .lg-tip { font-size: 11px; }
.lg-others .lg-other { font-size: 10px; }
.lg-footer { font-size: 10px; }
.onb-title { font-size: 22px; }
.onb-sub { font-size: 12px; }
.radio-row { font-size: 13px; }
.pack-t { font-size: 11px; }
.pack-s { font-size: 9px; }
.goal-t { font-size: 13px; }
.goal-s { font-size: 9px; }
.reason { font-size: 12px; }
.promise-body { font-size: 12px; }
.benefit-big { font-size: 30px; }
.benefit-grid b { font-size: 14px; }
.benefit-grid span { font-size: 9px; }
.wc-title { font-size: 24px; }
.wc-sub { font-size: 12px; }
.wc-f-t { font-size: 13px; }
.wc-f-s { font-size: 10px; }



/* ---------- 社区（对照设计稿） ---------- */
.c-add { background: var(--primary); color: #fff; font-size: 20px; }
.topic-banner {
  display: flex; align-items: center; gap: 12px; background: #0c3b2e; color: #fff;
  border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; cursor: pointer;
}
.tb-ico { width: 36px; height: 36px; border-radius: 12px; background: rgba(16,185,129,.25); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.tb-t { font-size: 13px; font-weight: 600; }
.tb-s { font-size: 10px; color: #9fc9b6; margin-top: 3px; }
.tb-chev { color: #7ff0c0; font-size: 18px; }

.post-card { margin-bottom: 12px; }
.p-avatar { width: 40px; height: 40px; border-radius: 50%; background: #eef7f3; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: 0 0 auto; }
.p-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.p-meta { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.p-body { font-size: 13.5px; line-height: 1.75; color: #334155; margin-top: 12px; }
.p-media {
  height: 150px; border-radius: 12px; margin-top: 12px;
  background: linear-gradient(135deg, #dbeafe, #93c5fd 60%, #3b82f6);
  display: flex; align-items: center; justify-content: center; font-size: 46px;
}
.p-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.p-act { border: 0; background: transparent; font-size: 11px; color: #94a3b8; padding: 4px 0; cursor: pointer; }
.p-act.liked { color: #ef4444; }
.p-cta { border: 0; background: #e9f9f1; color: #0b8f66; font-size: 11px; font-weight: 600; padding: 8px 14px; border-radius: 99px; cursor: pointer; }
.p-cta.solid { background: var(--primary); color: #fff; }

.cmt { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cmt:last-child { border-bottom: 0; }
.cmt-text { font-size: 12.5px; color: #334155; margin-top: 4px; line-height: 1.6; }
.cmt-bar {
  position: sticky; bottom: 0; display: flex; gap: 10px; padding: 10px 0 4px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.cmt-bar input {
  flex: 1; border: 1px solid var(--line2); border-radius: 99px; padding: 11px 16px;
  font-size: 13px; outline: none; background: #fff;
}

.p-reply { display:flex; gap:10px; background:#f8fafb; border-radius:12px; padding:12px; margin-top:12px; }
.cmt-text { font-size:12px; color:#334155; margin-top:3px; line-height:1.6; }

/* 首页补充：烟瘾快捷记录 + 同伴动态 */
.crave-sos { display:flex; align-items:center; gap:12px; background:#e9f9f1; border-radius:14px; padding:12px 14px; margin-top:12px; cursor:pointer; }
.cs-ico { width:36px; height:36px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-size:17px; }
.cs-t { font-size:13.5px; font-weight:600; color:#065f46; }
.cs-s { font-size:10px; color:#64748b; margin-top:2px; }
.cs-btn { background:#10b981; color:#fff; font-size:10px; font-weight:600; padding:7px 12px; border-radius:99px; white-space:nowrap; }
.home-post { display:flex; gap:10px; padding:12px 0; border-bottom:1px solid #e9eef2; cursor:pointer; }
.home-post:last-child { border-bottom:0; }
.hp-name { font-size:12px; font-weight:600; color:#1c2b24; }
.hp-days { font-size:9px; color:#94a3b8; }
.hp-text { font-size:11px; color:#475569; line-height:1.6; margin-top:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hp-meta { font-size:10px; color:#94a3b8; margin-top:5px; }
.ms-dot.pending { background:#e2e8f0; }

/* 首页每日打卡入口（设计稿 v2 新增） */
.checkin-banner {
  display: flex; align-items: center; gap: 12px;
  background: #e9f9f1; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
  cursor: pointer;
}
.cb-ico {
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto;
}
.cb-t { font-size: 14px; font-weight: 600; color: #0b3b2e; }
.cb-s { font-size: 10px; color: #64748b; margin-top: 3px; }
.cb-btn {
  background: #10b981; color: #fff; border: 0; border-radius: 99px;
  padding: 9px 18px; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.cb-btn.done { background: #fff; color: #0b8f66; }

/* ================= v13 响应式适配 ================= */
html, body { height: 100%; }
body { min-height: 100dvh; }

.phone {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
}

.screen {
  padding: 4px 16px calc(96px + env(safe-area-inset-bottom, 0px));
}

.tabbar {
  height: calc(79px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

/* 呼吸动画圆环：跟随屏幕宽度 */
.rs-orb { width: min(300px, 76vw); height: min(300px, 76vw); }
.rs-halo.h1 { width: 100%; height: 100%; }
.rs-halo.h2 { width: 83%; height: 83%; }
.rs-halo.h3 { width: 67%; height: 67%; }
.rs-core { width: 57%; height: 57%; }
.rs-core .n { font-size: clamp(34px, 12vw, 52px); }
.rs-core .k { font-size: clamp(11px, 3.4vw, 13px); }

/* 欢迎页圆球 */
.wc-orb { width: min(236px, 62vw); height: min(236px, 62vw); }
.wc-orb-inner { width: 83%; height: 83%; font-size: clamp(40px, 14vw, 62px); }

/* 徽章详情圆环 */
.bd-ring { width: min(120px, 32vw); height: min(120px, 32vw); }
.bd-icon { width: 73%; height: 73%; font-size: clamp(30px, 9vw, 40px); }

/* 窄屏（≤360，覆盖 320/360 安卓机） */
@media (max-width: 360px) {
  .screen { padding: 4px 12px calc(92px + env(safe-area-inset-bottom, 0px)); }
  .card { padding: 14px; }
  .home-title { font-size: 20px; }
  .home-head .greet { font-size: 11px; }
  .ring { width: 96px; height: 96px; }
  .ring-inner { width: 76px; height: 76px; }
  .ring-num { font-size: 25px; }
  .ring-card { gap: 12px; padding: 15px; }
  .stat3 { gap: 8px; }
  .sc-v { font-size: 15px; }
  .opt-row { gap: 6px; }
  .opt { padding: 12px 4px; }
  .opt-t { font-size: 12px; }
  .opt-s { font-size: 9px; }
  .pack-row { gap: 6px; }
  .pack { padding: 10px 2px; }
  .pack-t { font-size: 10px; }
  .mood-e { width: 40px; height: 40px; font-size: 19px; }
  .goal-row { gap: 6px; }
  .goal { padding: 10px 2px; }
  .reason-grid { gap: 8px; }
  .btn { font-size: 15px; padding: 13px; }
  .tabbar a { font-size: 10px; }
  .lg-title { font-size: 24px; }
  .onb-title { font-size: 20px; }
  .bd-name { font-size: 20px; }
  .ch-title { font-size: 14px; }
}

/* 大屏（≥600，平板/桌面）：居中手机宽度，周围留白 */
@media (min-width: 600px) {
  body { background: #e7eeea; }
  .phone { box-shadow: 0 0 60px rgba(15, 23, 42, .16); }
}

/* ---------- 打卡日历 / 今日已完成（对照设计稿） ---------- */
.cal-summary {
  background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
  margin: 8px 0 14px;
}
.cal-big { font-size: 40px; font-weight: 700; color: #0f172a; margin-top: 6px; line-height: 1.1; }
.cal-big span { font-size: 18px; font-weight: 600; }
.cal-big em { font-size: 11px; font-style: normal; color: #94a3b8; font-weight: 400; margin-left: 6px; }
.cal-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #eef2f5; margin-top: 14px; padding-top: 12px; }
.cal-stats > div { text-align: center; }
.cal-stats b { font-size: 16px; display: block; color: #0f172a; }
.cal-stats span { font-size: 9px; color: #94a3b8; }
.cal-nav { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #f1f5f8; font-size: 16px; color: #334155; }

.cal-day { position: relative; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 50%; color: #475569; }
.cal-day.empty { visibility: hidden; }
.cal-day.ok { background: #e9f9f1; color: #0b8f66; font-weight: 600; }
.cal-day.today { outline: 2px solid #10b981; outline-offset: -1px; color: #0b8f66; font-weight: 700; }
.cal-day.miss { background: #ffe4e6; color: #be123c; font-weight: 600; }
.cal-day.future { color: #cbd5e1; }
.cal-day i { position: absolute; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; }
.dot-ring { background: transparent; border: 1.5px solid #10b981; width: 7px !important; height: 7px !important; bottom: 1px !important; }
.dot-star { color: #f59e0b; font-style: normal; font-size: 7px; bottom: -1px; }

.cal-milestone {
  display: flex; align-items: center; gap: 12px; background: #fff7ed; border-radius: 16px;
  padding: 14px; margin-top: 14px;
}
.cm-ico { width: 36px; height: 36px; border-radius: 50%; background: #ffedd5; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.cm-t { font-size: 12px; font-weight: 600; color: #9a3412; }
.cm-s { font-size: 10px; color: #c2410c; margin-top: 3px; }

/* 今日已完成 */
.done-sub { text-align: center; font-size: 10px; color: #94a3b8; margin: 2px 0 10px; }
.done-hero { background: #0c3b2e; border-radius: 20px; padding: 18px; color: #fff; margin-bottom: 14px; }
.done-check { width: 44px; height: 44px; border-radius: 50%; background: #10b981; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.done-title { font-size: 18px; font-weight: 700; }
.done-sub2 { font-size: 10px; color: #9fc9b6; margin-top: 4px; }
.done-xp { display: flex; justify-content: space-between; font-size: 10px; color: #bfe4d5; margin-top: 16px; }
.done-xp b { color: #7ff0c0; font-size: 12px; }
.done-bar { height: 5px; background: rgba(255,255,255,.15); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.done-bar i { display: block; height: 100%; background: #10b981; border-radius: 99px; }
.done-diary { background: #f8fafb; border-radius: 12px; padding: 12px; font-size: 12px; color: #475569; line-height: 1.7; width: 100%; }
.done-week { display: flex; justify-content: space-between; margin-top: 14px; }
.dw { text-align: center; flex: 1; }
.dw-dot {
  width: 30px; height: 30px; margin: 0 auto; border-radius: 50%; background: #f1f5f8;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff;
}
.dw-dot.ok { background: #10b981; }
.dw-dot.today { outline: 2px solid #10b981; outline-offset: 1px; background: #e9f9f1; color: #0b8f66; }
.dw-k { font-size: 9px; color: #94a3b8; margin-top: 5px; }
.done-actions { display: flex; gap: 10px; margin: 16px 0 6px; }

.cal-day.pre { color:#e2e8f0; }
.cal-star { position:absolute; bottom:-2px; font-size:8px; color:#f59e0b; font-style:normal; }

/* 顶栏标题绝对居中（有/无右侧按钮都居中） */
.appbar { position: relative; justify-content: space-between; }
.appbar h1 { position: absolute; left: 50%; transform: translateX(-50%); max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 海报 / 教练 / 资料 / 上传 v15 ---------- */
.poster-wrap canvas { width: 100%; height: auto; border-radius: 18px; display: block; box-shadow: 0 14px 30px rgba(12,59,46,.25); }
.chat { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 0 12px; }
.bubble { max-width: 80%; padding: 11px 14px; border-radius: 14px; font-size: 13px; line-height: 1.6; }
.bubble.coach { background: #fff; color: #1c2b24; align-self: flex-start; box-shadow: var(--shadow); border-top-left-radius: 4px; }
.bubble.user { background: #10b981; color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.bubble .bt { display: block; font-size: 9px; opacity: .65; margin-top: 5px; text-align: right; }
.coach-head { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); margin: 8px 0 10px; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 10px; }
.emoji-pick { width: 44px; height: 44px; border-radius: 50%; background: #f1f5f8; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.emoji-pick.on { background: #e9f9f1; outline: 2px solid #10b981; }
.legal { font-size: 12px; color: #475569; line-height: 1.85; }
.p-img { width: 100%; border-radius: 12px; margin-top: 12px; display: block; object-fit: cover; max-height: 220px; }
.up-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.up-btn { background: #f1f5f8; border-radius: 10px; padding: 9px 14px; font-size: 12px; color: #475569; cursor: pointer; }
.up-preview { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; }
.btn[disabled] { opacity: .45; }

/* ---------- v16 主题 / 头像 / FAQ ---------- */
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.faq { padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.faq:last-child { border-bottom: 0; }
.faq-a { font-size: 12px; color: #64748b; line-height: 1.7; margin-top: 8px; }
body.font-lg .phone { zoom: 1.06; }
body.dark { --bg: #0f172a; --card: #16233a; --text: #e5edf5; --ink: #e5edf5; --line: #243247; --muted2: #94a3b8; --green-soft: #123528; background: #0b1220; }
body.dark .card, body.dark .tabbar, body.dark .appbar, body.dark .cal-summary, body.dark .stats-hero { background: #16233a; color: #e5edf5; }
body.dark .log-t, body.dark .task-t, body.dark .home-title, body.dark .msg-t, body.dark .p-name, body.dark .kv b { color: #e5edf5; }
body.dark .log-s, body.dark .muted, body.dark .p-meta { color: #94a3b8; }
body.dark .bubble.coach { background: #1c2b42; color: #e5edf5; }

.fav-star { font-size:16px; color:#f59e0b; padding:0 6px; cursor:pointer; }

/* ---------- 徽章解锁弹窗 v19 ---------- */
.badge-overlay { position:absolute; inset:0; background:rgba(15,23,42,.45); display:flex; align-items:center; justify-content:center; z-index:80; padding:20px; }
.badge-modal { background:#fff; border-radius:26px; padding:20px 20px 16px; width:100%; max-width:330px; text-align:center; box-shadow:0 24px 60px rgba(0,0,0,.28); animation:buPop .32s cubic-bezier(.2,.9,.3,1.25); }
.bu-orb { position:relative; width:118px; height:118px; margin:14px auto 12px; display:flex; align-items:center; justify-content:center; }
.bu-halo { position:absolute; inset:0; border-radius:50%; background:radial-gradient(circle, rgba(16,185,129,.22), rgba(16,185,129,0) 70%); animation:buPulse 2.4s ease-in-out infinite; }
.bu-icon { width:92px; height:92px; border-radius:50%; background:linear-gradient(160deg,#34d399,#059669); display:flex; align-items:center; justify-content:center; font-size:42px; color:#fff; box-shadow:0 10px 24px rgba(5,150,105,.35); }
.bu-title { font-size:19px; font-weight:700; margin:0 0 6px; color:#0f172a; }
.bu-sub { font-size:11px; color:#64748b; line-height:1.6; margin:0 0 14px; }
.bu-reward { display:flex; justify-content:space-between; align-items:center; background:#e9f9f1; border-radius:12px; padding:11px 14px; font-size:11px; color:#0b8f66; }
.bu-reward b { font-size:13px; }
.bu-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:12px 0; }
.bu-stats > div { background:#f8fafb; border-radius:12px; padding:10px 4px; }
.bu-stats b { display:block; font-size:15px; color:#0f172a; }
.bu-stats span { font-size:9px; color:#94a3b8; }
.bu-tip { background:#fff7ed; color:#9a3412; font-size:10px; line-height:1.6; border-radius:10px; padding:10px 12px; text-align:left; margin-bottom:14px; }
.badge-modal .btn { margin-top:8px; }
@keyframes buPop { from { transform:scale(.86); opacity:0 } to { transform:scale(1); opacity:1 } }
@keyframes buPulse { 0%,100% { transform:scale(1); opacity:.9 } 50% { transform:scale(1.12); opacity:.5 } }
