/* ============================================================
   志愿决策系统 · EdTech SaaS Design System
   主色深海蓝 · 辅助青绿/琥珀/风险红 · 浅灰蓝底色
   ============================================================ */
:root {
  --primary: #1e4e8c;
  --primary-hover: #183d6f;
  --primary-light: #e8eef6;
  --primary-ring: rgba(30, 78, 140, 0.14);

  --accent: #0d9488;
  --accent-light: #ccfbf1;
  --accent-hover: #0f766e;

  --amber: #d97706;
  --amber-light: #fef3c7;

  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-light: #fee2e2;

  --success: #059669;
  --success-light: #d1fae5;

  --bg: #eef3f8;
  --bg-subtle: #e4ecf4;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --border: #e5e7eb;
  --border-light: #e5e7eb;

  /* 按钮 */
  --btn-height: 44px;
  --btn-height-lg: 48px;
  --radius-btn: 10px;
  --radius-btn-lg: 12px;

  /* 状态色 */
  --status-pending-bg: #f3f4f6;
  --status-pending-text: #6b7280;
  --status-pending-border: #e5e7eb;
  --status-processing-bg: #e8eef6;
  --status-processing-text: #1e4e8c;
  --status-processing-border: #b8cce4;
  --status-completed-bg: #d1fae5;
  --status-completed-text: #065f46;
  --status-completed-border: #6ee7b7;
  --status-attention-bg: #fef3c7;
  --status-attention-text: #92400e;
  --status-attention-border: #fcd34d;
  --status-risk-bg: #fee2e2;
  --status-risk-text: #991b1b;
  --status-risk-border: #fca5a5;

  /* 圆角 */
  --radius-input: 10px;
  --radius-card: 16px;
  --radius-module: 20px;

  /* 阴影：仅轻阴影，卡片优先用边框 */
  --shadow: 0 8px 24px rgba(30, 78, 140, 0.08);

  /* 间距 */
  --space-module: 64px;
  --space-card: 24px;
  --space-form: 20px;
  --space-title: 16px;
  --space-btn: 12px;

  /* legacy aliases */
  --radius-sm: var(--radius-btn);
  --radius: var(--radius-card);
  --radius-lg: var(--radius-module);
  --shadow-sm: none;
  --shadow-md: var(--shadow);
  --shadow-lg: var(--shadow);
  --card: var(--surface);
  --primary-dark: var(--primary-hover);
  --warning: var(--amber);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-width: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-hover); text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--primary) 0%, #2a6cb0 100%);
  flex-shrink: 0;
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  border-top: none;
  border-left-color: transparent;
}

.logo-text {
  line-height: 1.25;
  white-space: nowrap;
}

.logo:hover { color: var(--primary-hover); }

.nav { display: flex; gap: 4px; align-items: center; }

.nav a, .nav button.link {
  padding: 7px 12px;
  border-radius: var(--radius-btn);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover, .nav a.active, .nav button.link:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.nav a.active { font-weight: 600; }

/* ── Global banner ── */
.global-status-banner {
  background: linear-gradient(90deg, #0f3d6e 0%, #1e5a9e 55%, #0d9488 100%);
  border-bottom: none;
  font-size: 13px;
  color: #fff;
}

.global-status-banner.hidden { display: none; }

.status-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
}

.status-banner-lead {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.25);
  flex-shrink: 0;
}

.status-banner-inner strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-banner-sub {
  opacity: 0.92;
  font-size: 12px;
}

/* ── Page layout ── */
.page { display: none; min-height: calc(100vh - 60px); }
.page.active { display: block; }

.page-layout {
  padding: var(--space-module) 0;
}

.page-header {
  margin-bottom: var(--space-card);
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-title);
}

.page-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}

.page-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-module);
  padding: 28px 32px;
}

.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-btn);
  margin-bottom: var(--space-card);
}

.page-head-row .page-title,
.page-head-row .section-title { margin-bottom: 0; }

.page-actions {
  display: flex;
  gap: var(--space-btn);
  flex-wrap: wrap;
  margin-top: var(--space-card);
}

.section { padding: var(--space-module) 0; }

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-title);
}

.section-lead {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 var(--space-card);
  max-width: 640px;
}

/* ── Hero ── */
.hero {
  padding: var(--space-module) 0 48px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-card);
  align-items: center;
}

.hero-copy { text-align: left; }

.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-illus {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--space-form);
  letter-spacing: 0.02em;
  border: 1px solid rgba(30, 78, 140, 0.12);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
  flex-shrink: 0;
}

.hero-copy h1,
.hero-title {
  font-size: 40px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-title);
  max-width: 520px;
  color: var(--text);
}

.hero-copy p,
.hero-desc {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 480px;
  margin: 0 0 var(--space-card);
  line-height: 1.75;
}

.hero-actions { display: flex; gap: var(--space-btn); flex-wrap: wrap; justify-content: flex-start; }

/* ── Icons & illustration ── */
.icon {
  display: block;
  flex-shrink: 0;
}

.icon-box-svg { display: block; }

.icon-lg { color: var(--primary); opacity: 0.45; }

.icon-lg-spin { animation: icon-spin 1.2s linear infinite; opacity: 0.55; }

@keyframes icon-spin {
  to { transform: rotate(360deg); }
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(30, 78, 140, 0.08);
}

.card-icon .icon-box-svg { width: 22px; height: 22px; }

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-card { padding-top: 20px; }

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-card); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-card); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.card:hover { border-color: #d1d5db; }

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-title);
  color: var(--text);
}

.card p, .card li { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* card-icon defined in Icons section above */

/* ── Stat cards ── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.stat-card-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-card-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}

/* ── Chart bar ── */
.chart-wrap { margin: 20px 0 8px; }

.chart-wrap-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.chart-bar {
  display: flex;
  height: 32px;
  border-radius: var(--radius-btn);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.chart-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  transition: width 0.4s ease;
  overflow: hidden;
  white-space: nowrap;
}

.chart-segment-rush { background: var(--amber); }
.chart-segment-stable { background: var(--primary); }
.chart-segment-safe { background: var(--accent); }

.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--btn-height);
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:active { transform: none; }

/* 主按钮：#1E4E8C 底 / 白字 / 44px */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.btn:focus-visible,
.nav a:focus-visible,
.home-process-step:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 次按钮：白底 / 蓝描边 / 蓝字 */
.btn-secondary,
.btn-outline {
  background: var(--surface);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* 大号主/次按钮：48px / 12px 圆角 */
.btn-lg {
  min-height: var(--btn-height-lg);
  padding: 0 24px;
  border-radius: var(--radius-btn-lg);
  font-size: 15px;
}

.btn-primary.btn-lg { border-radius: var(--radius-btn-lg); }
.btn-secondary.btn-lg,
.btn-outline.btn-lg { border-radius: var(--radius-btn-lg); }

/* 危险按钮：删除 / 不可提交 / 高风险确认 */
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
  color: #fff;
}

.btn-danger-outline {
  background: var(--surface);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-danger-outline:hover:not(:disabled) {
  background: var(--danger-light);
  color: var(--danger-hover);
  border-color: var(--danger);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-sm {
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.btn-block { width: 100%; margin-top: var(--space-btn); box-sizing: border-box; }
.btn-block:first-of-type { margin-top: 0; }

/* ── Forms ── */

/* 状态按钮 / 标签（只读展示同套色板） */
.status-btn,
.tag[class*="status-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  white-space: nowrap;
}

button.status-btn {
  min-height: 32px;
  cursor: default;
  font-family: inherit;
}

.status-pending,
.tag.status-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border-color: var(--status-pending-border);
}

.status-processing,
.tag.status-processing,
.tag.status-paid,
.tag.status-generating {
  background: var(--status-processing-bg);
  color: var(--status-processing-text);
  border-color: var(--status-processing-border);
}

.status-completed,
.tag.status-completed,
.tag.status-approved {
  background: var(--status-completed-bg);
  color: var(--status-completed-text);
  border-color: var(--status-completed-border);
}

.status-attention,
.tag.status-attention {
  background: var(--status-attention-bg);
  color: var(--status-attention-text);
  border-color: var(--status-attention-border);
}

.status-risk,
.tag.status-risk,
.tag.status-rejected {
  background: var(--status-risk-bg);
  color: var(--status-risk-text);
  border-color: var(--status-risk-border);
}

/* ── Forms ── */
.form-page { padding: var(--space-module) 0; }

.form-card { max-width: 720px; margin: 0 auto; }

.form-group { margin-bottom: var(--space-form); }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea,
.input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: #d1d5db; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-form); }

.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }

.code-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.code-input-row input {
  flex: 1;
  min-width: 0;
}

.code-input-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
  align-self: stretch;
  padding-left: 14px;
  padding-right: 14px;
}

