﻿/* 人生入口 Life Hub - 样式 (style.css) v0.1.2
   设计语言：参考 class_support —— 浅色底 + 白卡片 + 彩色统计卡 + 靛蓝强调
   手机：底部导航 + 单栏卡片；桌面：顶部导航 + 宽容器 + 多栏网格 */

:root {
  --bg: #F6F5F1;
  --card: #FFFFFF;
  --text: #232A35;
  --sub: #6B7280;
  --border: #EAE7DF;
  --accent: #4656A0;
  --accent-2: #5A6FB8;
  --accent-soft: rgba(70, 86, 160, 0.10);
  --accent-border: rgba(70, 86, 160, 0.22);
  --gold: #C08A2E;
  --gold-soft: #E8C878;
  --success: #059669;
  --danger: #DC4C4C;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(35, 42, 53, 0.05), 0 6px 20px rgba(35, 42, 53, 0.05);
  --nav-h: 62px;
  --topbar-h: 52px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

#app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + 20px); }

/* 新版本更新提示条 */
#updateBar {
  position: sticky; top: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  gap: 8px; padding: 8px 14px;
  background: linear-gradient(90deg, #33437A, #5A6FB8);
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(51,67,122,0.25);
}

/* 页面区块：默认隐藏，由 JS 以 .active 控制 */
.page { display: none; }
.page.active { display: block; padding-bottom: 90px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 245, 241, 0.98);
  border-bottom: 1px solid var(--border);
}
.topbar-row {
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 6px;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 700; letter-spacing: 0.2px; }
.logo-mark { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; box-shadow: 0 2px 6px rgba(35,42,53,0.15); }
.brand .dot { color: var(--gold); }
.today-label { font-size: 13px; color: var(--sub); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.gear {
  background: none; border: none; font-size: 17px; cursor: pointer; padding: 4px 2px;
  color: var(--sub); line-height: 1; transition: color 0.15s;
}
.gear:hover { color: var(--accent); }
.lang-btn {
  background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent);
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 3px 9px; border-radius: 999px; line-height: 1.3;
}
.lang-btn:hover { background: var(--accent); color: #fff; }

/* 主导航：手机=底部固定；桌面=顶部横排 */
.main-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.main-nav { display: flex; max-width: 520px; margin: 0 auto; height: var(--nav-h); }
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #A3A8B4; font-size: 10.5px; cursor: pointer; text-decoration: none;
  border: none; background: none; padding: 0; transition: color 0.15s;
}
.nav-item .ico { font-size: 21px; line-height: 1; }
.nav-item.active { color: var(--accent); font-weight: 600; }

/* ---------------- 内容区 ---------------- */
.content { padding: 0 14px; }

/* 页面标题区 */
.page-head { padding: 18px 6px 6px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; }
.page-sub { font-size: 13px; color: var(--sub); margin-top: 3px; }

