/* ===== Design Tokens ===== */
:root {
  --brand-primary: #D47739;
  --brand-primary-strong: #C46528;
  --brand-primary-soft: rgba(212, 119, 57, 0.08);
  --brand-coral: #C4654A;

  --bg-page: #F7F2E9;
  --bg-card: #FFFDFC;
  --bg-card-2: #FBF6EB;
  --bg-overlay: rgba(40, 30, 20, 0.32);

  --text-1: #2C2723;
  --text-2: #6B6155;
  --text-3: #9B9388;
  --text-onbrand: #FFFFFF;

  --line: #EDE7DC;
  --line-strong: #DCD2C2;

  --success: #5A8F6E;
  --success-soft: rgba(90, 143, 110, 0.10);
  --warn: #D89B4A;
  --warn-soft: rgba(216, 155, 74, 0.10);
  --danger: #C75146;
  --info: #6A8FB5;

  --font-serif: "Source Han Serif SC", "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  --font-sans: "PingFang SC", -apple-system, "Helvetica Neue", "Microsoft YaHei", sans-serif;

  --r-card: 14px;
  --r-btn: 10px;
  --r-pill: 999px;
  --sh-card: 0 1px 2px rgba(60, 40, 20, 0.03), 0 4px 16px rgba(60, 40, 20, 0.04);
  --sh-hover: 0 2px 8px rgba(60, 40, 20, 0.06), 0 8px 24px rgba(60, 40, 20, 0.06);

  --topbar-h: 64px;
  --content-max: 1280px;
  --content-max-wide: 1440px;
  --content-pad: 32px;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== 焦点态（可访问性）===== */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
[role="switch"]:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ===== SVG 图标 ===== */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.icon.lg { width: 24px; height: 24px; }
.icon.sm { width: 14px; height: 14px; }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  height: var(--topbar-h);
}
.topbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-1);
}
.primary-nav { display: flex; gap: 6px; margin-left: 16px; }
.primary-nav .nav-item {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 8px;
  position: relative;
}
.primary-nav .nav-item:hover { color: var(--text-1); background: var(--bg-card-2); }
.primary-nav .nav-item.active { color: var(--text-1); font-weight: 600; }
.primary-nav .nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}
.user-area { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-strong);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.user-meta { line-height: 1.2; }
.user-name { font-size: 13px; font-weight: 500; }
.user-streak {
  font-size: 11px; color: var(--text-2);
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
}
.streak-ico {
  width: 12px; height: 12px;
  display: inline-block;
  background: var(--brand-primary);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ===== Demo Banner ===== */
.demo-banner {
  background: linear-gradient(90deg, rgba(212, 119, 57, 0.08), rgba(212, 119, 57, 0.02));
  border-bottom: 1px dashed var(--brand-primary);
  color: var(--brand-primary-strong);
  font-size: 12px;
  padding: 8px 32px;
  text-align: center;
}

/* ===== Main ===== */
.main { max-width: var(--content-max); margin: 0 auto; padding: 28px var(--content-pad) 120px; }
.main.main-wide { max-width: var(--content-max-wide); }

/* ===== Generic UI ===== */
.page-head { margin-bottom: 18px; }
.page-title {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 600;
  letter-spacing: 0.5px; color: var(--text-1); margin: 0;
}
.page-subtitle { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--sh-card);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 600;
  margin: 0 0 14px; color: var(--text-1);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent; background: transparent; color: var(--text-1);
  transition: all 0.15s;
}
.btn:hover { filter: brightness(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--brand-primary); color: var(--text-onbrand); }
.btn-primary:hover { background: var(--brand-primary-strong); filter: none; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-1);
  transition: all 0.15s;
}
.btn-outline:hover { background: var(--bg-card-2); border-color: var(--brand-primary); color: var(--brand-primary); filter: none; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--brand-primary-strong);
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--brand-primary-soft); border-color: var(--brand-primary); filter: none; }
.btn-large { padding: 12px 28px; font-size: 15px; font-weight: 600; border-radius: 12px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* 文字按钮 */
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--brand-primary); font-size: 13px; cursor: pointer;
}
.link-btn:hover { color: var(--brand-primary-strong); text-decoration: underline; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(44, 39, 35, 0.92); color: #fff;
  padding: 10px 18px; border-radius: 8px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: all 0.2s; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Drawer（打卡抽屉）===== */
.drawer-overlay {
  position: fixed; inset: 0; background: var(--bg-overlay);
  z-index: 80; opacity: 0; transition: opacity 0.2s;
}
.drawer-overlay:not(.hidden) { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 500px; max-width: 92vw;
  background: var(--bg-card); border-left: 1px solid var(--line);
  z-index: 90; overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -8px 0 24px rgba(40, 30, 20, 0.08);
}
.drawer:not(.hidden) { transform: translateX(0); }
.drawer-head {
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--bg-card);
}
.drawer-title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.drawer-close {
  background: transparent; border: none; font-size: 22px; color: var(--text-3);
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.drawer-close:hover { background: var(--bg-card-2); color: var(--text-1); }
.drawer-body { padding: 20px 24px 100px; }
.drawer-foot {
  position: sticky; bottom: 0; background: var(--bg-card);
  border-top: 1px solid var(--line); padding: 14px 24px;
}

/* ===== Workbench ===== */
.wb-page-head { margin-bottom: 22px; }
.wb-greeting {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text-1); margin: 0;
}
.wb-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.wb-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.wb-main-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wb-side-col { display: flex; flex-direction: column; gap: 20px; }