.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-form); }

/* ── Province rule box ── */
.province-rule-box {
  padding: 16px 18px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: 13px;
}

.province-rule-box.hidden { display: none; }

.province-rule-box h4 { margin: 0 0 10px; font-size: 14px; color: var(--primary); font-weight: 600; }

.batch-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }

.batch-table th, .batch-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.batch-table th { color: var(--muted); font-weight: 600; background: var(--surface); }

.batch-table tr:last-child td { border-bottom: none; }

.rule-summary { margin: 0 0 8px; line-height: 1.55; color: var(--text-secondary); }

.rule-footnote { margin: 0; font-size: 12px; color: var(--muted); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg);
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

.data-table td { color: var(--text-secondary); }

/* ── Tags & badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.tag-rush { background: var(--amber-light); color: #92400e; }
.tag-stable { background: var(--primary-light); color: var(--primary); }
.tag-safe { background: var(--accent-light); color: #0f766e; }
.tag-risk { background: var(--danger-light); color: #991b1b; }
.tag-accent { background: var(--primary-light); color: var(--primary); }
.tag-accent-teal { background: var(--accent-light); color: var(--accent-hover); }

.btn-group { display: flex; gap: var(--space-btn); flex-wrap: wrap; margin-top: var(--space-title); }

.risk-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.risk-badge-low { background: var(--accent-light); color: #0f766e; }
.risk-badge-mid { background: var(--amber-light); color: #92400e; }
.risk-badge-high { background: var(--danger-light); color: #991b1b; }

.risk-low { color: var(--accent); }
.risk-mid { color: var(--amber); }
.risk-high { color: var(--danger); }

/* ── Product status ── */
.product-status {
  margin-bottom: var(--space-card);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.product-status h3 { margin-bottom: var(--space-title); font-size: 16px; }

.status-list { margin: 0 0 12px 1.2em; color: var(--text-secondary); font-size: 14px; }
.status-list li { margin-bottom: 6px; }

.status-warn {
  color: #92400e;
  background: var(--amber-light);
  border: 1px solid #fcd34d;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  margin: 8px 0;
}

.data-status-compact { margin-bottom: var(--space-title); }

/* ── Plan summary panel ── */
.plan-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.plan-info-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-card);
}

.plan-info-chip {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.plan-tier-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-tier-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  position: relative;
  overflow: hidden;
}

