/* ============================================================
   杂事铺 全局样式
   设计：浅色主题、卡片式布局、左侧导航
   ============================================================ */

:root {
  /* 中性 */
  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --border: #e7e9f2;
  --bg-2: var(--surface-2);            /* 修复：此前被引用但未定义 */

  /* 文字层级（text-3 加深至 #6b7280，对比度 ≥ 4.5:1 满足 WCAG AA） */
  --text: #22283a;
  --text-1: #22283a;
  --text-2: #5c6472;
  --text-3: #6b7280;
  --text-light: var(--text-3);         /* 修复：此前被引用但未定义 */

  /* 品牌 */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef0fe;

  /* 语义状态 */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #3b82f6;

  /* 三大模块语义色（统一引用，便于暗色/换肤只重写下层变量） */
  --c-job: #3b82f6;        --c-job-soft: #e8f1fe;     --c-job-ink: #1d4ed8;
  --c-research: #8b5cf6;   --c-research-soft: #f1ebfe; --c-research-ink: #6d28d9;
  --c-life: #10b981;       --c-life-soft: #e6f7ef;    --c-life-ink: #047857;

  /* 形状 / 阴影 / 字体 / 动效 */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(31, 41, 70, 0.05), 0 4px 16px rgba(31, 41, 70, 0.05);
  --shadow-sm: 0 1px 2px rgba(31, 41, 70, 0.05);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --t-fast: 150ms ease;
  --t-norm: 300ms ease;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

a { color: var(--primary); text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }

/* ============ 可访问性：全局焦点环（键盘用户可见） ============ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: inherit;
}
.nav-item:focus-visible,
.btn:focus-visible,
.task-check:focus-visible,
.shop-check:focus-visible,
.mod-chip:focus-visible,
.pw-toggle:focus-visible { outline-offset: 2px; }

/* 仅供屏幕阅读器 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ 侧栏分组 ============ */
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.nav-group-label {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-3); padding: 2px 12px 4px; text-transform: none;
}
@media (max-width: 768px) { .nav-group-label { display: none; } }

/* ============ 侧边栏 ============ */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}
.brand-logo .logo-svg { width: 100%; height: 100%; display: block; }
.logo-bg { fill: var(--primary); }

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 15px; }
.brand-text span { font-size: 11px; color: var(--text-3); }

