/* ============================================================
   阿杰的工作台 — 设计系统
   风格：干净、简约、现代；浅色/深色双主题；完全响应式
   ============================================================ */

/* ---------- 1. 主题变量 ---------- */
:root {
  /* 浅色主题 */
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1f2733;
  --muted: #7a8699;
  --border: #e3e8ef;
  --primary: #3b82f6;
  --primary-weak: #eaf1fe;
  --success: #16a34a;
  --success-weak: #e8f7ee;
  --warning: #f59e0b;
  --warning-weak: #fdf3e2;
  --danger: #ef4444;
  --danger-weak: #fdecec;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 232px;
}

[data-theme="dark"] {
  --bg: #12161d;
  --card: #1c222c;
  --text: #e6eaf0;
  --muted: #8b96a8;
  --border: #2b3441;
  --primary: #5b93f8;
  --primary-weak: #1e2c44;
  --success: #34d07c;
  --success-weak: #14301f;
  --warning: #fbbf24;
  --warning-weak: #33260c;
  --danger: #f87171;
  --danger-weak: #3a1d1d;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ---------- 2. 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  transition: background 0.25s ease, color 0.25s ease;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }

/* ---------- 3. 布局骨架 ---------- */
#sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 50; transition: transform 0.25s ease;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px; border-bottom: 1px solid var(--border);
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.brand-name { font-size: 16px; font-weight: 700; white-space: nowrap; }
#nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 2px 0;
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.nav-item:hover { background: var(--primary-weak); }
.nav-item.active { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
.nav-icon { font-size: 17px; flex-shrink: 0; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }

#mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45);
  z-index: 40; transition: opacity 0.2s ease;
}
#mask.hidden { display: none; }

#topbar {
  display: none; align-items: center; gap: 8px;
  position: sticky; top: 0; z-index: 30;
  padding: 10px 14px;
  background: var(--card); border-bottom: 1px solid var(--border);
}
#topbar-title { font-weight: 700; font-size: 15px; }
.spacer { flex: 1; }
#hamburger { display: none; }

#view { margin-left: var(--sidebar-w); padding: 22px; min-height: 100vh; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

/* ---------- 4. 组件：按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card);
  color: var(--text); font-size: 13px; font-weight: 500;
  transition: all 0.15s ease; 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 { filter: brightness(1.08); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--primary-weak); border-color: transparent; color: var(--primary); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 5. 组件：卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.card-title .hint { font-size: 12px; color: var(--muted); font-weight: 400; }

/* 统计卡片（首页 / 各模块顶部数字卡） */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.stat-card.clickable { cursor: pointer; }
.stat-card.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card .stat-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat-card .stat-value { font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat-card .stat-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat-card .stat-icon { float: right; font-size: 26px; opacity: 0.85; }
.stat-card .kpi-form { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.stat-card .kpi-form input[type="number"] {
  flex: 1; min-width: 80px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text);
}
.stat-card .kpi-form input:focus { border-color: var(--primary); outline: none; }
.stat-card .kpi-form .btn { padding: 8px 14px; }
.stat-card .kpi-hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* 搜索栏 */
.search-bar { display: flex; gap: 8px; align-items: center; }
.search-bar input[type="text"] {
  flex: 1; min-width: 160px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text); outline: none;
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar .btn { white-space: nowrap; }

/* ---------- 6. 组件：徽标（优先级 / 状态） ---------- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
}
.badge.high { background: var(--danger-weak); color: var(--danger); }
.badge.mid { background: var(--warning-weak); color: var(--warning); }
.badge.low { background: var(--border); color: var(--muted); }
.badge.todo { background: var(--border); color: var(--muted); }
.badge.doing { background: var(--primary-weak); color: var(--primary); }
.badge.done { background: var(--success-weak); color: var(--success); }
.badge.s-待联系 { background: var(--border); color: var(--muted); }
.badge.s-已发送 { background: var(--primary-weak); color: var(--primary); }
.badge.s-已回复 { background: var(--success-weak); color: var(--success); }
.badge.s-跟进中 { background: var(--warning-weak); color: var(--warning); }
.badge.s-无效 { background: var(--danger-weak); color: var(--danger); }

/* ---------- 7. 组件：进度条 ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 8px; }
.progress > i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--primary); transition: width 0.35s ease;
}
.progress.ok > i { background: var(--success); }
.progress.over > i { background: var(--danger); }

/* ---------- 8. 组件：表格 ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table tbody tr:hover { background: var(--primary-weak); }
.table .actions { display: flex; gap: 6px; }
.table .cell-ellipsis { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 9. 组件：表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); outline: none; transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field textarea { min-height: 70px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---------- 10. 组件：弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.modal {
  background: var(--card); border-radius: var(--radius);
  width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); padding: 20px;
  animation: modal-in 0.18s ease;
}
.modal.wide { max-width: 640px; }
.modal h3 { font-size: 16px; margin-bottom: 14px; }
.modal .modal-body { font-size: 14px; color: var(--muted); }
@keyframes modal-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 11. 组件：Toast ---------- */
#toast-root { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--card); color: var(--text);
  box-shadow: var(--shadow-lg); font-size: 13px;
  border-left: 3px solid var(--primary);
  animation: toast-in 0.2s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 12. 组件：杂项 ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.toolbar input[type="text"], .toolbar input[type="date"], .toolbar select {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--primary); }