.plan-tier-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.plan-stat-rush::before { background: var(--amber, #f59e0b); }
.plan-stat-stable::before { background: var(--primary); }
.plan-stat-safe::before { background: var(--accent, #10b981); }

.plan-tier-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-tier-stat-target {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.plan-tier-stat-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-stat-rush .plan-tier-stat-value { color: #d97706; }
.plan-stat-stable .plan-tier-stat-value { color: var(--primary); }
.plan-stat-safe .plan-tier-stat-value { color: #059669; }

.plan-tier-stat-batches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.plan-stat-batch {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-subtle, #f1f5f9);
  border-radius: 4px;
  padding: 3px 8px;
}

.plan-stat-batch strong {
  color: var(--text);
  font-weight: 700;
}

.plan-stat-batch-empty {
  color: var(--muted);
  font-size: 12px;
}

.plan-tier-stat-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.plan-summary-chart.card {
  padding: 16px 20px;
}

.plan-summary-chart .chart-wrap {
  margin: 0;
}

.chart-wrap-compact .chart-bar {
  height: 28px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.chart-legend-rush { background: var(--amber, #f59e0b); }
.chart-legend-stable { background: var(--primary); }
.chart-legend-safe { background: var(--accent, #10b981); }

.plan-summary-block.card h3 {
  margin-bottom: 8px;
}

.plan-notes-list {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.plan-rule-card {
  background: #fafbff;
}

@media (max-width: 768px) {
  .plan-tier-stat-grid {
    grid-template-columns: 1fr;
  }
  .plan-tier-stat {
    min-height: auto;
  }
}

/* ── Lock overlay ── */
.lock-overlay.is-locked { position: relative; min-height: 120px; }

.lock-overlay.is-locked > .lock-overlay-cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(238, 243, 248, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  backdrop-filter: blur(2px);
}

.lock-overlay.is-locked .lock-overlay-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.lock-overlay.is-locked .lock-overlay-link:hover {
  background: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.lock-overlay.is-locked.is-locked-blur > table,
.lock-overlay.is-locked.is-locked-blur > :not(.lock-overlay-cta) {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.hidden { display: none !important; }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-module);
  padding: 32px;
  width: 420px;
  max-width: 90vw;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.modal h3 { font-size: 18px; margin-bottom: var(--space-title); color: var(--text); }

.modal-title { font-size: 18px; font-weight: 700; margin-bottom: var(--space-title); color: var(--text); }

.modal-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: var(--space-form);
  line-height: 1.6;
}

.pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.pay-status { text-align: center; margin-bottom: 12px; }

/* ── Report ── */
.report-section {
  margin-bottom: var(--space-card);
  padding-bottom: var(--space-card);
  border-bottom: 1px solid var(--border);
}

.report-section:last-child { border-bottom: none; }

.report-section h3 { margin-bottom: var(--space-title); font-size: 16px; color: var(--primary); }

.report-section p { white-space: pre-wrap; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

.report-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-card);
  color: var(--text);
  letter-spacing: -0.02em;
}

.report-card { padding: 28px 32px; border-radius: var(--radius-card); }

/* ── Risk items ── */
.risk-item-card { margin-bottom: var(--space-form); }
.risk-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.risk-item-head h3 { margin: 6px 0 0; font-size: 15px; }
.risk-dim-tag { margin-bottom: 4px; font-size: 11px; }
.risk-item-reason { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.risk-item-detail {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg, #f9fafb);
  border-left: 3px solid var(--border, #e5e7eb);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary, #4b5563);
}
.risk-item-suggestion { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: var(--primary, #2563eb); }
.risk-affected { margin: 0 0 8px; }
.risk-checklist {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12px;
}
.risk-checklist strong { display: block; margin-bottom: 6px; color: #92400e; }
.risk-checklist ul { margin: 0; padding-left: 18px; color: #78350f; }
.risk-checklist li { margin-bottom: 4px; }
.risk-plan-entries {
  margin: 12px 0 14px;
}
.risk-plan-entries strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
.risk-plan-table {
  width: 100%;
  font-size: 12px;
}
.risk-plan-table th,
.risk-plan-table td {
  padding: 6px 8px;
  vertical-align: top;
}
.risk-plan-link {
  font-weight: 600;
  color: var(--primary);
}
.risk-fix-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.risk-fix-summary {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.risk-fix-manual,
.risk-fix-locked {
  margin: 10px 0 0;
  font-size: 13px;
}
.risk-scan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.risk-optimized-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 13px;
}
.plan-upgrade-panel {
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.plan-upgrade-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.plan-upgrade-title {
  margin: 8px 0 4px;
  font-size: 17px;
}
.plan-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.plan-upgrade-tier {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}
.plan-upgrade-tier.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(30, 78, 140, 0.12);
}
.plan-upgrade-tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.plan-upgrade-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.plan-upgrade-tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.plan-upgrade-tier li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  line-height: 1.45;
}
.plan-upgrade-tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan-upgrade-current {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
@media (max-width: 900px) {
  .plan-upgrade-grid { grid-template-columns: 1fr; }
}

.plan-risk-panel {
  margin-bottom: 20px;
  padding: 18px 20px;
}
.plan-risk-panel-optimized {
  border-left: 4px solid var(--accent, #10b981);
}
.plan-risk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.plan-risk-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-risk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-risk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.plan-risk-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.plan-row-risk {
  background: rgba(245, 158, 11, 0.08);
}
.plan-row-risk td:first-child {
  font-weight: 700;
  color: #b45309;
}
.optimize-result-card {
  margin: 16px 0 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent, #10b981);
}
.optimize-result-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.optimize-change-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.risk-dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.risk-dimension-card { padding: 16px; }
.risk-dimension-card.home-cap-rush { border-top: 3px solid #f59e0b; }
.risk-dimension-card.home-cap-stable { border-top: 3px solid #2563eb; }
.risk-dimension-card.home-cap-adjust { border-top: 3px solid #10b981; }
.risk-dimension-card.home-cap-report { border-top: 3px solid #06b6d4; }
.risk-dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.risk-dimension-head h3 { margin: 0; font-size: 15px; }
.risk-dimension-summary { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.45; }
.risk-dimension-detail { margin: 0 0 10px; font-size: 12px; line-height: 1.5; }
.risk-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.risk-item-card.risk-low { border-left: 3px solid var(--accent, #10b981); }
.risk-item-card.risk-mid { border-left: 3px solid var(--amber, #f59e0b); }
.risk-item-card.risk-high { border-left: 3px solid var(--danger, #ef4444); }

@media (max-width: 960px) {
  .risk-dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-overview-grid { grid-template-columns: 1fr; }
}

.reason-cell { max-width: 200px; font-size: 12px; }

.input-sm {
  width: auto;
  min-width: 160px;
  padding: 8px 12px;
  border-radius: var(--radius-input);
}

#auth-area { display: flex; align-items: center; gap: var(--space-btn); margin-left: var(--space-btn); }

.disclaimer {
  background: var(--amber-light);
  border: 1px solid #fcd34d;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  font-size: 13px;
  color: #92400e;
  margin-bottom: var(--space-card);
  line-height: 1.6;
}

/* ── Pricing ── */
.pricing-card { position: relative; }

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0;
  letter-spacing: -0.02em;
}

.redeem-card { margin-top: var(--space-card); max-width: 480px; }

.redeem-row { display: flex; gap: var(--space-btn); margin-top: 14px; }

/* ── Package / entitlement UX ── */
.pricing-page-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-card);
}

.pricing-pay-note { margin-bottom: 0; }

.pricing-features {
  margin: 12px 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.entitlement-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-card);
  font-size: 14px;
}

.entitlement-links {
  font-size: 13px;
  color: var(--primary);
}

.entitlement-links a { margin-left: 4px; }

.package-upsell {
  max-width: 520px;
  margin: 0 auto;
}

.package-feature-list {
  margin: 12px 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.package-feature-list .is-active {
  color: var(--text);
  font-weight: 600;
}

.orders-quick-actions {
  margin: 12px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .pricing-grid-inner {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ── */
.footer {
  padding: 36px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.footer .disclaimer { text-align: left; margin-bottom: 16px; }

.site-footer {
  padding: 20px 0 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer.hidden { display: none !important; }

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.site-footer-beian a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer-beian a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

#home-icp-beian a {
  color: inherit;
  text-decoration: none;
}

#home-icp-beian a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
  font-size: 15px;
}

.empty-illus {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-title);
}

.empty-text { color: var(--muted); font-size: 15px; line-height: 1.6; }
.empty-text a { font-weight: 600; }

/* ── Mentors ── */
.consult-cta {
  margin-bottom: var(--space-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.consult-cta-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.consult-cta h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
}

.consult-cta-lead {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.consult-cta-disclaimer {
  margin: 0;
}

.mentor-real-tag {
  margin-left: 8px;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 600;
}

.wechat-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.wechat-id {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin: 4px 0;
}

.mentor-section-title { margin: var(--space-card) 0 var(--space-title); font-size: 17px; font-weight: 600; }

.mentor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.mentor-card {
  padding: 22px 22px 20px;
}

.mentor-card-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.mentor-consult-actions {
  margin: 0 0 14px;
  text-align: center;
}

.mentor-consult-actions .btn {
  width: 100%;
}

.home-mentor-card .mentor-consult-btn {
  margin-top: 12px;
}

.consult-list {
  display: grid;
  gap: 12px;
}

.consult-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color 0.15s;
}

.consult-list-item:hover {
  border-color: var(--primary);
}

.consult-chat-layout {
  max-width: 820px;
}

.consult-chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: 0;
  overflow: hidden;
}

.consult-msg-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 52vh;
  background: var(--bg);
}

.consult-msg {
  display: flex;
  margin-bottom: 12px;
}

.consult-msg.is-mine {
  justify-content: flex-end;
}

.consult-msg-bubble {
  max-width: min(78%, 420px);
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
}

.consult-msg.is-mine .consult-msg-bubble {
  background: var(--primary-light);
  border-color: rgba(30, 78, 140, 0.18);
}

.consult-msg-bubble time {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.consult-msg-image {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 6px;
}

.consult-compose {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.consult-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font: inherit;
}

.consult-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.consult-compose-locked {
  padding: 14px 16px;
  margin: 0;
  border-top: 1px solid var(--border);
}

.mentor-desk-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}

.mentor-wallet-balance {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0 4px;
}

.withdraw-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.wallet-ledger {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.wallet-ledger li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 900px) {
  .mentor-desk-grid {
    grid-template-columns: 1fr;
  }
}

.mentor-card-hero .mentor-avatar-wrap.mentor-avatar-xl {
  width: 88px;
  height: 88px;
  padding: 4px;
  background: linear-gradient(145deg, rgba(30, 78, 140, 0.08), rgba(14, 165, 233, 0.1));
  border: none;
  box-shadow: none;
}

.mentor-card-hero .mentor-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1a6ba8);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  border-radius: 50%;
}

.mentor-card-hero .mentor-avatar-img {
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.mentor-card-intro {
  width: 100%;
}

.mentor-card-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mentor-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 6px;
}

.mentor-card-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.mentor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1a6ba8);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.mentor-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.mentor-avatar-wrap {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  line-height: 0;
}

.mentor-avatar-wrap .mentor-avatar,
.mentor-avatar-wrap .mentor-avatar-fallback {
  display: flex;
}

.mentor-avatar-fallback[hidden] {
  display: none !important;
}

.mentor-avatar-img {
  object-fit: cover;
  display: block;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

img.mentor-avatar,
img.mentor-avatar-lg,
img.mentor-summary-avatar,
img.home-mentor-card-avatar {
  background: var(--surface-muted, #f1f5f9);
}

.mentor-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.mentor-avatar-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.mentor-title { font-size: 14px; font-weight: 500; color: var(--muted); }

.mentor-bio { margin-bottom: 10px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

.mentor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.mentor-featured { border-color: var(--primary); }

/* ── 导师入驻页 ── */
#page-mentor-apply .page-layout { max-width: 880px; }

.mentor-apply-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-module);
  overflow: hidden;
}

.mentor-apply-section {
  padding: 26px 32px;
  border-bottom: 1px solid var(--border);
}

.mentor-apply-section:last-of-type { border-bottom: none; }

.mentor-apply-section-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-btn);
  margin-bottom: var(--space-form);
}

.mentor-apply-section-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-muted, #5b8bb5);
  margin-top: 3px;
}

.mentor-apply-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.mentor-apply-section-desc { margin: 4px 0 0; }

.mentor-apply-section-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-form);
}

.mentor-field { min-width: 0; }
.mentor-field-full { grid-column: 1 / -1; }
.mentor-field-half { grid-column: span 1; }

.mentor-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mentor-field-label .req { color: var(--danger); font-weight: 500; }

.mentor-field-hint { margin: -2px 0 8px; }

.mentor-input,
.mentor-apply-shell select.mentor-input,
.mentor-apply-shell textarea.mentor-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mentor-input:focus,
.mentor-apply-shell select.mentor-input:focus,
.mentor-apply-shell textarea.mentor-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.mentor-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.mentor-consent-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.mentor-consent-toggle input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.mentor-consent-toggle:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.mentor-consent-required { margin-top: 4px; }

.id-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-form);
  grid-column: 1 / -1;
}

.mentor-file-field { min-width: 0; }

.mentor-file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 140px;
  padding: 16px;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-card);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  text-align: center;
}

.mentor-file-drop:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.mentor-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.mentor-file-drop-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mentor-file-preview {
  margin-top: 8px;
  max-height: 100px;
  max-width: 100%;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  object-fit: contain;
}

.mentor-apply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-form);
  padding: var(--space-form) 32px 28px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mentor-apply-footer-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 360px;
}

.mentor-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mentor-apply-login {
  text-align: center;
  padding: 40px 32px;
  max-width: 480px;
  margin: 0 auto;
}

.mentor-apply-login-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.mentor-apply-login-icon .icon-box-svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.mentor-apply-login-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.mentor-apply-login .mentor-apply-actions {
  justify-content: center;
  margin-top: 20px;
}

.mentor-apply-login-note { margin-top: 16px; }

.apply-status-card {
  padding: 18px 20px;
  border-radius: var(--radius-card);
  margin-bottom: var(--space-form);
  border: 1px solid var(--border);
}

.apply-status-card.pending { background: var(--status-pending-bg); border-color: var(--status-pending-border); }
.apply-status-card.approved { background: var(--status-completed-bg); border-color: var(--status-completed-border); }
.apply-status-card.rejected { background: var(--status-risk-bg); border-color: var(--status-risk-border); }

.apply-status-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.apply-status-card.pending .apply-status-badge {
  background: var(--surface);
  color: var(--status-pending-text);
}

.apply-status-card.approved .apply-status-badge {
  background: var(--surface);
  color: var(--status-completed-text);
}

.apply-status-card.rejected .apply-status-badge {
  background: var(--surface);
  color: var(--status-risk-text);
}

.apply-status-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.mentor-summary-card { padding: 20px 22px; margin-bottom: 4px; }

.mentor-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mentor-summary-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1a6ba8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
}

.mentor-summary-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.mentor-summary-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.mentor-summary-dl {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.mentor-summary-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  font-size: 13px;
}

.mentor-summary-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.mentor-summary-row dd {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mentor-summary-card .mentor-bio {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

#page-mentor-apply .pref-chip-grid-wrap .pref-chip-label,
#page-mentor-apply .pref-chip-grid-provinces .pref-chip-label {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

#page-mentor-apply .pref-chip {
  height: auto;
  min-height: 40px;
  padding: 8px 14px;
}

#page-mentor-apply .pref-chip-grid-provinces {
  gap: 8px;
}

@media (max-width: 720px) {
  .mentor-apply-section { padding: 20px 18px; }
  .mentor-apply-section-body { grid-template-columns: 1fr; }
  .mentor-field-half { grid-column: 1 / -1; }
  .id-upload-row { grid-template-columns: 1fr; }
  .mentor-apply-footer { flex-direction: column; align-items: stretch; }
  .mentor-summary-row { grid-template-columns: 1fr; gap: 2px; }
}

.college-cell { min-width: 168px; }
.college-cell-name { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.college-cell-intro { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.college-cell-summary { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.college-cell-td { min-width: 180px; vertical-align: top; }
.college-detail-toggle {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.college-detail-toggle:hover { color: var(--primary-dark, #1d4ed8); }
.college-detail-toggle:disabled { opacity: 0.6; cursor: wait; }
.college-detail-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.55;
}
.college-detail-summary { margin: 0 0 8px; color: var(--text); }
.college-detail-level { margin: 0 0 6px; }
.college-detail-majors { margin: 0 0 6px; color: var(--text-secondary); }
.strong-major-list { margin: 6px 0 0; padding-left: 0; list-style: none; }
.strong-major-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.strong-major-name { color: var(--text); font-weight: 500; }
.major-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.major-cell-name { font-size: 13px; color: var(--text); }
.major-cell-td { min-width: 120px; vertical-align: top; }
.major-rank-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #047857;
  white-space: nowrap;
}
.major-rank-tag.major-rank-est {
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 500;
}
.major-rank-footnote { margin: 6px 0 0; font-size: 11px; }
.college-detail-features { margin: 6px 0 0; padding-left: 18px; color: var(--text-secondary); }
.college-detail-features li { margin-bottom: 4px; }
.college-level-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tag-level { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.tag-level-985 { background: #1e3a5f; color: #fff; }
.tag-level-211 { background: var(--primary); color: #fff; }
.tag-level-double { background: #0d9488; color: #fff; }
.tag-level-tier { background: var(--primary-light); color: var(--primary); }
.tag-level-zhuan { background: #fef3c7; color: #92400e; }
.tag-level-private { background: #f3f4f6; color: #6b7280; }
.tag-level-default { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.tag-level-top { background: #dbeafe; color: #1e40af; }

.batch-tier-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 2px;
}
.batch-tier-hint-inline {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}
.batch-tier-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 108px;
}
.batch-tier-td { vertical-align: top; }
.batch-tier-hint {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
  max-width: 140px;
}

.colleges-catalog-filters { margin-bottom: 16px; padding: 16px 18px; }
.colleges-catalog-stats { margin-bottom: 16px; padding: 14px 18px; }
.colleges-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.colleges-filter-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.colleges-catalog-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .colleges-filter-grid { grid-template-columns: 1fr 1fr; }
}

/* legacy mentor form aliases */
.mentor-apply-form .form-row { margin-bottom: var(--space-form); }

.admin-app-card { margin-bottom: 16px; }
.admin-app-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-app-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.admin-app-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
}
.admin-app-head-copy h3 { margin: 0 0 6px; font-size: 18px; }
.admin-app-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.admin-review-note { color: var(--amber); }

.admin-workflow { margin-bottom: 20px; }
.admin-workflow-title { margin: 0 0 12px; font-size: 16px; }
.admin-workflow-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.admin-workflow-steps li + li { margin-top: 6px; }

.admin-login-card { max-width: 420px; margin: 0 auto 24px; }
.admin-login-title { margin: 0 0 8px; font-size: 20px; }
.admin-notice { margin-bottom: 16px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.admin-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.admin-stat-card strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.admin-stat-card span { font-size: 12px; color: var(--muted); }
.admin-stat-pending strong { color: #d97706; }
.admin-stat-approved strong { color: #059669; }
.admin-stat-rejected strong { color: #dc2626; }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 18px;
}
.nav-admin.hidden { display: none; }

.admin-id-images { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

.admin-id-images img {
  max-width: 200px;
  max-height: 140px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
}

.admin-status-tabs { display: flex; flex-wrap: wrap; gap: var(--space-btn); margin: var(--space-title) 0; }

.mentor-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-btn);
  margin-bottom: var(--space-title);
  padding: 12px 16px;
}

.consent-row { margin: 12px 0; font-size: 13px; color: var(--muted); }
.mentor-summary { margin-top: 16px; }
.mentor-detail { margin: 4px 0; }

/* ── Checkbox grids ── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 12px;
  margin-top: 6px;
}

.checkbox-grid-provinces { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.checkbox-grid-subjects { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

/* ── Major suggestions ── */
.major-pref-group { margin-bottom: 14px; }

.major-pref-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 10px 0 4px;
  letter-spacing: 0.04em;
}

.major-suggest-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-btn);
  margin-top: 10px;
}

.major-suggestions-result { margin-top: var(--space-title); }

.major-suggestions-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.major-suggestions-meta { margin-bottom: var(--space-btn); }

.major-suggestions-grid { display: grid; gap: var(--space-btn); }

.major-suggest-card { padding: 16px 18px; }

.major-suggest-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.major-suggest-card-head h4 { margin: 0; font-size: 16px; color: var(--primary); }

.major-suggest-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--primary), #1a6ba8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.major-suggest-match { margin: 0 0 8px; font-size: 13px; color: var(--accent); }

.major-suggest-desc { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

.major-suggest-career { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

.major-suggest-salary {
  margin: 10px 0;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
}

.major-suggest-salary p { margin: 0 0 5px; font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.major-suggest-salary p:last-child { margin-bottom: 0; }
.major-salary-note { margin-top: 4px !important; font-size: 11px !important; color: var(--muted) !important; }

/* ── Risk cards ── */
.risk-card {
  border-left: 4px solid var(--border);
  margin-bottom: 14px;
}

.risk-card-level-high { border-left-color: var(--danger); }
.risk-card-level-mid { border-left-color: var(--amber); }
.risk-card-level-low { border-left-color: var(--accent); }

.risk-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: var(--space-card);
  right: var(--space-card);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  z-index: 300;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.print-toolbar { display: flex; gap: var(--space-btn); margin-bottom: var(--space-form); }

.share-box {
  background: var(--accent-light);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-card);
  margin-top: var(--space-title);
  word-break: break-all;
}

.share-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.share-summary-table th,
.share-summary-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.share-summary-table th {
  width: 120px;
  color: var(--muted);
  font-weight: 500;
}

.teacher-banner {
  background: var(--primary-light);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-card);
  font-size: 13px;
  color: var(--primary);
  margin-bottom: var(--space-form);
}

.teacher-home .card { margin-bottom: var(--space-form); }

/* ── Profile page ── */
#page-profile { min-height: calc(100vh - 60px); }

.profile-page {
  max-width: 880px;
  padding: var(--space-module) 24px;
}

.profile-page-header { margin-bottom: var(--space-card); text-align: center; }

.profile-page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-title);
}

.profile-page-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

.profile-step-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-btn);
  margin-bottom: var(--space-card);
  flex-wrap: wrap;
}

.profile-step-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.profile-step-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.profile-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-step-item:hover .profile-step-num {
  background: var(--primary-light);
  color: var(--primary);
}

.profile-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-module);
  overflow: hidden;
}

.profile-rule-banner {
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
}

.profile-form { padding: 4px 0 0; }

.profile-section {
  padding: 26px 32px;
  border-bottom: 1px solid var(--border);
}

.profile-section:last-of-type { border-bottom: none; }

.profile-section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-btn);
  margin-bottom: var(--space-form);
}

.profile-section-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-muted, #5b8bb5);
}

.profile-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.profile-section-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-form);
}

.profile-field-full { grid-column: 1 / -1; }
.profile-field-half { grid-column: span 1; }

#page-profile .form-group { margin-bottom: 0; }

#page-profile .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

#page-profile .form-group label .req { color: var(--danger); font-weight: 500; }

.profile-input,
#page-profile .form-group input,
#page-profile .form-group select,
#page-profile .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.profile-input:focus,
#page-profile .form-group input:focus,
#page-profile .form-group select:focus,
#page-profile .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.profile-toggle-group {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.profile-toggle-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-btn);
}

.profile-toggle-row { display: flex; flex-wrap: wrap; gap: var(--space-btn); }

.profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.profile-toggle input { width: 16px; height: 16px; accent-color: var(--primary); }

.profile-toggle:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.profile-major-block,
.profile-industry-block,
.profile-subject-block {
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.profile-readiness-card { margin-bottom: 16px; padding: 16px 18px; }
.profile-readiness-hint { margin: 0 0 12px; }

.profile-major-group {
  padding: 0;
  margin-bottom: 22px;
  border: none;
}

.profile-major-group:last-child { margin-bottom: 0; }

/* ── Profile pill multiselect (专业偏好 / 再选科目) ── */
.pref-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pref-chip-grid-subjects { gap: 8px; }

.pref-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
  user-select: none;
}

.pref-chip:hover:not(:has(input:checked)):not(:has(input:disabled)) {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

.pref-chip:active:not(:has(input:disabled)) { transform: scale(0.97); }

.pref-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.pref-chip:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.pref-chip-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.pref-chip:has(input:checked) {
  background: var(--primary);
  box-shadow:
    0 2px 6px rgba(30, 78, 140, 0.22),
    inset 0 0 0 1px var(--primary);
}

.pref-chip:has(input:checked) .pref-chip-label {
  color: #fff;
  font-weight: 600;
}

.pref-chip:has(input:checked) .pref-chip-label::after {
  content: "✓";
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
}

.pref-chip:has(input:disabled):not(:has(input:checked)) {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.profile-major-group .major-pref-group-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.profile-major-group .major-pref-group-title::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(30, 78, 140, 0.45) 100%);
}

#page-profile .major-suggest-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

#page-profile .major-suggestions-result {
  margin-top: var(--space-form);
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

#page-profile .major-suggest-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.profile-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-form);
  padding: var(--space-form) 32px 28px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.profile-form-footer-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 360px;
}

.profile-save-btn {
  min-width: 140px;
}

.subject-select-count { margin-top: 6px; }

.form-group-major-prefs .profile-major-groups {
  margin-top: 4px;
}

/* ============================================================
   首页 · Chief Design Pass
   ============================================================ */
#page-home { background: var(--bg); }

.home-hero {
  position: relative;
  padding: 56px 0 72px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(30, 78, 140, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  pointer-events: none;
}

.home-hero .container { position: relative; z-index: 1; }

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 48px;
  align-items: center;
}

.hero-title {
  max-width: 520px;
}

.hero-desc {
  max-width: 480px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-btn);
  margin-bottom: var(--space-card);
  padding: var(--space-form) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: var(--space-btn);
  border-right: 1px solid var(--border);
  animation: home-fade-up 0.55s ease backwards;
}

.hero-stat:last-child {
  border-right: none;
  padding-right: 0;
}

.hero-stat:nth-child(1) { animation-delay: 0.06s; }
.hero-stat:nth-child(2) { animation-delay: 0.12s; }
.hero-stat:nth-child(3) { animation-delay: 0.18s; }
.hero-stat:nth-child(4) { animation-delay: 0.24s; }

.hero-stat strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

@keyframes home-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stat span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.hero-footnote {
  margin-top: var(--space-title);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-footnote a { font-weight: 600; }

.hero-highlights {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-highlights li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.hero-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hero-trust-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.hero-badge-strong {
  color: var(--primary);
  font-weight: 700;
}

.hero-consult-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 14px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-input);
}

.hero-consult-note-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f766e;
  background: var(--accent-light);
  padding: 2px 7px;
  border-radius: 4px;
}

.hero-consult-note-text {
  color: var(--muted);
}

.hero-consult-note-link {
  font-weight: 600;
  color: var(--accent-hover);
}

.hero-consult-note-link:hover {
  color: var(--accent);
}

.hero-consult-note-sep {
  color: var(--border);
  user-select: none;
}

.hero-consult-note-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.hero-consult-note-btn:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.hero-stat-unit {
  font-size: 14px;
  font-weight: 600;
  margin-left: 2px;
  opacity: 0.85;
}

/* Data credibility band */
.home-data-band {
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.home-data-band.hidden { display: none; }
.home-data-band-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}
.home-data-band-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.home-data-band-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.home-data-band-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}
.home-data-band-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home-data-metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.home-data-metric strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.home-data-metric span {
  font-size: 12px;
  color: var(--muted);
}

/* Trust band */
.home-trust-band {
  background: linear-gradient(90deg, var(--primary) 0%, #1e5a9e 50%, #0d9488 100%);
  color: #fff;
  padding: 18px 0;
}
.home-trust-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}
.home-trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-trust-item strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.home-trust-item span {
  font-size: 12px;
  opacity: 0.88;
}

.section-head-center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-head-center .section-lead { margin-left: auto; margin-right: auto; }

/* Pain points */
.home-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-pain-card {
  padding: 22px 24px;
  border-top: 3px solid var(--primary);
}
.home-pain-icon {
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.home-pain-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.home-pain-problem {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}
.home-pain-solution {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  color: var(--text-secondary);
}
.home-pain-solution strong { color: var(--primary); }

.home-feature-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.home-feature-link:hover { text-decoration: underline; }

/* Compare */
.home-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.home-compare-col {
  padding: 28px 32px;
}
.home-compare-col h3 {
  font-size: 16px;
  margin: 0 0 16px;
}
.home-compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-compare-col li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.home-compare-old li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}
.home-compare-new li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.home-compare-old { background: #fef2f2; }
.home-compare-new { background: #ecfdf5; }
.home-compare-new h3 { color: #047857; }
.home-compare-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* Pricing teaser */
.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.home-pricing-card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.home-pricing-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}
.home-pricing-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  margin-bottom: 10px;
}
.home-pricing-tag-hot {
  background: var(--primary);
  color: #fff;
}
.home-pricing-card h3 { margin: 0 0 8px; font-size: 18px; }
.home-pricing-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.home-pricing-features {
  flex: 1;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.home-pricing-features li {
  font-size: 13px;
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light, #f3f4f6);
}
.home-pricing-features li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 700;
}
.home-pricing-card .home-pricing-foot {
  margin-top: auto;
  padding-top: 8px;
}
.home-pricing-foot .btn-block {
  margin-top: 0;
}
.home-pricing-card .btn {
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.25;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Scenario carousel */
.home-scenario-carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 48px 36px;
}
.home-scenario-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}
.home-scenario-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}
.home-scenario-slide {
  flex: 0 0 100%;
  padding: 28px 32px 24px;
  margin: 0;
  border-left: 4px solid var(--primary);
  box-sizing: border-box;
}
.home-scenario-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
}
.home-scenario-quote {
  margin: 0 0 18px;
  padding: 0;
  border: none;
}
.home-scenario-headline {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  font-style: normal;
}
.home-scenario-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary, #475569);
  font-style: normal;
}
.home-scenario-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.home-scenario-steps li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.home-scenario-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.55;
}
.home-scenario-footer {
  font-size: 12px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.home-scenario-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 1;
}
.home-scenario-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}
.home-scenario-prev { left: 0; }
.home-scenario-next { right: 0; }
.home-scenario-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.home-scenario-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.home-scenario-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

