/* =========================================================
   心有暖岛 · Inner Well  —  设计系统 v2（左侧导航 + 多模块）
   ========================================================= */

/* ---------- 变量 / 主题 ---------- */
:root {
  --accent: #2f6f5e;
  --accent-2: #3f8e78;
  --accent-soft: #e4efe9;
  --warn: #c2723a;
  --warn-soft: #f7e7d8;
  --danger: #c0392b;
  --danger-soft: #fbe6e2;
  --info: #3a6ea5;
  --info-soft: #e2ecf6;

  --bg: #f6f7f4;
  --bg-soft: #eef1ec;
  --surface: #ffffff;
  --surface-2: #fafbf9;
  --border: #e3e7e1;
  --border-strong: #d2d8d1;
  --text: #1f2a26;
  --text-soft: #46554e;
  --text-muted: #7b8a82;

  --sidebar-bg: #ffffff;
  --sidebar-w: 264px;
  --topbar-h: 60px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(20,40,30,.05), 0 8px 28px rgba(20,40,30,.06);
  --shadow-soft: 0 1px 3px rgba(20,40,30,.06);
  --maxw: 1180px;
  --font: "PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

html[data-theme="dark"] {
  --accent: #57b89c;
  --accent-2: #6fcbaf;
  --accent-soft: #1c2f29;
  --warn: #e6925a;
  --warn-soft: #3a2c20;
  --danger: #e57368;
  --danger-soft: #3a211d;
  --info: #6fa3d8;
  --info-soft: #1c2a3a;

  --bg: #0f1513;
  --bg-soft: #141b18;
  --surface: #18201d;
  --surface-2: #1d2622;
  --border: #2a342f;
  --border-strong: #36423c;
  --text: #e7eeea;
  --text-soft: #b8c5bf;
  --text-muted: #82938b;

  --sidebar-bg: #131a17;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  --shadow-soft: 0 1px 3px rgba(0,0,0,.3);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); }

/* ---------- 布局骨架 ---------- */
.app { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--sidebar-bg); border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  z-index: 40;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 11px; padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .logo {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 21px; font-weight: 700;
}
.sidebar-brand .bn { display: flex; flex-direction: column; line-height: 1.15; }
.sidebar-brand .bn b { font-size: 16px; letter-spacing: .3px; }
.sidebar-brand .bn span { font-size: 11px; color: var(--text-muted); letter-spacing: .4px; }

.sidebar-scroll { flex: 1; overflow-y: auto; padding: 14px 12px 10px; }
.sidebar-scroll::-webkit-scrollbar { width: 8px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

.nav-group { margin-bottom: 14px; }
.nav-group-title {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted); padding: 6px 12px; font-weight: 700;
}
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: 10px; color: var(--text-soft); font-size: 14.5px; font-weight: 500;
  position: relative; transition: background .15s, color .15s;
}
.nav-link .ni { font-size: 17px; width: 20px; text-align: center; flex: 0 0 20px; }
.nav-link:hover { background: var(--bg-soft); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
html[data-theme="dark"] .nav-link.active { color: var(--accent); }
.nav-link.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 4px; border-radius: 0 4px 4px 0; background: var(--accent);
}

.sidebar-help {
  margin: 8px 12px 16px; padding: 13px 14px; border-radius: 12px;
  background: var(--danger-soft); border: 1px solid var(--danger);
}
.sidebar-help b { display: block; color: var(--danger); font-size: 13.5px; margin-bottom: 3px; }
.sidebar-help p { margin: 0 0 9px; font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.sidebar-help a.btn-mini {
  display: inline-block; background: var(--danger); color: #fff; font-size: 12.5px;
  padding: 6px 12px; border-radius: 8px; font-weight: 600;
}

/* 主区 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; height: var(--topbar-h); z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 0 22px;
}
.menu-btn {
  display: none; border: 1px solid var(--border-strong); background: var(--surface);
  width: 40px; height: 40px; border-radius: 10px; font-size: 18px; color: var(--text);
}
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text-soft); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; }
.lang-toggle button {
  border: 0; background: transparent; color: var(--text-soft); padding: 7px 11px;
  font-size: 13px; font-weight: 600;
}
.lang-toggle button.on { background: var(--accent); color: #fff; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 18px; color: var(--text);
}

.content { flex: 1; }
.page { max-width: var(--maxw); margin: 0 auto; padding: 34px 26px 60px; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; }

.overlay {
  position: fixed; inset: 0; background: rgba(10,20,15,.45); z-index: 35;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px;
  border-radius: 11px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(47,111,94,.28); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 600; background: var(--bg-soft); color: var(--text-soft); border: 1px solid var(--border);
}

.container { max-width: var(--maxw); margin: 0 auto; }

.section { padding-top: 46px; }
.section-head { margin-bottom: 22px; }
.section-eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .5px; margin-bottom: 7px; }
.section-title { font-size: 27px; line-height: 1.25; margin: 0 0 8px; font-weight: 800; letter-spacing: -.3px; }
.section-desc { color: var(--text-soft); font-size: 15px; max-width: 680px; }

.callout {
  border-radius: 13px; padding: 15px 17px; font-size: 14.5px; line-height: 1.6;
  border: 1px solid var(--border); background: var(--surface-2); margin: 16px 0;
}
.callout.warn { background: var(--warn-soft); border-color: var(--warn); }
.callout.danger { background: var(--danger-soft); border-color: var(--danger); }
.callout.info { background: var(--info-soft); border-color: var(--info); }
.callout b { color: inherit; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 380px at 12% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 320px at 100% 0%, rgba(63,142,120,.16), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 58px 26px 52px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600;
  color: var(--text-soft); box-shadow: var(--shadow-soft);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.12; margin: 18px 0 14px; font-weight: 850; letter-spacing: -.6px; }
.hero h1 .hl { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 17px; color: var(--text-soft); max-width: 720px; margin: 0 0 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 20px; min-width: 104px; box-shadow: var(--shadow-soft);
}
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat span { font-size: 13px; color: var(--text-muted); margin-top: 5px; display: block; }

.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 8px; }
.module-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow-soft); transition: transform .16s, box-shadow .16s, border-color .16s;
  color: var(--text);
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.module-card .mc-icon { font-size: 30px; }
.module-card h3 { margin: 12px 0 6px; font-size: 18px; font-weight: 700; }
.module-card p { margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
.module-card .mc-go { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* ---------- 卡片网格（语录） ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 16px; position: relative; box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--tag, var(--accent)); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .quote-mark { position: absolute; top: 8px; right: 16px; font-size: 46px; color: var(--tag, var(--accent)); opacity: .14; font-family: Georgia, serif; }
.card p { margin: 0 0 12px; font-size: 16px; line-height: 1.62; color: var(--text); }
.card .en { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 13.5px; line-height: 1.7; color: var(--text-muted); font-style: italic; }
.card .en.cn { font-style: normal; color: var(--text-soft); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-tag { font-size: 12.5px; font-weight: 600; color: var(--tag, var(--accent)); }
.copy-btn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); font-size: 12.5px; padding: 6px 12px; border-radius: 9px; transition: background .15s, color .15s; }
.copy-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.copy-btn.done { background: var(--accent); color: #fff; border-color: var(--accent); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.theme-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; box-shadow: var(--shadow-soft); color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.theme-card .tc-icon { font-size: 26px; }
.theme-card h4 { margin: 10px 0 4px; font-size: 16.5px; }
.theme-card p { margin: 0; font-size: 13px; color: var(--text-muted); }

.passage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; border-left: 4px solid var(--tag, var(--accent)); box-shadow: var(--shadow-soft); margin-bottom: 18px; }
.passage h3 { margin: 0 0 12px; font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.passage .tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.passage p { margin: 0 0 12px; line-height: 1.78; color: var(--text-soft); }
.passage .en { font-style: italic; color: var(--text-muted); font-size: 14px; }

/* ---------- 筛选 / 搜索 ---------- */
.filters { position: sticky; top: var(--topbar-h); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); padding: 12px 0; margin-bottom: 8px; }
.search-row { display: flex; gap: 10px; margin-bottom: 10px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 14px; }
.search-box .si { color: var(--text-muted); }
.search-box input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--text); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip .n { background: var(--bg-soft); border-radius: 999px; padding: 0 7px; font-size: 11px; color: var(--text-muted); }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.on .n { background: rgba(255,255,255,.25); color: #fff; }

/* ---------- 心理图鉴 ---------- */
.cond-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.cond-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-soft); transition: box-shadow .15s, border-color .15s;
}
.cond-card:hover { box-shadow: var(--shadow); border-color: var(--cc, var(--accent)); }
.cond-head { display: flex; align-items: center; gap: 13px; padding: 18px 18px 14px; cursor: pointer; }
.cond-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--cc-soft, var(--accent-soft)); flex: 0 0 46px; }
.cond-head .ct h4 { margin: 0; font-size: 16.5px; }
.cond-head .ct span { font-size: 12.5px; color: var(--text-muted); }
.cond-summary { padding: 0 18px 16px; font-size: 13.5px; color: var(--text-soft); }
.cond-toggle { display: inline-block; margin: 0 18px 16px; font-size: 13px; font-weight: 700; color: var(--accent); }
.cond-detail { display: none; padding: 16px 18px 18px; border-top: 1px solid var(--border); }
.cond-card.open .cond-detail { display: block; }
.cond-block { margin-bottom: 16px; }
.cond-block h5 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .4px; text-transform: uppercase; }
.sig-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.sig-list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text-soft); line-height: 1.55; }
.sig-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--cc, var(--accent)); }
.sh-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; margin-bottom: 8px; }
.sh-item b { display: block; font-size: 14px; margin-bottom: 3px; }
.sh-item p { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.55; }
.myth-row { border-radius: 10px; padding: 11px 13px; margin-bottom: 8px; background: var(--warn-soft); border: 1px solid var(--warn); }
.myth-row .m { font-size: 13.5px; text-decoration: line-through; opacity: .8; }
.myth-row .r { font-size: 13.5px; margin-top: 4px; color: var(--text); }
.myth-row .r::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.cond-when { font-size: 13.5px; color: var(--text-soft); background: var(--info-soft); border: 1px solid var(--info); border-radius: 10px; padding: 11px 13px; }