.chart-box { position: relative; height: 260px; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; font-size: 13px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.tabs .tab {
  padding: 8px 16px; border: none; background: none;
  color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.meal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.muted { color: var(--muted); font-size: 12px; }
.strike { text-decoration: line-through; color: var(--muted); }
.kbd { background: var(--border); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
pre.script { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; font-size: 13px; }

/* ---------- 13. 健身 AI 方案样式 ---------- */
.ai-plan-summary {
  display: flex; gap: 12px; margin-bottom: 16px;
}
.ai-summary-item {
  flex: 1; text-align: center; padding: 14px 8px;
  background: var(--primary-weak); border-radius: var(--radius-sm);
}
.ai-summary-num {
  display: block; font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1.2;
}
.ai-summary-label {
  display: block; font-size: 12px; color: var(--muted); margin-top: 4px;
}
.ai-plan-info {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.8;
}
.ai-plan-info strong { color: var(--text); }
.ai-section { margin-bottom: 16px; }
.ai-section-title {
  font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text);
}
.ai-warmup-item {
  font-size: 13px; color: var(--muted); padding: 4px 0; line-height: 1.6;
}
.equip-checks label { cursor: pointer; }

/* ---------- 14. 英语学习 — 每日推荐样式 ---------- */
.daily-recommend-banner {
  background: var(--primary-weak); color: var(--primary);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 14px; margin-bottom: 16px; text-align: center;
}
.daily-recommend-banner strong { font-size: 16px; }

.daily-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; margin-bottom: 12px;
}
.daily-word-card { border-left: 3px solid var(--primary); }
.daily-phrase-card { border-left: 3px solid var(--success); }
.daily-quote-card { border-left: 3px solid var(--warning); }

.daily-card-label {
  font-size: 12px; color: var(--muted); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.daily-word-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.daily-word {
  font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.3;
}
.daily-phonetic {
  font-size: 14px; color: var(--muted); margin-top: 2px; font-style: italic;
}
.daily-meaning {
  font-size: 14px; color: var(--text); margin-top: 4px;
}
.daily-example {
  font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6;
  font-style: italic;
}
.daily-quote {
  font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.6; margin-top: 6px;
}
.daily-quote-zh {
  font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6;
}

/* ---------- 15. 英语学习 — 单词卡片样式 ---------- */
.vocab-progress {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.vocab-idx { font-size: 13px; color: var(--muted); white-space: nowrap; }

.vocab-card-area {
  perspective: 800px; margin-bottom: 16px;
}
.vocab-card {
  background: var(--card); border: 2px solid var(--primary);
  border-radius: var(--radius); padding: 32px 20px;
  text-align: center; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 160px; display: flex; flex-direction: column; justify-content: center;
}
.vocab-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.vocab-card-word {
  font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.3;
}
.vocab-card-phonetic {
  font-size: 15px; color: var(--muted); margin-top: 6px; font-style: italic;
}
.vocab-card-hint {
  font-size: 12px; color: var(--muted); margin-top: 16px;
}
.vocab-card-meaning {
  font-size: 16px; color: var(--text); margin-top: 10px; font-weight: 600;
}
.vocab-card-example {
  font-size: 13px; color: var(--muted); margin-top: 10px; font-style: italic; line-height: 1.6;
}
.vocab-controls {
  display: flex; justify-content: center; gap: 8px;
}

/* ---------- 16. 英语学习 — TTS 播放器样式 ---------- */
.tts-player {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.tts-speed {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text); font-size: 13px; outline: none;
}
.tts-speed:focus { border-color: var(--primary); }

/* ---------- 17. 英语学习 — 阅读理解样式 ---------- */
.reading-passage {
  font-size: 14px; color: var(--text); line-height: 1.9; white-space: pre-wrap;
}

/* ---------- 17b. 简历优化模块样式 ---------- */
.resume-module { max-width: 800px; margin: 0 auto; }
.page-header h2 { font-size: 22px; font-weight: 800; color: var(--text); }
.page-desc { font-size: 14px; color: var(--muted); margin-top: 4px; }

.resume-steps {
  display: flex; gap: 4px; margin: 20px 0 24px; overflow-x: auto;
  padding-bottom: 4px;
}
.resume-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 100px; padding: 12px 8px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s; border: 1px solid var(--border);
  background: var(--card); flex: 1;
}
.resume-step.active { border-color: var(--primary); background: var(--primary-weak); }
.resume-step.done { border-color: var(--success); background: var(--success-weak); }
.resume-step .step-icon { font-size: 20px; }
.resume-step .step-label { font-size: 12px; color: var(--muted); text-align: center; white-space: nowrap; }
.resume-step.active .step-label { color: var(--primary); font-weight: 600; }
.resume-step.done .step-label { color: var(--success); }

.resume-card { margin-bottom: 20px; }
.resume-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.resume-card .muted { font-size: 13px; color: var(--muted); }

.resume-input-area { margin: 16px 0; }
.resume-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--bg);
}
.resume-upload-zone:hover, .resume-upload-zone.dragover {
  border-color: var(--primary); background: var(--primary-weak);
}
.upload-placeholder { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.upload-icon { font-size: 32px; }
.upload-placeholder > span:nth-child(2) { font-size: 14px; font-weight: 600; color: var(--text); }
.upload-placeholder .small { font-size: 12px; }

.jd-image-preview { margin-top: 12px; position: relative; }
.jd-image-preview img { max-width: 100%; max-height: 300px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.jd-image-preview .btn { margin-top: 8px; }

.resume-divider { text-align: center; margin: 20px 0; position: relative; }
.resume-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.resume-divider span { position: relative; background: var(--card); padding: 0 12px; font-size: 13px; color: var(--muted); }

.resume-textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; resize: vertical; background: var(--card); color: var(--text);
  box-sizing: border-box;
}
.resume-textarea:focus { outline: none; border-color: var(--primary); }

.resume-input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; background: var(--card); color: var(--text);
}
.resume-input:focus { outline: none; border-color: var(--primary); }
.company-input-row { display: flex; gap: 8px; margin-top: 12px; }