.home-cta-points {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
}
.home-cta-points li {
  position: relative;
  padding-left: 18px;
}
.home-cta-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.hero-visual-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-wrap .hero-illus {
  max-width: 100%;
  filter: drop-shadow(0 8px 24px rgba(30, 78, 140, 0.06));
}

.hero-float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  min-width: 152px;
  box-shadow: var(--shadow);
}

.hero-float-card-a {
  left: -12px;
  bottom: 28px;
  animation: home-float-a 5s ease-in-out infinite;
}

.hero-float-card-b {
  right: -8px;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  animation: home-float-b 6s ease-in-out infinite 0.4s;
}

@keyframes home-float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes home-float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-float-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-float-bars {
  display: flex;
  height: 8px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-subtle);
  gap: 3px;
  margin-bottom: 8px;
}

.hero-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.hero-bar-rush { width: 28%; background: var(--amber); }
.hero-bar-stable { width: 42%; background: var(--primary); }
.hero-bar-safe { width: 30%; background: var(--accent); }

.hero-float-legend {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.hero-float-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-rush { background: var(--amber); }
.legend-stable { background: var(--primary); }
.legend-safe { background: var(--accent); }

/* Home sections */
.home-section {
  padding: var(--space-module) 0;
}

.home-section-muted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-section-compact {
  padding: var(--space-card) 0 var(--space-module);
}

.section-head {
  margin-bottom: var(--space-card);
  max-width: 640px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-card);
  max-width: none;
  margin-bottom: var(--space-card);
}