/* 当前阶段紧凑卡 */
.wb-stage-card { padding: 26px 28px; }
.wb-stage-tag {
  display: inline-block; font-size: 12px; color: var(--brand-primary-strong);
  background: var(--brand-primary-soft); padding: 4px 10px;
  border-radius: var(--r-pill); margin-bottom: 10px;
}
.wb-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.wb-stage-info { flex: 1; }
.wb-stage-title { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin: 0; color: var(--text-1); }
.wb-stage-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.wb-ring-wrap { position: relative; width: 124px; height: 124px; flex-shrink: 0; }
.wb-ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.wb-ring-pct .num { font-family: var(--font-serif); font-size: 30px; font-weight: 600; color: var(--brand-primary); line-height: 1; }
.wb-ring-pct .lbl { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.wb-people { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 14px; }
.wb-person { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.wb-person-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-card-2); color: var(--text-2);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.wb-person-name { width: 64px; color: var(--text-1); font-weight: 500; flex-shrink: 0; }
.wb-person-label {
  flex: 1; min-width: 0;
  font-size: 13px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wb-person-num { color: var(--brand-primary); font-weight: 600; font-family: var(--font-serif); }
.wb-ring-pct .sym { font-size: 16px; color: var(--brand-primary); margin-left: 2px; }

/* 梦想常驻横幅（工作台顶部，V3 风格） */
.dream-banner {
  position: relative;
  display: block;
  width: 100%; text-align: left;
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #F0D9C8;
  background: linear-gradient(115deg, #FBEAE4 0%, #F9E5D8 40%, #F6E2C8 100%);
  padding: 20px 26px;
  margin-top: 16px; margin-bottom: 16px;
  font-family: inherit; font-size: 14px; color: inherit;
  transition: box-shadow .25s ease, transform .25s ease;
}
.dream-banner:hover { box-shadow: 0 8px 28px rgba(196,113,59,.14); transform: translateY(-1px); }
.dream-banner .dream-label { font-size: 11px; color: #C4713B; letter-spacing: 2.5px; margin-bottom: 6px; }
.dream-banner .dream-text { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: #5C2E18; line-height: 1.4; max-width: 75%; }
.dream-banner .dream-meta { font-size: 12px; color: #C4713B; margin-top: 8px; }
.dream-banner .dream-meta b { color: #993C1D; font-weight: 600; }
.dream-banner .dream-badge { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.72); color: #C4713B; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.dream-banner .dream-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 12px; color: #993C1D; background: rgba(255,255,255,.72); border-radius: 8px; padding: 5px 12px; }
.wb-person-status {
  margin-left: auto; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.wb-person-status.done { background: var(--success-soft); color: var(--success); }
.wb-person-status.doing {
  border: 2px solid var(--brand-primary);
  border-top-color: transparent;
  border-radius: 50%; background: transparent;
  animation: spin 1.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wb-stage-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line);
}
.wb-target-date { font-size: 13px; color: var(--text-2); }
.wb-remain { font-size: 13px; color: var(--text-2); margin-top: 12px; }
.wb-remain .num { color: var(--brand-primary); font-weight: 600; }
.wb-cta {
  margin-top: 18px; width: 100%;
  background: var(--brand-primary); color: var(--text-onbrand);
  border: none; padding: 14px 20px; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.wb-cta:hover { background: var(--brand-primary-strong); }

/* 今日行动 */
.wb-today-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.wb-today-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.wb-today-meta { font-size: 13px; color: var(--text-2); }
.wb-today-meta .count { color: var(--brand-primary); font-weight: 600; }
.wb-today-note { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.wb-task-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  width: 100%; background: none; border-top: none; border-left: none; border-right: none;
  text-align: left; cursor: pointer; font-size: inherit;
}
.wb-task-row:last-child { border-bottom: none; }
.wb-task-row:hover .wb-task-name { color: var(--brand-primary); }
.wb-task-cat {
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
  white-space: nowrap; min-width: 50px; text-align: center; font-weight: 500;
}
.cat-learn { background: rgba(90, 143, 110, 0.12); color: #4D7858; }
.cat-customer { background: rgba(106, 143, 181, 0.12); color: #4D6F8C; }
.cat-review { background: rgba(216, 155, 74, 0.12); color: #B47D34; }
.req-must { background: rgba(196, 101, 74, 0.10); color: #B45A4A; }
.req-opt { background: var(--bg-card-2); color: var(--text-2); }
.wb-task-name { flex: 1; font-size: 14px; color: var(--text-1); transition: color 0.15s; }
.wb-task-source { font-size: 12px; color: var(--text-3); }
.wb-task-time { font-size: 12px; color: var(--text-3); }
.wb-task-status { font-size: 12px; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.status-done { background: var(--success-soft); color: var(--success); }
.status-doing { background: var(--warn-soft); color: var(--warn); }
.status-todo { background: var(--bg-card-2); color: var(--text-3); }

/* 可选加速 */
.wb-accel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wb-accel-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.wb-accel-cap { font-size: 12px; color: var(--text-3); }
.wb-accel-list { display: flex; flex-direction: column; gap: 10px; }
.wb-accel-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.wb-accel-item:last-child { border-bottom: none; }
.wb-accel-left { display: flex; align-items: center; gap: 10px; }
.wb-accel-ico {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
}
.wb-accel-name { font-size: 14px; }
.wb-accel-btn {
  font-size: 12px; padding: 4px 12px; border: 1px solid var(--brand-primary);
  color: var(--brand-primary); background: transparent; border-radius: var(--r-pill);
}
.wb-accel-btn:hover { background: var(--brand-primary-soft); }

/* 我的当前计划（右）*/
.wb-plan-card { padding: 18px 20px; }
.wb-plan-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.wb-plan-target { font-size: 13px; color: var(--text-2); margin-bottom: 2px; }
.wb-plan-deadline { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.wb-plan-progress-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.wb-plan-progress-row .ico { width: 20px; color: var(--brand-primary); display: flex; }
.wb-plan-progress-row .label { width: 80px; color: var(--text-1); }
.wb-plan-bar { flex: 1; height: 6px; background: var(--bg-card-2); border-radius: 3px; overflow: hidden; }
.wb-plan-bar-fill { height: 100%; background: var(--brand-primary); border-radius: 3px; }
.wb-plan-bar-fill.success { background: var(--success); }
.wb-plan-num { width: 50px; text-align: right; font-family: var(--font-serif); font-weight: 600; font-size: 13px; color: var(--text-1); }
.wb-plan-cta {
  margin-top: 14px; width: 100%; padding: 9px;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: transparent; color: var(--text-1); font-size: 13px;
}
.wb-plan-cta:hover { background: var(--bg-card-2); }

/* 教练反馈（右）*/
.wb-feedback-card { padding: 18px 20px; }
.wb-feedback-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wb-feedback-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-card-2); color: var(--text-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.wb-feedback-title { font-family: var(--font-serif); font-size: 15px; font-weight: 600; }
.wb-feedback-body { font-size: 13px; color: var(--text-1); line-height: 1.7; margin-bottom: 10px; }
.wb-feedback-link { color: var(--brand-primary); font-size: 13px; text-align: right; display: block; }

/* 成长地图入口（工作台底部）*/
.wb-path-entry {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; margin-top: 6px;
}
.wb-path-entry-text { display: flex; align-items: center; gap: 12px; }
.wb-path-entry-ico {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
}
.wb-path-entry-title { font-size: 14px; font-weight: 500; }
.wb-path-entry-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.wb-path-entry-arrow { color: var(--text-3); }

/* ===== 计划页 ===== */
.plan-page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.plan-back { color: var(--text-2); font-size: 13px; margin-bottom: 8px; display: inline-block; }
.plan-back:hover { color: var(--brand-primary); }
.plan-stage-info { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.plan-deadline-row { display: flex; align-items: center; gap: 6px; }
.plan-deadline-row .lbl { color: var(--text-3); }
.plan-deadline-row .val { color: var(--text-1); font-weight: 500; }

.plan-section { margin-bottom: 18px; }
.plan-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.plan-section-title { font-family: var(--font-serif); font-size: 15px; font-weight: 600; }
.plan-section-sub { font-size: 12px; color: var(--text-3); }
.plan-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: none; }
.plan-row .ico {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
}
.plan-row .name { flex: 1; font-size: 14px; }
.plan-row .name small { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.plan-row .bar-wrap { flex: 1; max-width: 220px; display: flex; align-items: center; gap: 8px; }
.plan-row .bar { flex: 1; height: 6px; background: var(--bg-card-2); border-radius: 3px; overflow: hidden; }
.plan-row .bar-fill { height: 100%; background: var(--brand-primary); border-radius: 3px; }
.plan-row .num { font-size: 13px; color: var(--brand-primary); font-family: var(--font-serif); font-weight: 600; }
.plan-row .del { color: var(--text-3); background: none; border: none; width: 28px; height: 28px; font-size: 18px; cursor: pointer; border-radius: 6px; }
.plan-row .del:hover { color: var(--danger); background: rgba(199, 81, 70, 0.08); }
.plan-row .tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--bg-card-2); color: var(--text-2); white-space: nowrap; }

.plan-add {
  display: flex; align-items: center; gap: 6px;
  color: var(--brand-primary); font-size: 13px;
  background: none; border: none; cursor: pointer; padding: 14px 0 0;
}
.plan-add:hover { color: var(--brand-primary-strong); }

/* ===== 任务详情 ===== */
.task-page-head { margin-bottom: 18px; }
.task-source {
  display: inline-block; font-size: 12px; color: var(--text-2);
  background: var(--bg-card-2); padding: 4px 10px;
  border-radius: var(--r-pill); margin-bottom: 10px;
}
.task-title { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin: 0; color: var(--text-1); }
.task-meta-row { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.task-meta-row .item { display: flex; align-items: center; gap: 5px; }

.task-block { margin-top: 22px; }
.task-block-title { font-family: var(--font-serif); font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--text-1); }
.task-block-body { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.task-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.task-steps li {
  position: relative; padding-left: 32px; margin-bottom: 12px;
  font-size: 14px; color: var(--text-1); line-height: 1.7;
}
.task-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  border-radius: 50%; background: var(--brand-primary-soft);
  color: var(--brand-primary-strong); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.task-criteria { list-style: none; padding: 0; margin: 0; }
.task-criteria li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; font-size: 14px; color: var(--text-1);
}
.task-criteria li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); margin-top: 8px; flex-shrink: 0;
}
.task-attach {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg-card-2);
  border-radius: 10px; font-size: 13px;
}
.task-attach .ico { color: var(--brand-primary); display: flex; }
.task-attach .name { flex: 1; }
.task-attach .meta { color: var(--text-3); font-size: 12px; }
.task-foot { margin-top: 28px; display: flex; align-items: center; gap: 12px; }
.task-foot .btn-primary { flex: 1; }

/* ===== 打卡抽屉 ===== */
.ck-task-tag { display: inline-block; font-size: 12px; color: var(--text-2); background: var(--bg-card-2); padding: 3px 10px; border-radius: 6px; margin-bottom: 8px; }
.ck-task-name { font-family: var(--font-serif); font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.ck-task-sub { font-size: 12px; color: var(--text-3); margin-bottom: 0; }
.ck-field { margin-bottom: 16px; }
.ck-label { font-size: 13px; color: var(--text-1); font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.ck-label .optional { font-size: 11px; color: var(--text-3); font-weight: 400; }
.ck-label .required { font-size: 11px; color: var(--danger); font-weight: 500; }
.ck-required-mark { color: var(--danger); margin-left: 2px; }
.ck-input, .ck-textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; background: var(--bg-card); font-family: inherit;
}
.ck-input:focus, .ck-textarea:focus { outline: none; border-color: var(--brand-primary); }
.ck-textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
.ck-field.error .ck-input, .ck-field.error .ck-textarea { border-color: var(--danger); }
.ck-field .ck-error-msg { display: none; font-size: 11px; color: var(--danger); margin-top: 4px; }
.ck-field.error .ck-error-msg { display: block; }

.ck-upload {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border: 1px dashed var(--line-strong);
  border-radius: 8px; color: var(--text-2); background: var(--bg-card-2);
  font-size: 13px; cursor: pointer;
}
.ck-upload:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.ck-demo-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-3);
}
.ck-demo-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.ck-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--bg-card-2); border-radius: 8px;
  width: 100%; border: none; cursor: pointer; text-align: left;
}
.ck-toggle .lbl { font-size: 13px; }
.ck-toggle .switch-ico {
  width: 36px; height: 20px; background: var(--line-strong);
  border-radius: 10px; position: relative; transition: background 0.2s;
}
.ck-toggle .switch-ico::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  background: var(--bg-card); border-radius: 50%; top: 2px; left: 2px;
  transition: left 0.2s;
}
.ck-toggle[aria-checked="true"] .switch-ico { background: var(--brand-primary); }
.ck-toggle[aria-checked="true"] .switch-ico::after { left: 18px; }
.ck-success-tip {
  margin-top: 14px; padding: 12px; background: var(--success-soft);
  border-radius: 8px; color: var(--success); font-size: 13px; text-align: center;
}

/* ===== 反馈页 ===== */
.fb-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 22px 26px; margin-bottom: 18px;
  box-shadow: var(--sh-card);
}
.fb-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fb-coach-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card-2); color: var(--text-1);
  font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.fb-coach-name { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.fb-coach-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.fb-card-body { font-size: 14px; line-height: 1.8; color: var(--text-1); margin-bottom: 16px; }
.fb-resolution {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.fb-resolution.needs-more { background: var(--warn-soft); color: var(--warn); }
.fb-resolution.no-action { background: var(--success-soft); color: var(--success); }
.fb-actions { display: flex; gap: 10px; }
.fb-actions .btn { flex: 1; }
.fb-synced { margin-top: 14px; padding: 10px 14px; background: var(--success-soft); border-radius: 8px; color: var(--success); font-size: 13px; }
.fb-history-title { font-family: var(--font-serif); font-size: 15px; font-weight: 600; margin: 28px 0 12px; color: var(--text-1); }
.fb-history-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fb-history-item:last-child { border-bottom: none; }
.fb-history-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card-2); color: var(--text-2);
  font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fb-history-body { flex: 1; }
.fb-history-meta { font-size: 12px; color: var(--text-3); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.fb-history-content { font-size: 13px; color: var(--text-1); }

/* ===== 骨架页 ===== */
.skel-card {
  background: var(--bg-card); border: 1px dashed var(--line-strong);
  border-radius: var(--r-card); padding: 22px; text-align: center; color: var(--text-2);
}
.skel-card .ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  font-size: 22px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
}
.skel-card h3 { font-family: var(--font-serif); font-size: 16px; margin: 0 0 6px; color: var(--text-1); }
.skel-card p { font-size: 13px; margin: 0 0 12px; }
.skel-card .back-btn { color: var(--brand-primary); font-size: 13px; background: none; border: none; cursor: pointer; }

/* ===== 问卷类目 ===== */
.quiz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quiz-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; box-shadow: var(--sh-card); }
.quiz-card-tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--brand-primary-soft); color: var(--brand-primary-strong); margin-bottom: 10px; }
.quiz-card-title { font-family: var(--font-serif); font-size: 18px; color: var(--text-1); margin: 0 0 8px; }
.quiz-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 0 0 16px; }
.quiz-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quiz-card-actions .btn-ghost { background: #fff; color: var(--brand-primary-strong); border: 1px solid var(--line-strong); padding: 9px 16px; border-radius: var(--r-btn); font-size: 14px; text-decoration: none; }
.quiz-card-actions .btn-ghost:hover { border-color: var(--brand-primary); }
.quiz-card-actions .btn-primary { background: var(--brand-primary); color: #fff; padding: 9px 16px; border-radius: var(--r-btn); font-size: 14px; text-decoration: none; }
.quiz-card-actions .btn-primary:hover { background: var(--brand-primary-strong); }
.quiz-card-soon { font-size: 13px; color: var(--text-3); }
@media (max-width: 720px) { .quiz-grid { grid-template-columns: 1fr; } }

/* ===== CEA 子导航 ===== */
.cea-subnav {
  display: flex; gap: 4px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.cea-subnav a {
  padding: 10px 16px; font-size: 14px; color: var(--text-2);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.cea-subnav a:hover { color: var(--text-1); }
.cea-subnav a.active {
  color: var(--brand-primary-strong); font-weight: 600;
  border-bottom-color: var(--brand-primary);
}

/* ===== CEA 计划库（图书馆）===== */
.drawer-eyebrow { font-size: 11px; color: var(--text-3); letter-spacing: 0.5px; margin-bottom: 2px; }

.lib-search {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 20px;
}
.lib-search .icon { color: var(--text-3); }
.lib-search input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--text-1); outline: none; }
.lib-search input::placeholder { color: var(--text-3); }

.lib-section { margin-bottom: 24px; }
.lib-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lib-section-dot { width: 3px; height: 16px; border-radius: 2px; background: var(--brand-primary); flex-shrink: 0; }
.lib-section-title { font-size: 15px; font-weight: 600; margin: 0; color: var(--text-1); }
.lib-section-sub { font-size: 11px; color: var(--text-3); }
.lib-coral .lib-section-dot { background: #993C1D; }
.lib-amber .lib-section-dot { background: #D47739; }
.lib-teal .lib-section-dot { background: #0F6E56; }
.lib-jade .lib-section-dot { background: #2E7D5B; }

.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lib-card {
  text-align: left; padding: 16px 18px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.lib-card:hover { border-color: var(--brand-primary); box-shadow: var(--sh-hover); }
.lib-card-title { font-size: 14px; font-weight: 600; color: var(--text-1); padding-right: 52px; }
.lib-card-sub { font-size: 12px; color: var(--text-3); }
.lib-add {
  position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--brand-primary);
  background: var(--brand-primary-soft); padding: 2px 10px; border-radius: var(--r-pill);
}

.lib-placeholder {
  padding: 22px; border: 1px dashed var(--line-strong); border-radius: 12px;
  color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-card-2);
}

.lib-drawer-hint { font-size: 12px; color: var(--text-2); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.lib-item-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lib-item-row:last-of-type { border-bottom: none; }
.lib-item-ico { width: 34px; height: 34px; border-radius: 8px; background: var(--brand-primary-soft); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lib-item-info { flex: 1; min-width: 0; }
.lib-item-title { font-size: 14px; color: var(--text-1); }
.lib-item-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.lib-item-add { border: 1px solid var(--line-strong); background: transparent; color: var(--brand-primary); font-size: 12px; padding: 5px 12px; border-radius: var(--r-pill); cursor: pointer; flex-shrink: 0; }
.lib-item-add:hover { background: var(--brand-primary-soft); border-color: var(--brand-primary); }
.lib-item-view { border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-size: 12px; padding: 5px 12px; border-radius: var(--r-pill); cursor: pointer; flex-shrink: 0; }
.lib-item-view:hover { background: var(--bg-card-2); border-color: var(--line-strong); }

/* ===== 挑选模式（工作台跳转进成长宝藏）===== */
.lib-select-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: var(--brand-primary-soft); border: 1px solid var(--brand-primary);
  border-radius: 10px; margin-bottom: 16px; font-size: 13px; color: var(--brand-primary-strong);
}
.lib-select-box {
  position: absolute; top: 14px; right: 14px; width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong); border-radius: 5px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s; background: var(--bg-card);
}
.lib-card.selectable { padding-right: 40px; }
.lib-card.selectable:hover { border-color: var(--brand-primary); }
.lib-card.selectable.selected { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.lib-card.selectable.selected .lib-select-box { background: var(--brand-primary); border-color: var(--brand-primary); }
.lib-card.selectable.selected .lib-select-box::after {
  content: ''; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.lib-select-foot {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; background: var(--bg-page);
}
.lib-select-foot span { font-size: 13px; color: var(--text-2); }

/* ===== 三级细分：一级分类卡 + 抽屉内子分类/具体内容 ===== */
.lib-card-count {
  position: absolute; bottom: 12px; right: 14px; font-size: 11px; color: var(--text-3);
}
.lib-sub { margin-bottom: 16px; }
.lib-sub-title {
  font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px;
  padding-left: 8px; border-left: 3px solid var(--brand-primary);
}
.lib-item-row.selectable { cursor: pointer; }
.lib-sub-empty { font-size: 12px; color: var(--text-3); padding: 10px 8px; }
.lib-item-row.selectable:hover { background: var(--brand-primary-soft); }
.lib-item-check {
  width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 5px;
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s; background: var(--bg-card);
}
.lib-item-check.checked { background: var(--brand-primary); border-color: var(--brand-primary); }
.lib-item-check.checked::after {
  content: ''; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* ===== 我的计划 · 从成长宝藏添加的内容 ===== */
.lib-added-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lib-added-row:last-child { border-bottom: none; }
.lib-added-ico {
  width: 34px; height: 34px; border-radius: 8px; background: var(--brand-primary-soft);
  color: var(--brand-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lib-added-info { flex: 1; min-width: 0; }
.lib-added-title { font-size: 14px; color: var(--text-1); }
.lib-added-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.lib-added-del {
  background: none; border: none; color: var(--text-3); font-size: 18px; width: 28px; height: 28px;
  cursor: pointer; border-radius: 6px; flex-shrink: 0;
}
.lib-added-del:hover { color: var(--danger); background: rgba(199, 81, 70, 0.08); }
.lib-added-empty { font-size: 13px; color: var(--text-3); padding: 12px 0; }


.lib-drawer-note { margin-top: 16px; padding: 12px; background: var(--bg-card-2); border-radius: 8px; font-size: 12px; color: var(--text-3); }

/* ===== 工作台加菜面板 ===== */
.addtask-group { margin-bottom: 20px; }
.addtask-group-title { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.addtask-group-title.amber { color: #C46528; }
.addtask-group-title.teal { color: #0F6E56; }
.addtask-group-title.gray { color: var(--text-2); }
.addtask-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.addtask-item:last-child { border-bottom: none; }
.addtask-check { position: absolute; opacity: 0; width: 0; height: 0; }
.addtask-checkbox {
  width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 5px;
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s; background: var(--bg-card);
}
.addtask-check:checked + .addtask-checkbox { background: var(--brand-primary); border-color: var(--brand-primary); }
.addtask-check:checked + .addtask-checkbox::after {
  content: ''; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.addtask-label { font-size: 13px; color: var(--text-1); }



/* ===== CEA 首页 ===== */
.cea-hero { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-bottom: 20px; }
.cea-pos-card { padding: 24px 26px; }
.cea-pos-tag { display: inline-block; font-size: 12px; color: var(--brand-primary-strong); background: var(--brand-primary-soft); padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 10px; }
.cea-pos-title { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.cea-pos-body { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.cea-pos-link { margin-top: 12px; }

.cea-today-card { padding: 24px 26px; }
.cea-today-course { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cea-today-course-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
}
.cea-today-course-title { font-size: 15px; font-weight: 500; }
.cea-today-course-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cea-state-tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); }

.cea-progress-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.cea-progress-row .ico { width: 20px; color: var(--brand-primary); display: flex; }
.cea-progress-row .label { width: 80px; }
.cea-progress-row .bar { flex: 1; height: 6px; background: var(--bg-card-2); border-radius: 3px; overflow: hidden; }
.cea-progress-row .bar-fill { height: 100%; border-radius: 3px; }
.cea-progress-row .num { width: 64px; text-align: right; font-family: var(--font-serif); font-weight: 600; font-size: 13px; }
.bar-learn { background: var(--info) !important; }
.bar-practice { background: var(--brand-primary) !important; }
.bar-business { background: var(--success) !important; }

.cea-next-card { padding: 18px 20px; }
.cea-next-title { font-family: var(--font-serif); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.cea-next-body { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }

/* ===== 成长地图（20133 完整路径）===== */
.growth-map { display: flex; flex-direction: column; gap: 20px; }
.growth-stage-row { display: flex; align-items: stretch; gap: 16px; }
.growth-node {
  flex: 1; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; background: var(--bg-card); position: relative;
}
.growth-node.current { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.growth-node.done { border-color: var(--success); }
.growth-node.future { background: transparent; }
.growth-node-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.growth-node-no {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card-2); border: 1px solid var(--line-strong);
  color: var(--text-2); font-family: var(--font-serif); font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.growth-node.current .growth-node-no { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.growth-node.done .growth-node-no { background: var(--success); color: #fff; border-color: var(--success); }
.growth-node-title { font-size: 14px; font-weight: 600; }
.growth-node-you-are-here {
  position: absolute; top: -10px; right: 12px;
  font-size: 10px; color: var(--brand-primary-strong); font-weight: 600;
  background: var(--brand-primary); color: #fff; padding: 2px 8px; border-radius: var(--r-pill);
}
.growth-substages { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.growth-substage {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; padding: 6px 10px; border-radius: 6px;
  background: var(--bg-card-2); color: var(--text-2);
}
.growth-substage.current { background: var(--brand-primary); color: #fff; }
.growth-substage.done { background: var(--success-soft); color: var(--success); }
.growth-substage .val { font-family: var(--font-serif); font-weight: 600; }
.growth-detail {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; min-height: 100px;
}
.growth-detail-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.growth-detail-body { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.growth-detail-list { list-style: none; padding: 0; margin: 8px 0 0; }
.growth-detail-list li { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-size: 13px; }
.growth-detail-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-primary); margin-top: 8px; flex-shrink: 0; }

/* ===== 今日学习（学习计划）===== */
.learn-plan-head { margin-bottom: 16px; }
.learn-plan-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.learn-plan-tabs button {
  padding: 8px 14px; font-size: 13px; color: var(--text-2);
  background: none; border: none; border-bottom: 2px solid transparent;
}
.learn-plan-tabs button.active { color: var(--brand-primary-strong); font-weight: 600; border-bottom-color: var(--brand-primary); }
.learn-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.learn-item:last-child { border-bottom: none; }
.learn-item-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
}
.learn-item-info { flex: 1; min-width: 0; }
.learn-item-title { font-size: 14px; font-weight: 500; }
.learn-item-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.learn-item-source { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--bg-card-2); color: var(--text-2); white-space: nowrap; }
.learn-item-state { font-size: 12px; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.learn-item-action { font-size: 12px; color: var(--brand-primary); background: none; border: none; cursor: pointer; }

/* ===== 冠军八步 ===== */
.eight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eight-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; background: var(--bg-card); text-align: left;
  width: 100%; cursor: pointer; transition: all 0.15s;
}
.eight-card:hover { box-shadow: var(--sh-hover); border-color: var(--line-strong); }
.eight-card.current { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.eight-card.done { border-color: var(--success); }
.eight-no {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-card-2); color: var(--text-2);
  font-family: var(--font-serif); font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.eight-card.current .eight-no { background: var(--brand-primary); color: #fff; }
.eight-card.done .eight-no { background: var(--success); color: #fff; }
.eight-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.eight-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; margin-bottom: 8px; }
.eight-meta { font-size: 11px; color: var(--text-3); display: flex; gap: 10px; }

/* ===== 资料库 ===== */
.res-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.res-search { position: relative; flex: 1; min-width: 200px; }
.res-search input {
  width: 100%; padding: 9px 12px 9px 36px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; background: var(--bg-card); font-family: inherit;
}
.res-search input:focus { outline: none; border-color: var(--brand-primary); }
.res-search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.res-filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.res-filter {
  font-size: 12px; padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--bg-card); color: var(--text-2);
}
.res-filter.active { background: var(--brand-primary-soft); border-color: var(--brand-primary); color: var(--brand-primary-strong); font-weight: 500; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.res-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  background: var(--bg-card); text-align: left; width: 100%; cursor: pointer;
  transition: all 0.15s;
}
.res-card:hover { box-shadow: var(--sh-hover); border-color: var(--line-strong); }
.res-card-type { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.type-video { background: rgba(106, 143, 181, 0.12); color: #4D6F8C; }
.type-audio { background: rgba(216, 155, 74, 0.12); color: #B47D34; }
.type-article { background: rgba(90, 143, 110, 0.12); color: #4D7858; }
.type-case { background: rgba(196, 101, 74, 0.12); color: #B45A4A; }
.type-tool { background: rgba(106, 143, 181, 0.12); color: #4D6F8C; }
.res-card-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; line-height: 1.5; }
.res-card-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.res-card-state { font-size: 11px; padding: 2px 8px; border-radius: 4px; }

/* ===== 梦想与目标 ===== */
.dream-hero {
  background: linear-gradient(135deg, #F2DFC8, #E8C4A0);
  border-radius: var(--r-card); padding: 28px 30px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.dream-hero::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.dream-hero-label { font-size: 12px; color: #8A5A2B; letter-spacing: 1px; margin-bottom: 8px; }
.dream-hero-text {
  font-family: var(--font-serif); font-size: 24px; font-weight: 600;
  color: #5C3A1A; margin: 0; line-height: 1.5; max-width: 70%;
}
.dream-hero-edit { margin-top: 14px; }

.dream-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.dream-goal-card { padding: 20px 22px; }
.dream-goal-label { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.dream-goal-value { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--text-1); line-height: 1.5; }
.dream-goal-bar { margin-top: 12px; height: 8px; background: var(--bg-card-2); border-radius: 4px; overflow: hidden; }
.dream-goal-bar-fill { height: 100%; background: var(--brand-primary); border-radius: 4px; }
.dream-goal-meta { margin-top: 8px; font-size: 12px; color: var(--text-2); display: flex; justify-content: space-between; }

/* ===== 梦想与目标（新结构：10 梦想 / 人生规划 / 2026 目标）===== */
.icon.xs { width: 12px; height: 12px; }

.dream-stage-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.stage-bar-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.stage-bar-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.stage-chip {
  border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text-2);
  font-size: 13px; padding: 6px 16px; border-radius: var(--r-pill); cursor: pointer; transition: all .15s;
}
.stage-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.stage-chip.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

.dream-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.dream-tab {
  border: none; background: none; font-size: 14px; color: var(--text-2); padding: 10px 18px;
  cursor: pointer; position: relative; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.dream-tab:hover { color: var(--text-1); }
.dream-tab.active { color: var(--brand-primary); font-weight: 600; border-bottom-color: var(--brand-primary); }

.dream-panel[hidden] { display: none; }
.dream-panel-card { padding: 22px 24px; }
.dream-panel-hint { font-size: 13px; color: var(--text-2); margin-bottom: 18px; display: flex; align-items: center; gap: 6px; }

.dreams-list { display: flex; flex-direction: column; gap: 10px; }
.dream-input-row { display: flex; align-items: center; gap: 12px; }
.dno { font-family: var(--font-serif); font-size: 14px; color: var(--brand-primary); font-weight: 600; width: 26px; flex-shrink: 0; }
.dinput {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 11px 14px;
  font-size: 14px; background: var(--bg-card-2); color: var(--text-1); transition: border-color .15s, background .15s;
}
.dinput:focus { outline: none; border-color: var(--brand-primary); background: #fff; }
.dinput::placeholder { color: var(--text-3); }

/* 梦想行：配图方框 + 90 天按钮 */
.dream-img-btn { width: 60px; height: 44px; border: 1px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 3px; cursor: pointer; flex-shrink: 0; background: #FBFAF7; color: var(--text-3); font-size: 11px; overflow: hidden; flex-direction: column; }
.dream-img-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.dream-img-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.dream-img-plus { font-size: 16px; line-height: 1; }
.dream-img-hint { font-size: 10px; }
.dream-90d-btn { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--brand-primary); background: #fff; color: var(--brand-primary); cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.dream-90d-btn.on { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

.life-table-wrap { overflow-x: auto; }
.life-table { width: 100%; border-collapse: collapse; }
.life-table th, .life-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; }
.life-table th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 500; }
.life-table .col-year { font-family: var(--font-serif); font-size: 14px; font-weight: 600; color: var(--text-1); width: 70px; }
.life-table td input, .target-field input, .month-field input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 9px 12px;
  font-size: 13px; background: var(--bg-card-2); color: var(--text-1);
}
.life-table td input:focus, .target-field input:focus, .month-field input:focus { outline: none; border-color: var(--brand-primary); background: #fff; }
.life-table td input::placeholder, .target-field input::placeholder, .month-field input::placeholder { color: var(--text-3); }

.target-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.target-field { display: flex; flex-direction: column; gap: 6px; }
.tlabel { font-size: 12px; color: var(--text-2); }
.target-months-label { font-size: 13px; color: var(--text-2); margin: 22px 0 12px; display: flex; align-items: center; gap: 6px; }
.target-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.month-field { display: flex; flex-direction: column; gap: 6px; }
.mlabel { font-size: 12px; color: var(--text-3); }

/* ===== 我当前的计划（三维度列计划）===== */
.plan-sync-note { font-size: 12px; color: var(--brand-coral); margin-top: 10px; display: flex; align-items: center; gap: 5px; }

.plan-input-row { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plan-input-row:last-child { border-bottom: none; }
.pico {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand-primary-soft);
  color: var(--brand-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pbody { flex: 1; min-width: 0; }
.pname { font-size: 14px; font-weight: 600; color: var(--text-1); }
.psuggest { font-size: 12px; color: var(--text-3); margin: 3px 0 10px; }
.pinput-wrap { display: flex; align-items: center; gap: 8px; max-width: 460px; }
.pinput {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 10px 14px;
  font-size: 14px; background: var(--bg-card-2); color: var(--text-1); transition: border-color .15s, background .15s;
}
.pinput:focus { outline: none; border-color: var(--brand-primary); background: #fff; }
.pinput::placeholder { color: var(--text-3); }
.punit { font-size: 13px; color: var(--text-2); flex-shrink: 0; }
.chip-list { display: inline-flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text-2);
  font-size: 12px; padding: 5px 14px; border-radius: var(--r-pill); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--brand-primary-soft); }

.sync-badge {
  font-size: 12px; color: var(--success); background: var(--success-soft); padding: 3px 10px;
  border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 4px; font-weight: 500;
}
.progress-partners { display: flex; flex-direction: column; gap: 10px; }
.prog-partner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.prog-av {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary);
  font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.prog-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.prog-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.prog-label { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.prog-label.done { color: var(--success); }
.prog-label.doing { color: var(--brand-primary); }
.prog-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.prog-dot.done { background: var(--success); }
.prog-dot.doing { background: var(--brand-primary); box-shadow: 0 0 0 4px var(--brand-primary-soft); }
.progress-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.prog-count { font-size: 13px; color: var(--text-1); font-weight: 600; }
.prog-count .sym { color: var(--text-3); font-weight: 400; }
.prog-perf { font-size: 12px; color: var(--text-3); }

/* ===== AI 大脑 ===== */
.page-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ai-profile-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-profile-row-label { font-size: 12px; color: var(--text-3); }
.ai-profile-chip { border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text-2); font-size: 12px; padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer; transition: all .15s ease; }
.ai-profile-chip:hover { color: var(--brand-primary); border-color: var(--brand-primary); }

.ai-coach { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r-card); background: #FBF3E8; border: 1px solid #EFDCC2; cursor: pointer; margin-bottom: 26px; transition: box-shadow .18s ease, transform .18s ease; }
.ai-coach:hover { box-shadow: var(--sh-hover); transform: translateY(-1px); }
.ai-coach-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 24px; flex-shrink: 0; }
.ai-coach-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ai-coach-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--text-1); }
.ai-coach-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.ai-coach-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--brand-primary); flex-shrink: 0; }

.ai-section { margin-bottom: 26px; }
.ai-section-title { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 1px; margin: 0 0 12px; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.agent-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg-card); cursor: pointer; text-align: left; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.agent-card:hover { box-shadow: var(--sh-hover); transform: translateY(-1px); border-color: var(--line-strong); }
.agent-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-primary-soft); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 17px; flex-shrink: 0; }
.agent-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agent-name { font-size: 14px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.agent-free { font-style: normal; font-size: 10px; color: var(--success); background: var(--success-soft); padding: 1px 6px; border-radius: var(--r-pill); }
.agent-desc { font-size: 12px; color: var(--text-2); line-height: 1.55; }
.agent-go { color: var(--text-3); display: flex; align-items: center; margin-top: 2px; flex-shrink: 0; }

/* ===== 人脉库 ===== */
.crm-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.crm-kpi { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.crm-kpi-num { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--text-1); }
.crm-kpi-label { font-size: 12px; color: var(--text-3); }

.crm-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.crm-flow-step { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-1); padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card-2); }
.crm-flow-step i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.crm-flow-step b { font-weight: 600; color: var(--text-1); }
.crm-flow-step.fork { background: var(--bg-card); }
.crm-flow-arrow { color: var(--text-3); }
.crm-flow-fork { display: inline-flex; gap: 10px; }
.crm-flow-note { font-size: 12px; color: var(--text-3); margin-top: 10px; }

.tbl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tbl-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--text-1); }
.crm-tbl-actions { display: flex; gap: 8px; }
.crm-search { border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; font-size: 13px; background: var(--bg-card); color: var(--text-1); min-width: 200px; }
.crm-search:focus { outline: none; border-color: var(--brand-primary); }

.crm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crm-table th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.crm-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.crm-table tr[data-crm-id] { cursor: pointer; transition: background .15s ease; }
.crm-table tr[data-crm-id]:hover { background: var(--brand-primary-soft); }
.crm-stage-tag { font-size: 12px; padding: 2px 8px; border-radius: var(--r-pill); display: inline-block; }
.crm-wb-flag { color: var(--brand-primary); font-weight: 600; font-size: 15px; }

.crm-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.crm-toggle input { display: none; }
.crm-toggle-track { width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .18s ease; flex-shrink: 0; }
.crm-toggle-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .18s ease; }
.crm-toggle input:checked + .crm-toggle-track { background: var(--brand-primary); }
.crm-toggle input:checked + .crm-toggle-track::after { left: 20px; }
.crm-toggle-label { font-size: 12px; color: var(--text-2); }

.crm-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-1); }
.form-input, .form-textarea { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: var(--font-sans); background: var(--bg-card); color: var(--text-1); width: 100%; box-sizing: border-box; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--brand-primary); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.crm-slot-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); line-height: 1.6; }

.crm-followups { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.crm-fup { padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--bg-card-2); }
.crm-fup-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.crm-fup-type { font-size: 12px; font-weight: 600; color: var(--brand-primary); }
.crm-fup-date { font-size: 12px; color: var(--text-3); }
.crm-fup-body { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.crm-fup-next { font-size: 12px; color: var(--info); margin-top: 6px; }
.crm-fup-add { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 32px 16px; }

/* ===== AI 对话页 ===== */
.chat-wrap { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 120px); min-height: 560px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.chat-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; }
.chat-back:hover { background: var(--bg-card-2); color: var(--text-1); }
.chat-agent-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 19px; flex-shrink: 0; }
.chat-agent-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-agent-name { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--text-1); }
.chat-agent-sub { font-size: 12px; color: var(--text-3); }

.chat-bubbles { flex: 1; overflow-y: auto; padding: 20px 4px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; gap: 10px; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-primary-soft); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 15px; flex-shrink: 0; }
.chat-msg-body { max-width: 78%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.7; word-break: break-word; }
.chat-msg.user .chat-msg-body { background: var(--brand-primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.ai .chat-msg-body { background: var(--bg-card); border: 1px solid var(--line); color: var(--text-1); border-bottom-left-radius: 4px; }
.chat-msg-body.typing { color: var(--text-3); }
.chat-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 48px 16px; }

.chat-input-bar { display: flex; gap: 10px; align-items: flex-end; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.chat-voice-btn { width: 42px; height: 42px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text-2); cursor: pointer; transition: all 0.15s; touch-action: none; user-select: none; -webkit-user-select: none; }
.chat-voice-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--brand-primary-soft); }
.chat-voice-btn.recording { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); animation: voice-pulse 1.2s infinite; }
@keyframes voice-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(160, 52, 44, 0.35); } 50% { box-shadow: 0 0 0 10px rgba(160, 52, 44, 0); } }
.chat-input { flex: 1; border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 14px; font-size: 14px; font-family: var(--font-sans); background: var(--bg-card); color: var(--text-1); resize: none; line-height: 1.6; }
.chat-input:focus { outline: none; border-color: var(--brand-primary); }

/* 聊天 Markdown 正文 */
.chat-msg-body.md h1, .chat-msg-body.md h2, .chat-msg-body.md h3 { font-size: 15px; font-weight: 600; margin: 8px 0 4px; }
.chat-msg-body.md p { margin: 4px 0; }
.chat-msg-body.md ul { margin: 4px 0; padding-left: 18px; }
.chat-msg-body.md li { margin: 3px 0; }
.chat-msg-body.md blockquote { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--brand-primary); background: var(--brand-primary-soft); color: var(--text-2); border-radius: 0 6px 6px 0; }
.chat-msg-body.md strong { font-weight: 600; }

/* ===== 课程推荐卡片（AI 回答后） ===== */
.chat-msg.rec { justify-content: flex-start; }
.chat-msg.rec .rec-cards { max-width: 88%; }
.rec-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.rec-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.rec-card:hover { border-color: var(--brand-primary); box-shadow: var(--sh-hover); }
.rec-card-ico { color: var(--brand-primary); flex-shrink: 0; }
.rec-card-info { flex: 1; min-width: 0; }
.rec-card-title { font-size: 13px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-card-meta { font-size: 11px; color: var(--text-3); }
.rec-card-go { font-size: 12px; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }

/* ===== 冠军系统 ===== */
.champion-back { margin-bottom: 14px; }
.champion-back a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.champion-back a:hover { color: var(--brand-primary); }

.champion-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.champion-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg-card); cursor: pointer; text-align: left; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.champion-card:hover { box-shadow: var(--sh-hover); transform: translateY(-2px); border-color: var(--line-strong); }
.champion-ico { color: var(--brand-primary); }
.champion-no { font-size: 11px; color: var(--text-3); letter-spacing: 1px; }
.champion-title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--text-1); }
.champion-desc { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.champion-go { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--brand-primary); margin-top: 4px; }

/* ===== 冠军系统模块详情 / 图文文章正文 ===== */
.cm-intro { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.cm-body { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.cm-h { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--text-1); margin-top: 10px; }
.cm-p { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.cm-quote { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--brand-primary); background: var(--brand-primary-soft); border-left: 3px solid var(--brand-primary); padding: 12px 16px; border-radius: 8px; line-height: 1.6; }
.cm-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.cm-list li { font-size: 14px; color: var(--text-2); line-height: 1.7; }

.article-imgs { max-width: 640px; display: flex; flex-direction: column; gap: 0; margin: 0 auto; }
.article-img { width: 100%; max-width: 480px; height: auto; display: block; border-radius: var(--r-card); margin: 0 auto 8px; box-shadow: 0 6px 22px rgba(60,40,20,.10); }
.article-page { max-width: 640px; margin: 0 auto; }
.article-body { max-width: 640px; }
.article-body .article-img { margin: 18px auto; }
.article-body .cm-h { margin-top: 20px; }
.article-video { position: relative; margin: 18px 0; }
.article-video video { width: 100%; max-width: 640px; display: block; border-radius: var(--r-card); background: #000; box-shadow: 0 6px 22px rgba(60,40,20,.10); }
.article-video-dur { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.article-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-primary-strong); text-decoration: none; font-size: 14px; background: var(--bg-card-2); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 10px 16px; margin: 10px 0; }
.article-link:hover { border-color: var(--brand-primary); background: var(--brand-primary-soft); }



/* ===== 学习内容详情页 ===== */
.lesson-back-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 10px; }
.lesson-back-btn:hover { color: var(--brand-primary); }
.lesson-cat { font-size: 12px; color: var(--brand-primary); margin-bottom: 4px; }
.lesson-body { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.lesson-block { padding: 22px 24px; }
.lesson-block-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--text-1); margin-bottom: 14px; }

.lesson-why { display: flex; flex-direction: column; gap: 10px; }
.lesson-why-item { display: flex; align-items: flex-start; gap: 12px; }
.lesson-why-tag { flex-shrink: 0; width: 48px; text-align: center; font-size: 12px; font-weight: 600; padding: 3px 0; border-radius: 6px; }
.lesson-why-tag.what { background: var(--brand-primary-soft); color: var(--brand-primary); }
.lesson-why-tag.why { background: var(--warn-soft); color: #B47D34; }
.lesson-why-tag.how { background: var(--success-soft); color: #4D7858; }
.lesson-why-text { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.lesson-video { width: 100%; border-radius: var(--r-card); background: #2C2C2A; aspect-ratio: 16/9; }
.lesson-video-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-top: 10px; }

.lesson-ppt { display: flex; align-items: center; gap: 14px; }
.lesson-ppt-ico { width: 64px; height: 48px; border-radius: 8px; background: #FAECE7; border: 1px solid #D85A30; color: #993C1D; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.lesson-ppt-info { flex: 1; min-width: 0; }
.lesson-ppt-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.lesson-ppt-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.lesson-ppt-actions { display: flex; gap: 8px; flex-shrink: 0; }

.lesson-reflect-prompt { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.lesson-reflect-guide { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.lesson-reflect-input { min-height: 96px; }
.lesson-reflect-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ===== 工具大模块页 ===== */
.module-back-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 10px; }
.module-back-btn:hover { color: var(--brand-primary); }

.module-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.module-tag { border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text-2); font-size: 13px; padding: 6px 16px; border-radius: var(--r-pill); cursor: pointer; transition: all .15s ease; }
.module-tag:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.module-tag.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

.module-cat { margin-bottom: 26px; }
.module-cat-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 12px; padding-left: 8px; border-left: 3px solid var(--brand-primary); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-card); overflow: hidden; cursor: pointer; text-align: left; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.module-card:hover { box-shadow: var(--sh-hover); transform: translateY(-2px); border-color: var(--line-strong); }
.module-card-cover { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.module-card-cover.video { background: #2C2C2A; position: relative; }
.module-card-cover.video::after { content: ''; width: 0; height: 0; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.module-card-cover.article { background: var(--bg-card-2); color: var(--text-3); font-size: 13px; }
.module-card-info { padding: 12px 14px; }
.module-card-title { font-size: 14px; font-weight: 500; color: var(--text-1); }
.module-card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-top: 6px; flex-wrap: wrap; }
.module-card-type { color: var(--brand-primary); }
.module-card-tag { background: var(--brand-primary-soft); color: var(--brand-primary); padding: 1px 8px; border-radius: var(--r-pill); font-size: 11px; }

/* 抽屉里的模块入口卡片 */
.lib-module-list { display: flex; flex-direction: column; gap: 10px; }
.lib-module-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); cursor: pointer; text-align: left; transition: box-shadow .15s ease, border-color .15s ease; }
.lib-module-card:hover { box-shadow: var(--sh-hover); border-color: var(--line-strong); }
.lib-module-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-primary-soft); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 18px; flex-shrink: 0; }
.lib-module-info { flex: 1; min-width: 0; }
.lib-module-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.lib-module-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.lib-module-go { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--brand-primary); flex-shrink: 0; }

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .wb-grid { grid-template-columns: 1fr; }
  .cea-hero { grid-template-columns: 1fr; }
  .eight-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .dream-goals { grid-template-columns: 1fr; }
  .target-fields { grid-template-columns: repeat(2, 1fr); }
  .target-months { grid-template-columns: repeat(3, 1fr); }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --content-pad: 18px; }
  .brand { display: none; }
  .primary-nav { margin-left: 0; gap: 2px; flex-wrap: wrap; }
  .primary-nav .nav-item { font-size: 13px; padding: 6px 10px; }
  .user-meta { display: none; }
  .topbar { height: auto; }
  .topbar-inner { flex-wrap: wrap; gap: 12px; padding: 10px 18px; }
  .main { padding: 18px 18px 60px; }
  .wb-greeting { font-size: 22px; }
  .wb-stage-head { flex-direction: column; }
  .wb-ring-wrap { width: 100px; height: 100px; }
  .eight-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .target-fields { grid-template-columns: 1fr; }
  .target-months { grid-template-columns: repeat(2, 1fr); }
  .dream-tabs { overflow-x: auto; }
  .dream-tab { white-space: nowrap; padding: 10px 14px; }
  .plan-input-row { flex-direction: column; }
  .pico { width: 34px; height: 34px; }
  .lib-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-coach { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .crm-flow { flex-direction: column; align-items: flex-start; }
  .crm-tbl-actions { flex-direction: column; width: 100%; }
  .crm-search { min-width: 0; width: 100%; }
  .chat-wrap { height: calc(100vh - 100px); min-height: 0; }
  .chat-msg-body { max-width: 88%; }
  .champion-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
}


/* ===== 梦想与目标 · 20133 模块卡片 ===== */
.plan-module-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; background: #fff; }
.plan-module-card.active { border: 1.5px solid var(--brand-primary); }
.plan-module-top { display: flex; justify-content: space-between; align-items: center; }
.plan-module-name { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--text-1); }
.plan-module-tag { font-size: 11px; color: var(--brand-primary); border: 1px solid var(--brand-primary); border-radius: 999px; padding: 3px 10px; background: #fff; }
.plan-module-tag.cur { font-size: 10px; color: #fff; background: var(--brand-primary); border: none; }
.plan-module-sub { font-size: 12px; color: var(--text-2); margin-top: 8px; line-height: 1.8; }

/* ===== 成长目标（OKR 目标树 + 成功者第一步流程图） ===== */
.okr-title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--text-1); }
.okr-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.okr-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.okr-learn-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--brand-primary); border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 5px 14px; cursor: pointer; white-space: nowrap; margin-top: 4px; }
.okr-learn-link:hover { border-color: var(--brand-primary); color: var(--brand-primary-strong); }
.mod-tabs { display: flex; gap: 10px; margin-top: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.mod-tab { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--text-2); cursor: pointer; background: #fff; }
.mod-tab.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.mod-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 13px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: #FBFAF7; }
.mod-empty b { color: var(--brand-primary-strong); }

.stat-bar { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat-label { font-size: 11px; color: var(--text-2); }
.stat-num { font-size: 22px; font-weight: 600; color: var(--text-1); margin-top: 2px; }
.stat-num small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.stat-clickable { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.stat-clickable:hover { border-color: var(--brand-primary); box-shadow: 0 2px 10px rgba(212,119,57,.08); }
.stat-sub { font-size: 10px; color: var(--text-3); margin-top: 4px; }
.stat-sub.set { color: var(--brand-primary); }

.okr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.o-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.o-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.o-tag { font-size: 10px; color: #fff; background: var(--brand-primary); border-radius: 999px; padding: 2px 10px; flex-shrink: 0; }
.o-text { font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 1.5; }
.o-text.empty { color: var(--text-3); }
.o-text.empty:hover { color: var(--brand-primary); }
.o-hint-link { font-size: 11px; color: var(--brand-primary); cursor: pointer; white-space: nowrap; margin-left: auto; flex-shrink: 0; }
.o-hint-link:hover { color: var(--brand-primary-strong); }
.o-hint-panel { margin: 10px 0 4px; padding: 12px 14px; background: #FBFAF7; border: 1px dashed var(--line-strong); border-radius: 10px; }
.o-hint-panel .h-title { font-size: 12px; font-weight: 600; color: var(--brand-primary-strong); margin-bottom: 8px; }
.o-hint-row { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--text-2); padding: 3px 0; line-height: 1.6; }
.okr-dim { display: inline-block; border-radius: 4px; padding: 1px 7px; font-size: 10px; font-weight: 600; margin-right: 3px; min-width: 30px; text-align: center; flex-shrink: 0; }
.okr-dim-l { background: #E6F1FB; color: #185FA5; }
.okr-dim-a { background: #FBEAE4; color: #993C1D; }
.okr-dim-r { background: #E1F5EE; color: #0F6E56; }

.kr-add { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border: 1.5px dashed var(--line-strong); border-radius: 10px; font-size: 13px; color: var(--text-3); cursor: pointer; margin-top: 10px; transition: all .15s ease; }
.kr-add:hover { border-color: var(--brand-primary); color: var(--brand-primary-strong); background: #FFF8F3; }
.kr-add .plus { font-size: 16px; line-height: 1; }
.kr-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.kr-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.kr-card-title { font-size: 12px; font-weight: 600; color: var(--text-1); }
.kr-del { width: 22px; height: 22px; border-radius: 6px; border: none; background: transparent; color: var(--text-3); cursor: pointer; font-size: 15px; line-height: 1; }
.kr-del:hover { color: #E24B4A; background: var(--brand-primary-soft); }
.kr-part { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.kr-part + .kr-part { border-top: 1px dashed var(--line); }
.kr-part-label { flex-shrink: 0; width: 34px; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 0; text-align: center; }
.kr-part-label.learn { background: #E6F1FB; color: #185FA5; }
.kr-part-label.act { background: #FBEAE4; color: #993C1D; }
.kr-part-label.result { background: #E1F5EE; color: #0F6E56; }
.kr-part-input { flex: 1; font-size: 13px; color: var(--text-2); line-height: 1.6; min-height: 20px; cursor: text; border-radius: 4px; padding: 0 4px; }
.kr-part-input:focus { outline: none; background: #FFF8F3; color: var(--text-1); }
.kr-part-input.empty { color: var(--text-3); }

/* 成功者正确的第一步 · 三角形流程图 */
.flow-card { background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; padding: 22px 24px; }
.flow-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.flow-hint { font-size: 12px; color: var(--text-3); margin-bottom: 18px; }
.flow-canvas { position: relative; width: 100%; height: 540px; margin-bottom: 18px; }
.flow-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-node { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 11px; font-weight: 500; color: var(--text-1); background: #fff; white-space: nowrap; min-width: 72px; justify-content: flex-start; transform: translateX(-50%); box-sizing: border-box; transition: all .15s ease; cursor: pointer; }
.flow-node:hover { border-color: var(--brand-primary); box-shadow: 0 2px 8px rgba(212,119,57,.08); }
.flow-dashed { border: 1px dashed #B5A99A; color: var(--text-2); background: #FBFAF7; padding: 5px 9px; min-width: 56px; }
.flow-emphasis { border: 1.5px solid #993C1D; }
.flow-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: #993C1D; color: #fff; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.flow-dashed .flow-badge { display: none; }
.flow-name { line-height: 1.3; }
.flow-branches-title { font-size: 12px; font-weight: 500; color: var(--text-2); margin: 10px 0 8px; }
.flow-branches-row { display: flex; gap: 6px; flex-wrap: wrap; }
.flow-branch { flex: 1 1 0; min-width: 50px; padding: 8px 4px; text-align: center; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s ease; background: #fff; color: var(--text-1); }
.flow-branch-green { color: #0F6E56; border-color: #C7E8DA; background: #FAFCFB; }
.flow-branch-amber { color: #854F0B; border-color: #F2DBA8; background: #FEFBF6; }
.flow-branch-gray { color: #5F5E5A; border-color: #D3D1C7; background: #FBFAF7; }
.flow-branch-red { color: #A32D2D; border-color: #F2BFBF; background: #FEFBFB; }
.flow-branch.active { border-width: 1.5px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.flow-branch-panels { margin-top: 10px; }
.flow-branch-panel { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; margin-bottom: 8px; font-size: 12px; line-height: 1.7; background: #FBFAF7; }
.flow-branch-panel-green { background: #FAFCFB; border-color: #C7E8DA; }
.flow-branch-panel-amber { background: #FEFBF6; border-color: #F2DBA8; }
.flow-branch-panel-gray { background: #FBFAF7; border-color: #D3D1C7; }
.flow-branch-panel-red { background: #FEFBFB; border-color: #F2BFBF; }
.flow-panel-title { font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-1); }
.flow-sub-block { margin-bottom: 6px; }
.flow-sub-block:last-child { margin-bottom: 0; }
.flow-sub-title { font-size: 12px; font-weight: 500; color: var(--text-1); margin-bottom: 2px; }
.flow-sub-list { list-style: none; padding: 0 0 0 14px; margin: 0; }
.flow-sub-list li { position: relative; padding: 1px 0; color: var(--text-2); }
.flow-sub-list li:before { content: '·'; position: absolute; left: -10px; color: var(--text-3); }

/* 课程抽屉（OKR 小课堂 + 节点指导） */
.course-overlay { position: fixed; inset: 0; background: rgba(40,25,15,.32); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.course-panel { width: min(460px, 92vw); max-height: 82vh; overflow: auto; background: #fff; border-radius: 18px; padding: 24px 26px; box-shadow: 0 20px 60px rgba(60,40,20,.28); position: relative; animation: courseIn .18s ease; }
@keyframes courseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.course-close { position: absolute; top: 14px; right: 16px; width: 28px; height: 28px; border-radius: 50%; border: none; background: #F6EFE7; color: var(--text-2); font-size: 16px; cursor: pointer; line-height: 1; }
.course-close:hover { background: var(--brand-primary-soft); color: var(--brand-primary-strong); }
.course-tag { display: inline-block; font-size: 10px; color: #fff; background: var(--brand-primary); border-radius: 999px; padding: 2px 10px; letter-spacing: 1px; }
.course-title { font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: var(--text-1); margin: 12px 0 6px; }
.course-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.course-sec { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.course-sec-title { font-size: 12px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.course-task { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px; font-size: 12px; color: var(--text-2); }
.course-task .t-no { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary-strong); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.course-hint { margin-top: 12px; font-size: 11px; color: var(--text-3); }

/* 截止日期弹窗 */
.due-input { flex: 1; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; font-family: inherit; color: var(--text-1); }
.due-input:focus { outline: none; border-color: var(--brand-primary); background: #FFF8F3; }
.due-actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.due-btn { padding: 8px 18px; background: var(--brand-primary); color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; }
.due-btn:hover { background: var(--brand-primary-strong); }
.due-hint { font-size: 11px; color: var(--text-2); margin-top: 12px; }
.due-hint b { color: var(--brand-primary-strong); }

/* 首页 OKR 入口按钮 */
.wb-okr-entry { background: #fff; color: var(--brand-primary); border: 1px solid var(--brand-primary); }

@media (max-width: 720px) {
  .okr-grid, .stat-bar { grid-template-columns: 1fr; }
  .flow-canvas { height: 500px; }
}


/* 首页成长阶段卡：右上角 OKR 入口 */
.wb-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wb-stage-top .wb-stage-tag { margin-bottom: 0; }
.wb-stage-link { font-size: 12px; color: var(--brand-primary); background: none; border: none; cursor: pointer; padding: 0; white-space: nowrap; }
.wb-stage-link:hover { color: var(--brand-primary-strong); }

/* ===== INC-AUTH-02：登录 / 设置密码页 ===== */
.auth-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px; box-shadow: 0 10px 40px rgba(60,40,20,.08); }
.auth-logo { font-size: 12px; letter-spacing: 3px; color: var(--brand-primary); text-align: center; margin-bottom: 8px; }
.auth-title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--text-1); text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--text-2); text-align: center; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 12px; color: var(--text-2); }
.auth-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--text-1); font-family: inherit; background: #fff; }
.auth-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(212,119,57,.12); }
.auth-err { font-size: 12px; color: #E24B4A; min-height: 16px; }
.auth-btn { width: 100%; padding: 13px; border: none; border-radius: 10px; background: var(--brand-primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s ease; }
.auth-btn:hover { background: var(--brand-primary-strong, #b9642a); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-foot { margin-top: 18px; text-align: center; }
.auth-link { font-size: 13px; color: var(--brand-primary); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-foot-sep { margin: 0 8px; color: var(--line); }

/* 登录方式切换 tab */
.auth-tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg-soft, #f7f2ea); border-radius: 10px; margin-bottom: 20px; }
.auth-tab { flex: 1; padding: 9px 0; border: none; background: transparent; border-radius: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; transition: all .15s ease; font-family: inherit; }
.auth-tab.active { background: #fff; color: var(--brand-primary); font-weight: 600; box-shadow: 0 1px 4px rgba(60,40,20,.10); }

/* 验证码输入 + 发送按钮 */
.auth-code-row { display: flex; gap: 10px; }
.auth-code-row .auth-input { flex: 1; min-width: 0; }
.auth-code-btn { flex-shrink: 0; padding: 0 16px; border: 1px solid var(--brand-primary); border-radius: 10px; background: #fff; color: var(--brand-primary); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s ease; font-family: inherit; }
.auth-code-btn:hover { background: var(--bg-soft, #f7f2ea); }
.auth-code-btn:disabled { opacity: .6; cursor: not-allowed; }

/* 退出登录按钮 */
.logout-btn { margin-left: 14px; padding: 6px 12px; font-size: 12px; color: var(--text-2); background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; white-space: nowrap; }
.logout-btn:hover { color: #E24B4A; border-color: #E24B4A; }

/* ===== 统一素材中心 ===== */
.media-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.media-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.media-toolbar-right { display: flex; align-items: center; gap: 10px; }
.media-search { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--text-1); background: #fff; min-width: 180px; font-family: inherit; }
.media-search:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(212,119,57,.12); }
.media-section { margin-bottom: 26px; }
.media-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.media-section-head h2 { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--text-1); margin: 0; }
.media-count { font-size: 12px; color: var(--text-3); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.media-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.media-thumb { height: 120px; background: var(--bg-card-2); display: flex; align-items: center; justify-content: center; color: var(--text-3); overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb-ph { color: var(--text-3); }
.media-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.media-card-top { display: flex; align-items: center; gap: 8px; }
.media-scope { font-size: 10px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.media-scope.official { background: var(--brand-primary-soft); color: var(--brand-primary-strong); }
.media-scope.personal { background: #EAF1EA; color: #4A7A4A; }
.media-type { font-size: 11px; color: var(--text-3); }
.media-card-title { font-size: 14px; font-weight: 600; color: var(--text-1); line-height: 1.4; word-break: break-all; }
.media-card-cat { font-size: 12px; color: var(--text-2); }
.media-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.media-card-tags .tag { font-size: 10px; padding: 2px 7px; border-radius: 4px; background: var(--bg-card-2); color: var(--text-2); }
.media-actions { display: flex; gap: 8px; margin-top: 4px; }
.media-danger { color: #E24B4A !important; }
.media-danger:hover, .plan-danger:hover { color: #B9403A !important; border-color: #E24B4A; }
.media-empty { padding: 30px 0; text-align: center; color: var(--text-3); font-size: 13px; }
.media-form { padding: 18px; margin-bottom: 18px; }
.media-form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.media-form-head h3 { font-family: var(--font-serif); font-size: 16px; margin: 0; color: var(--text-1); }
.media-form-close { border: none; background: none; font-size: 22px; color: var(--text-3); cursor: pointer; line-height: 1; }
.media-form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.media-form-row label { font-size: 12px; color: var(--text-2); }
.media-form-row input, .media-form-row select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--text-1); font-family: inherit; background: #fff; width: 100%; }
.media-form-row input:focus, .media-form-row select:focus { outline: none; border-color: var(--brand-primary); }
.media-form-2col { flex-direction: row; gap: 12px; }
.media-form-2col > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.media-form-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.media-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.media-form-row textarea { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--text-1); font-family: inherit; background: #fff; width: 100%; resize: vertical; min-height: 64px; line-height: 1.5; }
.media-form-row textarea:focus { outline: none; border-color: var(--brand-primary); }
.media-card-summary { font-size: 12px; color: var(--text-2); line-height: 1.5; margin: 6px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-scene-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.media-scene-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-1); cursor: pointer; }
.media-scene-check input { width: auto !important; margin: 0; }
.media-check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-1); cursor: pointer; }
.media-check-label input { width: auto !important; margin: 0; }
.media-ai { margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg-card-2); }
.media-ai-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.media-ai-head h4 { font-size: 13px; margin: 0; color: var(--text-1); font-weight: 600; }
.media-ai-body { display: flex; flex-direction: column; gap: 10px; }
.media-ai-item { border-left: 2px solid var(--brand-primary); padding-left: 10px; }
.media-ai-label { font-size: 11px; color: var(--brand-primary-strong); font-weight: 600; display: block; margin-bottom: 3px; }
.media-ai-item p { font-size: 13px; color: var(--text-1); margin: 0; line-height: 1.5; }
.media-ai-warn { border-left-color: #E0A23B; }
.media-ai-warn .media-ai-label { color: #B87A14; }
.media-ai-empty { font-size: 12px; color: var(--text-3); margin: 0; }
.media-ai-foot { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.media-ai-hint { font-size: 11px; color: var(--text-3); }

/* ===== 事业宣讲计划 ===== */
.plan-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.plan-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-card-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--text-1); margin: 0; }
.plan-card-status { font-size: 10px; padding: 2px 8px; border-radius: 4px; background: var(--bg-card-2); color: var(--text-2); }
.plan-card-status.archived { color: var(--text-3); }
.plan-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-2); }
.plan-card-actions { display: flex; gap: 8px; }
.plan-danger { color: #E24B4A !important; }
.plan-meta-card { padding: 16px; margin-bottom: 16px; }
.plan-meta-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.plan-meta-row label { font-size: 12px; color: var(--text-2); }
.plan-meta-row input, .plan-meta-row textarea { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--text-1); font-family: inherit; background: #fff; width: 100%; }
.plan-meta-row input:focus, .plan-meta-row textarea:focus { outline: none; border-color: var(--brand-primary); }
.plan-meta-row textarea { resize: vertical; }
.plan-meta-2col { flex-direction: row; gap: 12px; }
.plan-meta-2col > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.plan-items-card { padding: 16px; margin-bottom: 16px; }
.plan-items-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.plan-items-head h3 { font-family: var(--font-serif); font-size: 16px; margin: 0; color: var(--text-1); }
.plan-items-head-actions { display: flex; gap: 8px; position: relative; }
.plan-add-menu { position: absolute; right: 0; top: 100%; margin-top: 6px; min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.10); z-index: 50; overflow: hidden; }
.plan-add-menu.hidden { display: none; }
.plan-add-opt { display: block; width: 100%; text-align: left; padding: 10px 14px; border: none; background: #fff; font-size: 13px; color: var(--text-1); cursor: pointer; font-family: inherit; }
.plan-add-opt:hover { background: var(--brand-primary-soft); }
.plan-item-chapter .plan-item-type.chapter { background: #F3EDE4; color: var(--brand-primary); }
.plan-item-type.chapter { background: #F3EDE4; color: var(--brand-primary); }
.plan-asset-picker { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 12px; max-height: 260px; overflow-y: auto; background: var(--bg-card-2); }
.plan-asset-picker-head { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.plan-asset-opt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: none; background: #fff; border-radius: 8px; font-size: 13px; color: var(--text-1); cursor: pointer; margin-bottom: 6px; }
.plan-asset-opt:hover { background: var(--brand-primary-soft); }
.plan-asset-opt-scope { font-size: 10px; color: var(--text-3); margin-left: auto; }
.plan-item { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--bg-card); }
.plan-item.dragging { opacity: 0.5; border-color: var(--brand-primary); }
.plan-item-grip { cursor: grab; color: var(--text-3); font-size: 16px; letter-spacing: -2px; user-select: none; padding-top: 2px; }
.plan-item-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.plan-item-top { display: flex; align-items: center; gap: 8px; }
.plan-item-pos { font-size: 11px; font-weight: 600; color: var(--brand-primary-strong); background: var(--brand-primary-soft); width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.plan-item-type { font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.plan-item-type.asset { background: var(--brand-primary-soft); color: var(--brand-primary-strong); }
.plan-item-type.text { background: #EAF1EA; color: #4A7A4A; }
.plan-item-label { font-size: 12px; color: var(--text-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-item-tools { display: flex; gap: 4px; }
.plan-item-btn { border: 1px solid var(--line); background: #fff; color: var(--text-2); width: 24px; height: 24px; border-radius: 6px; cursor: pointer; font-size: 12px; line-height: 1; }
.plan-item-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.plan-item-del:hover { border-color: #E24B4A; color: #E24B4A; }
.plan-item-input { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--text-1); font-family: inherit; background: #fff; }
.plan-item-input:focus { outline: none; border-color: var(--brand-primary); }
.plan-item-note { background: var(--bg-card-2); color: var(--text-2); }

/* 极简编辑器块（QWILR-ADAPTATION-PROTOTYPE 之后） */
.plan-item-thumb { width: 56px; height: 42px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-card-2); }
.plan-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-item-thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 11px; color: var(--text-3); }
.plan-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.plan-item-line1 { display: flex; align-items: center; gap: 8px; }
.plan-item-title { font-size: 13px; color: var(--text-1); font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-item-ic { font-size: 10px; color: var(--text-3); background: var(--bg-card-2); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.plan-item-link { align-self: flex-start; border: none; background: none; color: var(--brand-primary); font-size: 12px; cursor: pointer; padding: 0; }
.plan-item-link:hover { text-decoration: underline; }
.plan-item-settings { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--bg-card-2); border-radius: 8px; }
.plan-item-settings label { font-size: 11px; color: var(--text-3); }
.plan-item-settings input { width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--text-1); background: #fff; }
.plan-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; justify-content: space-between; }
.plan-item textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--text-1); font-family: inherit; resize: vertical; background: #fff; }
.plan-item textarea:focus { outline: none; border-color: var(--brand-primary); }
.plan-item-heading .plan-item-heading-input { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--brand-primary-strong); border: none; background: transparent; width: 100%; padding: 4px 0; }
.plan-item-heading .plan-item-heading-input:focus { outline: none; border-bottom: 1px solid var(--brand-primary); }
.plan-item-cta .plan-item-main { flex-direction: row; align-items: center; gap: 8px; }
.plan-item-cta input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.plan-foot { display: flex; gap: 10px; justify-content: flex-end; }

/* ===== UX-POLISH-01A 电脑端产品化 ===== */

/* 导航：7 tab 紧凑，避免换行/裁切 */
.primary-nav { gap: 4px; margin-left: 12px; }
.primary-nav .nav-item { padding: 8px 12px; font-size: 13px; }
@media (min-width: 1280px) { .primary-nav .nav-item { padding: 8px 14px; font-size: 14px; } }
@media (max-width: 1120px) {
  .topbar-inner { gap: 14px; }
  .brand { font-size: 14px; }
  .primary-nav .nav-item { padding: 7px 10px; font-size: 12px; }
}

/* 次按钮柔和描边（统一在 .btn-outline 定义处，此处不再重复） */

/* 素材中心：页签 + 工具栏 */
.media-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.media-search { flex: 1 1 auto; min-width: 160px; max-width: 320px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--text-1); background: #fff; font-family: inherit; }
.media-search:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(212,119,57,.12); }
.media-select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--text-1); background: #fff; font-family: inherit; cursor: pointer; }
.media-select:focus { outline: none; border-color: var(--brand-primary); }
.media-toolbar-spacer { flex: 1; }
.media-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.media-tab { padding: 10px 16px; font-size: 14px; color: var(--text-2); background: none; border: none; cursor: pointer; position: relative; font-family: inherit; }
.media-tab:hover { color: var(--text-1); }
.media-tab.active { color: var(--text-1); font-weight: 600; }
.media-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 12px; right: 12px; height: 2px; background: var(--brand-primary); border-radius: 2px; }
.media-official-hint { margin: -8px 0 14px; padding: 10px 14px; font-size: 13px; color: var(--text-2); background: var(--bg-card-2); border: 1px solid var(--line); border-radius: 8px; }
.media-progress { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.media-progress.hidden { display: none; }
.media-progress-bar { height: 6px; background: var(--brand-primary); border-radius: 3px; width: 0%; transition: width .2s ease; }
.media-progress-text { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.media-loading { padding: 48px 0; text-align: center; color: var(--text-3); font-size: 13px; }
.media-error { padding: 48px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* 卡片网格列数（1440=4 / 1280&1024=3） */
.media-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1440px) { .media-grid { grid-template-columns: repeat(4, 1fr); } }
.media-thumb { height: 150px; }
.media-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.media-card-time { font-size: 11px; color: var(--text-3); }

/* 事业机会方案列表 */
.plan-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.plan-head-row .btn { flex-shrink: 0; }
.plan-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; box-shadow: var(--sh-card); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s ease; }
.plan-card:hover { box-shadow: var(--sh-hover); }
.plan-card-dim { color: var(--text-3); }
.plan-card-dot { color: var(--text-3); margin: 0 2px; }
.plan-card-stats { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.plan-card-time { color: var(--text-3); }
.plan-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.plan-card-more { margin-left: auto; font-size: 12px; color: var(--text-2); background: none; border: none; cursor: pointer; font-family: inherit; padding: 4px 8px; border-radius: 6px; }
.plan-card-more:hover { color: var(--danger); background: rgba(199, 81, 70, 0.06); }
.plan-empty { padding: 64px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.plan-empty-ico { color: var(--text-3); margin-bottom: 4px; }
.plan-empty-title { font-size: 16px; font-weight: 600; color: var(--text-1); margin: 0; }
.plan-empty-sub { font-size: 13px; color: var(--text-2); margin: 0 0 8px; }

/* 编辑器三栏 */
.editor-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.editor-title { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--text-1); margin: 0; flex: 1; min-width: 0; }
.editor-topbar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.editor-layout { display: grid; grid-template-columns: 260px 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 1280px) { .editor-layout { grid-template-columns: 230px 1fr 260px; } }
.editor-col { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.editor-left { position: sticky; top: 80px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.editor-right { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.editor-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.editor-col-head h3 { font-family: var(--font-serif); font-size: 15px; margin: 0; color: var(--text-1); }
.editor-col-link { font-size: 12px; color: var(--brand-primary); background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.editor-col-link:hover { text-decoration: underline; }
.editor-search { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; margin-bottom: 10px; font-family: inherit; color: var(--text-1); }
.editor-search:focus { outline: none; border-color: var(--brand-primary); }
.editor-select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; margin-bottom: 10px; background: #fff; color: var(--text-1); font-family: inherit; }
.editor-media-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.editor-media-tab { flex: 1; padding: 7px 8px; font-size: 12px; border: 1px solid var(--line); background: #fff; color: var(--text-2); border-radius: 8px; cursor: pointer; font-family: inherit; }
.editor-media-tab.active { background: var(--brand-primary-soft); color: var(--brand-primary-strong); border-color: var(--brand-primary); }
.editor-media-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.editor-media-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; }
.editor-media-item:hover { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.editor-media-thumb { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bg-card-2); display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.editor-media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.editor-media-info { display: flex; flex-direction: column; min-width: 0; }
.editor-media-title { font-size: 13px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-media-meta { font-size: 11px; color: var(--text-3); }
.editor-media-empty { padding: 20px 0; text-align: center; color: var(--text-3); font-size: 12px; }
.plan-item-count { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* 预览 */
.preview-card { background: var(--bg-page); border-radius: 12px; overflow: hidden; }
.preview-cover { background: linear-gradient(135deg, #D47739, #C46528); color: #fff; padding: 18px 16px; }
.preview-brand { font-size: 11px; letter-spacing: 1px; opacity: 0.9; }
.preview-title { font-family: var(--font-serif); font-size: 18px; margin: 6px 0 4px; font-weight: 600; }
.preview-greet { font-size: 12px; opacity: 0.95; }
.preview-sec { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-card); }
.preview-sec-label { font-size: 11px; color: var(--brand-primary-strong); font-weight: 600; margin-bottom: 6px; }
.preview-sec-text { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.preview-item { display: flex; gap: 10px; padding: 6px 0; }
.preview-item-num { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary-strong); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.preview-item-text { font-size: 13px; color: var(--text-1); line-height: 1.5; }
.preview-cta { margin: 14px 16px; padding: 12px; background: var(--brand-primary); color: #fff; border-radius: 10px; font-size: 13px; text-align: center; }

/* 移动端冒烟：三栏改单栏堆叠，避免横向溢出（完整适配另立 UX-POLISH-01B） */
@media (max-width: 900px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-left, .editor-right { position: static; max-height: none; }
  .editor-left { order: 2; }
  .editor-main { order: 1; }
  .editor-right { order: 3; }
  .plan-head-row, .editor-topbar { flex-direction: column; align-items: flex-start; }
  .media-toolbar { flex-wrap: wrap; }
}

/* ===== 统一内容块渲染器（右侧预览 / 全屏预览 / 客户页共用）===== */
.cb-stream { display: flex; flex-direction: column; gap: 14px; }
.cb-chapter { margin: 10px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cb-chapter-title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--text-1); letter-spacing: 1px; }
.cb-text { font-size: 14px; line-height: 1.8; color: var(--text-1); margin: 0; }
.cb-figure { margin: 0; }
.cb-figure img { width: 100%; border-radius: 12px; display: block; }
.cb-figure figcaption { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.cb-figure.cb-fail { min-height: 90px; background: var(--bg-card-2); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cb-figure.cb-fail img { display: none; }
.cb-figure.cb-fail::after { content: '图片加载失败'; font-size: 12px; color: var(--text-3); }
.cb-video { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-card-2); }
.cb-video-cover { position: relative; aspect-ratio: 16/9; background: #2b2b2b; display: flex; align-items: center; justify-content: center; }
.cb-video-cover img { width: 100%; height: 100%; object-fit: cover; }
.cb-video-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #3a322c, #6b5a48); }
.cb-video-play { width: 0; height: 0; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; opacity: .9; }
.cb-video-title { padding: 10px 14px; font-size: 13px; color: var(--text-1); }
.cb-article { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cb-article-type { font-size: 11px; color: var(--brand-primary); margin-bottom: 6px; }
.cb-article-title { font-size: 14px; color: var(--text-1); font-weight: 500; }
.cb-cta { text-align: center; padding: 8px 0; }
.cb-cta-label { display: inline-block; background: var(--brand-primary); color: #fff; padding: 12px 30px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.cb-unknown { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg-card-2); }
.cb-unknown-label { font-size: 11px; color: var(--text-3); display: block; margin-bottom: 4px; }
.cb-unknown p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.6; }

/* ===== 全屏客户预览 overlay ===== */
.customer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 2000; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.customer-page { max-width: 720px; margin: 0 auto; background: #FAF7F2; min-height: 100%; color: #3a322c; font-family: var(--font-sans); position: relative; }
.customer-close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; cursor: pointer; z-index: 10; }
.customer-hero { background: #A0342C; color: #FAF7F2; padding: 44px 28px 36px; }
.customer-brand { font-size: 12px; letter-spacing: 3px; opacity: .85; margin-bottom: 10px; }
.customer-title { font-size: 24px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; font-family: var(--font-serif); }
.customer-greet { font-size: 14px; opacity: .9; }
.customer-body { padding: 8px 28px 40px; }
.customer-body .cb-stream { gap: 26px; }
.customer-body .cb-chapter { margin: 18px 0 0; padding-bottom: 10px; border-bottom: 1px solid #E8DFD2; }
.customer-body .cb-chapter-title { font-size: 20px; color: #A0342C; }
.customer-body .cb-text { font-size: 15px; line-height: 1.9; color: #4a423a; }
.customer-body .cb-figure img { border-radius: 16px; }
.customer-footer { padding: 24px 28px 40px; text-align: center; }
.customer-cta { background: #A0342C; color: #fff; padding: 15px 36px; border-radius: 12px; font-size: 16px; font-weight: 500; display: inline-block; }
.customer-foot-note { font-size: 12px; color: #B8A98F; margin-top: 14px; }
@media (max-width: 560px) {
  .customer-page { max-width: 100%; }
  .customer-title { font-size: 21px; }
  .customer-body { padding: 6px 18px 32px; }
}

/* 客户视图：电脑讲解（桌面宽屏） / 手机预览（窄屏手机壳） */
.customer-overlay.customer-desktop { display: flex; justify-content: center; }
.customer-overlay.customer-desktop .customer-page { margin: 0; }
.customer-overlay.customer-mobile { display: flex; justify-content: center; align-items: flex-start; padding: 28px 0; }
.customer-overlay.customer-mobile .customer-page { width: 390px; max-width: 92vw; height: min(800px, 90vh); border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; position: relative; }
.customer-overlay.customer-mobile .customer-close { position: absolute; top: 12px; right: 12px; z-index: 30; margin: 0; float: none; background: rgba(0,0,0,.5); }
.customer-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 发送客户分享弹窗 */
.share-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.share-modal { background: #fff; border-radius: 16px; padding: 24px; max-width: 480px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.share-modal h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 18px; color: var(--text-1); }
.share-modal-hint { font-size: 13px; color: var(--text-2); margin: 0 0 16px; line-height: 1.6; }
.share-modal-row { display: flex; gap: 10px; margin-bottom: 16px; }
.share-modal-input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--text-1); background: var(--bg-card-2); }
.share-modal-foot { text-align: right; }

/* ============================================================
 * 全屏沉浸式讲解模式（PRESENTATION-FULLSCREEN-01）
 * 独立全视口页面 #/plans/:id/present，复用统一 Story Renderer
 * ============================================================ */
/* 讲解页改为自然上下滚动长页（Qwilr 基准），不再锁定 body 滚动 */
body.present-mode { overflow: auto; }
body.present-mode #main { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }

.present { min-height: 100vh; background: var(--bg, #FAF7F2); color: #3a322c; }
.present-stage { max-width: 960px; margin: 0 auto; padding-bottom: 120px; }

/* 封面（首屏 hero） */
.present-cover { background: linear-gradient(160deg, #A0342C 0%, #7e2620 100%); color: #FAF7F2; padding: 96px 48px 72px; text-align: center; }
.present-brand { font-size: 13px; letter-spacing: 5px; opacity: .85; margin-bottom: 16px; }
.present-title { font-family: var(--font-serif, "Songti SC", "STSong", serif); font-size: 40px; font-weight: 600; line-height: 1.35; margin: 0 0 14px; }
.present-greet { font-size: 16px; opacity: .94; }
.present-cover-meta { font-size: 13px; opacity: .7; margin-top: 16px; letter-spacing: 1px; }

/* 内容流 */
.present-stream { padding: 48px 48px 0; display: flex; flex-direction: column; gap: 44px; }
.present-stream .cb-stream { gap: 44px; }

/* 章节过渡 */
.present-stream .cb-chapter { margin: 40px 0 0; padding: 0 0 16px; border-bottom: 1px solid #E8DFD2; }
.present-stream .cb-chapter-title { font-family: var(--font-serif, "Songti SC", "STSong", serif); font-size: 30px; font-weight: 600; color: #A0342C; letter-spacing: 1px; }

/* 正文阅读宽度 */
.present-stream .cb-text { font-size: 16px; line-height: 2; color: #4a423a; max-width: 720px; }

/* 单图大图 */
.present-stream .cb-figure { margin: 0; }
.present-stream .cb-figure img { width: 100%; border-radius: 18px; display: block; }
.present-stream .cb-figure figcaption { font-size: 13px; color: #8a8077; margin-top: 8px; text-align: center; }

/* 图集宫格 */
.cb-gallery { display: grid; gap: 14px; }
.cb-gallery-2 { grid-template-columns: 1fr 1fr; }
.cb-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.cb-gallery-4 { grid-template-columns: repeat(2, 1fr); }
.cb-gallery-item { margin: 0; }
.cb-gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; aspect-ratio: 4/3; }
.cb-gallery-item figcaption { font-size: 12px; color: #8a8077; margin-top: 6px; text-align: center; }
.cb-gallery-item.cb-fail { background: #EFE6D8; border-radius: 14px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: #8a8077; font-size: 12px; }

/* 视频 */
.present-stream .cb-video { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid #E8DFD2; background: #F1EBE0; }
.present-stream .cb-video-cover { position: relative; aspect-ratio: 16/9; background: #2b2b2b; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.present-stream .cb-video-cover img { width: 100%; height: 100%; object-fit: cover; }
.present-stream .cb-video-ph { width: 100%; height: 100%; background: #3a322c; }
.present-stream .cb-video-play { width: 0; height: 0; border-left: 26px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; opacity: .92; position: absolute; }
.cb-video-err { color: #fff; font-size: 13px; position: absolute; }
.present-stream .cb-video-title { padding: 12px 18px; font-size: 14px; color: #3a322c; }

/* 文档 / PDF */
.present-stream .cb-pdf { border: 1px solid #E8DFD2; border-radius: 18px; padding: 18px; background: #fff; }
.present-stream .cb-pdf-head { margin-bottom: 12px; }
.present-stream .cb-pdf-canvas { display: block; width: 100%; height: auto; border-radius: 10px; }
.present-stream .cb-pdf-pages { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; font-size: 13px; color: #8a8077; }
.present-stream .cb-pdf-pages button { padding: 6px 16px; border: 1px solid #A0342C; background: #fff; color: #A0342C; border-radius: 8px; font-size: 13px; cursor: pointer; }
.present-stream .cb-pdf-pages button:disabled { opacity: .4; cursor: not-allowed; }
.present-stream .cb-pdf-loading { text-align: center; padding: 24px; color: #8a8077; font-size: 13px; }
.present-stream .cb-article { border: 1px solid #E8DFD2; border-radius: 18px; padding: 20px 22px; background: #fff; }
.present-stream .cb-article-type { font-size: 12px; color: #A0342C; margin-bottom: 6px; }
.present-stream .cb-article-title { font-size: 16px; color: #3a322c; font-weight: 600; }
.present-stream .cb-article-cover img { width: 100%; border-radius: 12px; display: block; margin-bottom: 12px; }
.present-stream .cb-article-note { font-size: 13px; color: #8a8077; margin-top: 8px; }
.present-stream .cb-article-actions { margin-top: 12px; }
.present-stream .cb-download { display: inline-block; padding: 9px 20px; border: 1px solid #A0342C; color: #A0342C; border-radius: 8px; font-size: 13px; text-decoration: none; }
.present-stream .cb-download:hover { background: #A0342C; color: #fff; }

/* 引用块 */
.present-stream .cb-quote { margin: 0; padding: 28px 32px; border-left: 4px solid #C9A96E; background: #FDF8F0; border-radius: 0 14px 14px 0; }
.present-stream .cb-quote p { font-family: var(--font-serif, "Songti SC", "STSong", serif); font-size: 20px; line-height: 1.8; color: #4a3a2a; margin: 0; }
.present-stream .cb-quote cite { display: block; font-style: normal; font-size: 13px; color: #8a8077; margin-top: 12px; }

/* 案例卡 */
.present-stream .cb-case { border: 1px solid #E8DFD2; border-radius: 16px; padding: 22px 24px; background: #fff; }
.present-stream .cb-case-badge { display: inline-block; font-size: 12px; color: #A0342C; border: 1px solid #A0342C; border-radius: 20px; padding: 3px 12px; margin-bottom: 12px; }
.present-stream .cb-case-text { font-size: 15px; line-height: 1.9; color: #4a423a; }

/* CTA 收束区 */
.present-stream .cb-cta-wrap { text-align: center; padding: 40px 24px; background: linear-gradient(160deg, #A0342C 0%, #7e2620 100%); border-radius: 20px; color: #FAF7F2; }
.present-stream .cb-cta-title { font-family: var(--font-serif, "Songti SC", "STSong", serif); font-size: 24px; margin: 0 0 12px; }
.present-stream .cb-cta-label { display: inline-block; background: #FAF7F2; color: #A0342C; padding: 14px 36px; border-radius: 12px; font-size: 16px; font-weight: 600; }

/* 降级卡片 */
.present-stream .cb-unknown { border: 1px dashed #D8CBB6; border-radius: 14px; padding: 18px; background: #FBF7EF; color: #8a8077; }
.present-stream .cb-unknown-label { font-size: 12px; display: block; margin-bottom: 6px; color: #B8A98F; }
.present-stream .cb-unknown p { font-size: 14px; margin: 0; }

/* 页脚 */
.present-footer { text-align: center; padding: 40px 24px 24px; }
.present-footer-note { font-size: 12px; color: #B8A98F; }

/* 控制栏 */
.present-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; align-items: center; gap: 16px; background: rgba(30,22,16,.92); color: #fff; padding: 10px 18px; border-radius: 40px; box-shadow: 0 12px 40px rgba(0,0,0,.4); backdrop-filter: blur(10px); transition: opacity .4s ease; }
.present-bar.present-bar-idle { opacity: .25; }
.present-bar-btn { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 24px; padding: 8px 16px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.present-bar-btn:hover { background: rgba(255,255,255,.15); }
.present-bar-nav { display: flex; align-items: center; gap: 10px; }
.present-bar-progress { font-size: 13px; color: #E8D9B8; min-width: 56px; text-align: center; }
.present-bar-actions { display: flex; gap: 8px; }

/* 手机壳 overlay（手机预览）里的讲解内容沿用同一渲染器，只缩窄 */
@media (max-width: 720px) {
  .present-cover { padding: 64px 24px 52px; }
  .present-title { font-size: 30px; }
  .present-stream { padding: 32px 20px 0; gap: 32px; }
  .cb-gallery-3 { grid-template-columns: 1fr 1fr; }
  .present-bar { bottom: 14px; gap: 10px; padding: 8px 12px; }
  .present-bar-btn { padding: 6px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .present-stream * { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
 * 文章导入面板（QWILR-UAT-BLOCKERS-01：替换 window.prompt）
 * ============================================================ */
.article-import-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.article-import-panel { background: #fff; border-radius: 16px; padding: 22px 24px; width: min(620px, 100%); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.ai-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ai-head h3 { font-family: var(--font-serif); font-size: 17px; color: var(--text-1); margin: 0; }
.ai-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: #f0ece4; color: #6b5f55; font-size: 18px; cursor: pointer; line-height: 1; }
.ai-tabs { display: flex; gap: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--line, #eee7dc); padding-bottom: 12px; }
.ai-tab { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line, #eee7dc); background: #fff; color: var(--text-2, #6b5f55); font-size: 13px; cursor: pointer; }
.ai-tab.active { background: var(--brand-primary, #A0342C); color: #fff; border-color: var(--brand-primary, #A0342C); }
.ai-body { overflow-y: auto; }
.ai-pane.hidden { display: none; }
.ai-paste-area { min-height: 160px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line, #eee7dc); border-radius: 10px; padding: 14px; font-size: 14px; line-height: 1.8; color: var(--text-1); outline: none; }
.ai-paste-area:empty::before { content: attr(data-placeholder); color: #b8a98f; }
.ai-paste-area img { max-width: 100%; height: auto; border-radius: 8px; }
.ai-url-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line, #eee7dc); border-radius: 10px; font-size: 14px; outline: none; }
.ai-url-hint { font-size: 12px; color: #b8a98f; margin-top: 8px; }
.ai-url-error { margin-top: 10px; padding: 10px 12px; background: #fdf0ed; border: 1px solid #f0c9bf; color: #b3402a; border-radius: 8px; font-size: 13px; }
.ai-url-error.hidden { display: none; }
.ai-preview { margin-top: 14px; border-top: 1px dashed var(--line, #eee7dc); padding-top: 14px; }
.ai-preview.hidden { display: none; }
.ai-preview-head { margin-bottom: 10px; }
.ai-preview-head h4 { font-size: 14px; color: var(--text-1); margin: 0 0 4px; }
.ai-preview-head span { font-size: 12px; color: #b8a98f; }
.ai-preview-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.ai-preview-item { border: 1px solid var(--line, #eee7dc); border-radius: 8px; padding: 10px 12px; }
.ai-preview-item p { font-size: 13px; color: var(--text-2, #4a423a); margin: 4px 0 0; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ai-preview-tag { display: inline-block; font-size: 11px; color: var(--brand-primary, #A0342C); }
.ai-preview-img { display: flex; align-items: center; gap: 12px; }
.ai-preview-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.ai-preview-skip { background: #faf6ef; color: #b8a98f; font-size: 12px; }
.ai-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.ai-foot .hidden { display: none; }

/* ===== 公众号排版（WECHAT-FORMAT-RESTORE-01）===== */
.wxf-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.wxf-theme-btn { padding: 8px 18px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg-card); cursor: pointer; font-size: 13px; color: var(--text-2); font-family: var(--font-sans); }
.wxf-theme-btn.active { background: var(--brand-primary-soft); border-color: var(--brand-primary); color: var(--brand-primary-strong); font-weight: 500; }
.wxf-preview { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 0; overflow: auto; max-height: 60vh; }
.wxf-copy-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--bg-card-2); }
.wxf-copy-label { font-size: 12px; color: var(--text-3); flex-shrink: 0; width: 52px; }
.wxf-copy-value { flex: 1; min-width: 0; font-size: 13px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wxf-copy-btn { flex-shrink: 0; background: var(--brand-primary); color: #fff; border: none; padding: 6px 16px; border-radius: 8px; cursor: pointer; font-size: 12px; font-family: var(--font-sans); }
.wxf-copy-btn:active { background: var(--brand-primary-strong); }
.wxf-asset-slot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card); }
.wxf-drawer-overlay { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.wxf-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.wxf-drawer { position: fixed; top: 0; right: 0; width: 360px; max-width: 88vw; height: 100%; background: var(--bg-page); z-index: 91; box-shadow: -8px 0 32px rgba(0,0,0,0.12); transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.32,0.72,0.22,1); display: flex; flex-direction: column; }
.wxf-drawer.open { transform: translateX(0); }
.wxf-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.wxf-drawer-title { font-family: var(--font-serif); font-size: 17px; font-weight: 500; color: var(--text-1); }
.wxf-drawer-close { background: none; border: none; font-size: 22px; color: var(--text-3); cursor: pointer; line-height: 1; padding: 4px 8px; }
.wxf-drawer-close:hover { color: var(--text-1); }
.wxf-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.wxf-drawer-sec { margin-bottom: 20px; }
.wxf-hist-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s; }
.wxf-hist-item:hover { border-color: var(--brand-primary); }
.wxf-hist-del { background: none; border: none; font-size: 18px; color: var(--text-3); cursor: pointer; padding: 2px 6px; line-height: 1; }
.wxf-hist-del:hover { color: var(--brand-coral); }

/* ===== 人才倍增·新商学（早课 + 语音打卡）===== */
.ts-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; margin-bottom: 18px;
  background: var(--bg-card-2); border: 1px solid var(--line); border-radius: var(--r-card);
}
.ts-intro p { margin: 0; font-size: 14px; color: var(--text-2); }
.ts-intro p strong { color: var(--text-1); font-weight: 600; }

.ts-week { margin-bottom: 22px; }
.ts-week-head {
  font-family: var(--font-serif); font-size: 15px; font-weight: 600;
  color: var(--text-1); margin-bottom: 10px; letter-spacing: 0.5px;
}
.ts-week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.ts-day {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-card); text-align: left; font-family: var(--font-sans);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
button.ts-day-open { cursor: pointer; }
.ts-day-open:hover { box-shadow: var(--sh-hover); transform: translateY(-2px); border-color: var(--brand-primary); }
.ts-day-no { font-size: 11px; color: var(--brand-primary-strong); font-weight: 600; letter-spacing: 0.5px; }
.ts-day-title { font-size: 13px; color: var(--text-1); font-weight: 600; line-height: 1.4; }
.ts-day-state { font-size: 11px; color: var(--text-3); }
.ts-day-done { border-color: var(--success); background: var(--success-soft); }
.ts-day-done .ts-day-state { color: var(--success); font-weight: 600; }
.ts-day-lock { background: var(--bg-card-2); opacity: 0.7; }
.ts-day-lock .ts-day-title, .ts-day-lock .ts-day-state { color: var(--text-3); }

/* 课程首页：只渲染已发布学习日的自适应网格 */
.ts-open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

/* 课程首页：后续内容未开放的轻量提示 */
.ts-pending {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3);
  padding: 16px 20px; margin-top: 4px;
  border: 1px dashed var(--line); border-radius: var(--r-card);
  background: var(--bg-card-2);
}
.ts-pending .icon { color: var(--brand-primary); }

.ts-summary {
  font-size: 14px; color: var(--text-2); line-height: 1.7;
  padding: 14px 18px; margin-bottom: 16px;
  background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--brand-primary);
  border-radius: 10px;
}

.ts-block { margin-bottom: 16px; }
.ts-video-el { width: 100%; border-radius: 12px; background: #000; display: block; }

.ts-script {
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  background: var(--bg-card); box-shadow: var(--sh-card);
}
.ts-script-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-card-2);
}
.ts-script-head > span:first-child { font-family: var(--font-serif); font-size: 14px; font-weight: 600; color: var(--text-1); }
.ts-script-ops { display: flex; gap: 6px; }
.ts-script-ops button {
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 5px 12px; font-size: 12px; color: var(--text-2); cursor: pointer; font-family: var(--font-sans);
  transition: all .15s;
}
.ts-script-ops button:hover { border-color: var(--brand-primary); color: var(--brand-primary-strong); }
.ts-script-body {
  padding: 18px 20px; font-size: 16px; line-height: 1.9; color: var(--text-1);
  white-space: pre-wrap; max-height: 420px; overflow-y: auto;
}
.ts-script-large { font-size: 22px; line-height: 2.1; }

.ts-richtext { padding: 16px 18px; font-size: 14px; color: var(--text-2); line-height: 1.8; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; white-space: pre-wrap; }

/* 任务抽屉（学习层级：计划 → 周 → 天 → 多任务 → 内容块） */
.ts-task { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--bg-card); }
.ts-task-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 54px; padding: 14px 18px; cursor: pointer;
  background: var(--bg-card-2); border: none; text-align: left; font-family: var(--font-sans);
  transition: background .15s;
}
.ts-task-head:hover { background: var(--brand-primary-soft); }
.ts-task-title { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--text-1); }
.ts-task-arrow { font-size: 16px; color: var(--text-3); transition: transform .2s ease; flex-shrink: 0; line-height: 1; }
.ts-task-head[aria-expanded="true"] .ts-task-arrow { transform: rotate(180deg); }
.ts-task-body { padding: 16px 18px; }
.ts-task-body > .ts-block:last-child { margin-bottom: 0; }

/* 音频 / 文档内容块 */
.ts-audio { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card-2); }
.ts-block-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; }
.ts-audio audio { width: 100%; display: block; }
.ts-block-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-top: 10px; }
.ts-doc { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); overflow: hidden; }
.ts-doc a {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px;
  color: var(--text-1); font-size: 14px; text-decoration: none; transition: background .15s;
}
.ts-doc a:hover { background: var(--bg-card-2); }
.ts-doc .ts-block-desc { padding: 0 16px 14px; margin-top: 0; }

/* 语音打卡与今日学习心得：两个视觉独立卡（不再放底部固定录音条） */
.ts-voice-card, .ts-reflection-card {
  padding: 18px 20px; margin-bottom: 16px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}
.ts-card-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--text-1);
  margin-bottom: 12px;
}
.ts-opt {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--text-3);
  background: var(--bg-card-2); border: 1px solid var(--line);
}
.ts-timer { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--brand-primary-strong); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.ts-timer.recording { color: var(--danger); }
.ts-rec-hint { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.ts-diag { font-size: 11px; color: var(--text-3); line-height: 1.5; margin-bottom: 10px; padding: 6px 9px; background: var(--bg-card-2); border: 1px solid var(--line); border-radius: 8px; word-break: break-all; }
.ts-rec-ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ts-rec-ops .btn-ghost { border-color: var(--line-strong); color: var(--danger); }
.ts-rec-ops .btn-ghost:hover { border-color: var(--danger); background: rgba(199, 81, 70, 0.08); color: var(--danger); }
.ts-rec-preview { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.ts-rec-preview audio { width: 100%; }
.ts-voice-card .ts-submit { width: 100%; max-width: 320px; margin-top: 4px; }

/* 任务头完成标记 */
.ts-task-check { display: inline-flex; align-items: center; color: var(--success); margin-right: 2px; vertical-align: middle; }
.ts-task-check svg { width: 15px; height: 15px; }

/* 任务内已完成卡片（嵌套在抽屉内，紧贴该任务） */
.ts-task-done { margin-bottom: 0; }
.ts-task-body .ts-voice-card, .ts-task-body .ts-reflection-card { margin-bottom: 12px; }

.ts-reflection-input {
  width: 100%; min-height: 96px; padding: 12px 14px; font-size: 14px; line-height: 1.7;
  font-family: var(--font-sans); color: var(--text-1);
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-card);
  resize: vertical; outline: none; transition: border-color .15s;
}
.ts-reflection-input:focus { border-color: var(--brand-primary); }

/* 已完成打卡 */
.ts-done {
  padding: 16px 18px; margin-bottom: 16px;
  background: var(--success-soft); border: 1px solid var(--success); border-radius: var(--r-card);
}
.ts-done-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--success); margin-bottom: 4px; }
.ts-done-meta { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.ts-done-reflection { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.ts-done-sub { font-size: 11px; color: var(--text-3); letter-spacing: 0.5px; margin-bottom: 2px; }
.ts-done-ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }

/* 轻量确认弹窗（覆盖层 + 卡片） */
.ts-confirm-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(38, 30, 24, 0.42);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.ts-confirm-card {
  width: 100%; max-width: 340px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  animation: tsConfirmIn .18s ease;
}
@keyframes tsConfirmIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ts-confirm-title { font-size: 16px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.ts-confirm-msg { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.ts-confirm-ops { display: flex; gap: 10px; justify-content: flex-end; }
.ts-confirm-ops .btn { padding: 9px 18px; }

/* 麦克风选择 + 实时音量条（录音链路 P0） */
.ts-mic-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ts-mic-label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.ts-mic-select {
  flex: 1; max-width: 240px; font-size: 13px; padding: 6px 8px; color: var(--text-1);
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-card);
  outline: none;
}
.ts-mic-select:focus { border-color: var(--brand-primary); }
.ts-meter {
  height: 6px; border-radius: 999px; background: var(--bg-card-2);
  border: 1px solid var(--line); overflow: hidden; margin-bottom: 10px;
}
.ts-meter-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #c9a96e, #a0342c);
  transition: width .05s linear;
}

/* 每任务内联录音播放器 */
.ts-inline-player { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.ts-inline-player audio { width: 100%; display: block; }
.ts-inline-status { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.ts-inline-status.ts-inline-err { color: var(--danger); }

@media (max-width: 900px) {
  .ts-week-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .ts-week-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 人才倍增 · 我的学习与成长（Gate 3） ===== */

/* 右上角头像菜单 */
.user-area { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.user-trigger:hover .user-name { color: var(--brand-primary-strong); }
.user-caret { font-size: 11px; color: var(--text-3); transition: transform .15s; }
.user-trigger[aria-expanded="true"] .user-caret { transform: rotate(180deg); }
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 190px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--sh-hover); padding: 6px; overflow: hidden;
}
.user-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; font-size: 13px; color: var(--text-1);
  text-decoration: none; border-radius: 8px;
}
.user-menu-item:hover { background: var(--brand-primary-soft); color: var(--brand-primary-strong); }
.user-menu-item .icon { color: var(--brand-primary); }

/* 人才倍增课程页 · 查看进度入口 */
.ts-intro { position: relative; }
.ts-myprog-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 13px; color: var(--brand-primary-strong);
  text-decoration: none; font-weight: 500;
}
.ts-myprog-link:hover { color: var(--brand-primary); }
.ts-myprog-link .icon { display: inline-flex; }

/* 我的学习与成长 · 标签切换 */
.ml-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line);
  margin: 4px 0 20px;
}
.ml-tab {
  border: none; background: none; padding: 10px 18px;
  font-size: 14px; color: var(--text-2); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: inherit;
}
.ml-tab:hover { color: var(--text-1); }
.ml-tab.active { color: var(--brand-primary-strong); font-weight: 600; border-bottom-color: var(--brand-primary); }

/* 学习进度总览卡 */
.ml-overview { margin-bottom: 22px; }
.ml-overview-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ml-overview-info { flex: 1; }
.ml-ov-eyebrow { font-size: 12px; color: var(--brand-primary-strong); letter-spacing: 0.5px; margin-bottom: 8px; }
.ml-ov-cohorts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); }
.ml-ov-cohorts b { color: var(--text-1); font-weight: 600; }
.ml-overview-ring { text-align: center; flex-shrink: 0; }
.ml-ring { display: flex; align-items: baseline; justify-content: center; }
.ml-ring-num { font-family: var(--font-serif); font-size: 40px; font-weight: 600; color: var(--brand-primary); line-height: 1; }
.ml-ring-total { font-size: 14px; color: var(--text-3); margin-left: 2px; }
.ml-ring-label { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.ml-overview-bar { height: 8px; background: var(--bg-card-2); border-radius: 4px; overflow: hidden; margin: 16px 0 12px; }
.ml-overview-bar-fill { height: 100%; background: var(--brand-primary); border-radius: 4px; transition: width .4s ease; }
.ml-overview-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.ml-overview-meta b { color: var(--text-1); font-weight: 600; }
.ml-continue { min-width: 160px; }

/* 第 1—30 天纵向列表 */
.ml-days { display: flex; flex-direction: column; gap: 10px; }
.ml-day { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-card); overflow: hidden; }
.ml-day-head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; background: transparent; border: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.ml-day-head:hover { background: var(--bg-card-2); }
.ml-day-no { font-family: var(--font-serif); font-size: 13px; font-weight: 600; color: var(--brand-primary-strong); flex-shrink: 0; min-width: 56px; }
.ml-day-main { flex: 1; min-width: 0; }
.ml-day-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.ml-day-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.ml-day-state { flex-shrink: 0; font-size: 12px; padding: 3px 10px; border-radius: var(--r-pill); }
.ml-day-arrow { font-size: 16px; color: var(--text-3); transition: transform .2s; flex-shrink: 0; line-height: 1; }
.ml-day-head[aria-expanded="true"] .ml-day-arrow { transform: rotate(180deg); }
.tag-done { background: var(--success-soft); color: var(--success); }
.tag-pending { background: var(--warn-soft); color: var(--warn); }
.tag-lock { background: var(--bg-card-2); color: var(--text-3); }
.ml-day-body { padding: 0 16px 16px 16px; border-top: 1px dashed var(--line); }
.ml-task { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ml-task:last-of-type { border-bottom: none; }
.ml-task-check { width: 18px; color: var(--success); display: inline-flex; flex-shrink: 0; }
.ml-task-title { flex: 1; font-size: 13px; color: var(--text-1); }
.ml-task-state { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.ml-task.done .ml-task-title { color: var(--text-2); }
.ml-cert-link {
  margin-top: 12px; background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--brand-primary); padding: 0; font-family: inherit;
}
.ml-cert-link:hover { color: var(--brand-primary-strong); text-decoration: underline; }
.ml-day-lock { opacity: 0.72; background: var(--bg-card-2); }
.ml-day-lock .ml-day-title, .ml-day-lock .ml-day-sub { color: var(--text-3); }

/* 我的证书区 */
.ml-cred-section { margin-bottom: 26px; }
.ml-cred-label {
  font-size: 12px; color: var(--text-2); font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 10px; padding-left: 8px; border-left: 3px solid var(--brand-primary);
}
.ml-completion { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.ml-completion-got:hover { border-color: var(--brand-primary); box-shadow: var(--sh-hover); }
.ml-comp-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-primary-soft); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ml-comp-body { flex: 1; min-width: 0; }
.ml-comp-title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--text-1); }
.ml-comp-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.ml-comp-no { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.ml-comp-progress { font-size: 13px; color: var(--text-1); margin-top: 8px; }
.ml-comp-progress b { color: var(--brand-primary); font-family: var(--font-serif); font-size: 16px; }
.ml-completion-lock { opacity: 0.85; background: var(--bg-card-2); cursor: default; }
.ml-daily-list { display: flex; flex-direction: column; gap: 8px; }
.ml-daily {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 16px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; font: inherit; text-align: left; color: inherit;
}
.ml-daily:hover { border-color: var(--brand-primary); box-shadow: var(--sh-card); }
.ml-daily-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-primary-soft); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ml-daily-title { flex: 1; font-size: 14px; color: var(--text-1); font-weight: 500; }
.ml-daily-sub { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.ml-empty { padding: 22px; text-align: center; font-size: 13px; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: var(--r-card); }

/* 证书详情页 */
.cert-wrap { max-width: 720px; margin: 0 auto; }
.cert-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 40px 36px; box-shadow: var(--sh-card);
}
.cert-top { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.cert-program { font-size: 13px; color: var(--brand-primary-strong); letter-spacing: 1px; margin-bottom: 10px; }
.cert-title { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--text-1); }
.cert-unit { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.cert-body { text-align: center; }
.cert-headline { font-family: var(--font-serif); font-size: 16px; line-height: 1.9; color: var(--text-1); margin: 0; }
.cert-tasks { margin-top: 22px; text-align: left; }
.cert-tasks-label { font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 10px; }
.cert-tasks ul { list-style: none; margin: 0; padding: 0; }
.cert-tasks li { position: relative; padding: 8px 0 8px 22px; font-size: 14px; color: var(--text-1); border-bottom: 1px dashed var(--line); }
.cert-tasks li:last-child { border-bottom: none; }
.cert-tasks li::before { content: ''; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary); }
.cert-meta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.cert-meta-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 13px; }
.cert-meta-k { color: var(--text-3); flex-shrink: 0; }
.cert-meta-v { color: var(--text-1); text-align: right; }
.cert-seal {
  position: absolute; top: 34px; right: 34px; width: 74px; height: 74px;
  border: 2px solid var(--brand-primary); color: var(--brand-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 15px; font-weight: 600;
  transform: rotate(-14deg); opacity: 0.85;
}
.cert-card.cert-revoked .cert-seal { border-color: var(--danger); color: var(--danger); }
.cert-card.cert-revoked { opacity: 0.9; }
.cert-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.cert-actions .btn { flex: 1; min-width: 180px; justify-content: center; }

/* 打印 / 保存 PDF */
@media print {
  body { background: #fff; }
  .topbar, .cea-subnav, .ml-tabs, .cert-actions, .champion-back { display: none !important; }
  .main { padding: 0; max-width: 100%; }
  .cert-wrap { max-width: 100%; }
  .cert-card { border: 1px solid #ccc; box-shadow: none; }
}

/* 手机端适配 */
@media (max-width: 640px) {
  .user-menu { right: auto; left: 0; }
  .ml-overview-top { flex-direction: column; }
  .ml-overview-ring { align-self: flex-start; flex-direction: row; align-items: center; gap: 10px; }
  .ml-ring { flex-direction: row; align-items: baseline; gap: 2px; }
  .ml-day-no { min-width: 44px; }
  .ml-day-sub { display: none; }
  .ml-daily-sub { display: none; }
  .cert-card { padding: 28px 20px; }
  .cert-seal { width: 58px; height: 58px; font-size: 13px; top: 20px; right: 20px; }
  .cert-title { font-size: 22px; }
}

/* ===== CEA-LEARNING-MVP-01：成长宝藏真实课程库 / 学习路径 / 指派入口 ===== */

/* 筛选 chips */
.cea-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 2px; }
.cea-chip {
  border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text-2);
  border-radius: var(--r-pill); padding: 6px 14px; font-size: 13px; cursor: pointer;
  transition: all .15s ease; font-family: var(--font-sans);
}
.cea-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.cea-chip.active {
  background: var(--brand-primary); border-color: var(--brand-primary);
  color: var(--text-onbrand); font-weight: 500;
}

/* 课程卡片网格 */
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-top: 14px;
}
.course-card {
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; padding: 0; box-shadow: var(--sh-card);
  transition: transform .15s ease, box-shadow .15s ease; font-family: var(--font-sans);
}
.course-card:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); border-color: var(--line-strong); }
.course-card-cover { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-card-2); }
.course-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card-cover-ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-primary); background: var(--brand-primary-soft);
}
/* CEA-LEARNING-MVP-02：课程分享按钮 + 课程详情封面 */
.course-card { position: relative; }
.course-card-share {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--brand-primary);
  box-shadow: 0 1px 4px rgba(60, 40, 20, .18); cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.course-card-share:hover { transform: scale(1.08); background: #fff; }
.course-head-ops { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.course-head-ops .lesson-back-btn { margin-bottom: 0; }
.course-share-btn { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-primary); }
.course-detail-cover { margin: 4px 0 18px; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); }
.course-detail-cover img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
/* CEA-LEARNING-MVP-02：人才倍增首页五入口 */
.ts-stages { margin: 18px 0 22px; }
.ts-stages-head { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; }
.ts-stage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ts-stage-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px 14px 12px; box-shadow: var(--sh-card);
  display: flex; flex-direction: column; gap: 8px;
}
.ts-stage-name { font-size: 14px; font-weight: 600; color: var(--brand-primary); }
.ts-stage-path {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  background: none; border: none; border-top: 1px solid var(--line); padding: 8px 0 2px;
  font-family: var(--font-sans);
}
.ts-stage-path-title { font-size: 13.5px; font-weight: 500; color: var(--text-1); line-height: 1.4; }
.ts-stage-path-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.ts-stage-path:hover .ts-stage-path-title { color: var(--brand-primary); }
.ts-stage-empty {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--line); padding: 8px 0 2px;
  font-size: 13px; color: var(--text-2);
}
.ts-stage-tag {
  font-size: 11px; color: var(--text-2); background: var(--bg-card-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.course-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-card-title { font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 1.4; }
.course-card-sub {
  font-size: 13px; color: var(--text-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--text-3); }
.course-card-meta svg { vertical-align: -2px; }
.course-card-tag {
  background: var(--brand-primary-soft); color: var(--brand-primary);
  border-radius: var(--r-pill); padding: 2px 9px; font-size: 11px; line-height: 1.6;
}

/* 课程详情页 */
.course-head-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.course-head-meta svg { vertical-align: -2px; }
.course-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.course-foot .btn[disabled] { opacity: .6; cursor: default; }

/* 音频 / 文档 / 缺失素材块 */
.course-audio {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg-card-2); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 12px 16px; margin: 14px 0;
}
.course-audio-name { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-1); font-weight: 500; }
.course-audio audio { flex: 1; min-width: 200px; height: 36px; }
.course-doc {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card);
  margin: 14px 0; overflow: hidden;
}
.course-doc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.course-doc-ico { color: var(--brand-primary); display: inline-flex; }
.course-doc-info { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.course-doc-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.course-doc-open { font-size: 13px; color: var(--brand-primary); text-decoration: none; white-space: nowrap; }
.course-doc-open:hover { text-decoration: underline; }
.course-doc-frame { width: 100%; height: 560px; border: 0; border-top: 1px solid var(--line); display: block; background: #fff; }
.course-missing {
  display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px;
  background: var(--bg-card-2); border: 1px dashed var(--line-strong); border-radius: var(--r-btn);
  padding: 12px 16px; margin: 14px 0;
}

/* 学习路径：课程行 */
.path-course-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.path-course-row {
  display: flex; align-items: flex-start; gap: 14px; text-align: left; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 18px; box-shadow: var(--sh-card); font-family: var(--font-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.path-course-row:hover { border-color: var(--line-strong); box-shadow: var(--sh-hover); }
.path-course-row.state-lock { opacity: .62; cursor: not-allowed; }
.path-course-no {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; margin-top: 2px;
}
.path-course-row.state-done .path-course-no { background: var(--success-soft); color: var(--success); }
.path-course-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.path-course-title { font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 1.4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.path-course-req { border-radius: var(--r-pill); padding: 1px 8px; font-size: 11px; font-weight: 500; line-height: 1.7; }
.path-course-req.req { background: var(--brand-primary-soft); color: var(--brand-primary); }
.path-course-req.opt { background: var(--bg-card-2); color: var(--text-3); border: 1px solid var(--line); }
.path-course-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.path-course-meta svg { vertical-align: -2px; }
.path-course-task { font-size: 13px; color: var(--text-2); background: var(--bg-card-2); border-radius: var(--r-btn); padding: 8px 12px; line-height: 1.5; }
.path-course-task svg { vertical-align: -2px; color: var(--brand-primary); }
.path-course-state { flex-shrink: 0; border-radius: var(--r-pill); padding: 3px 12px; font-size: 12px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.path-course-state.tag-done { background: var(--success-soft); color: var(--success); }
.path-course-state.tag-doing { background: var(--warn-soft); color: var(--warn); }
.path-course-state.tag-todo { background: var(--bg-card-2); color: var(--text-3); border: 1px solid var(--line); }
.path-course-state.tag-lock { background: var(--bg-card-2); color: var(--text-3); border: 1px solid var(--line); }

/* 我的学习：指派路径卡片 */
.ml-paths { margin-top: 20px; }
.ml-paths-title { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 12px; }
.ml-path-card {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--sh-card); font-family: var(--font-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ml-path-card:hover { border-color: var(--brand-primary); box-shadow: var(--sh-hover); }
.ml-path-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ml-path-stage { font-size: 12px; color: var(--brand-primary); font-weight: 500; }
.ml-path-name { font-size: 16px; font-weight: 600; color: var(--text-1); font-family: var(--font-serif); }
.ml-path-sub { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-path-prog { flex-shrink: 0; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.ml-path-prog b { font-size: 20px; color: var(--brand-primary); font-family: var(--font-serif); }

/* 手机端适配（CEA-LEARNING-MVP-01 新增部分） */
@media (max-width: 640px) {
  .course-grid { grid-template-columns: 1fr; }
  .cea-chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .cea-chip { flex-shrink: 0; }
  .path-course-row { padding: 14px; gap: 10px; }
  .path-course-state { padding: 2px 9px; font-size: 11px; }
  .course-doc-frame { height: 380px; }
  .course-audio { flex-direction: column; align-items: stretch; }
  .course-audio audio { width: 100%; min-width: 0; }
  .ml-path-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ml-path-prog { align-self: flex-end; }
}