.resume-note {
  background: var(--warning-weak); border: 1px solid var(--warning); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; color: var(--text); margin: 12px 0;
}

.jd-parsed-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 16px 0;
}
.jd-parsed-item {
  background: var(--bg); border-radius: var(--radius-sm); padding: 12px;
}
.jd-parsed-item .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.jd-parsed-item .value { font-size: 15px; font-weight: 600; color: var(--text); }

.jd-section { margin: 20px 0; }
.jd-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text); }

.jd-list { list-style: none; padding: 0; margin: 0; }
.jd-list li { padding: 6px 0 6px 20px; position: relative; font-size: 14px; color: var(--text); line-height: 1.6; }
.jd-list li::before { content: '•'; position: absolute; left: 4px; color: var(--primary); font-weight: bold; }
.jd-list.numbered { counter-reset: item; }
.jd-list.numbered li { counter-increment: item; }
.jd-list.numbered li::before { content: counter(item) '.'; }
.success-list li::before { color: var(--success); }
.warning-list li::before { color: var(--warning); }

.keyword-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.keyword-tag {
  padding: 4px 10px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--primary-weak); color: var(--primary); border: 1px solid transparent;
}
.keyword-tag.muted { background: var(--bg); color: var(--muted); border-color: var(--border); }
.keyword-tag.benefit-tag { background: var(--success-weak); color: var(--success); }
.keyword-tag.success-tag { background: var(--success-weak); color: var(--success); }
.keyword-tag.danger-tag { background: var(--danger-weak); color: var(--danger); }