.section-head-row .section-lead { margin-bottom: 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  opacity: 0.5;
}

#page-home .section-title {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

#page-home .section-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.home-feature-grid .home-feature-card,
.home-cap-grid .home-cap-card,
.home-matrix-grid .home-matrix-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  min-height: 200px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.home-feature-card:hover,
.home-cap-card:hover,
.home-matrix-card:hover {
  border-color: #c5d0dc;
  background: #fafbfc;
  transform: translateY(-1px);
}

.home-feature-card:hover .card-icon,
.home-cap-card:hover .card-icon,
.home-matrix-card:hover .card-icon {
  transform: scale(1.04);
}

.home-feature-card .card-icon,
.home-cap-card .card-icon,
.home-process-step .card-icon,
.home-matrix-card .card-icon {
  transition: transform 0.22s ease;
  margin-bottom: var(--space-title);
}

.home-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-matrix-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.home-matrix-card-head .card-icon {
  margin-bottom: 0;
}

.home-matrix-card h3 {
  margin: 16px 0 8px;
  font-size: 17px;
}

.home-matrix-card p {
  flex: 1;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.home-matrix-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  letter-spacing: 0.02em;
}

.home-feature-card h3,
.home-cap-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.home-feature-card p,
.home-cap-card p {
  margin-top: auto;
  font-size: 14px;
}