/* ---------- 预防养护 ---------- */
.domain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow-soft); overflow: hidden; }
.domain-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
.domain-head .di { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 25px; background: var(--dc-soft, var(--accent-soft)); flex: 0 0 48px; }
.domain-head .dh h3 { margin: 0; font-size: 18px; }
.domain-head .dh p { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.domain-head .arrow { margin-left: auto; transition: transform .2s; color: var(--text-muted); font-size: 18px; }
.domain.open .arrow { transform: rotate(90deg); }
.domain-body { display: none; padding: 0 20px 20px; border-top: 1px solid var(--border); padding-top: 18px; }
.domain.open .domain-body { display: block; }
.pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pillar { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.pillar b { display: block; font-size: 14.5px; margin-bottom: 5px; color: var(--text); }
.pillar p { margin: 0 0 7px; font-size: 13px; color: var(--text-soft); line-height: 1.55; }
.pillar .how { font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 6px 9px; }
.checklist { display: grid; gap: 8px; }
.cl-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-soft); padding: 8px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; transition: background .15s; }
.cl-item:hover { background: var(--bg-soft); }
.cl-item .box { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--border-strong); flex: 0 0 19px; margin-top: 1px; display: grid; place-items: center; font-size: 12px; color: #fff; transition: all .15s; }
.cl-item.done .box { background: var(--accent); border-color: var(--accent); }
.cl-item.done span { text-decoration: line-through; opacity: .6; }
.domain-myth { margin-top: 14px; background: var(--warn-soft); border: 1px solid var(--warn); border-radius: 11px; padding: 13px 15px; font-size: 13.5px; }
.domain-myth b { color: var(--warn); }