.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; min-height: 0; }
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.nav::-webkit-scrollbar-track { background: transparent; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 14px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.nav-item .ico {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
/* （节点系列库不再出现在侧边栏，入口保留在招聘求职页顶部按钮，.nav-sub 样式已移除） */

/* 收藏夹对非 VIP 上锁：侧边栏菜单始终可见，但标记锁且不可进入 */
.nav-item.locked { color: var(--text-3); }
.nav-item.locked:hover { background: var(--surface-2); color: var(--text-3); }
.nav-item.locked .ico { opacity: .55; }
.lock-badge {
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
  opacity: .9;
}
/* 移动端隐藏了 .nav-item span，这里强制让锁标仍可见 */
.nav-item.locked .lock-badge { display: inline-flex; }

/* 收藏夹锁定页 */
.locked-page { display: flex; justify-content: center; padding-top: 8vh; }
.locked-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 44px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.locked-icon { font-size: 54px; line-height: 1; margin-bottom: 14px; }
.locked-title { font-size: 22px; margin: 0 0 12px; color: var(--text); }
.locked-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; margin: 0 0 24px; }
.locked-desc strong { color: var(--text); }
.locked-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.locked-actions .btn { min-width: 130px; }
.locked-tip { font-size: 12px; color: var(--text-3); margin: 20px 0 0; }

.sidebar-foot {
  padding: 14px 20px;
  font-size: 11px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

/* ============ 主内容区 ============ */
.main { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; }
.content { max-width: 1100px; margin: 0 auto; padding: 28px 32px 60px; }
/* 日历页：内容左对齐贴紧左侧导航，放宽最大宽度，消除左侧大片留白；日历主体（1fr）随之加宽 */
.page-calendar .content { max-width: 1600px; margin-left: 0; margin-right: auto; padding-left: 24px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 22px; font-weight: 600; }
.page-head .sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--primary); background: var(--primary-soft); }
.btn.disabled, .btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ============ 卡片 ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-title .tip { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* ============ 统计卡片（仪表盘） ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card .num { font-size: 26px; font-weight: 600; line-height: 1.2; }
.stat-card .label { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.stat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--sc, var(--primary));
}
.stat-warn { --sc: var(--warning); }
.stat-danger { --sc: var(--danger); }
.stat-ok { --sc: var(--success); }
.stat-blue { --sc: var(--c-job); }
.stat-purple { --sc: var(--c-research); }
.stat-key { --sc: #ec4899; text-decoration: none; }
.stat-key:hover { box-shadow: var(--shadow); }
a.stat-card { display: block; color: inherit; }

/* ============ 模块总览（仪表盘） ============ */
.section-head { margin: 6px 0 14px; }
.section-head h2 { font-size: 17px; margin: 0 0 2px; }
.section-head .sub { font-size: 13px; color: var(--text-2); }
.section-title { margin: 18px 0 12px; font-size: 16px; font-weight: 600; color: var(--text); }
.task-note { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent, var(--primary));
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.mod-job { --accent: var(--c-job); }
.mod-research { --accent: var(--c-research); }
.mod-life { --accent: var(--c-life); }
.module-top { display: flex; justify-content: space-between; align-items: center; }
.module-name { font-weight: 600; }
.module-link { font-size: 12px; color: var(--accent); text-decoration: none; }
.module-num { font-size: 30px; font-weight: 700; line-height: 1.2; margin: 6px 0 0; }
.module-sub { font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.module-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.module-meta span {
  font-size: 12px; background: var(--bg-2); color: var(--text-2);
  padding: 2px 8px; border-radius: 10px;
}

/* 柱状对比图 */
.bar-chart { display: flex; flex-direction: column; gap: 12px; padding: 6px 2px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { width: 72px; font-size: 13px; color: var(--text-2); flex: none; }
.bar-track { flex: 1; background: var(--bg-2); border-radius: 8px; overflow: hidden; height: 22px; }
.bar-fill {
  height: 100%; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; font-size: 12px; font-weight: 600; color: #fff; border-radius: 8px;
  min-width: 26px; transition: width .3s;
}
.bf-job { background: var(--c-job); }
.bf-research { background: var(--c-research); }
.bf-life { background: var(--c-life); }

/* 堆叠状态条 */
.stack-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--bg-2); margin: 8px 0 12px; }
.stack-seg { height: 100%; }
.legend-row { display: flex; flex-wrap: wrap; gap: 12px; }
.legend { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* 招聘漏斗 */
.funnel { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.funnel-row { display: flex; align-items: center; gap: 10px; }
.funnel-label { width: 52px; font-size: 13px; color: var(--text-2); flex: none; }
.funnel-track { flex: 1; background: var(--bg-2); border-radius: 6px; overflow: hidden; height: 20px; }
.funnel-fill {
  height: 100%; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, #60a5fa, #3b82f6); border-radius: 6px; min-width: 22px;
}

/* ============ 网格布局 ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============ 标签/徽章 ============ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.6;
}
.badge.cat-job { background: var(--c-job-soft); color: var(--c-job-ink); }
.badge.cat-research { background: var(--c-research-soft); color: var(--c-research-ink); }
.badge.cat-life { background: var(--c-life-soft); color: var(--c-life-ink); }
.badge.pri-high { background: #feecec; color: #b91c1c; }
.badge.pri-mid { background: #fef4e5; color: #b45309; }
.badge.pri-low { background: #e9f9ef; color: #15803d; }
.badge.st-done { background: var(--surface-2); color: var(--text-3); }
.badge.st-doing { background: var(--primary-soft); color: var(--primary-dark); }
.badge.st-open { background: #f3f4f6; color: #475569; }
.badge.js-save { background: #f1f5f9; color: #475569; }
.badge.js-sent { background: var(--c-job-soft); color: var(--c-job-ink); }
.badge.js-exam { background: #fef4e5; color: #b45309; }
.badge.key-task { background: #fce7f3; color: #be185d; font-weight: 600; }
/* 重点标记：红框标签（用户要求的「红方框」样式） */
.badge.key { display: inline-block; border: 1.5px solid #dc2626; background: #fff5f5; color: #dc2626; font-weight: 600; padding: 1px 7px; border-radius: 6px; line-height: 1.5; }
.badge.js-interview { background: var(--c-research-soft); color: var(--c-research-ink); }
.badge.js-offer { background: var(--c-life-soft); color: var(--c-life-ink); }
.badge.js-out { background: #feecec; color: #b91c1c; }
.badge.js-created { background: #eef2f7; color: #64748b; }
.badge.js-contract { background: #ede9fe; color: #6d28d9; }

/* 招聘进度节点：每个节点视作独立"对象1"，可承载自身的地点/内容 */
/* 节点下方固定三行：① 时间属性 ② 地点属性 ③ 备注属性（无则不显示该行） */
.node-meta { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.node-line { word-break: break-word; white-space: pre-wrap; }
.badge.ct-teacher { background: var(--c-research-soft); color: var(--c-research-ink); }
.badge.ct-mate { background: var(--c-job-soft); color: var(--c-job-ink); }
.badge.ct-hr { background: #fef4e5; color: #b45309; }
.badge.ct-partner { background: var(--c-life-soft); color: var(--c-life-ink); }
.badge.ct-other { background: #f3f4f6; color: #475569; }

/* 倒计时徽章 */
.countdown { font-size: 12px; font-weight: 500; white-space: nowrap; }
.cd-ok { color: var(--success); }
.cd-warn { color: #d97706; }
.cd-danger { color: var(--danger); }

/* ============ 任务列表 ============ */
.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.job-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.job-search-form .job-search-input {
  min-width: 180px;
  width: 220px;
}

/* 模块概览 chips（任务中心） */
.mod-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.mod-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-1); font-size: 13px; box-shadow: var(--shadow);
}
.mod-chip .chip-name { font-weight: 600; }
.mod-chip .chip-num {
  font-weight: 700; font-size: 15px; min-width: 20px; text-align: center;
  border-radius: 8px; padding: 0 6px;
}
.chip-job { border-left: 3px solid var(--c-job); }
.chip-job .chip-num { background: var(--c-job); color: #fff; }
.chip-research { border-left: 3px solid var(--c-research); }
.chip-research .chip-num { background: var(--c-research); color: #fff; }
.chip-life { border-left: 3px solid var(--c-life); }
.chip-life .chip-num { background: var(--c-life); color: #fff; }
.chip-hint { color: var(--text-3); border-style: dashed; box-shadow: none; }

/* 任务中心 - 生活计划汇总 */
.plan-summary { border-left: 3px solid #10b981; }
.plan-summary .card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.plan-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.plan-row:last-child { border-bottom: none; }
.plan-row .apt-body { flex: 1; }
.plan-row .apt-title { font-size: 14px; font-weight: 500; color: var(--text-1); }
.plan-row .apt-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--text-2); }
.filter-bar select, .filter-bar input[type="search"], .filter-bar input[type="text"] {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }

.task-list { display: flex; flex-direction: column; gap: 10px; }

.task-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  box-shadow: var(--shadow);
  transition: transform .12s, border-color .12s;
}
.task-row:hover { border-color: #cdd3e5; transform: translateY(-1px); }

.task-check {
  width: 20px; height: 20px;
  border: 2px solid #c6cbdc;
  border-radius: 6px;
  background: var(--surface);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all .15s;
}
.task-check:hover { border-color: var(--primary); }
.task-row.done .task-check { background: var(--success); border-color: var(--success); }
.task-check::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.task-row.done .task-check::after { opacity: 1; }
/* 生活计划（plan-row）完成态：复选框同样显示对号，与划线保持同步 */
.plan-row.done .task-check { background: var(--success); border-color: var(--success); }
.plan-row.done .task-check::after { opacity: 1; }

.task-check-placeholder {
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: transparent;
}

.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 500; }
.task-row.done .task-title { color: var(--text-3); text-decoration: line-through; }
.task-desc {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.task-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.task-meta .meta-item { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.task-meta .meta-item.contact { color: var(--text-2); }
/* 时间属性：整体一个浅青底圆角块（日期+时刻在同一背景内），与优先级（红/橙/绿）及其他内容区分 */
.task-meta .meta-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 12px;
}
.task-meta .meta-time .meta-item {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 12px;
}
[data-theme="dark"] .task-meta .meta-time {
  background: rgba(14, 165, 233, .16);
  color: #7dd3fc;
}
[data-theme="dark"] .task-meta .meta-time .meta-item { color: inherit; }
.task-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.task-actions { display: flex; gap: 4px; }

/* ============ 招聘卡片 ============ */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.job-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .12s, border-color .12s;
}
.job-card:hover { border-color: #cdd3e5; transform: translateY(-1px); }
.job-card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  padding-right: 72px;
}
.job-card-link:hover .job-company { color: var(--primary); }
.job-head { display: flex; justify-content: flex-start; align-items: flex-start; gap: 8px; }
.job-status-link {
  position: absolute;
  top: 18px;
  right: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, outline-color .1s;
  z-index: 2;
}
.job-status-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.08);
}
.job-status-link.active {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.job-company { font-size: 15px; font-weight: 600; }
.job-position { font-size: 13px; color: var(--text-2); }
.job-line { font-size: 12.5px; color: var(--text-2); display: flex; gap: 6px; align-items: baseline; }
.job-line b { color: var(--text); font-weight: 500; }
.job-note {
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 8px 10px;
  max-height: 60px;
  overflow: hidden;
}
.job-next {
  font-size: 12.5px;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  border-radius: 6px;
  padding: 6px 10px;
}
.job-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.job-added-at { display: block; white-space: nowrap; line-height: 1; }
.job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.job-actions form { flex: none; }

/* ============ 联系人 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.contact-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.contact-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.contact-org { font-size: 12px; color: var(--text-3); }
.contact-info { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.contact-info .row { display: flex; gap: 6px; align-items: baseline; }
.contact-info .row b { color: var(--text-2); font-weight: 500; min-width: 26px; }
.contact-actions { display: flex; gap: 4px; justify-content: flex-end; margin-top: 10px; }

/* ============ 购物清单 ============ */
.shop-list { display: flex; flex-direction: column; gap: 8px; }
.shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.shop-item.done .shop-name { text-decoration: line-through; color: var(--text-3); }
.shop-name { flex: 1; font-size: 14px; }
.shop-note { font-size: 12px; color: var(--text-3); }
.shop-check {
  width: 18px; height: 18px;
  border: 2px solid #c6cbdc;
  border-radius: 5px;
  cursor: pointer;
  background: var(--surface);
  flex-shrink: 0;
}
.shop-item.done .shop-check { background: var(--success); border-color: var(--success); }

/* ============ 约定 ============ */
.apt-list { display: flex; flex-direction: column; gap: 8px; }
.apt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.apt-item.done { opacity: .6; }
.apt-item.done .apt-title { text-decoration: line-through; }
.apt-date {
  width: 52px;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 12px;
  flex-shrink: 0;
}
.apt-date .d { font-size: 18px; font-weight: 600; line-height: 1.2; }
.apt-date .m { font-size: 11px; color: var(--text-3); }
.apt-body { flex: 1; min-width: 0; }
.apt-title { font-size: 14px; font-weight: 500; }
.apt-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============ 内联表单 ============ */
.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.inline-form input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13px;
  font-family: var(--font);
  background: var(--surface);
  outline: none;
  flex: 1;
  min-width: 120px;
}
.inline-form input:focus { border-color: var(--primary); }
.inline-form .grow-2 { flex: 2; }

/* ============ 表单页 ============ */
.form-card { max-width: 620px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; }
.form-group label .req { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13.5px;
  font-family: var(--font);
  background: var(--surface);
  outline: none;
  color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 84px; }
.form-hint { font-size: 11.5px; color: var(--text-3); }
/* 通用提示/注释文字：小字号 + 浅色，与正文明确区分（正文是主体，提示只是注释） */
.hint { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.5; font-weight: 400; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.form-check { display: flex; flex-direction: column; justify-content: center; }
.form-check .check-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.form-check .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; margin-left: 26px; }

/* 时间类型切换：时间点 / 时间段（互斥面板显隐） */
.time-type-switch { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 14px;
  color: var(--text-2); background: var(--bg-2); user-select: none; transition: all .15s; }
.radio-pill:hover { border-color: var(--primary); }
.radio-pill input { accent-color: var(--primary); margin: 0; }
.radio-pill:has(input:checked) { border-color: var(--primary); color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent); font-weight: 600; }
.time-panel[hidden] { display: none; }

/* 外观开关（深色模式） */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--border); border-radius: 999px; transition: var(--t-fast);
}
.switch .slider::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: var(--t-fast); box-shadow: var(--shadow-sm);
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ============ 日历 ============ */
.cal-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
@media (max-width: 980px) { .cal-wrap { grid-template-columns: 1fr; } }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head .month { font-size: 17px; font-weight: 600; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-dow {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  padding: 6px 0;
}
.cal-day {
  height: 104px;                 /* 固定格高：无论事项多少，每格大小一致 */
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 6px;
  font-size: 12.5px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.cal-day.out { background: var(--surface-2); color: var(--text-3); opacity: .7; }
.cal-day.today { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.cal-day .day-num { font-weight: 500; margin-bottom: 3px; flex: none; display: flex; align-items: center; gap: 4px; min-width: 0; }
.cal-day .day-num .dn { flex: none; }
/* 数字后缀：农历（灰）/ 节气（青）/ 节日（红），同行小字 */
.day-sub { font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-sub.sub-festival { color: #e11d48; font-weight: 600; }
.day-sub.sub-term { color: #0d9488; }
.cal-day.today .day-num .dn {
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  display: inline-block;
  padding: 0 6px;
}
.cal-events { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow: hidden; }
.cal-ev {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: none;
}
/* 按完成状态区分（图例口径）：未完成 = 绿色系；已完成 = 灰色 + 删除线 */
.cal-ev.ev-open { background: var(--c-research-soft); color: var(--c-research-ink); }
.cal-ev.ev-done { background: var(--surface-2); color: var(--text-3); text-decoration: line-through; }
.cal-ev.cal-more {
  width: 100%; border: 0; background: transparent; color: var(--text-3);
  font: inherit; font-size: 10.5px; padding: 0 5px; text-align: left; cursor: pointer;
}
.cal-ev.cal-more:hover, .cal-ev.cal-more:focus-visible { color: var(--primary); }

/* 单日事项超过格子容量时，悬停或键盘聚焦显示完整可点击列表。 */
.cal-day-popover {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% - 2px);
  left: -8px;
  width: max(100%, 300px);
  max-height: min(340px, 70vh);
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(30, 41, 59, .18);
  color: var(--text);
  opacity: 1;
}
.cal-day:hover, .cal-day:focus-within { z-index: 25; }
.cal-day:hover .cal-day-popover,
.cal-day:focus-within .cal-day-popover { display: block; }
.cal-day:nth-child(7n) .cal-day-popover,
.cal-day:nth-child(7n - 1) .cal-day-popover { left: auto; right: -8px; }
.cal-day:nth-last-child(-n + 14) .cal-day-popover {
  top: auto;
  bottom: calc(100% - 2px);
}
.cal-popover-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; padding: 0 2px 8px; border-bottom: 1px solid var(--border);
}
.cal-popover-head strong { font-size: 13px; }
.cal-popover-head span { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.cal-popover-list { display: flex; flex-direction: column; gap: 4px; max-height: 250px; overflow-y: auto; }
.cal-popover-event { padding: 5px 7px; font-size: 12px; }
.cal-popover-hint { margin-top: 8px; color: var(--text-3); font-size: 10.5px; text-align: right; }

/* 日历事项为可点击链接（跳转对应详情页）：去掉链接默认样式 */
a.cal-ev { text-decoration: none; display: block; }
a.cal-ev:hover { filter: brightness(0.97); }

.cal-side { display: flex; flex-direction: column; gap: 12px; }
.cal-side .card { padding: 16px; }
.cal-legend { font-size: 12px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.cal-legend span { display: flex; align-items: center; gap: 8px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* 本月事项：两行式（类别|名称 / 时间属性）；整条为链接，hover 微高亮 */
a.cal-mi { display: block; text-decoration: none; color: inherit; }
a.cal-mi:hover { background: var(--surface-2); }
.cal-mi { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.cal-mi:last-child { border-bottom: none; }
.cal-mi-l1 { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.cal-mi-cat { flex: none; font-weight: 600; color: var(--c-research-ink); }
.cal-mi-sep { flex: none; color: var(--text-3); opacity: .6; }
.cal-mi-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-mi-l2 { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cal-mi.mi-done .cal-mi-title { text-decoration: line-through; color: var(--text-3); }
.cal-mi.mi-done .cal-mi-l2 { opacity: .7; }

/* ============ flash 消息 ============ */
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.flash {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  border: 1px solid;
  animation: slide-in .25s ease;
}
.flash-success { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.flash-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
@keyframes slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 空状态 ============ */
.empty {
  text-align: center;
  color: var(--text-3);
  padding: 36px 20px;
  font-size: 13px;
}
.empty .big { font-size: 30px; margin-bottom: 8px; color: #c8cddd; }

/* ============ 其它 ============ */
.section-gap { margin-bottom: 24px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.mt { margin-top: 14px; }
.muted { color: var(--text-2); font-size: 12.5px; }
.nowrap { white-space: nowrap; }

@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .brand-text, .nav-item span { display: none; }
  .nav-item { justify-content: center; }
  .sidebar-foot { padding: 10px; justify-content: center; }
  .sidebar-foot.user-box .user-meta { display: none; }
  .mobile-logout { display: flex; }
  .content { padding: 20px 16px 50px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-actions { flex-wrap: wrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .num { font-size: 22px; }
  .filter-bar form { flex-wrap: wrap; gap: 8px; }
  .task-row { gap: 10px; padding: 12px; align-items: flex-start; }
  .task-title { font-size: 14px; }
  .task-actions { flex-wrap: wrap; gap: 6px; }
}

/* ============ 登录/注册页 ============ */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--border);
             border-radius: 16px; padding: 36px 32px; box-shadow: 0 8px 30px rgba(0,0,0,.06); text-align: center; }
.auth-logo { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px;
             overflow: hidden; background: transparent; display: block; }
.auth-logo .logo-svg { width: 100%; height: 100%; display: block; }
.auth-card h1,
.auth-card h2 { margin: 0 0 6px; font-size: 22px; }
.auth-sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.auth-form { text-align: left; }
.auth-form .btn-block { width: 100%; margin-top: 6px; }
.auth-alt { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-tip { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* 注册验证码页 */
.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.code-input { text-align: center; letter-spacing: 0.5em; font-size: 1.45rem;
              font-weight: 700; padding: 12px 8px 12px 14px; }
.code-input::placeholder { letter-spacing: 0.5em; color: var(--muted); opacity: 0.6; }
.resend-form { margin: 14px 0 0; }
.btn-link { background: none; border: none; padding: 4px; color: var(--primary);
            font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

/* 侧边栏用户信息 */
.user-box { display: flex; align-items: center; gap: 10px; position: relative; }
.user-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%;
               background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
               display: flex; align-items: center; justify-content: center; font-weight: 600; }
.user-meta { display: flex; flex-direction: column; overflow: hidden; }
.user-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta > span { display: flex; align-items: center; gap: 10px; }
.user-meta a { font-size: 12px; color: var(--text-3); text-decoration: none; }
.user-meta a:hover { color: var(--danger); }
.user-account-no { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-link { display: inline-flex; align-items: center; gap: 4px; }
.notice-link .ico { width: 14px; height: 14px; stroke-width: 2; }
.logout-link { color: var(--text-3); text-decoration: none; font-size: 12px; }
.logout-link:hover { color: var(--danger); }
.mobile-logout {
  display: none;
  margin-left: auto;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 9px;
  color: var(--text-3);
}
.mobile-logout:hover { background: var(--surface-2); color: var(--danger); }
.mobile-logout .ico { width: 20px; height: 20px; }

/* ============ 设置页 ============ */
/* 设置页：显式两栏 Grid，小卡两两成行自动等高对齐；长卡（邮件提醒）通栏铺满，避免栏尾空白 */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.settings-grid > .card {
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 20px;              /* 分区卡自带内边距，文字不贴边框 */
}
.settings-grid > .card-wide { grid-column: 1 / -1; }
.settings-form .form-group { margin-bottom: 14px; }
.section-sub { margin: 20px 0 12px; font-size: 14px; border-top: 1px dashed var(--border); padding-top: 16px; }
/* 邮件提醒卡：测试按钮响应式网格（宽屏 4 列 / 中屏 2 列 / 窄屏 1 列），按钮在上说明在下 */
.test-mail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.test-mail-form { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
/* 设置页网格版：纵向单元（按钮在上说明在下）；管理后台的横排 test-mail-form 不受影响 */
.test-mail-grid .test-mail-form {
  flex-direction: column; align-items: flex-start;
  gap: 6px; margin: 0; padding: 0; border: 0;
}
.test-mail-grid .test-mail-form .btn { width: 100%; }
.test-mail-grid .test-mail-form .muted { flex: initial; min-width: 0; font-size: 12px; line-height: 1.55; }
.test-mail-cta { display: flex; align-items: center; justify-content: center; text-align: center; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: #eef2ff; }

/* 设置页卡片内分区：合并卡片时分隔头像/用户名/密码、会员/外观 */
.settings-section { padding: 18px 0; border-bottom: 1px dashed var(--border); }
.settings-section:first-child { padding-top: 0; }
.settings-section:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-section .card-title { margin-top: 0; }

/* 底部：退出登录 + 注销账号 合并卡片 */
.logout-danger-card { padding: 20px 24px; }
.logout-danger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.logout-danger-grid .danger-part { border-left: 1px dashed var(--border); padding-left: 24px; }
.logout-danger-grid .card-title { margin-top: 0; }

@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } .logout-danger-grid { grid-template-columns: 1fr; } .logout-danger-grid .danger-part { border-left: 0; border-top: 1px dashed var(--border); padding-left: 0; padding-top: 18px; } }

/* ============ 设置页「使用说明」科技感入口 ============ */
.guide-promo {
  position: relative;
  display: block;
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
  box-shadow: 0 12px 30px rgba(49, 46, 129, 0.28);
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.guide-promo:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(67, 56, 202, 0.40); }
/* 流光高光 */
.guide-promo-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(420px circle at 12% 20%, rgba(129,140,248,.55), transparent 60%),
              radial-gradient(360px circle at 90% 90%, rgba(56,189,248,.40), transparent 60%);
  opacity: .8;
  animation: guideGlow 6s ease-in-out infinite;
}
@keyframes guideGlow {
  0%, 100% { opacity: .55; transform: translate3d(0,0,0) scale(1); }
  50%      { opacity: .9;  transform: translate3d(0,-4px,0) scale(1.03); }
}
/* 脉冲圆环 */
.guide-promo-ring {
  position: absolute; top: -28px; right: -28px; z-index: 0;
  width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid rgba(165,180,252,.6);
  animation: guidePulse 2.6s ease-out infinite;
}
@keyframes guidePulse {
  0%   { transform: scale(.6); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.guide-promo-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
}
.guide-promo-ico {
  flex: 0 0 auto;
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(2px);
}
.guide-promo-text { flex: 1 1 auto; min-width: 0; }
.guide-promo-title { display:block; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.guide-promo-sub { display:block; margin-top: 4px; font-size: 13px; color: rgba(226,232,240,.85); }
.guide-promo-arrow {
  flex: 0 0 auto; font-size: 26px; font-weight: 700;
  transition: transform .25s ease;
}
.guide-promo:hover .guide-promo-arrow { transform: translateX(6px); }

/* ============ 使用说明页 ============ */
.guide-steps { display: grid; gap: 14px; margin-top: 8px; }
.guide-step { display: flex; gap: 14px; align-items: flex-start; }
.guide-step-no {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.guide-step-t { font-weight: 600; margin-bottom: 2px; }
.section-h { margin: 24px 0 12px; font-size: 18px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.guide-card-h { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.guide-ico { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.guide-list { margin: 8px 0 0; padding-left: 20px; line-height: 1.9; }
.guide-list li { margin-bottom: 6px; }

/* 管理后台补充样式 */
.badge-primary { background: #eef0fe; color: #4f46e5; }
.badge-success { background: #e9f9ef; color: #15803d; }
.badge-vip { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-weight: 600; }
.badge-danger { background: #feecec; color: #b91c1c; }
.badge-warning { background: #fef4e5; color: #b45309; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.data-table th, .data-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { font-weight: 600; color: var(--text-2); font-size: 13px; background: var(--surface-2); }
.data-table tr:hover td { background: var(--surface-2); }
.info-line { padding: 12px 14px; border-radius: 10px; background: #f8f9fd; font-size: 13px; }

/* 用户标签 */
.tag-admin { display: inline-block; background: #eef0fe; color: #4f46e5; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.tag-vip { display: inline-block; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.tag-frozen { display: inline-block; background: #feecec; color: #b91c1c; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }

/* VIP 页面 */
.vip-active-banner { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #fcd34d; }
.vip-crown-big { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vip-features { list-style: none; padding: 0; }
.vip-features li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; color: var(--text-2); }
.vip-features li:last-child { border-bottom: none; }
.vip-features li strong { color: var(--text); }

/* 订单状态 */
.order-status-banner { padding: 14px 16px; border-radius: 10px; text-align: center; font-size: 14px; }
.order-status-banner.status-pending { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.order-status-banner.status-confirmed { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.order-status-banner.status-rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.order-status-banner.status-cancelled { background: #f3f4f6; color: #64748b; }

/* 统计图表 */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-label { width: 50px; font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.bar-track { flex: 1; height: 22px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; transition: width .3s; min-width: 2px; }
.bar-num { width: 30px; text-align: right; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.bar-fill.cat-job { background: var(--c-job); }
.bar-fill.cat-research { background: var(--c-research); }
.bar-fill.cat-life { background: var(--c-life); }
.bar-fill.pri-high { background: #ef4444; }
.bar-fill.pri-mid { background: var(--warning); }
.bar-fill.pri-low { background: var(--success); }
.bar-fill.contact-ct-teacher { background: #8b5cf6; }
.bar-fill.contact-ct-mate { background: #3b82f6; }
.bar-fill.contact-ct-hr { background: #f59e0b; }
.bar-fill.contact-ct-partner { background: #10b981; }
.bar-fill.contact-ct-other { background: #94a3b8; }

/* 趋势图 */
.trend-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding-bottom: 20px; overflow-x: auto; }
.trend-bar { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 16px; height: 100%; justify-content: flex-end; }
.trend-col { width: 100%; background: linear-gradient(180deg, #6366f1, #8b5cf6); border-radius: 3px 3px 0 0; min-height: 2px; }
.trend-label { font-size: 9px; color: var(--text-3); margin-top: 4px; white-space: nowrap; }

/* ============ 头像 ============ */
.user-avatar { overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============ 登录/注册美化 ============ */
.auth-wrap { background: linear-gradient(135deg, #f7f8fc 0%, #eef0fe 100%); }
.auth-logo { box-shadow: 0 6px 18px rgba(79,70,229,.25); }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form input { padding: 11px 14px; border-radius: 10px; }
.auth-form .btn-block { padding: 12px; font-size: 14px; border-radius: 10px; margin-top: 4px; }

/* ============ 好友列表 ============ */
.form-inline { display: flex; gap: 10px; }
.form-inline input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font-family: var(--font); font-size: 13px; outline: none; }
.form-inline input:focus { border-color: var(--primary); }
.friend-list { display: flex; flex-direction: column; gap: 10px; }
.friend-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.friend-info { display: flex; align-items: center; gap: 12px; flex: 1; color: var(--text); }
.friend-info:hover { color: var(--primary); }
.friend-actions { display: flex; gap: 6px; }

/* 微信风格好友列表：整行可点，隐藏次要操作 */
.friend-list-clean .friend-row {
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  transition: background .15s, border-color .15s;
}
.friend-list-clean .friend-row:hover {
  background: var(--surface-2);
  border-color: var(--primary);
}
.friend-list-clean .friend-info {
  padding: 12px 16px;
  gap: 14px;
}
.friend-list-clean .friend-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.friend-list-clean .friend-name strong {
  font-size: 15px;
  font-weight: 500;
}
.friend-list-clean .friend-chevron {
  padding: 0 16px;
  font-size: 20px;
  color: var(--text-3);
}

/* 添加好友入口：右上角 ⊕ */
.btn-add-friend {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, transform .1s;
  flex: none;
}
.btn-add-friend:hover {
  background: var(--surface-2);
  border-color: var(--primary);
}
.btn-add-friend:active { transform: scale(0.95); }
.btn-add-friend svg { width: 22px; height: 22px; }

/* 好友首字母分组 */
.friend-groups { display: flex; flex-direction: column; gap: 18px; }
.friend-group-letter {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  padding: 0 12px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.friend-group .friend-list { gap: 0; }
.friend-group .friend-row {
  border: none;
  border-radius: 0;
  background: transparent;
}
.friend-group .friend-row + .friend-row { border-top: 1px solid var(--border); }
.friend-group .friend-row:hover { background: var(--surface-2); }

/* ============ 好友详情页 ============ */
.friend-profile {
  max-width: 560px;
  margin: 0 auto 16px;
}
.friend-profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.friend-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.friend-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-profile-title h1 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.friend-profile-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.friend-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.info-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
}
.info-label {
  width: 90px;
  color: var(--text-3);
  flex-shrink: 0;
}
.info-value { color: var(--text); word-break: break-all; }
.friend-note-form { padding-top: 18px; }
.friend-note-form .form-group { margin-bottom: 12px; }
.friend-note-form input { width: 100%; }
.friend-profile-actions {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.friend-profile-actions .btn-block { width: 100%; }
@media (max-width: 768px) {
  .friend-profile-head { gap: 14px; }
  .friend-profile-avatar { width: 64px; height: 64px; font-size: 26px; border-radius: 12px; }
  .friend-profile-title h1 { font-size: 18px; }
  .info-label { width: 70px; }
}

/* ============ 聊天 ============ */
.chat-layout { display: flex; flex-direction: column; height: calc(100vh - 130px); min-height: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat-title { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 0 auto 0 0; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #fafbff; }
.chat-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 80%; }
.chat-msg.chat-me { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.chat-other { align-self: flex-start; }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.msg-bubble { padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; word-break: break-word; }
.chat-me .msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-other .msg-bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-image { max-width: 220px; max-height: 220px; border-radius: 10px; margin-top: 6px; display: block; }
.msg-time { font-size: 10px; opacity: .7; margin-top: 5px; text-align: right; }
.chat-footer { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: #fff; }
.chat-footer input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-family: var(--font); font-size: 13.5px; outline: none; }
.chat-footer input:focus { border-color: var(--primary); }
.chat-footer .btn { white-space: nowrap; }

/* 表情消息 */
.msg-emoji { font-size: 32px; line-height: 1.4; }

/* 过期图片提示 */
.msg-expired { color: var(--text-light); font-size: 12px; font-style: italic; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 8px; }

/* 表情面板 */
.emoji-panel { position: absolute; bottom: 64px; left: 18px; right: 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.12); padding: 12px; z-index: 100; }
.emoji-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-height: 160px; overflow-y: auto; }
.emoji-item { font-size: 22px; text-align: center; cursor: pointer; padding: 4px; border-radius: 6px; transition: background .15s; }
.emoji-item:hover { background: var(--surface-2); }
.emoji-btn { font-size: 18px; padding: 8px 10px; }

@media (max-width: 768px) {
  .chat-layout { height: calc(100vh - 90px); }
  .chat-msg { max-width: 92%; }
  .emoji-grid { grid-template-columns: repeat(8, 1fr); }
  .emoji-panel { bottom: 60px; left: 10px; right: 10px; }
}

/* ============ 自定义删除确认 Modal（替代 window.confirm） ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, .45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; animation: modal-fade .15s ease;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  max-width: 360px; width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
  animation: modal-pop .18s ease;
}
.modal-title { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.modal-msg { color: var(--text-2); font-size: 14px; margin: 0 0 18px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.modal .btn-danger:hover { background: #b91c1c; color: #fff; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============ 密码显隐 ============ */
.pw-wrap { position: relative; display: block; }
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] { width: 100%; padding-right: 42px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: transparent;
  color: var(--text-3); display: flex; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-2); color: var(--text-2); }
.pw-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 搜索一键清空 ============ */
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap input[type="search"] { width: 100%; padding-right: 34px; }
.search-clear {
  position: absolute; right: 6px; width: 26px; height: 26px;
  border: none; background: transparent; color: var(--text-3);
  border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1;
  display: none;
}
.search-clear:hover { background: var(--surface-2); color: var(--text); }
.search-wrap.has-value .search-clear { display: flex; align-items: center; justify-content: center; }

/* ============ 自定义文件上传按钮 ============ */
.file-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-field input[type="file"] { font-size: 13px; }
.file-field .file-name { font-size: 12px; color: var(--text-2); }

/* ============ 计划行完成态（乐观更新用） ============ */
.plan-row.done .apt-title { text-decoration: line-through; color: var(--text-3); }

/* ============ 动效降级 ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ 暗色模式 ============ */
[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #171a21;
  --surface-2: #1f232c;
  --border: #2a2f3a;
  --bg-2: var(--surface-2);
  --text: #e5e7eb;
  --text-2: #aab1c0;
  --text-3: #8b93a3;
  --text-1: #e5e7eb;
  --text-light: var(--text-3);
  --primary: #818cf8;
  --primary-dark: #a5b4fc;
  --primary-soft: #232838;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;
  --c-job: #60a5fa;        --c-job-soft: #16263f;     --c-job-ink: #93c5fd;
  --c-research: #a78bfa;   --c-research-soft: #241d3a;  --c-research-ink: #c4b5fd;
  --c-life: #34d399;       --c-life-soft: #11302a;      --c-life-ink: #6ee7b7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .35);
}
[data-theme="dark"] body { color: var(--text); }
[data-theme="dark"] .auth-wrap {
  background: linear-gradient(135deg, #0f1117 0%, #171a21 100%);
}
[data-theme="dark"] .brand-logo,
[data-theme="dark"] .auth-logo,
[data-theme="dark"] .user-avatar,
[data-theme="dark"] .vip-crown-big { filter: brightness(1.05); }
[data-theme="dark"] .flash-success { background: #0f2e1f; border-color: #14532d; color: #6ee7b7; }
[data-theme="dark"] .flash-info { background: #0c1f3a; border-color: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .flash-warning { background: #2e2410; border-color: #78350f; color: #fcd34d; }
[data-theme="dark"] .flash-error { background: #2a1414; border-color: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .job-next { background: #2a2310; color: #fcd34d; border-left-color: #f59e0b; }
[data-theme="dark"] .vip-active-banner { background: #2a2310; border-color: #92400e; }

/* ============================================================
   全服公告登录弹窗 + VIP 专属主题皮肤
   ============================================================ */
.ann-modal { max-width: 440px; }
.ann-modal-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  font-size: 14px; line-height: 1.6; margin-bottom: 10px;
  white-space: pre-wrap; word-break: break-word;
}
.ann-modal-item .ann-icon { font-weight: 700; flex: 0 0 auto; }
.ann-modal-item .ann-text { flex: 1 1 auto; }
.ann-modal-item .ann-dismiss-item {
  flex: 0 0 auto; border: none; background: transparent;
  color: inherit; opacity: .7; font-size: 12px; cursor: pointer;
  text-decoration: underline; padding: 0; margin-top: 2px;
}
.ann-modal-item .ann-dismiss-item:hover { opacity: 1; }
.ann-info    { background: #e8f1fe; color: #1d4ed8; }
.ann-warning { background: #fff4e0; color: #b45309; }
.ann-success { background: #e6f7ef; color: #047857; }

/* 新手使用指引区块（与全服公告同窗分条展示） */
.ug-block { flex-direction: column; gap: 8px; background: #f5f3ff; color: #4c1d95; }
.ug-head { font-weight: 600; }
.ug-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ug-list li { margin: 0; }
.ug-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 9px;
  background: #ffffff; border: 1px solid #e9e3ff; text-decoration: none;
  transition: border-color .15s, transform .05s; color: inherit;
}
.ug-link:hover { border-color: #a78bfa; }
.ug-link:active { transform: scale(.99); }
.ug-t { font-weight: 600; font-size: 14px; }
.ug-d { font-size: 12px; color: #6b7280; }
.ug-foot { font-size: 12px; color: #7c3aed; opacity: .85; margin-top: 2px; }

/* VIP 专属皮肤：更精致的渐变与品牌强调（仅 data-theme="vip" 生效） */
[data-theme="vip"] {
  --bg: #fbf7ff;
  --surface: #ffffff;
  --surface-2: #f6f0ff;
  --border: #ece3fb;
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-soft: #f3ebfe;
  --info: #8b5cf6;
  --c-job: #6366f1;      --c-job-soft: #eef0fe;     --c-job-ink: #4338ca;
  --c-research: #a855f7; --c-research-soft: #f6ebfe; --c-research-ink: #7c3aed;
  --c-life: #14b8a6;     --c-life-soft: #e6faf6;    --c-life-ink: #0f766e;
}
[data-theme="vip"] body {
  background:
    radial-gradient(1200px 600px at 100% -10%, #f3e8ff 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #e0f2fe 0%, transparent 55%),
    var(--bg);
}
/* logo 颜色由内部 .logo-bg fill:var(--primary) 控制，无需覆盖容器背景 */
[data-theme="vip"] .card,
[data-theme="vip"] .sidebar {
  box-shadow: 0 2px 4px rgba(124,58,237,.06), 0 12px 32px rgba(124,58,237,.08);
}
[data-theme="vip"] .nav-item.active {
  background: linear-gradient(90deg, var(--primary-soft), transparent);
  border-left: 3px solid var(--primary);
}
[data-theme="vip"] .btn-primary {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-color: transparent;
}
[data-theme="vip"] .btn-primary:hover { background: linear-gradient(135deg, #6d28d9, #db2777); }
[data-theme="vip"] .nav-item:hover { background: var(--primary-soft); color: var(--primary); }
[data-theme="vip"] a:hover { color: var(--primary-dark); }
[data-theme="vip"] .form-group input:focus,
[data-theme="vip"] .form-group select:focus,
[data-theme="vip"] .form-group textarea:focus { border-color: var(--primary); }
[data-theme="vip"] .vip-crown-big { filter: drop-shadow(0 4px 10px rgba(124,58,237,.35)); }

/* ============================================================
   扩展主题：VIP/管理员专属多款全局皮肤
   ============================================================ */

/* 通用增强：让各主题影响主体、卡片、按钮、链接、焦点环 */
[data-theme="forest"],
[data-theme="ocean"],
[data-theme="sunset"],
[data-theme="minimal"],
[data-theme="contrast"] {
  /* 会被各自覆盖，这里只放通用增强 */
}
[data-theme="forest"] .nav-item:hover,
[data-theme="ocean"] .nav-item:hover,
[data-theme="sunset"] .nav-item:hover,
[data-theme="minimal"] .nav-item:hover,
[data-theme="contrast"] .nav-item:hover { color: var(--primary); background: var(--primary-soft); }
[data-theme="forest"] .form-group input:focus,
[data-theme="forest"] .form-group select:focus,
[data-theme="forest"] .form-group textarea:focus,
[data-theme="ocean"] .form-group input:focus,
[data-theme="ocean"] .form-group select:focus,
[data-theme="ocean"] .form-group textarea:focus,
[data-theme="sunset"] .form-group input:focus,
[data-theme="sunset"] .form-group select:focus,
[data-theme="sunset"] .form-group textarea:focus,
[data-theme="minimal"] .form-group input:focus,
[data-theme="minimal"] .form-group select:focus,
[data-theme="minimal"] .form-group textarea:focus,
[data-theme="contrast"] .form-group input:focus,
[data-theme="contrast"] .form-group select:focus,
[data-theme="contrast"] .form-group textarea:focus { border-color: var(--primary); }
[data-theme="forest"] a:hover,
[data-theme="ocean"] a:hover,
[data-theme="sunset"] a:hover,
[data-theme="minimal"] a:hover,
[data-theme="contrast"] a:hover { color: var(--primary-dark); }

/* 🌲 森林绿 */
[data-theme="forest"] {
  --bg: #f4fbf6;
  --surface: #ffffff;
  --surface-2: #ecf8f0;
  --border: #d5ebe0;
  --primary: #15803d;
  --primary-dark: #14532d;
  --primary-soft: #dcfce7;
  --info: #22c55e;
  --c-job: #16a34a;      --c-job-soft: #dcfce7;     --c-job-ink: #14532d;
  --c-research: #059669; --c-research-soft: #d1fae5; --c-research-ink: #064e3b;
  --c-life: #10b981;     --c-life-soft: #d1fae5;    --c-life-ink: #065f46;
  --shadow: 0 1px 2px rgba(21,128,61,.05), 0 4px 16px rgba(21,128,61,.06);
}
[data-theme="forest"] body {
  background:
    radial-gradient(1200px 600px at 100% -10%, #dcfce7 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #ecfdf5 0%, transparent 55%),
    var(--bg);
}
/* logo 颜色由内部 .logo-bg fill:var(--primary) 控制 */
[data-theme="forest"] .card,
[data-theme="forest"] .sidebar { box-shadow: 0 2px 4px rgba(21,128,61,.06), 0 12px 32px rgba(21,128,61,.08); }
[data-theme="forest"] .nav-item.active { background: linear-gradient(90deg, var(--primary-soft), transparent); border-left: 3px solid var(--primary); }
[data-theme="forest"] .btn-primary { background: linear-gradient(135deg, #15803d, #10b981); border-color: transparent; }
[data-theme="forest"] .btn-primary:hover { background: linear-gradient(135deg, #14532d, #059669); }

/* 🌊 海洋蓝 */
[data-theme="ocean"] {
  --bg: #f0f9ff;
  --surface: #ffffff;
  --surface-2: #e0f2fe;
  --border: #cbebfa;
  --primary: #0369a1;
  --primary-dark: #0c4a6e;
  --primary-soft: #e0f2fe;
  --info: #0ea5e9;
  --c-job: #0284c7;      --c-job-soft: #e0f2fe;     --c-job-ink: #075985;
  --c-research: #0ea5e9; --c-research-soft: #f0f9ff; --c-research-ink: #0369a1;
  --c-life: #06b6d4;     --c-life-soft: #cffafe;    --c-life-ink: #0e7490;
  --shadow: 0 1px 2px rgba(3,105,161,.05), 0 4px 16px rgba(3,105,161,.06);
}
[data-theme="ocean"] body {
  background:
    radial-gradient(1200px 600px at 100% -10%, #e0f2fe 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #f0f9ff 0%, transparent 55%),
    var(--bg);
}
/* logo 颜色由内部 .logo-bg fill:var(--primary) 控制 */
[data-theme="ocean"] .card,
[data-theme="ocean"] .sidebar { box-shadow: 0 2px 4px rgba(3,105,161,.06), 0 12px 32px rgba(3,105,161,.08); }
[data-theme="ocean"] .nav-item.active { background: linear-gradient(90deg, var(--primary-soft), transparent); border-left: 3px solid var(--primary); }
[data-theme="ocean"] .btn-primary { background: linear-gradient(135deg, #0369a1, #0ea5e9); border-color: transparent; }
[data-theme="ocean"] .btn-primary:hover { background: linear-gradient(135deg, #0c4a6e, #0284c7); }

/* 🌇 日落暖橙 */
[data-theme="sunset"] {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-2: #fff1e6;
  --border: #ffedd5;
  --primary: #ea580c;
  --primary-dark: #9a3412;
  --primary-soft: #ffedd5;
  --info: #f97316;
  --c-job: #f97316;      --c-job-soft: #fff7ed;     --c-job-ink: #c2410c;
  --c-research: #fb923c; --c-research-soft: #fff7ed; --c-research-ink: #c2410c;
  --c-life: #f59e0b;     --c-life-soft: #fef3c7;    --c-life-ink: #92400e;
  --shadow: 0 1px 2px rgba(234,88,12,.05), 0 4px 16px rgba(234,88,12,.06);
}
[data-theme="sunset"] body {
  background:
    radial-gradient(1200px 600px at 100% -10%, #ffedd5 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #ffe4e6 0%, transparent 55%),
    var(--bg);
}
/* logo 颜色由内部 .logo-bg fill:var(--primary) 控制 */
[data-theme="sunset"] .card,
[data-theme="sunset"] .sidebar { box-shadow: 0 2px 4px rgba(234,88,12,.06), 0 12px 32px rgba(234,88,12,.08); }
[data-theme="sunset"] .nav-item.active { background: linear-gradient(90deg, var(--primary-soft), transparent); border-left: 3px solid var(--primary); }
[data-theme="sunset"] .btn-primary { background: linear-gradient(135deg, #ea580c, #f97316); border-color: transparent; }
[data-theme="sunset"] .btn-primary:hover { background: linear-gradient(135deg, #9a3412, #ea580c); }

/* ⬜ 极简灰白 */
[data-theme="minimal"] {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --border: #e5e5e5;
  --primary: #171717;
  --primary-dark: #000000;
  --primary-soft: #f5f5f5;
  --info: #525252;
  --text: #171717;
  --text-2: #525252;
  --text-3: #737373;
  --c-job: #404040;      --c-job-soft: #f5f5f5;     --c-job-ink: #171717;
  --c-research: #737373; --c-research-soft: #f5f5f5; --c-research-ink: #404040;
  --c-life: #15803d;     --c-life-soft: #f0fdf4;    --c-life-ink: #14532d;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
}
[data-theme="minimal"] body { background: var(--bg); }
/* logo 颜色由内部 .logo-bg fill:var(--primary) 控制 */
[data-theme="minimal"] .card,
[data-theme="minimal"] .sidebar { box-shadow: none; border: 1px solid var(--border); }
[data-theme="minimal"] .nav-item.active { background: var(--primary-soft); border-left: 3px solid var(--primary); color: var(--primary); }
[data-theme="minimal"] .btn-primary { background: #171717; border-color: #171717; }
[data-theme="minimal"] .btn-primary:hover { background: #000000; }

/* ⚡ 高对比 */
[data-theme="contrast"] {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #171717;
  --border: #404040;
  --primary: #facc15;
  --primary-dark: #fde047;
  --primary-soft: #262626;
  --info: #38bdf8;
  --text: #ffffff;
  --text-2: #e5e5e5;
  --text-3: #a3a3a3;
  --text-1: #ffffff;
  --success: #4ade80;
  --warning: #fb923c;
  --danger: #f87171;
  --c-job: #60a5fa;      --c-job-soft: #172554;     --c-job-ink: #bfdbfe;
  --c-research: #c084fc; --c-research-soft: #2e1065; --c-research-ink: #e9d5ff;
  --c-life: #4ade80;     --c-life-soft: #064e3b;    --c-life-ink: #bbf7d0;
  --shadow: 0 0 0 1px rgba(255,255,255,.12);
}
[data-theme="contrast"] body { background: var(--bg); }
/* logo 颜色由内部 .logo-bg fill:var(--primary) 控制 */
[data-theme="contrast"] .card,
[data-theme="contrast"] .sidebar { border: 1px solid var(--border); box-shadow: var(--shadow); }
[data-theme="contrast"] .nav-item { color: var(--text-2); }
[data-theme="contrast"] .nav-item.active { background: var(--primary-soft); border-left: 3px solid var(--primary); color: var(--primary); }
[data-theme="contrast"] .btn-primary { background: var(--primary); color: #000; border-color: var(--primary); }
[data-theme="contrast"] .btn-primary:hover { background: var(--primary-dark); color: #000; }
[data-theme="contrast"] .btn { color: var(--text); border-color: var(--border); }
[data-theme="contrast"] .btn:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="contrast"] .flash-success { background: #052e16; border-color: #166534; color: #86efac; }
[data-theme="contrast"] .flash-info { background: #0c1f3a; border-color: #1e3a8a; color: #93c5fd; }
[data-theme="contrast"] .flash-warning { background: #2e2410; border-color: #78350f; color: #fcd34d; }
[data-theme="contrast"] .flash-error { background: #450a0a; border-color: #991b1b; color: #fca5a5; }

/* VIP 开通档位选择 */
.vip-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vip-tiers .tier { position: relative; cursor: pointer; }
.vip-tiers .tier input { position: absolute; opacity: 0; }
.vip-tiers .tier-box {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--surface); transition: all .15s ease;
}
.vip-tiers .tier input:checked + .tier-box {
  border-color: var(--primary); background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.vip-tiers .tier-name { font-weight: 600; font-size: 14px; }
.vip-tiers .tier-price { font-size: 18px; font-weight: 700; color: var(--text); }
.vip-tiers .tier-price small { font-size: 11px; color: var(--text-3); font-weight: 500; }
.vip-tiers .tier-tag {
  font-size: 11px; color: var(--success); background: var(--c-life-soft);
  padding: 1px 7px; border-radius: 999px; font-weight: 600;
}
.vip-tiers .tier-tag.tier-best { background: linear-gradient(135deg,#7c3aed,#ec4899); color: #fff; }

/* 任务模板库 */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; margin-top: 6px; }
.template-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.tpl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tpl-icon { font-size: 20px; }
.tpl-items { margin: 8px 0; padding-left: 18px; color: var(--text-2); font-size: 13px; }
.tpl-items li { margin: 2px 0; }
.tpl-actions { display: flex; gap: 8px; margin-top: 8px; }

/* VIP 智能聚焦列表 */
.focus-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.focus-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.focus-badge { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.focus-w3 .focus-badge { background: var(--danger); }
.focus-w2 .focus-badge { background: var(--warning); }
.focus-w1 .focus-badge { background: var(--primary); }
.focus-w0 .focus-badge { background: var(--text-3); }
.focus-title { flex: 1 1 auto; color: var(--text); text-decoration: none; font-weight: 500; }
.focus-title:hover { text-decoration: underline; }
.focus-cat { font-size: 12px; color: var(--text-3); }
.focus-due { font-size: 12px; color: var(--text-2); }

/* 登录/注册门户关闭提示 */
.auth-closed-banner {
  background: var(--c-life-soft); border: 1px solid #b6e8cf;
  border-radius: 12px; padding: 16px 18px; color: var(--c-life-ink); margin-bottom: 8px;
}
.auth-closed-banner strong { font-size: 15px; }
.auth-closed-banner p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; }

/* ============ 收藏夹（C 模块） ============ */
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.note-card { display: flex; flex-direction: column; gap: 8px; }
.note-head { display: flex; align-items: center; justify-content: space-between; }
.note-actions { display: flex; gap: 4px; }
.note-title { font-weight: 600; font-size: 15px; word-break: break-word; }
.note-url { font-size: 13px; color: var(--accent); word-break: break-all; display: block; }
.note-content { font-size: 13px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; word-break: break-word; margin: 0; }
.note-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.note-ref { font-size: 11px; color: var(--text-3); margin-left: 4px; }
.badge-kind-0 { background: #ede9fe; color: #6d28d9; }
.badge-kind-1 { background: #e0f2fe; color: #0369a1; }
.badge-kind-2 { background: #fef3c7; color: #b45309; }
.badge-kind-3 { background: #dcfce7; color: #15803d; }
.tag-cloud { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--chip-bg); color: var(--text-2); font-size: 12px; text-decoration: none; border: 1px solid transparent; }
.chip:hover { border-color: var(--accent); }
.chip-active { background: var(--accent); color: #fff; }
.chip-count { font-size: 10px; opacity: .8; }
.chip-sm { padding: 2px 8px; font-size: 11px; }

/* ============ 公开论坛 ============ */
.forum-list { display: flex; flex-direction: column; gap: 8px; }
.forum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .15s, transform .1s; }
.forum-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.forum-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; word-break: break-word; }
.forum-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.forum-side { flex-shrink: 0; }
.reply-count { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.badge-cat { background: #eef2ff; color: #4338ca; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.post-detail { font-size: 15px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.section-h { font-size: 16px; margin: 22px 0 12px; }
.reply-list { display: flex; flex-direction: column; gap: 10px; }
.reply-item { padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.reply-head { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.reply-author { font-weight: 600; }
.reply-body { font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.kind-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-opt { cursor: pointer; }
.kind-opt input { display: none; }
.kind-opt span { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--chip-bg); color: var(--text-2); font-size: 13px; border: 1px solid var(--border); transition: all .15s; }
.kind-opt input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.form-row textarea, .form-row input[type="text"], .form-row input[type="number"], .form-row input:not([type]), .form-row select { width: 100%; }
.form-row textarea { resize: vertical; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.badge-danger { background: #fee2e2; color: #b91c1c; }

/* ============ 站内通知 ============ */
.notification-list { display: flex; flex-direction: column; gap: 12px; }
.notification-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
                     padding: 14px; border: 1px solid var(--border); border-radius: 12px;
                     background: var(--surface); }
.notification-item.unread { background: var(--primary-soft); border-left: 3px solid var(--primary); }
.notification-main { flex: 1; }
.notification-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.notification-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.notification-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.notification-content { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.6; }
.notification-link { font-size: 12px; margin-top: 6px; display: inline-block; }

/* ============ 招聘详情页：阶段时间线 ============ */
.job-timeline { padding: 16px 8px; }
.timeline-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  overflow-x: auto;
  padding: 18px 6px 14px;
  position: relative;
}
.timeline-node {
  flex: 1 1 0;
  min-width: 92px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 连接线：从本节点圆点中心连到下一节点圆点中心（替代悬空的 .timeline-line） */
.timeline-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 4px;
  background: var(--border);
  z-index: 1;
}
.timeline-node.reached:not(:last-child)::before {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-soft) 100%);
}
.timeline-node .node-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
}
.timeline-node .node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.25s ease;
}
/* 已到达节点 */
.timeline-node.reached .node-ring {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-soft) 0%, #fff 100%);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb, 22, 163, 74), 0.16);
}
.timeline-node.reached .node-dot {
  background: var(--primary);
}
/* 当前节点：脉冲光环 */
.timeline-node.current .node-ring {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff 0%, var(--primary-soft) 100%);
  animation: node-pulse 2.2s ease-in-out infinite;
}
.timeline-node.current.reached .node-dot {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--primary);
}
@keyframes node-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 10px rgba(79, 70, 229, 0.18); }
  50% { transform: scale(1.08); box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28); }
}
.timeline-node .node-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.timeline-node .node-label:hover {
  background: var(--surface);
}
.timeline-node.reached .node-label {
  color: var(--text-1);
}
.timeline-node.current .node-label {
  color: var(--primary);
}

/* 节点操作按钮 */
.timeline-node .node-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.timeline-node:hover .node-actions {
  opacity: 1;
}
.timeline-node .node-actions form {
  display: inline-flex;
  margin: 0;
}
.timeline-node .node-action-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}
.timeline-node .node-action-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}
.timeline-node .node-action-btn.danger:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #dc2626;
}

/* 新增节点表单 */
.node-add-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.node-add-form input[type="text"] {
  width: 160px;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-1);
}
.node-add-form input[type="datetime-local"] {
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-1);
}
.node-imp-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.node-imp-label input { transform: translateY(1px); }
.node-add-form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* 重命名表单 */
.node-rename-form {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.node-rename-form input[type="text"] {
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-1);
  width: 100%;
}
@media (max-width: 640px) {
  .card-title .node-add-form {
    width: 100%;
    margin-top: 6px;
  }
  .card-title .node-add-form input[type="text"] {
    flex: 1 1 auto;
  }
  .node-add-form {
    display: flex;
  }
}

.timeline-node .node-edit-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}
/* 连接线 */
.timeline-line {
  flex: 1 1 20px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 16px;
  min-width: 16px;
  position: relative;
  overflow: hidden;
}
.timeline-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-soft) 100%);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.timeline-line.filled::after {
  width: 100%;
}
.timeline-end-out {
  margin-top: 20px;
  text-align: center;
  padding: 12px;
  background: #fef2f2;
  border-radius: 10px;
}
/* 已淘汰：流程在当前节点终止，未到达的后续节点整体置灰 */
.timeline-node.out { opacity: .45; filter: grayscale(.6); }
.timeline-node.out .node-ring { animation: none; }

/* 变更历史 */
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.history-time {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  min-width: 110px;
}
.history-body { font-size: 14px; }
.history-from { color: var(--text-3); text-decoration: line-through; margin-right: 4px; }
.history-arrow { color: var(--text-3); margin: 0 6px; }
.history-to { font-weight: 600; }
.history-note {
  color: var(--text-3);
  font-size: 12px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px solid var(--border);
}

/* 设置页·退出登录 */
.logout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logout-card h2,
.logout-card p {
  margin: 0;
}

/* ============ 收藏夹 · HTML 文件（上传网页 / 在线查看） ============ */
.file-view-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.file-view-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-view-title { font-size: 15px; }
.file-view-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.file-view-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.sandbox-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e0f2fe;
  color: #0369a1;
}
.file-view-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 210px);
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

/* 收藏夹列表里的文件条目 */
.note-file {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: 8px;
}
.note-file-icon { font-size: 14px; }
.note-file-name {
  font-size: 12px;
  color: var(--text-2);
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-file .btn { margin-left: auto; }

/* ============ 招聘表单：左基本信息 + 右节点初始化面板 ============ */
.job-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.15fr;
  gap: 16px;
  align-items: start;
}
.job-form-layout .card { max-width: none; }
.node-init-card { position: sticky; top: 16px; }
/* 节点初始化列表：响应式双列栅格，压缩右侧卡高度，与左侧基本信息卡视觉平衡 */
.node-init-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.node-init-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.node-init-row.reached { opacity: 0.72; }
.node-init-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.node-init-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.node-init-dates { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.node-init-dates .time-panel { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.node-init-dates .time-panel[hidden] { display: none; }
.node-init-dates input[type="date"],
.node-init-dates input[type="datetime-local"] {
  font-size: 12px;
  padding: 4px 6px;
  flex: 1 1 140px;
  min-width: 0;
  width: 100%;
  max-width: none;
}
.node-init-tilde { color: var(--text-3); font-size: 12px; }
.node-dates-edit { display: flex; flex-direction: column; gap: 4px; }
.node-dates-edit .time-panel { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.node-dates-edit .time-panel[hidden] { display: none; }
.node-dates-edit input[type="date"],
.node-dates-edit input[type="datetime-local"] {
  font-size: 12px;
  padding: 4px 6px;
  max-width: 178px;
}
.node-edit-tilde { color: var(--text-3); font-size: 12px; }
.node-init-bottom { display: flex; gap: 6px; }
.node-init-bottom input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  padding: 5px 8px;
}
@media (max-width: 1024px) {
  .job-form-layout { grid-template-columns: 1fr; }
  .node-init-card { position: static; }
}

/* 招聘表单悬浮提交栏：滚动到页面任意位置都可见，不再沉在长表单底部 */
.form-actions-float {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  width: fit-content;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ============================================================
   2026-09-28 用户侧体验优化：清晰层级、模块辨识、移动端导航
   ============================================================ */
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 3000;
  padding: 9px 14px; border-radius: 9px; background: var(--primary); color: #fff;
  box-shadow: var(--shadow); transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

.mobile-topbar, .sidebar-scrim, .mobile-menu-close { display: none; }

.page-kicker {
  color: var(--module-accent, var(--primary));
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  margin-bottom: 2px;
}
.module-head { --module-accent: var(--primary); position: relative; }
.module-head.module-research { --module-accent: var(--c-research); }
.module-head.module-life { --module-accent: var(--c-life); }
.module-head.module-job { --module-accent: var(--c-job); }
.module-head.module-calendar { --module-accent: var(--primary); }
.module-head h1 { letter-spacing: -.02em; }
.module-head .sub { max-width: 680px; line-height: 1.65; }

.btn-primary {
  box-shadow: 0 5px 14px color-mix(in srgb, var(--primary) 24%, transparent);
}
.quick-create-actions .btn { border-width: 1px; font-weight: 600; }
.quick-create-actions .quick-research { color: var(--c-research-ink); border-color: color-mix(in srgb, var(--c-research) 28%, var(--border)); background: var(--c-research-soft); }
.quick-create-actions .quick-life { color: var(--c-life-ink); border-color: color-mix(in srgb, var(--c-life) 28%, var(--border)); background: var(--c-life-soft); }
.quick-create-actions .quick-job { color: var(--c-job-ink); border-color: color-mix(in srgb, var(--c-job) 28%, var(--border)); background: var(--c-job-soft); }

.label-note { color: var(--text-3); font-size: 11.5px; font-weight: 400; margin-left: 4px; }

/* 科研 / 生活列表筛选 */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: -4px 0 14px;
}
.list-filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.list-filter {
  appearance: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); border-radius: 999px; padding: 6px 11px;
  font: 500 12px/1.4 var(--font); cursor: pointer; transition: var(--t-fast);
}
.list-filter:hover { color: var(--primary); border-color: var(--primary); }
.list-filter.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.list-filter span { opacity: .8; margin-left: 2px; }
.list-help { color: var(--text-3); font-size: 12px; text-align: right; }
.module-task-list .task-row[hidden] { display: none; }
.filter-empty {
  border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--text-3); padding: 30px; text-align: center; background: var(--surface-2);
}
.task-row.module-research-row { border-left: 3px solid color-mix(in srgb, var(--c-research) 72%, var(--border)); }
.task-row.module-life-row { border-left: 3px solid color-mix(in srgb, var(--c-life) 72%, var(--border)); }
.task-row.done { opacity: .72; }
.task-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.item-state-badge {
  display: inline-flex; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; line-height: 1.7; text-decoration: none;
}
.item-state-badge.state-pending { background: var(--primary-soft); color: var(--primary-dark); }
.item-state-badge.state-overdue { background: #feecec; color: #b91c1c; }
.item-state-badge.state-done { background: var(--surface-2); color: var(--text-3); }
.task-row.done .item-state-badge { text-decoration: none; }

/* 日历：模块颜色表达“来自哪里”，划线表达“是否完成” */
.cal-month-center { display: flex; align-items: center; gap: 9px; }
.cal-today-link, .cal-current-month {
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
.cal-current-month { color: var(--text-3); background: var(--surface-2); }
.cal-ev.ev-open.cal-kind-research { background: var(--c-research-soft); color: var(--c-research-ink); }
.cal-ev.ev-open.cal-kind-life { background: var(--c-life-soft); color: var(--c-life-ink); }
.cal-ev.ev-open.cal-kind-job { background: var(--c-job-soft); color: var(--c-job-ink); }
.cal-ev.ev-done { opacity: .68; }
.cal-module-card { border-top: 3px solid var(--module-color); }
.cal-research-card { --module-color: var(--c-research); }
.cal-life-card { --module-color: var(--c-life); }
.cal-job-card { --module-color: var(--c-job); }
.card-title-link { color: var(--text-3); font-size: 11.5px; font-weight: 500; }
.card-title-link:hover { color: var(--module-color, var(--primary)); }
.cal-research-card .cal-mi-cat { color: var(--c-research-ink); }
.cal-life-card .cal-mi-cat { color: var(--c-life-ink); }
.cal-job-card .cal-mi-cat { color: var(--c-job-ink); }

/* 招聘卡：直接说明下一步是什么，避免“推进”含义模糊 */
.job-progress-overview { border-top: 3px solid var(--c-job); }
.advanced-summary { font-size: 13px; cursor: pointer; width: fit-content; }
.advanced-summary:hover { color: var(--primary); }
.advanced-help { flex-basis: 100%; font-size: 12px; color: var(--text-3); }
.job-next-step {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px;
  border-left: 3px solid var(--c-job); background: var(--c-job-soft);
  color: var(--c-job-ink); border-radius: 7px; padding: 7px 9px; font-size: 12px;
}
.job-next-step .job-next-label { font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: var(--surface); color: var(--text-2); }
.job-next-step strong { font-size: 12.5px; color: var(--text); }
.job-next-time { color: var(--text-2); white-space: nowrap; }
.job-next-step.is-finished { border-color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.btn-job-advance { border-color: color-mix(in srgb, var(--c-job) 35%, var(--border)); color: var(--c-job-ink); background: var(--c-job-soft); font-weight: 600; }

@media (max-width: 768px) {
  body { display: block; }
  .mobile-topbar {
    position: fixed; inset: 0 0 auto 0; z-index: 1100; height: 58px;
    display: grid; grid-template-columns: 42px 1fr 42px; align-items: center;
    padding: 0 12px; background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid var(--border); backdrop-filter: blur(14px);
  }
  .mobile-menu-open, .mobile-notice {
    width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent;
    color: var(--text-2); display: flex; align-items: center; justify-content: center;
  }
  .mobile-menu-open { flex-direction: column; gap: 4px; }
  .mobile-menu-open span { width: 19px; height: 2px; border-radius: 2px; background: currentColor; }
  .mobile-brand { justify-self: center; display: flex; align-items: center; gap: 8px; color: var(--text); }
  .mobile-brand-logo { width: 28px; height: 28px; display: block; }
  .mobile-brand-logo svg { width: 100%; height: 100%; }
  .mobile-brand strong { font-size: 15px; }
  .mobile-notice { position: relative; justify-self: end; }
  .mobile-notice .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .mobile-notice span { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
  .mobile-topbar-spacer { width: 38px; }

  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 1300;
    width: min(84vw, 300px); transform: translateX(-105%);
    box-shadow: 18px 0 50px rgba(15, 23, 42, .2); transition: transform .22s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-scrim {
    position: fixed; inset: 0; z-index: 1200; border: 0;
    background: rgba(15, 23, 42, .38); opacity: 0; pointer-events: none;
    display: block; transition: opacity .22s ease;
  }
  body.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .brand { padding: 16px 18px; }
  .brand-text { display: flex; }
  .mobile-menu-close { display: block; margin-left: auto; border: 0; background: var(--surface-2); color: var(--text-2); width: 32px; height: 32px; border-radius: 9px; font-size: 23px; line-height: 1; }
  .nav-group-label { display: block; }
  .nav-item { justify-content: flex-start; padding: 10px 12px; }
  .nav-item span { display: inline-flex; }
  .sidebar-foot { padding: 14px 18px; justify-content: flex-start; }
  .sidebar-foot.user-box .user-meta { display: flex; }
  .mobile-logout { display: none; }
  .main { height: 100vh; padding-top: 58px; }
  .page-calendar .content { padding-left: 16px; }
  .quick-create-actions { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .quick-create-actions .btn { justify-content: center; padding-left: 8px; padding-right: 8px; }
  .list-toolbar { align-items: flex-start; flex-direction: column; }
  .list-help { text-align: left; }
  .job-next-step { grid-template-columns: auto 1fr; }
  .job-next-time { grid-column: 2; }
}

@media (max-width: 520px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .stats-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 5px; }
  .stat-card { min-width: 132px; scroll-snap-align: start; }
  .task-row { position: relative; padding: 13px 12px; }
  .task-right { width: 100%; align-items: flex-start; }
  .task-actions { width: 100%; border-top: 1px solid var(--border); padding-top: 8px; }
  .task-actions .btn { padding: 5px 9px; }
  .cal-head .btn { padding-left: 8px; padding-right: 8px; }
  .cal-head .month { font-size: 15px; }
  .cal-current-month, .cal-today-link { display: none; }
  .job-grid { grid-template-columns: 1fr; }
  .job-card { padding: 15px; }
  .job-foot { align-items: stretch; }
}