.profile-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0;
}
.profile-item { background: var(--bg); border-radius: var(--radius-sm); padding: 12px; }
.profile-item .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.profile-item .value { font-size: 14px; font-weight: 600; color: var(--text); }
.profile-detail { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.profile-detail-item { font-size: 14px; color: var(--text); line-height: 1.6; }
.profile-detail-item strong { font-weight: 700; }

.career-path {
  padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); line-height: 1.8;
}
.salary-badge {
  display: inline-block; padding: 8px 16px; background: var(--success-weak);
  color: var(--success); border-radius: var(--radius-sm); font-size: 16px; font-weight: 700;
}

.company-overview { font-size: 14px; color: var(--text); line-height: 1.8; margin: 12px 0; }
.interview-tip-box {
  background: var(--warning-weak); border-left: 3px solid var(--warning);
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); line-height: 1.6;
}

.match-score-box {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  border-radius: var(--radius); margin: 16px 0;
}
.match-score-num { font-size: 48px; font-weight: 800; line-height: 1; }
.match-score-num.success { color: var(--success); }
.match-score-num.warning { color: var(--warning); }
.match-score-num.danger { color: var(--danger); }
.match-score-level { font-size: 18px; font-weight: 700; }
.match-score-level.success { color: var(--success); }
.match-score-level.warning { color: var(--warning); }
.match-score-level.danger { color: var(--danger); }

.keyword-analysis { display: flex; flex-direction: column; gap: 12px; }
.kw-group { display: flex; flex-direction: column; gap: 6px; }
.kw-label { font-size: 13px; font-weight: 600; }
.kw-label.success { color: var(--success); }
.kw-label.danger { color: var(--danger); }
.kw-label.muted { color: var(--muted); }

.rewrite-box { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.rewrite-text { font-size: 14px; color: var(--text); line-height: 1.8; white-space: pre-wrap; font-family: inherit; margin: 0; }
.rewrite-box .btn { position: absolute; top: 8px; right: 8px; }

.salary-strategy { margin-bottom: 12px; }
.salary-scripts { display: flex; flex-direction: column; gap: 10px; }
.script-item { background: var(--bg); border-radius: var(--radius-sm); padding: 12px; border-left: 3px solid var(--primary); }
.script-label { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.script-text { font-size: 14px; color: var(--text); line-height: 1.6; }

.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-item { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; }
.qa-question { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qa-num { background: var(--primary); color: white; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.qa-type { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--primary-weak); color: var(--primary); font-weight: 500; }
.qa-tip { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.star-template { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; }
.star-question { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.star-content { display: flex; flex-direction: column; gap: 8px; }
.star-row { display: flex; gap: 8px; align-items: flex-start; }
.star-tag { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0; }
.star-tag.s { background: var(--primary); }
.star-tag.t { background: var(--warning); }
.star-tag.a { background: var(--success); }
.star-tag.r { background: #8b5cf6; }
.star-row > span:last-child { font-size: 13px; color: var(--text); line-height: 1.6; padding-top: 2px; }

/* ---------- 18. 响应式 ---------- */
/* 平板：侧边栏收窄为图标栏 */
@media (max-width: 1023px) {
  #sidebar { width: 64px; }
  .brand-name, .nav-text, .sidebar-footer .nav-text { display: none; }
  .brand { justify-content: center; padding: 18px 0; }
  #nav { padding: 10px 8px; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .sidebar-footer { display: flex; justify-content: center; padding: 12px 0; }
  .sidebar-footer .btn { padding: 8px; }
  #view { margin-left: 64px; padding: 18px; }
}

/* 手机：侧边栏完全隐藏，汉堡按钮打开抽屉 */
@media (max-width: 767px) {
  #sidebar { transform: translateX(-100%); width: var(--sidebar-w); }
  #sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .brand-name, .nav-text, .sidebar-footer .nav-text { display: inline; }
  .brand { justify-content: flex-start; padding: 18px 16px; }
  .nav-item { justify-content: flex-start; padding: 10px 12px; }
  .sidebar-footer { display: block; padding: 12px; }
  #topbar { display: flex; }
  #hamburger { display: inline-flex; }
  #view { margin-left: 0; padding: 14px; }
  .stat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .table th:nth-child(n+4), .table td:nth-child(n+4) { display: none; } /* 手机上隐藏次要列 */
}
