/* ══════════════════════════════════════════
   ResumeTribe · 公共样式
   resume.happyvillage.cn
   主题：方案 B「深白双轨」
   - 全局/Landing/Auth/Editor：浅色
   - Dashboard Sidebar：深靛蓝（#1e3a5f）
══════════════════════════════════════════ */

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

:root {
  /* ── 背景层次（浅色） ── */
  --bg:       #f8f9fa;   /* 主页面底色，米白 */
  --bg2:      #ffffff;   /* 卡片、面板底色，纯白 */
  --bg3:      #f1f3f5;   /* 悬停/凹陷/标签背景 */
  --bg4:      #e9ecef;   /* 更深一层的交互区 */

  /* ── 边框 ── */
  --border:   #e5e7eb;   /* 主边框 */
  --border2:  #d1d5db;   /* 次边框、卡片边框 */

  /* ── 文字 ── */
  --text:     #111827;   /* 主文字，近黑，高对比 */
  --text2:    #374151;   /* 次文字 */
  --text3:    #9ca3af;   /* 弱文字、占位符 */

  /* ── 强调色（靛蓝紫） ── */
  --accent:   #1d4ed8;
  --accent2:  #2563eb;
  --accent-bg: rgba(29,78,216,0.08);

  /* ── 功能色 ── */
  --danger:   #ef4444;
  --success:  #16a34a;

  /* ── 形状 ── */
  --radius:   12px;
  --radius-sm: 7px;
  --shadow:   0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);

  /* ── Dashboard Sidebar 专用深色变量 ── */
  --sidebar-bg:      #1e3a5f;   /* 深海蓝 */
  --sidebar-bg2:     #1e3a8a;   /* 悬停 */
  --sidebar-bg3:     #1d4ed8;   /* 激活 */
  --sidebar-border:  rgba(255,255,255,0.10);
  --sidebar-text:    rgba(255,255,255,0.90);
  --sidebar-text2:   rgba(255,255,255,0.55);
  --sidebar-text3:   rgba(255,255,255,0.35);
  --sidebar-accent:  #93c5fd;   /* 激活态文字/图标 */
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── 通用按钮 ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  border: none; transition: all .18s; text-decoration: none;
  white-space: nowrap; user-select: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: #1e3a8a; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(29,78,216,.3); } /* #1e3a8a = accent-dark */
.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text3); background: var(--bg3); }
.btn-danger {
  background: transparent; color: var(--danger);
  border: 1px solid rgba(239,68,68,0.35);
}
.btn-danger:hover { background: rgba(239,68,68,0.08); }
.btn-sm { padding: 5px 11px; font-size: 0.8rem; }
.btn-icon { padding: 7px; border-radius: var(--radius-sm); }

/* ── 通用输入框 ── */
.input, .textarea, .select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  padding: 9px 12px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
  background: var(--bg2);
}
.textarea { resize: vertical; min-height: 80px; }
.select { appearance: none; cursor: pointer; }
.input::placeholder, .textarea::placeholder { color: var(--text3); }

/* ── 标签 ── */
.label {
  display: block; font-size: 0.8rem;
  color: var(--text2); margin-bottom: 5px; font-weight: 500;
}

/* ── 顶栏（通用，用于非 Dashboard 页面） ── */
.topbar {
  position: sticky; top: 0; z-index: 200;
  height: 56px;
  background: rgba(248,249,250,0.92); /* ~= var(--bg) @92% */
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 12px;
}
.topbar-logo {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 1rem; color: var(--text);
  text-decoration: none;
}
.topbar-logo span { color: var(--accent); }
.topbar-spacer { flex: 1; }

/* ── Toast 通知 ── */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff;
  padding: 10px 20px; border-radius: 20px;
  font-size: 0.875rem; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
#toast.success { background: var(--success); }
#toast.error   { background: var(--danger); }