.home-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-card);
}

.home-cap-card {
  position: relative;
  overflow: hidden;
}

.home-cap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.home-cap-rush::before { background: var(--amber); }
.home-cap-stable::before { background: var(--primary); }
.home-cap-adjust::before { background: var(--accent); }
.home-cap-report::before { background: linear-gradient(90deg, var(--primary), var(--accent)); }

.home-cap-rush .card-icon { color: #92400e; background: var(--amber-light); }
.home-cap-stable .card-icon { color: var(--primary); background: var(--primary-light); }
.home-cap-adjust .card-icon { color: var(--accent-hover); background: var(--accent-light); }
.home-cap-report .card-icon { color: var(--primary); background: var(--primary-light); }

/* Process timeline */
.home-process-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .home-process-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-card);
  position: relative;
}

.home-process-step {
  position: relative;
  padding: 28px 24px 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.home-process-step:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.home-process-step::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-process-step:hover::after {
  opacity: 0.7;
  transform: translateX(0);
}

.home-process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  right: calc(-1 * var(--space-card) / 2 - 5px);
  width: calc(var(--space-card) - 2px);
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, rgba(30, 78, 140, 0.25) 100%);
  z-index: 0;
  pointer-events: none;
}

.home-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 6px;
  margin-bottom: var(--space-title);
  transition: background 0.2s ease, color 0.2s ease;
}

.home-process-step h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.home-process-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.home-process-step .card-icon {
  margin-bottom: var(--space-title);
}

.home-process-step:hover .home-process-num {
  background: var(--primary);
  color: #fff;
}

/* CTA band */
.home-cta {
  padding: 0 0 var(--space-module);
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-card);
  padding: 40px 44px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 60%);
  border-color: var(--border);
  position: relative;
  overflow: hidden;
}

.home-cta-inner::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -40px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 78, 140, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.home-cta-copy { position: relative; z-index: 1; }
.home-cta-actions { position: relative; z-index: 1; }

.home-cta-copy h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.home-cta-copy p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  max-width: 420px;
  line-height: 1.65;
}