/* ---------- 陪伴练习 ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.ex-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.ex-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ex-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 23px; background: var(--ec-soft, var(--accent-soft)); flex: 0 0 44px; }
.ex-top h3 { margin: 0; font-size: 16.5px; }
.ex-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ex-when { font-size: 13px; color: var(--text-soft); line-height: 1.55; margin-bottom: 12px; }
.ex-btn { margin-top: auto; }
.ex-modal { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(10,20,15,.5); padding: 20px; }
.ex-modal.show { display: grid; place-items: center; }
.ex-modal-inner { background: var(--surface); border-radius: 18px; max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 26px; box-shadow: var(--shadow); }
.ex-modal-inner h2 { margin: 0 0 4px; font-size: 22px; }
.ex-modal-inner .em-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.ex-steps { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; display: grid; gap: 12px; }
.ex-steps li { position: relative; padding: 13px 14px 13px 50px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.ex-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 13px; top: 13px; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ex-steps li b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.ex-steps li p { margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
.ex-steps li .hint { margin-top: 6px; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 7px 10px; }
.ex-why, .ex-caution { font-size: 13.5px; line-height: 1.6; padding: 12px 14px; border-radius: 11px; margin-bottom: 12px; }
.ex-why { background: var(--info-soft); border: 1px solid var(--info); }
.ex-caution { background: var(--warn-soft); border: 1px solid var(--warn); }
.ex-close { position: sticky; bottom: 0; background: var(--surface); padding-top: 14px; display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 自评量表 ---------- */
.scale-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.scale-tab { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 12px; padding: 12px 16px; text-align: left; transition: all .15s; flex: 1 1 200px; }
.scale-tab:hover { border-color: var(--accent); }
.scale-tab.on { border-color: var(--accent); background: var(--accent-soft); }
.scale-tab b { display: block; font-size: 15px; color: var(--text); }
.scale-tab span { font-size: 12px; color: var(--text-muted); }
.scale-meta { font-size: 13.5px; color: var(--text-soft); margin-bottom: 18px; padding: 13px 15px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.scale-q { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 16px 18px; margin-bottom: 13px; box-shadow: var(--shadow-soft); }
.scale-q .qh { display: flex; gap: 10px; font-size: 15px; margin-bottom: 11px; }
.scale-q .qn { color: var(--accent); font-weight: 800; flex: 0 0 auto; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 9px; padding: 8px 13px; font-size: 13.5px; color: var(--text-soft); transition: all .14s; }
.opt:hover { border-color: var(--accent); }
.opt.sel { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.scale-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--accent),var(--accent-2)); transition: width .25s; }
.scale-actions { display: flex; gap: 12px; margin: 6px 0 26px; align-items: center; }
.scale-actions .hint { font-size: 13px; color: var(--text-muted); }
.result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 10px; box-shadow: var(--shadow-soft); }
.result-level { font-size: 24px; font-weight: 850; margin: 0 0 6px; }
.result-score { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.result-bar { height: 12px; border-radius: 999px; background: var(--border); overflow: hidden; margin-bottom: 16px; position: relative; }
.result-bar > i { display: block; height: 100%; border-radius: 999px; transition: width .5s; }
.result-advice { font-size: 15px; line-height: 1.7; color: var(--text-soft); }
.result-advice b { color: var(--text); }
.result .disclaimer { margin-top: 16px; font-size: 12.5px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px; }

/* ---------- 互动工具 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); }
.tool-card h3 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 9px; }
.tool-card .tc-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breath-stage { display: grid; place-items: center; padding: 22px 0; }
.breath-circle { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent)); display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 700; transition: transform 1s ease-in-out; box-shadow: 0 10px 30px rgba(47,111,94,.35); }
.breath-circle.in { transform: scale(1.32); }
.breath-phase { font-size: 22px; margin-top: 16px; font-weight: 700; color: var(--accent); min-height: 28px; }
.breath-count { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.tool-ctrl { display: flex; gap: 10px; margin-top: 14px; }
.grounding-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.grounding-list li { display: flex; gap: 11px; padding: 11px 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; font-size: 14px; align-items: center; }
.grounding-list li b { font-size: 18px; color: var(--accent); }
.mood-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px,1fr)); gap: 10px; margin-bottom: 14px; }
.mood-dot { border: 1.5px solid var(--border-strong); border-radius: 13px; padding: 14px 8px; text-align: center; font-size: 13px; color: var(--text-soft); transition: all .15s; cursor: pointer; }
.mood-dot .emo { font-size: 26px; display: block; margin-bottom: 5px; }
.mood-dot.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.journal textarea { width: 100%; min-height: 120px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px; font-family: inherit; font-size: 14px; background: var(--surface); color: var(--text); resize: vertical; outline: none; }
.journal-actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.mood-log { margin-top: 16px; }
.mood-log-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; font-size: 13.5px; }
.mood-log-item .ml-emo { font-size: 22px; }
.mood-log-item .ml-date { color: var(--text-muted); font-size: 12px; }
.empty { text-align: center; color: var(--text-muted); padding: 40px; }
.empty .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- 求助资源 ---------- */
.region-block { margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-soft); }
.region-block h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.hotline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 0; border-top: 1px dashed var(--border); }
.hotline:first-of-type { border-top: 0; }
.hotline .hl-name { font-weight: 600; font-size: 14.5px; flex: 1 1 200px; }
.hotline .hl-num { font-family: var(--mono); font-size: 15px; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
.hotline .hl-num a { color: inherit; }
.hotline .hl-tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hotline .hl-tag.warn { background: var(--danger-soft); color: var(--danger); }
.hotline .hl-note { font-size: 12.5px; color: var(--text-muted); flex: 1 1 100%; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; margin-top: 8px; }
.res-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.res-card b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.res-card p { margin: 0 0 6px; font-size: 12.5px; color: var(--text-soft); }

/* ---------- 关于 / 来源 ---------- */
.prose { max-width: 760px; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose p { font-size: 15.5px; color: var(--text-soft); line-height: 1.8; }
.prose ul { color: var(--text-soft); font-size: 15px; line-height: 1.8; }
.src-link { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.src-link .sn { color: var(--text-muted); font-family: var(--mono); font-size: 12px; flex: 0 0 28px; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 30px; }
.foot-inner { padding: 34px 26px 18px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; }
.foot-inner h5 { font-size: 14px; margin: 0 0 12px; color: var(--text); }
.foot-inner p, .foot-inner a { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; display: block; margin-bottom: 6px; }
.foot-inner a:hover { color: var(--accent); }
.foot-bottom { border-top: 1px solid var(--border); padding: 16px 26px; font-size: 13px; color: var(--text-muted); text-align: center; }

.totop { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 18px; color: var(--text); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 25; }
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: grid; place-items: center; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .page { padding: 24px 16px 48px; }
  .hero-inner { padding: 40px 18px 36px; }
  .section-title { font-size: 23px; }
  .search-row { flex-direction: column; }
  .search-row .btn-ghost { width: 100%; }
  .grid, .cond-grid, .ex-grid, .tool-grid, .theme-grid { grid-template-columns: 1fr; }
  .hero-stats .stat { flex: 1 1 40%; min-width: 0; }
  .foot-inner { grid-template-columns: 1fr; gap: 18px; }
  .topbar { padding: 0 14px; }
  .card p { font-size: 15.5px; }
}