/* ── 遮罩弹窗 ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(17,24,39,0.45); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.modal-title {
  font-size: 1.05rem; font-weight: 600; margin-bottom: 20px;
  color: var(--text);
}
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── 空状态 ── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text3);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 16px; }

/* ══════════════════════════════════════════
   公共组件：简历库 & 卡片预览迷你样式
   （dashboard.html + index.html 共用）
══════════════════════════════════════════ */

/* ── 筛选按钮 ── */
.lib-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn {
  padding: 6px 16px; border-radius: 20px; font-size: .82rem; cursor: pointer;
  border: 1px solid var(--border2); background: transparent; color: var(--text3); transition: all .15s;
}
.filter-btn:hover { color: var(--text2); border-color: var(--text3); }
.filter-btn.active { background: var(--accent-bg); color: var(--accent2); border-color: var(--accent); }

/* ── 简历库网格 ── */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.lib-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color .18s, transform .18s; display: flex; flex-direction: column;
}
.lib-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.lib-card-preview { height: 160px; background: var(--bg2); overflow: hidden; position: relative; border-bottom: 1px solid rgba(0,0,0,.06); }
.lib-preview-inner {
  transform: scale(0.32); transform-origin: top left; width: 312%; pointer-events: none;
  font-family: 'Noto Sans SC','PingFang SC',sans-serif; font-size: 13px; color: var(--text); line-height: 1.55;
}
.lib-card-info { padding: 14px 16px 10px; flex: 1; }
.lib-card-name { font-size: .925rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.lib-card-desc { font-size: .78rem; color: var(--text3); line-height: 1.5; }
.lib-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.lib-tag { font-size: .7rem; padding: 2px 9px; border-radius: 10px; background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }
.lib-card-actions { padding: 0 16px 14px; }
.lib-card-actions .btn { width: 100%; justify-content: center; }

/* ── 卡片预览迷你样式（库缩略图）── */
.lp-simple .lp-head { padding: 14px 18px 10px; border-bottom: 2px solid var(--accent); }
.lp-name { font-size: 17px; font-weight: 700; }
.lp-name.dark  { color: var(--text); }
.lp-job  { font-size: 10px; margin-top: 2px; }
.lp-job.accent { color: var(--accent); }
.lp-body { padding: 10px 18px; }
.lp-sec-title { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 3px; margin-bottom: 6px; margin-top: 8px; }
.lp-item-title { font-size: 10px; font-weight: 600; color: var(--text); }
.lp-item-desc  { font-size: 9px; color: var(--text2); margin-top: 2px; line-height: 1.5; }
.lp-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-skill  { font-size: 9px; padding: 2px 7px; border-radius: 10px; }
.lp-skill.blue { background: var(--accent-bg); color: var(--accent); border: 1px solid rgba(29,78,216,.2); }

/* ── 模板切换按钮 ── */
.tpl-btn {
  padding: 5px 12px; border-radius: 6px; font-size: .78rem; cursor: pointer;
  border: 1px solid var(--border2); background: transparent; color: var(--text3); transition: all .15s;
}
.tpl-btn:hover { color: var(--text2); border-color: var(--text3); }
.tpl-btn.active { background: var(--accent-bg); color: var(--accent2); border-color: var(--accent); }

/* ── 简历库分区标题 ── */
.lib-section-title {
  font-size: .8rem; font-weight: 700; color: var(--text3); letter-spacing: 1px;
  margin: 28px 0 14px; display: flex; align-items: center; gap: 8px;
}
.lib-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── 卡片预览迷你头（mini-header）── */
.mini-header { padding: 14px 18px 10px; }
.mini-header.simple   { border-bottom: 2px solid var(--accent); }
.mini-header.business { background: #1e2030; } /* 深色 Header，与模板一致，固定值 */
.mini-header.creative { background: linear-gradient(120deg, var(--accent2), #3b82f6); }
.mini-name { font-size: 18px; font-weight: 700; }
.mini-name.light { color: #fff; } /* 亮白文字，深色背景上，固定值 */
.mini-tag { font-size: 10px; margin-top: 3px; }
.mini-tag.accent { color: var(--accent); }
.mini-tag.light  { color: rgba(255,255,255,.8); }
.mini-line { height: 5px; border-radius: 3px; background: var(--bg4); margin: 5px 18px; }
.mini-line.short  { width: 38%; }
.mini-line.medium { width: 62%; }
.mini-line.long   { width: 80%; }
.mini-section { padding: 6px 18px 0; }
.mini-section-title { font-size: 7px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-bottom: 4px; }
.mini-section-title.light { color: rgba(255,255,255,.7); }

/* ── 写法指南弹窗（guide-modal）── */
.guide-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.guide-modal-overlay.hidden { display: none; }
.guide-modal {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 14px; width: 100%; max-width: 640px; max-height: 88vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.guide-modal-head {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0;
}
.guide-modal-icon { font-size: 1.6rem; line-height: 1; margin-top: 2px; }
.guide-modal-htitle { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.guide-modal-hsub   { font-size: .8rem; color: var(--text3); margin-top: 3px; }
.guide-modal-close  {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text3); padding: 4px; border-radius: 6px; flex-shrink: 0;
}
.guide-modal-close:hover { background: var(--bg3); color: var(--text); }
.guide-modal-body { padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }

/* Guide 分节标题 */
.guide-section-title {
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--text3); text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.guide-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* HR 最看重 */
.guide-focus-list { display: flex; flex-direction: column; gap: 7px; }
.guide-focus-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg3); border-radius: 8px; padding: 10px 12px;
  border: 1px solid var(--border);
}
.guide-focus-rank {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #fff; margin-top: 1px; /* 彩色徽章上的白字，固定值 */
}
.guide-focus-rank.r1 { background: #f59e0b; }
.guide-focus-rank.r2 { background: #94a3b8; }
.guide-focus-rank.r3 { background: #cd7c4b; }
.guide-focus-rank.r4 { background: var(--accent); }
.guide-focus-rank.r5 { background: #64748b; }
.guide-focus-text { font-size: .85rem; color: var(--text2); line-height: 1.5; }
.guide-focus-text strong { color: var(--text); font-weight: 600; }

/* 高分句式 */
.guide-phrases { display: flex; flex-direction: column; gap: 8px; }
.guide-phrase {
  background: rgba(29,78,216,.06); border: 1px solid rgba(29,78,216,.18);
  border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  padding: 10px 14px; font-size: .84rem; color: var(--text2); line-height: 1.6;
}
.guide-phrase em { color: var(--accent2); font-style: normal; font-weight: 600; }

/* 对比 */
.guide-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .guide-compare { grid-template-columns: 1fr; } }
.guide-compare-bad, .guide-compare-good {
  border-radius: 8px; padding: 12px 14px; font-size: .82rem; line-height: 1.6;
}
.guide-compare-bad  { background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.25); color: var(--text2); }
.guide-compare-good { background: rgba(34,197,94,.07); border: 1px solid rgba(34,197,94,.25); color: var(--text2); }
.guide-compare-label { font-size: .7rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.guide-compare-bad  .guide-compare-label { color: var(--danger); }
.guide-compare-good .guide-compare-label { color: var(--success); }

/* 小贴士 */
.guide-tips { display: flex; flex-direction: column; gap: 6px; }
.guide-tip  {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .84rem; color: var(--text2); line-height: 1.5;
}
.guide-tip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }

/* ── 通用加载状态 ── */
.loading-state { text-align: center; padding: 60px 20px; color: var(--text3); }

/* ══════════════════════════════════════════
   响应式补全：Dashboard / Editor 移动端
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Dashboard — Sidebar 折叠为顶栏 */
  .dash-shell { flex-direction: column; }

  .dash-sidebar {
    width: 100%; height: auto; flex-direction: row;
    padding: 0; overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    flex-shrink: 0;
  }
  .dash-sidebar::after { display: none; }

  /* Logo 区变为左对齐行内 */
  .sidebar-logo { padding: 10px 16px; border-bottom: none; border-right: 1px solid var(--sidebar-border); flex-shrink: 0; }

  /* 导航横向滚动 */
  .sidebar-nav {
    flex: 1; flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding: 8px 8px; gap: 2px; align-items: center;
    scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }

  /* 分区标签、分割线在移动端隐藏 */
  .sidebar-nav-label { display: none; }
  .sidebar-nav-divider { width: 1px; height: 20px; margin: 0 4px; background: var(--sidebar-border); }

  /* 导航条目横向紧凑 */
  .sidebar-nav-item { padding: 7px 10px; border-radius: 8px; width: auto; white-space: nowrap; font-size: .8rem; }
  .sidebar-nav-item svg { display: none; }

  /* 底部用户区折叠到右侧 */
  .sidebar-footer { border-top: none; border-left: 1px solid var(--sidebar-border); padding: 8px 12px; flex-direction: row; align-items: center; gap: 8px; flex-shrink: 0; }
  .sidebar-badge-row { display: none; }
  .sidebar-user-name, .sidebar-user-sub { display: none; }
  .sidebar-quota, .sidebar-unlock { display: none !important; }

  /* 内容区 */
  .dash-content { height: calc(100vh - 52px); }
  .content-scroll { padding: 16px; }
  .content-topbar { padding: 0 16px; }

  /* Dashboard 内容区：小屏隐藏顶栏文字副标题，仅保留标题 */
  .content-topbar-sub { display: none; }
}

@media (max-width: 560px) {
  .resume-grid,
  .lib-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* Landing Page 功能卡片：三列 → 两列 */
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-before-after { grid-template-columns: 1fr 1fr; }
  .lp-reviews { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   公共：三套简历模板样式
   （editor.html / share.html 共用）
══════════════════════════════════════════ */

/* ── 简历纸张通用 ──
   注意：简历模板颜色均为「打印安全色」，有意使用固定值，
   不随主题变量变化（保证导出 PDF 效果一致）
── */
.resume-paper {
  background: #fff;          /* 纸张白底，固定 */
  font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
  color: #1a1a1a; font-size: 13px; line-height: 1.65; /* 近黑色印刷色，固定 */
}

/* ── 简约蓝 ── */
.tpl-simple .resume-header { padding: 32px 40px 24px; border-bottom: 3px solid #1d4ed8; } /* =accent */
.tpl-simple .resume-name { font-size: 26px; font-weight: 700; color: #1a2744; } /* 深海蓝印刷色 */
.tpl-simple .resume-target { font-size: 13px; color: #1d4ed8; margin-top: 4px; font-weight: 500; } /* =accent */
.tpl-simple .resume-contact { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #555; } /* 中灰印刷色 */
.tpl-simple .resume-contact span { display: flex; align-items: center; gap: 4px; }
.tpl-simple .resume-body { padding: 22px 40px; }
.tpl-simple .r-section { margin-bottom: 20px; }
.tpl-simple .r-section-title { font-size: 13px; font-weight: 700; color: #1d4ed8; letter-spacing: 1px; padding-bottom: 5px; border-bottom: 1px solid #dbeafe; margin-bottom: 12px; } /* =accent / 浅蓝印刷分割线 */
.tpl-simple .r-summary { font-size: 13px; color: #333; line-height: 1.7; } /* 印刷深灰 */
.tpl-simple .r-item { margin-bottom: 14px; }
.tpl-simple .r-item-head { display: flex; justify-content: space-between; align-items: baseline; }
.tpl-simple .r-item-title { font-weight: 600; font-size: 13.5px; color: #111; } /* 印刷近黑 */
.tpl-simple .r-item-date { font-size: 11.5px; color: #888; flex-shrink: 0; margin-left: 12px; } /* 印刷中灰 */
.tpl-simple .r-item-sub { font-size: 12px; color: #666; margin-top: 1px; } /* 印刷中灰 */
.tpl-simple .r-item-desc { font-size: 12.5px; color: #444; margin-top: 6px; white-space: pre-wrap; line-height: 1.7; } /* 印刷深灰 */
.tpl-simple .r-skills { display: flex; flex-wrap: wrap; gap: 7px; }
.tpl-simple .r-skill-tag { background: #eff6ff; color: #1d4ed8; padding: 3px 12px; border-radius: 20px; font-size: 12px; border: 1px solid #bfdbfe; } /* 印刷浅紫蓝 */

/* ── 商务灰 ── */
.tpl-business .resume-header { padding: 32px 40px 24px; background: #1e2030; } /* 商务深色 Header，固定 */
.tpl-business .resume-name { font-size: 26px; font-weight: 700; color: #fff; } /* Header白字，固定 */
.tpl-business .resume-target { font-size: 13px; color: #94a3b8; margin-top: 4px; } /* Header浅灰字，固定 */
.tpl-business .resume-contact { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #94a3b8; } /* Header浅灰字，固定 */
.tpl-business .resume-contact span { display: flex; align-items: center; gap: 4px; }
.tpl-business .resume-body { padding: 22px 40px; }
.tpl-business .r-section { margin-bottom: 20px; }
.tpl-business .r-section-title { font-size: 12px; font-weight: 700; color: #1e2030; letter-spacing: 2px; padding-bottom: 5px; border-bottom: 2px solid #1e2030; margin-bottom: 12px; } /* 深色标题印刷色，固定 */
.tpl-business .r-summary { font-size: 13px; color: #333; line-height: 1.7; } /* 印刷深灰 */
.tpl-business .r-item { margin-bottom: 14px; }
.tpl-business .r-item-head { display: flex; justify-content: space-between; align-items: baseline; }
.tpl-business .r-item-title { font-weight: 600; font-size: 13.5px; color: #111; } /* 印刷近黑 */
.tpl-business .r-item-date { font-size: 11.5px; color: #888; flex-shrink: 0; margin-left: 12px; } /* 印刷中灰 */
.tpl-business .r-item-sub { font-size: 12px; color: #666; margin-top: 1px; } /* 印刷中灰 */
.tpl-business .r-item-desc { font-size: 12.5px; color: #444; margin-top: 6px; white-space: pre-wrap; line-height: 1.7; } /* 印刷深灰 */
.tpl-business .r-skills { display: flex; flex-wrap: wrap; gap: 7px; }
.tpl-business .r-skill-tag { background: #f1f5f9; color: #334155; padding: 3px 12px; border-radius: 4px; font-size: 12px; border: 1px solid #e2e8f0; } /* 印刷浅蓝灰 */

/* ── 创意渐变 ── */
.tpl-creative .resume-paper-inner { display: grid; grid-template-columns: 220px 1fr; }
.tpl-creative .resume-sidebar { background: linear-gradient(160deg, #2563eb, #3b82f6); padding: 32px 22px; color: #fff; } /* 创意渐变，固定色 */
.tpl-creative .resume-name { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.3; } /* 侧栏白字，固定 */
.tpl-creative .resume-target { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 6px; } /* 侧栏半透明白字，固定 */
.tpl-creative .resume-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: rgba(255,255,255,.85); } /* 侧栏白字，固定 */
.tpl-creative .resume-contact span { display: flex; align-items: center; gap: 6px; }
.tpl-creative .r-sidebar-section { margin-top: 22px; }
.tpl-creative .r-sidebar-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.tpl-creative .r-skill-tag { display: block; background: rgba(255,255,255,.15); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; margin-bottom: 6px; }
.tpl-creative .resume-main { padding: 32px 28px; }
.tpl-creative .r-section { margin-bottom: 22px; }
.tpl-creative .r-section-title { font-size: 12px; font-weight: 700; color: #2563eb; letter-spacing: 1.5px; padding-bottom: 5px; border-bottom: 2px solid #dbeafe; margin-bottom: 12px; } /* =accent2，印刷色 */
.tpl-creative .r-summary { font-size: 13px; color: #333; line-height: 1.7; } /* 印刷深灰 */
.tpl-creative .r-item { margin-bottom: 14px; }
.tpl-creative .r-item-head { display: flex; justify-content: space-between; align-items: baseline; }
.tpl-creative .r-item-title { font-weight: 600; font-size: 13.5px; color: #111; } /* 印刷近黑 */
.tpl-creative .r-item-date { font-size: 11.5px; color: #888; flex-shrink: 0; margin-left: 12px; } /* 印刷中灰 */
.tpl-creative .r-item-sub { font-size: 12px; color: #666; margin-top: 1px; } /* 印刷中灰 */
.tpl-creative .r-item-desc { font-size: 12.5px; color: #444; margin-top: 6px; white-space: pre-wrap; line-height: 1.7; } /* 印刷深灰 */

/* 移动端创意渐变模板：单列 */
@media (max-width: 600px) {
  .tpl-creative .resume-paper-inner { grid-template-columns: 1fr; }
  .tpl-simple .resume-header, .tpl-business .resume-header,
  .tpl-simple .resume-body, .tpl-business .resume-body,
  .tpl-creative .resume-main, .tpl-creative .resume-sidebar { padding-left: 20px; padding-right: 20px; }
}

/* ══════════════════════════════════════════
   指南文章页公共样式
   （guide-work-experience.html / guide-summary.html / guide-quantify.html 共用）
   变量别名：guide 页面使用 --indigo 等本地变量，
   此处统一映射到 :root 的 --accent 等全局变量
══════════════════════════════════════════ */

/* ── guide 页面局部变量映射 ── */
.guide-page {
  --indigo:       var(--accent);
  --indigo-dark:  #1e3a8a;
  --indigo-light: #dbeafe;
  --text1:        #1e3a5f;
  --text2:        #374151;
  --text3:        #6b7280;
  --text4:        #9ca3af;
  font-size: 16px;
  line-height: 1.7;
}
.guide-page body { background: var(--bg2); color: var(--text2); }

/* ── 顶栏 ── */
.site-header { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header-inner { max-width: 1000px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { font-size: 1rem; font-weight: 700; color: #1e3a5f; text-decoration: none; }
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 20px; align-items: center; }
.site-nav a { font-size: .875rem; color: #6b7280; text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-cta { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 7px 18px; font-size: .875rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.site-cta:hover { background: #1e3a8a; }

/* ── 文章布局 ── */
.article-wrap { max-width: 1000px; margin: 0 auto; padding: 48px 24px 80px; display: grid; grid-template-columns: 1fr 260px; gap: 48px; }
@media (max-width: 768px) { .article-wrap { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* ── 文章头 ── */
.article-breadcrumb { font-size: .8rem; color: #9ca3af; margin-bottom: 20px; }
.article-breadcrumb a { color: #6b7280; text-decoration: none; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb span { margin: 0 6px; }
.article-tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--accent); background: #dbeafe; border-radius: 20px; padding: 3px 12px; margin-bottom: 14px; }
.article-title { font-size: 2rem; font-weight: 800; color: #1e3a5f; line-height: 1.25; margin-bottom: 16px; }
.article-meta { font-size: .85rem; color: #9ca3af; margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.article-meta strong { color: #6b7280; }
.article-lead { font-size: 1.05rem; color: #6b7280; line-height: 1.8; padding: 20px 24px; background: #dbeafe; border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; margin-bottom: 40px; }

/* ── 文章正文 ── */
.article-body h2 { font-size: 1.4rem; font-weight: 800; color: #1e3a5f; margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 2px solid #dbeafe; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: #1e3a5f; margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; color: var(--text2); }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; }
.article-body li { margin-bottom: 8px; color: var(--text2); }
.article-body strong { color: #1e3a5f; font-weight: 600; }
.article-body em { font-style: normal; color: var(--accent2); font-weight: 600; }

/* ── 对比卡片 ── */
.compare-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 28px; }
@media (max-width: 560px) { .compare-box { grid-template-columns: 1fr; } }
.compare-bad, .compare-good { border-radius: 10px; padding: 14px 16px; font-size: .875rem; line-height: 1.7; }
.compare-bad  { background: #fff5f5; border: 1px solid #fecaca; }
.compare-good { background: #f0fdf4; border: 1px solid #bbf7d0; }
.compare-label { font-size: .72rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.compare-bad  .compare-label { color: var(--danger); }
.compare-good .compare-label { color: var(--success); }

/* ── 公式卡片 ── */
.formula-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin: 20px 0 28px; }
.formula-name { font-size: .75rem; font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.formula-parts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.formula-parts.vertical { align-items: flex-start; gap: 10px; }
.formula-part { background: #dbeafe; color: var(--accent); font-weight: 700; font-size: .875rem; padding: 6px 14px; border-radius: 8px; }
.formula-part strong { display: block; font-size: .7rem; letter-spacing: 1px; color: var(--accent); margin-bottom: 3px; }
.formula-part span { font-size: .8rem; font-weight: 400; }
.formula-plus { color: #9ca3af; font-weight: 300; font-size: 1.2rem; }
.formula-example { font-size: .875rem; color: #6b7280; line-height: 1.7; padding: 12px 16px; background: var(--bg3); border-radius: 8px; }
.formula-example strong { color: var(--accent); }

/* ── 提示块 ── */
.tip-box  { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 14px 18px; margin: 20px 0; font-size: .875rem; color: var(--text2); line-height: 1.7; }
.tip-box::before  { content: '💡 '; font-size: 1rem; }
.warn-box { background: #fff5f5; border: 1px solid #fecaca; border-radius: 10px; padding: 14px 18px; margin: 20px 0; font-size: .875rem; color: var(--text2); line-height: 1.7; }
.warn-box::before { content: '⚠️ '; }

/* ── 步骤列表 ── */
.step-list { list-style: none; margin: 16px 0 24px; padding: 0; counter-reset: step; }
.step-list li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.step-list li::before { content: counter(step); flex-shrink: 0; width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 50%; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ── 关键词标签 ── */
.verb-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.verb-tag  { background: #dbeafe; color: var(--accent); border-radius: 6px; padding: 4px 12px; font-size: .82rem; font-weight: 500; }

/* ── 侧栏 ── */
.sidebar-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.sidebar-title { font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; color: #9ca3af; text-transform: uppercase; margin-bottom: 14px; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 10px; }
.sidebar-links a { font-size: .875rem; color: #6b7280; text-decoration: none; line-height: 1.4; }
.sidebar-links a:hover { color: var(--accent); }
.sidebar-cta { background: linear-gradient(135deg, #dbeafe, #bfdbfe); border: 1px solid #93c5fd; border-radius: 14px; padding: 20px; text-align: center; }
.sidebar-cta p { font-size: .875rem; color: #6b7280; margin-bottom: 14px; line-height: 1.6; }
.sidebar-cta a { display: block; background: var(--accent); color: #fff; border-radius: 8px; padding: 10px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.sidebar-cta a:hover { background: #1e3a8a; }

/* ── 分隔线 ── */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── 底部 CTA ── */
.article-footer-cta { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); border-radius: 16px; padding: 36px 32px; text-align: center; margin-top: 48px; }
.article-footer-cta h3 { font-size: 1.3rem; font-weight: 800; color: #1e3a5f; margin-bottom: 10px; }
.article-footer-cta p  { color: #6b7280; font-size: .9rem; margin-bottom: 20px; }
.article-footer-cta a  { display: inline-block; background: var(--accent); color: #fff; border-radius: 10px; padding: 12px 28px; font-size: 1rem; font-weight: 700; text-decoration: none; }
.article-footer-cta a:hover { background: #1e3a8a; }

/* ── 相关文章 ── */
.related-articles { margin-top: 48px; }
.related-title { font-size: 1rem; font-weight: 700; color: #1e3a5f; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-decoration: none; transition: border-color .2s, transform .2s; }
.related-card:hover { border-color: #93c5fd; transform: translateY(-2px); }
.related-card-tag   { font-size: .72rem; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.related-card-title { font-size: .9rem; font-weight: 600; color: #1e3a5f; line-height: 1.4; }

/* ── Footer ── */
.site-footer { background: #1e3a5f; color: rgba(255,255,255,.6); padding: 28px 24px; text-align: center; font-size: .8rem; }
.site-footer a { color: rgba(255,255,255,.6); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ── 范例卡片（guide-summary 专用）── */
.sample-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 16px 0; }
.sample-card-header { padding: 12px 20px; background: #dbeafe; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #93c5fd; }
.sample-job   { font-size: .875rem; font-weight: 700; color: var(--accent); }
.sample-years { font-size: .78rem; color: #1d4ed8; background: rgba(124,58,237,.1); border-radius: 10px; padding: 2px 8px; }
.sample-text  { padding: 16px 20px; font-size: .875rem; color: var(--text2); line-height: 1.8; }
.sample-text em { font-style: normal; color: var(--accent); font-weight: 600; }
.sample-breakdown { padding: 0 20px 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.breakdown-tag { font-size: .72rem; padding: 2px 10px; border-radius: 10px; background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }
.samples-grid { display: grid; gap: 14px; }

/* 字数指示（guide-summary 专用）*/
.word-count-bar { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.word-count-bar span { font-size: .78rem; color: #9ca3af; white-space: nowrap; }
.word-bar      { flex: 1; height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.word-bar-fill { height: 100%; border-radius: 3px; }
.word-bar-fill.good { background: var(--success); width: 55%; }
.word-bar-fill.ok   { background: #f59e0b; width: 80%; }
.word-bar-fill.bad  { background: var(--danger); width: 100%; }

/* ── 量化维度卡片（guide-quantify 专用）── */
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 28px; }
@media (max-width: 640px) { .dimension-grid { grid-template-columns: 1fr 1fr; } }
.dimension-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: border-color .2s; }
.dimension-card:hover { border-color: #93c5fd; }
.dimension-icon { font-size: 1.5rem; margin-bottom: 8px; }
.dimension-name { font-size: .9rem; font-weight: 700; color: #1e3a5f; margin-bottom: 6px; }
.dimension-desc { font-size: .78rem; color: var(--text3); line-height: 1.5; }
.dimension-eg   { font-size: .75rem; color: var(--accent); margin-top: 6px; font-style: italic; }

/* 行业案例区（guide-quantify 专用）*/
.industry-section { margin: 20px 0 28px; }
.industry-header  { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.industry-icon    { font-size: 1.2rem; }
.industry-title   { font-size: 1rem; font-weight: 700; color: #1e3a5f; }
.case-list        { list-style: none; padding: 0; }
.case-list li { padding: 10px 14px; border-radius: 8px; font-size: .875rem; color: var(--text2); line-height: 1.6; margin-bottom: 6px; background: var(--bg2); border: 1px solid var(--border); }
.case-list li em { font-style: normal; color: var(--accent); font-weight: 600; }

/* Q&A 块（guide-quantify 专用）*/
.faq-block { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 16px 0; }
.faq-q { padding: 14px 18px; background: var(--bg2); font-weight: 600; font-size: .9rem; color: #1e3a5f; border-bottom: 1px solid var(--border); }
.faq-a { padding: 14px 18px; font-size: .875rem; color: var(--text2); line-height: 1.7; }

/* 数字高亮（guide-quantify 专用）*/
.num-highlight { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; line-height: 1.1; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 32px; }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.stat-card span { font-size: .8rem; color: var(--text3); }

/* ── 移动端顶栏导航折叠 ── */
@media (max-width: 640px) {
  .site-header-inner { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .site-nav { gap: 12px; }
  .site-nav a:not(.site-cta) { font-size: .8rem; }
}