.home-cta-actions {
  display: flex;
  gap: var(--space-btn);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* 深色强转化 CTA（须在 .home-cta-inner 基础样式之后，避免被覆盖） */
.home-cta-inner.home-cta-inner-strong {
  background: linear-gradient(135deg, #1a3352 0%, #1e4e8c 45%, #0f766e 100%);
  border: none;
  color: #fff;
  box-shadow: 0 16px 40px rgba(30, 78, 140, 0.22);
}
.home-cta-inner.home-cta-inner-strong::before {
  display: none;
}
.home-cta-inner.home-cta-inner-strong .home-cta-copy h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.35;
}
.home-cta-inner.home-cta-inner-strong .home-cta-copy p {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}
.home-cta-inner.home-cta-inner-strong .home-cta-points,
.home-cta-inner.home-cta-inner-strong .home-cta-points li {
  color: rgba(255, 255, 255, 0.95);
}
.home-cta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 12px;
}
.home-cta-inner.home-cta-inner-strong .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.home-cta-inner.home-cta-inner-strong .btn-primary:hover {
  background: #f0f7ff;
  border-color: #f0f7ff;
  color: var(--primary-hover);
}
.home-cta-inner.home-cta-inner-strong .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.home-cta-inner.home-cta-inner-strong .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}
.btn-ghost,
.home-cta-link {
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: auto;
  padding: 8px 4px;
}
.home-info-list-compact { margin-top: 12px; }
.home-info-panel-marketing { border: 1px solid var(--border); }

/* Info panel */
.home-info-panel {
  padding: 28px 32px;
  border-radius: var(--radius-module);
}

.home-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-card);
  margin-bottom: var(--space-form);
}

.home-info-title {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--text);
}

.home-info-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: var(--space-form);
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.home-info-metric {
  text-align: center;
  padding: var(--space-form) var(--space-btn);
  border-right: 1px solid var(--border);
}

.home-info-metric:last-child { border-right: none; }

.home-info-metric strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.home-info-metric span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.home-info-list {
  margin: 0 0 var(--space-title);
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.home-info-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--border);
}

.home-info-list li:last-child { border-bottom: none; padding-bottom: 0; }

.home-info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  box-sizing: border-box;
}

.home-info-foot {
  margin: 0;
  padding-top: var(--space-title);
  border-top: 1px solid var(--border);
}

/* SEO / FAQ */
.home-seo-section {
  padding-bottom: 48px;
}

.home-seo-intro {
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary, var(--muted));
}

.home-seo-intro p { margin: 0; }

.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-faq-item {
  padding: 0;
  overflow: hidden;
}

.home-faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-faq-item summary::-webkit-details-marker { display: none; }

.home-faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.home-faq-item[open] summary::after { content: "−"; }

.home-faq-answer {
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
}

.home-faq-answer p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* Footer */
.home-footer {
  padding: var(--space-card) 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.home-footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-card);
  margin-bottom: var(--space-card);
}

.home-footer-brand .logo {
  display: inline-block;
  font-size: 18px;
  margin-bottom: 8px;
}

.home-footer-tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 360px;
  line-height: 1.6;
}

.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-card);
}

.home-footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.home-footer-links a:hover { color: var(--primary); }

.home-footer-disclaimer {
  margin-bottom: var(--space-title);
  text-align: left;
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-secondary);
}

.home-footer-brand .logo {
  margin-bottom: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stat,
  .hero-float-card-a,
  .hero-float-card-b,
  .hero-float-card-c,
  .hero-float-card-d { animation: none; }
  .home-process-step:hover,
  .home-feature-card:hover,
  .home-cap-card:hover,
  .home-mentor-card:hover { transform: none; }
  .hero-float-card-c { transform: translateX(-50%); }
}

.home-footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ── Home mentor band ── */
.home-mentor-band {
  padding: var(--space-module) 0;
  background: linear-gradient(180deg, var(--surface) 0%, #f4f8fc 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-mentor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 40px;
  align-items: start;
  margin-bottom: var(--space-card);
}

.home-mentor-copy .section-lead {
  max-width: 520px;
  margin-bottom: var(--space-form);
}

.home-mentor-stats {
  display: flex;
  gap: var(--space-card);
  margin-bottom: var(--space-form);
  padding: var(--space-form) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-mentor-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-mentor-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.home-mentor-stat span {
  font-size: 12px;
  color: var(--muted);
}

.home-mentor-benefits {
  list-style: none;
  margin: 0 0 var(--space-card);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-mentor-benefits li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.home-mentor-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(30, 78, 140, 0.08);
}

.home-mentor-benefit-icon .icon-box-svg {
  width: 20px;
  height: 20px;
}

.home-mentor-benefits li strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.home-mentor-benefits li span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.home-mentor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-btn);
  margin-bottom: var(--space-title);
}

.home-mentor-note {
  margin: 0;
  max-width: 520px;
  line-height: 1.6;
}

.home-mentor-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-btn);
}

.home-mentor-cards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.home-mentor-cards-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.home-mentor-cards-head a {
  font-size: 13px;
  font-weight: 600;
}

.home-mentor-card {
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.home-mentor-card.is-featured {
  border-color: var(--primary);
}

.home-mentor-card:hover {
  border-color: #c5d0dc;
  transform: translateY(-1px);
}

.home-mentor-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.home-mentor-card-id {
  flex: 1;
  min-width: 0;
  text-align: left;
  margin-bottom: 0;
}

.home-mentor-card-id h3 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.home-mentor-role {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.home-mentor-card-head .mentor-avatar-wrap.home-mentor-card-avatar {
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, var(--primary), #1a6ba8);
}

.home-mentor-card-head .mentor-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1a6ba8);
}

.home-mentor-card-avatar,
.home-mentor-card-avatar.mentor-avatar-wrap {
  width: 56px;
  height: 56px;
}

.home-mentor-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 8px;
}

.home-mentor-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.home-mentor-scope {
  margin: 0 0 10px;
  font-size: 12px;
}

.home-mentor-wechat {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-light);
  border-color: rgba(30, 78, 140, 0.15);
}

.home-mentor-wechat .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.home-mentor-wxid {
  font-size: 18px;
  margin: 2px 0 4px;
}

.home-mentor-flow {
  padding: 28px 32px;
}

.home-mentor-flow-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 var(--space-form);
  color: var(--text);
}

.home-mentor-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-card);
}

.home-mentor-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 6px;
  margin-bottom: 10px;
}

.home-mentor-flow-step strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.home-mentor-flow-step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Hero mentor float */
.hero-float-card-c {
  left: 50%;
  transform: translateX(-50%);
  top: -8px;
  min-width: 168px;
  animation: home-float-c 5.5s ease-in-out infinite 0.2s;
}

@keyframes home-float-c {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

.hero-mentor-mini,
.hero-xiaoyan-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-mentor-avatar,
.hero-xiaoyan-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-mentor-avatar {
  border-radius: var(--radius-btn);
  background: linear-gradient(145deg, var(--primary), #2a6cb0);
  color: #fff;
}

.hero-xiaoyan-avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
  color: #fff;
}

.hero-xiaoyan-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.hero-xiaoyan-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.hero-float-card-d {
  right: 12px;
  bottom: 8px;
  min-width: 168px;
  text-decoration: none;
  color: inherit;
  animation: home-float-d 5.8s ease-in-out infinite 0.35s;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-float-card-d:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(30, 78, 140, 0.1));
}

@keyframes home-float-d {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-float-label-hot {
  color: var(--accent-hover);
}

.hero-consult-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-consult-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  border-radius: var(--radius-btn);
  background: var(--accent-light);
  color: #0f766e;
}