/* ---------------- 愿景北极星 ---------------- */
.vision-strip {
  margin: 14px 0 4px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #2B3A63 0%, #4557A8 62%, #5A6FB8 100%);
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 8px 24px rgba(43, 58, 99, 0.22);
  overflow: hidden;
}
.vision-strip::after {
  content: ""; position: absolute; right: -40px; top: -50px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(232,200,120,0.18) 0%, rgba(232,200,120,0) 70%);
  pointer-events: none;
}
.vision-strip .label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gold-soft);
  display: flex; align-items: center; gap: 6px;
}
.vision-strip .statement {
  font-size: 15px; font-weight: 600; color: #FFFFFF; line-height: 1.6; margin-top: 5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.vision-strip .star { color: var(--gold-soft); font-size: 13px; }
.vision-strip { cursor: pointer; }
.vision-strip:hover { filter: brightness(1.05); }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.ct-ico { font-size: 15px; }
.card-tag {
  margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 2px 9px; border-radius: 999px;
}

/* ---------------- 统计卡（彩色渐变，参照 class_support） ---------------- */
.stat-row { display: flex; gap: 10px; }
.stat {
  flex: 1; text-align: center; padding: 13px 6px 11px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
}
.stat .num { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat .lbl { font-size: 11px; color: var(--sub); margin-top: 3px; }
.st-blue { background: linear-gradient(150deg, #EEF2FF 0%, #E2E8FF 100%); border-color: #C9D4FE; }
.st-blue .num { color: var(--accent); }
.st-green { background: linear-gradient(150deg, #ECFDF5 0%, #D6F5E6 100%); border-color: #B7ECD4; }
.st-green .num { color: var(--success); }
.st-amber { background: linear-gradient(150deg, #FFFBEB 0%, #FDF0D0 100%); border-color: #F6E2A9; }
.st-amber .num { color: #B45309; }

/* ---------------- 今日聚焦 ---------------- */
.focus-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.focus-item:last-child { border-bottom: none; }
.focus-num {
  flex: 0 0 26px; height: 26px; border-radius: 9px;
  background: linear-gradient(135deg, #4656A0, #5A6FB8); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.focus-body { flex: 1; min-width: 0; }
.focus-body .goal { font-size: 14.5px; font-weight: 600; }
.focus-body .hint { font-size: 12px; color: var(--sub); margin-top: 2px; }
.focus-meta { font-size: 12px; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* ---------------- 任务清单 ---------------- */
.task-list { list-style: none; }
.task-list li {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.task-list li:last-child { border-bottom: none; }
.task-check {
  flex: 0 0 23px; height: 23px; border-radius: 50%;
  border: 2px solid #C9C7BF; background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.task-check.on { border-color: var(--success); background: var(--success); }
.task-check.on::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.task-title { flex: 1; font-size: 14px; min-width: 0; }
.task-title.done { color: #A9A79F; text-decoration: line-through; }
.task-goal { font-size: 11.5px; color: var(--sub); margin-top: 1px; }
.task-del { color: #C9C7BF; font-size: 14px; cursor: pointer; padding: 2px 6px; }

/* ---------------- 目标 ---------------- */
.goal-card { padding: 14px 16px; }
.goal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.goal-title { font-size: 15px; font-weight: 600; }
.goal-tag {
  font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.goal-tag.avoid { background: rgba(220,76,76,0.10); color: var(--danger); }
.goal-tag.done-tag { background: rgba(5,150,105,0.12); color: var(--success); }
.goal-result { font-size: 12.5px; color: var(--sub); margin-top: 6px; }
.goal-deadline { font-size: 12px; color: var(--gold); margin-top: 2px; font-weight: 600; }
.mile-list { margin-top: 10px; }
.mile-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.mile-check {
  width: 19px; height: 19px; border-radius: 6px; border: 2px solid #C9C7BF;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 19px;
}
.mile-check.on { background: var(--accent); border-color: var(--accent); }
.mile-check.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.mile-name { flex: 1; }
.mile-measure { font-size: 11px; color: var(--sub); }
.progress-track { height: 7px; background: #EDEAE2; border-radius: 999px; margin-top: 11px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width 0.3s; }
.progress-label { font-size: 11px; color: var(--sub); margin-top: 5px; text-align: right; }

/* 目标卡操作 */
.goal-main { flex: 1; min-width: 0; }
.goal-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.goal-actions { display: flex; gap: 2px; }
.ga-btn { background: none; border: none; font-size: 15px; cursor: pointer; padding: 3px 4px; color: #A3A8B4; border-radius: 6px; line-height: 1; }
.ga-btn:hover { background: var(--accent-soft); }
.ga-btn.on { color: var(--gold); }
.ga-btn.del:hover { background: rgba(220,76,76,0.1); color: var(--danger); }
.goal-tag.lib { background: rgba(0,0,0,0.06); color: var(--sub); }
.gr-top { display: flex; align-items: center; gap: 6px; }
.goal-status { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 10px; }
.goal-status.ok { background: var(--success); box-shadow: 0 0 0 3px rgba(5,150,105,0.16); }
.goal-status.warn { background: var(--gold); box-shadow: 0 0 0 3px rgba(192,138,46,0.18); }
.goal-status.danger { background: var(--danger); box-shadow: 0 0 0 3px rgba(220,76,76,0.16); }
.task-goal.streak { color: #C77D0A; font-weight: 600; }
.goal-links { display: flex; gap: 16px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); }
.gl { color: var(--accent); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mile-add { margin-top: 9px; }
.mile-add-row { display: flex; gap: 8px; margin-bottom: 8px; }
.mile-add-row input { flex: 1; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; font-family: inherit; background: #FBFBF8; color: var(--text); }
.mile-add-row input:focus { outline: none; border-color: var(--accent); background: #fff; }
.mile-add-row .btn { width: auto; padding: 9px 16px; }

.review-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.wk-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border); }
.wk-row:last-child { border-bottom: none; }
.wk-dot { width: 10px; height: 10px; border-radius: 50%; background: #E3E0D8; flex: 0 0 10px; }
.wk-dot.on { background: var(--success); box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }
.wk-date { flex: 0 0 74px; font-size: 12.5px; font-weight: 600; color: var(--sub); }
.wk-text { flex: 1; min-width: 0; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 复盘节奏与提醒 */
.nav-badge {
  position: absolute; top: 4px; right: calc(50% - 26px);
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.nav-item { position: relative; }
.rhythm-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.rhythm-row:last-child { border-bottom: none; }
.rhythm-ico { font-size: 20px; flex: 0 0 30px; text-align: center; }
.rhythm-main { flex: 1; min-width: 0; }
.rhythm-label { font-size: 14px; font-weight: 600; }
.rhythm-sub { font-size: 11.5px; color: var(--sub); }
.rhythm-status { font-size: 12px; margin-top: 2px; font-weight: 600; }
.rhythm-status.ok { color: var(--success); }
.rhythm-status.due { color: var(--danger); }
.rhythm-act { flex: 0 0 auto; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.rhythm-recent { font-size: 12px; color: var(--sub); }

/* 表单弹窗 */
.frm-q { margin-bottom: 14px; }
.frm-q label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.frm-q label em { color: var(--danger); font-style: normal; }
.frm-q label .qhint { font-size: 11.5px; font-weight: 400; color: var(--sub); margin-left: 5px; }
.frm-q input[type="text"], .frm-q input[type="email"], .frm-q input[type="password"], .frm-q textarea, .frm-q select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: #FBFBF8; color: var(--text);
}
.frm-q textarea { resize: vertical; }
.frm-q input[type="text"]:focus, .frm-q input[type="email"]:focus, .frm-q input[type="password"]:focus, .frm-q textarea:focus, .frm-q select:focus { outline: none; border-color: var(--accent); background: #fff; }
.frm-q .chk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer; margin: 0; }
.frm-q .chk input { width: auto; height: 18px; width: 18px; accent-color: var(--accent); }

/* ---------------- 收件匣 / 行动 ---------------- */
.inbox-add { display: flex; gap: 8px; margin-bottom: 8px; }
.inbox-add input {
  flex: 1; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: #FBFBF8; color: var(--text);
}
.inbox-add input:focus { outline: none; border-color: var(--accent); background: #fff; }
.inbox-add .btn { width: auto; padding: 11px 18px; }
.inbox-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.inbox-item:last-child { border-bottom: none; }
.inbox-text { flex: 1; font-size: 14px; }
.inbox-text.processed { color: #A9A79F; text-decoration: line-through; }
.inbox-time { font-size: 11px; color: var(--sub); }
.icon-btn { color: #C9C7BF; font-size: 16px; cursor: pointer; padding: 2px 6px; }
.icon-btn:hover { color: var(--accent); }

/* ---------------- 复盘 ---------------- */
.review-q { margin-bottom: 15px; }
.review-q label { font-size: 13.5px; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.review-q label .qnum { color: var(--accent); margin-right: 5px; font-weight: 700; }
.review-q label .qhint { font-size: 11.5px; font-weight: 400; color: var(--sub); margin-left: 5px; }
.review-q textarea {
  width: 100%; min-height: 64px; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: #FBFBF8; color: var(--text);
  resize: vertical;
}
.review-q textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.rv-habit {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin: 6px 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #FBFBF8; cursor: pointer; user-select: none;
  transition: all .15s;
}
.rv-habit.done { background: rgba(82,196,26,.08); border-color: rgba(82,196,26,.35); }
.rv-habit:active { transform: scale(.98); }
.rv-habit-check { font-size: 15px; width: 22px; text-align: center; }
.rv-habit-name { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-habit-state { font-size: 11.5px; color: var(--sub); }
.rv-habit.done .rv-habit-state { color: var(--success); font-weight: 600; }
.review-hint { font-size: 13.5px; color: var(--sub); line-height: 1.8; }
.review-hint a { color: var(--accent); font-weight: 600; }
.saved-hint { font-size: 12px; color: var(--success); margin-top: 9px; text-align: center; font-weight: 600; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(70, 86, 160, 0.22);
  transition: transform 0.1s, opacity 0.15s;
}
.btn:active { transform: translateY(1px); opacity: 0.9; }
.btn.ghost { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.btn.danger { background: rgba(220,76,76,0.12); color: var(--danger); box-shadow: none; }
.add-btn { margin: 12px 0; }

/* ---------------- 悬浮按钮 + 弹窗 ---------------- */
.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + 18px); z-index: 25;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; border: none; font-size: 25px;
  box-shadow: 0 8px 22px rgba(70, 86, 160, 0.35);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(35, 42, 53, 0.4);
  display: none; align-items: flex-end; justify-content: center;
}
.overlay.show { display: flex; }
.sheet {
  width: 100%; max-width: 520px; background: var(--bg);
  border-radius: 22px 22px 0 0; padding: 20px 18px 26px;
  max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.sheet-title { font-size: 16px; font-weight: 700; margin-bottom: 13px; }
.sheet textarea {
  width: 100%; padding: 12px; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text); resize: none;
}
.sheet textarea:focus { outline: none; border-color: var(--accent); }
.sheet-row { display: flex; gap: 10px; }
.sheet-row > * { flex: 1; }

/* ---------------- 设置 / 数据 ---------------- */
.set-sec { padding: 13px 0; border-bottom: 1px solid var(--border); }
.set-sec:last-of-type { border-bottom: none; }
.set-sec-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.set-desc { font-size: 12.5px; color: var(--sub); line-height: 1.7; margin-bottom: 10px; word-break: break-word; }
.set-btns { display: flex; gap: 10px; }
.set-btns .btn { flex: 1; }
.set-divider { height: 1px; background: var(--border, rgba(0,0,0,0.08)); margin: 12px 0; border: none; }
.vision-status { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; color: var(--text); line-height: 1.8; }
.vision-status .vs-row { display: flex; justify-content: space-between; }
.vision-status .vs-label { color: var(--sub); }
.vision-status .vs-due { color: #D4380D; font-weight: 600; }
.vision-status .vs-ok { color: #52C41A; }
.btn-link {
  display: block; width: 100%; margin-top: 8px; text-align: center;
  background: none; border: none; color: var(--accent); font-size: 13px;
  font-weight: 600; cursor: pointer; padding: 6px; text-decoration: underline;
}

/* ---------------- 愿景探索引导向导 ---------------- */
.wiz-sheet { max-height: 88vh; overflow-y: auto; }
.wiz-close {
  float: right; font-size: 17px; color: var(--sub); cursor: pointer;
  padding: 2px 6px; line-height: 1;
}
.wiz-progress { height: 5px; background: #EDEAE2; border-radius: 999px; margin: 2px 0 16px; overflow: hidden; }
.wiz-progress-fill { height: 100%; width: 20%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; transition: width 0.3s; }
.wiz-step { display: none; }
.wiz-step.active { display: block; }
.wiz-h { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.wiz-p { font-size: 13.5px; color: var(--sub); line-height: 1.8; margin-bottom: 12px; }
.wiz-note { color: var(--gold); font-weight: 600; }
.wiz-list { margin: 12px 0; }
.wiz-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.wiz-item b { flex: 0 0 110px; color: var(--accent); }
.wiz-item span { color: var(--text); }
.wiz-wheel-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.wiz-wheel-label { flex: 0 0 104px; font-size: 13.5px; font-weight: 600; }
.wiz-wheel-label span { margin-right: 5px; }
.wiz-slider { flex: 1; accent-color: var(--accent); height: 24px; }
.wiz-wheel-val { flex: 0 0 24px; text-align: center; font-size: 14px; font-weight: 700; color: var(--accent); }
.wiz-insight {
  margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: linear-gradient(150deg, #FFFBEB, #FDF0D0); border: 1px solid #F6E2A9;
  font-size: 13.5px; line-height: 1.8;
}
.wiz-q { margin-bottom: 14px; }
.wiz-q label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.wiz-q .wiz-qhint { font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.wiz-sublabel { font-size: 12.5px !important; color: var(--sub); margin-top: 8px; font-weight: 600 !important; }
.wiz-q textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: #FBFBF8; color: var(--text);
  min-height: 58px; resize: vertical;
}
.wiz-q textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.wiz-nav { display: flex; gap: 10px; margin-top: 16px; }
.wiz-nav > * { flex: 1; }
.wiz-review { margin: 4px 0 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-border); max-height: 46vh; overflow-y: auto; }
.wiz-rev-sec { margin-bottom: 10px; }
.wiz-rev-sec + .wiz-rev-sec { border-top: 1px dashed rgba(70,86,160,0.25); padding-top: 10px; }
.wiz-rev-title { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 5px; letter-spacing: 0.3px; }
.wiz-rev-wheel { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.wiz-rev-wname { flex: 0 0 122px; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-rev-wname em { font-style: normal; font-size: 10px; color: var(--danger); border: 1px solid rgba(220,76,76,0.35); border-radius: 4px; padding: 0 4px; margin-left: 3px; }
.wiz-rev-track { flex: 1; height: 6px; background: #E4E1D8; border-radius: 999px; overflow: hidden; }
.wiz-rev-fill { height: 100%; border-radius: 999px; }
.wiz-rev-wval { flex: 0 0 34px; text-align: right; font-size: 11px; color: var(--sub); }
.wiz-rev-row { padding: 4px 0; font-size: 12.5px; line-height: 1.6; }
.wiz-rev-row b { color: var(--accent); font-size: 11.5px; font-weight: 600; margin-right: 6px; }
.wiz-rev-row span { color: var(--text); word-break: break-word; }
.wiz-rev-sub b { color: var(--sub); font-weight: 500; }

/* 生命之轮：关注面选择标签 */
.wiz-focus-title { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.wiz-focus-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.wiz-focus-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: #fff; color: var(--text); border: 1.5px solid #D8D4C8;
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.wiz-focus-tag:hover { background: #F5F2EA; border-color: var(--accent-border); }
.wiz-focus-tag:active { transform: scale(0.96); }
.wiz-focus-tag.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(70,86,160,0.3);
  font-weight: 600;
}
.wiz-focus-tag.suggested:not(.selected) {
  /* 系统建议只用 ★ 标记，不用特殊颜色，避免和选中状态混淆 */
  color: var(--text);
}
.wiz-focus-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.wiz-rev-focus {
  background: linear-gradient(135deg, rgba(70,86,160,0.08), rgba(70,86,160,0.04));
  border-radius: 8px; padding: 8px 10px; margin-bottom: 8px;
  font-size: 12.5px; line-height: 1.6;
}
.wiz-rev-wheel.focus { background: rgba(70,86,160,0.05); border-radius: 6px; padding: 3px 6px; margin: 0 -6px; }
.wiz-rev-wheel.focus .wiz-rev-wname em { color: var(--accent); border-color: rgba(70,86,160,0.4); }

/* 成长足迹：生命之轮历史趋势 */
.wh-title { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.wh-record { margin-bottom: 12px; }
.wh-record + .wh-record { border-top: 1px dashed rgba(70,86,160,0.15); padding-top: 10px; }
.wh-date { font-size: 11.5px; font-weight: 600; color: var(--sub); margin-bottom: 5px; }
.wh-bars { display: flex; flex-direction: column; gap: 3px; }
.wh-bar { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.wh-bar.focus { background: rgba(70,86,160,0.05); border-radius: 4px; padding: 2px 4px; margin: 0 -4px; }
.wh-name { flex: 0 0 96px; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-track { flex: 1; height: 5px; background: #E4E1D8; border-radius: 999px; overflow: hidden; }
.wh-fill { height: 100%; border-radius: 999px; }
.wh-val { flex: 0 0 36px; text-align: right; font-size: 11px; color: var(--sub); }
.wh-up { color: #52C41A; font-weight: 600; }
.wh-down { color: #DC4C4C; font-weight: 600; }

/* ---------------- 空状态 ---------------- */
.empty {
  text-align: center; color: var(--sub); font-size: 13px;
  padding: 24px 10px; line-height: 1.8;
}
.empty .big { font-size: 30px; display: block; margin-bottom: 6px; }

/* ---------------- 桌面宽屏（≥900px）：顶部导航 + 宽容器 + 卡片网格 ---------------- */
@media (min-width: 900px) {
  #app { max-width: none; padding-bottom: 40px; }

  .topbar { background: rgba(255, 255, 255, 0.86); box-shadow: 0 1px 0 var(--border); }
  .topbar-row { max-width: 1080px; padding: 14px 24px 8px; }
  .brand { font-size: 18px; }
  .logo-mark { width: 34px; height: 34px; flex: 0 0 34px; }
  .today-label { font-size: 14px; }

  /* 主导航 → 顶部横排标签 */
  .main-nav { position: static; display: flex; justify-content: center; gap: 6px; max-width: 1080px; margin: 0 auto; height: auto; background: transparent; border: none; padding: 2px 24px 14px; }
  .nav-item { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 9px 20px; font-size: 13.5px; border-radius: 999px; color: var(--sub); }
  .nav-item .ico { font-size: 16px; }
  .nav-item:hover { color: var(--accent); }
  .nav-item.active { background: var(--accent-soft); color: var(--accent); }

  /* 内容宽容器 + 卡片网格 */
  .content { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; }
  .page-head { padding: 26px 0 14px; }
  .page-title { font-size: 26px; }
  .page-sub { font-size: 14px; }
  .vision-strip { margin: 6px 0 10px; padding: 22px 28px; }
  .vision-strip .statement { font-size: 16.5px; }

  .page.active { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
  .page .card { margin: 0; }
  .add-btn { margin: 4px 0; width: auto; justify-self: start; padding: 12px 26px; }
  #page-review.active { display: block; max-width: 760px; margin: 0 auto; }

  .card { padding: 20px; }
  .card-title { font-size: 14px; }

  .fab { right: 32px; bottom: 32px; }
  .overlay { align-items: center; }
  .sheet { max-width: 480px; border-radius: 20px; padding: 22px; }
}

/* 季评量 */
.q-goal-review { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.q-goal-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.q-goal-title { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-goal-ms { font-size: 12px; color: var(--sub); white-space: nowrap; }
.q-wheel { margin-top: 2px; }

/* 人生回顾 */
.life-year { background: linear-gradient(135deg, rgba(240,231,200,0.35), rgba(240,231,200,0.15)); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.life-year-title { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.life-year-body { font-size: 13px; color: var(--text); line-height: 1.6; }
.life-sec-title { font-size: 13px; font-weight: 700; color: var(--text); margin: 14px 0 8px; }
.life-item { display: flex; align-items: baseline; gap: 10px; padding: 7px 2px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.life-item-date { color: var(--sub); font-size: 12px; white-space: nowrap; min-width: 82px; }
.life-item-q { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.life-more { margin-top: 8px; font-size: 13px; color: var(--accent); }
.life-more summary { cursor: pointer; }

/* 习惯管理 */
.frm-sel { flex: 1 1 130px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; background: var(--card); color: var(--text); }
.frm-label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
/* 收件匣 → 任务 */
.inbox-task-preview { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; font-size: 14px; color: var(--text); line-height: 1.5; word-break: break-word; }
.habit-card { padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--card); }
.habit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.habit-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.habit-ops { display: flex; gap: 4px; }
.habit-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; font-size: 12px; color: var(--sub); }
.avoid-hint { font-size: 11.5px; color: var(--sub); margin-top: 6px; opacity: 0.75; }
.habit-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.hd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.hd-dot.on { background: var(--accent); }

/* AI 副驾 */
.ai-loading { color: var(--sub); font-size: 13px; padding: 10px 0; }
.ai-report { font-size: 13px; line-height: 1.7; color: var(--text); }
.ai-report h4 { font-size: 14px; font-weight: 700; color: var(--accent); margin: 14px 0 6px; }
.ai-report p { margin: 4px 0; }
.ai-li { margin: 3px 0; padding-left: 2px; }

/* 今日学习 */
.task-note { font-size: 12px; color: var(--sub); margin-top: 3px; line-height: 1.5; }

/* 首次启动引导 */
.welcome-logo { font-size: 44px; text-align: center; margin: 6px 0 4px; }
.welcome-sub { text-align: center; color: var(--sub); font-size: 13px; line-height: 1.7; margin: 0 0 14px; }
.welcome-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ws-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); background: rgba(0,0,0,0.025); border: 1px solid rgba(0,0,0,0.06); border-radius: 10px; padding: 10px 12px; }
.ws-ico { font-size: 16px; }
.welcome-privacy { text-align: center; font-size: 12px; color: var(--sub); margin-bottom: 14px; }

/* 提醒时段 */
.remind-slots { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.remind-row { display: flex; align-items: center; gap: 10px; }
.remind-tag { font-size: 13px; color: var(--text); flex: 0 0 auto; width: 52px; }
.remind-row .r-slot-hh { flex: 1.3; min-width: 0; }
.remind-row .r-slot-mm { flex: 1; min-width: 0; }
.remind-row .r-colon { color: var(--text-muted, #667); font-weight: 600; flex: 0 0 auto; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--border); border-radius: 26px; transition: .2s; }
.switch .slider:before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider:before { transform: translateX(20px); }