.hero-consult-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.hero-consult-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.hero-mentor-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.hero-mentor-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .profile-section-body { grid-template-columns: 1fr; }
  .profile-field-half { grid-column: 1; }
  .profile-section { padding: 22px 20px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row-2col { grid-template-columns: 1fr; }
  .home-hero .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .home-data-band-inner { grid-template-columns: 1fr; gap: 20px; }
  .home-data-band-metrics { grid-template-columns: repeat(2, 1fr); }
  .home-trust-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .home-pain-grid { grid-template-columns: 1fr; }
  .home-compare { grid-template-columns: 1fr; }
  .home-compare-mid { padding: 12px; border: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .home-pricing-grid { grid-template-columns: 1fr; }
  .home-pricing-featured { transform: none; }
  .home-scenario-carousel { padding: 0 40px 32px; }
  .home-scenario-slide { padding: 22px 20px 20px; }
  .home-scenario-headline { font-size: 16px; }
  .hero-title { font-size: 32px; }
  .home-cap-grid { grid-template-columns: 1fr; }
  .home-matrix-grid { grid-template-columns: 1fr; }
  .home-process { grid-template-columns: 1fr; }
  .home-process-step:not(:last-child)::after { display: none; }
  .home-cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .home-cta-copy p { max-width: none; }
  .home-cta-actions { justify-content: center; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .hero-float-card { display: none; }
  .home-mentor-layout { grid-template-columns: 1fr; }
  .home-mentor-flow-steps { grid-template-columns: 1fr 1fr; }
  .home-mentor-stats { flex-wrap: wrap; }
}

@media print {
  .header, .footer, .nav, .teacher-toggle, .btn, .no-print, .modal-backdrop, .ai-ip-root { display: none !important; }
  body { background: #fff; min-width: auto; }
  .page { display: block !important; }
  .card { box-shadow: none; border: 1px solid var(--border); break-inside: avoid; }
}

/* ── 悬浮 IP 助手「小研」 ── */
.ai-ip-root {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 900;
  font-family: var(--font, system-ui, sans-serif);
}
.ai-ip-root.hidden { display: none; }

.ai-ip-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 8px 20px rgba(37, 99, 235, 0.35));
  transition: transform 0.2s ease;
}
.ai-ip-fab:hover { transform: translateY(-2px) scale(1.02); }
.ai-ip-fab-open { opacity: 0; pointer-events: none; transform: scale(0.8); }

.ai-ip-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2563eb 0%, #0d9488 100%);
  color: #fff;
  box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.15);
}
.ai-ip-avatar-fab { width: 56px; height: 56px; animation: ai-ip-float 3s ease-in-out infinite; }
.ai-ip-avatar-lg { width: 44px; height: 44px; flex-shrink: 0; }
.ai-ip-face {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.ai-ip-avatar-lg .ai-ip-face { font-size: 18px; }
.ai-ip-fab-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #2563eb);
  background: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@keyframes ai-ip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ai-ip-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.ai-ip-panel.hidden { display: none; }

.ai-ip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.ai-ip-header-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ai-ip-title { display: block; font-size: 15px; color: var(--text, #111); }
.ai-ip-subtitle { display: block; font-size: 11px; color: var(--muted, #6b7280); margin-top: 2px; }
.ai-ip-icon-btn {
  border: none;
  background: var(--bg, #f3f4f6);
  color: var(--text-secondary, #4b5563);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.ai-ip-icon-btn:hover { background: #e5e7eb; }

.ai-ip-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
}
.ai-ip-welcome { text-align: center; padding: 24px 12px; color: var(--text-secondary, #4b5563); }
.ai-ip-welcome h4 { margin: 12px 0 8px; color: var(--text, #111); font-size: 16px; }
.ai-ip-welcome p { margin: 0 0 8px; font-size: 13px; line-height: 1.55; }
.ai-ip-welcome .ai-ip-avatar { margin: 0 auto; }

.ai-ip-msg { display: flex; }
.ai-ip-msg-user { justify-content: flex-end; }
.ai-ip-msg-assistant, .ai-ip-msg-error { justify-content: flex-start; }
.ai-ip-msg-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}
.ai-ip-msg-user .ai-ip-msg-bubble {
  background: var(--primary, #2563eb);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-ip-msg-assistant .ai-ip-msg-bubble {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  color: var(--text, #111);
  border-bottom-left-radius: 4px;
}
.ai-ip-msg-error .ai-ip-msg-bubble {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.ai-ip-msg-bubble p { margin: 0 0 8px; }
.ai-ip-msg-bubble p:last-child { margin-bottom: 0; }
.ai-md-h { font-size: 13px; font-weight: 700; margin: 8px 0 4px; color: var(--text, #111); }
.ai-md-ul { margin: 4px 0 8px; padding-left: 18px; }
.ai-md-ul li { margin-bottom: 4px; }

.ai-ip-typing { display: flex; gap: 6px; align-items: center; padding: 14px 16px !important; flex-wrap: wrap; }
.ai-ip-research-status {
  font-size: 12px;
  color: var(--muted, #6b7280);
  flex: 1 1 100%;
  margin-bottom: 2px;
}
.ai-ip-sources {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border, #e5e7eb);
  font-size: 11px;
  color: var(--muted, #6b7280);
}
.ai-ip-sources summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary, #4b5563);
  user-select: none;
}
.ai-ip-sources ul {
  margin: 6px 0 0;
  padding-left: 16px;
}
.ai-ip-sources a {
  color: var(--primary, #2563eb);
  text-decoration: none;
  word-break: break-all;
}
.ai-ip-sources a:hover { text-decoration: underline; }
.ai-ip-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
  animation: ai-ip-bounce 1.2s infinite ease-in-out;
}
.ai-ip-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-ip-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-ip-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.ai-ip-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
  background: #fafafa;
  border-top: 1px solid var(--border, #e5e7eb);
}
.ai-ip-quick.hidden { display: none; }
.ai-ip-quick-btn {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--text-secondary, #4b5563);
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
}
.ai-ip-quick-btn:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }

.ai-ip-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border, #e5e7eb);
  background: #fff;
}
.ai-ip-deep-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #4b5563);
  margin-bottom: 8px;
  cursor: pointer;
}
.ai-ip-deep-toggle input { accent-color: var(--primary, #2563eb); }
.ai-ip-deep-toggle .form-hint { font-weight: 400; font-size: 11px; }
.ai-ip-input-row { display: flex; gap: 8px; align-items: flex-end; }
.ai-ip-input-row textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.45;
  min-height: 44px;
}
.ai-ip-input-row textarea:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ai-ip-send { flex-shrink: 0; padding: 10px 16px; font-size: 13px; }
.ai-ip-disclaimer { margin: 8px 0 0; font-size: 10px; line-height: 1.4; }

/* ── 志愿方案 · 左右分栏 + 嵌入式小研 ── */
body.on-plan-page #ai-ip-root { display: none !important; }

.plan-page-layout { max-width: 1400px; }

.plan-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.plan-workspace { min-width: 0; }

.plan-assistant-pane {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 88px);
  min-height: 520px;
}

.plan-assistant-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 88px);
  max-height: 820px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-module, 16px);
  box-shadow: var(--shadow, 0 8px 30px rgba(15, 23, 42, 0.06));
  overflow: hidden;
}

.plan-assistant-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.plan-assistant-title {
  display: block;
  font-size: 15px;
  color: var(--text, #111);
}

.plan-assistant-sub {
  display: block;
  font-size: 11px;
  color: var(--muted, #6b7280);
  margin-top: 2px;
  line-height: 1.4;
}

.plan-assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  background: #fafafa;
}

.plan-assistant-welcome {
  padding: 20px 8px;
  text-align: center;
  color: var(--text-secondary, #4b5563);
  font-size: 13px;
  line-height: 1.6;
}

.plan-assistant-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
  background: #fafafa;
  border-top: 1px solid var(--border, #e5e7eb);
}

.plan-assistant-quick.hidden { display: none; }

.plan-assistant-footer {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border, #e5e7eb);
  background: #fff;
}

.plan-assistant-apply {
  margin-top: 10px;
  font-size: 14px;
}

.plan-assistant-apply:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plan-assistant-apply-ready:not(:disabled) {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.plan-assistant-status {
  min-height: 18px;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #6b7280);
}

.plan-assistant-status-loading { color: var(--primary, #2563eb); }
.plan-assistant-status-ready { color: #059669; }
.plan-assistant-status-success { color: #059669; font-weight: 600; }
.plan-assistant-status-error { color: #dc2626; }

.plan-workspace-updating {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.2s;
}

.plan-assistant-hint {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .plan-split-layout {
    grid-template-columns: 1fr;
  }
  .plan-assistant-pane {
    position: static;
    max-height: none;
    min-height: 0;
  }
  .plan-assistant-card {
    height: min(70vh, 640px);
    max-height: none;
  }
}
