/* 简历体检所 · 大气简约风：中性底色、单一强调色、发丝线、留白 */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #1a1a1c;
  --ink-2: #5f6368;
  --ink-3: #9aa0a6;
  --line: #e8e8ea;
  --accent: #2456d6;
  --accent-soft: #eef3fe;
  --danger: #c2402a;
  --danger-soft: #fdf0ec;
  --warn: #b26a00;
  --warn-soft: #fdf6e9;
  --ok: #1e7d46;
  --ok-soft: #ecf6f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.header-note { color: var(--ink-3); font-size: 12.5px; letter-spacing: .04em; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px; font-size: 13px; color: var(--ink-2); }
.footer-note { color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 36px; text-align: center; }
.hero h1 { font-size: 34px; line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
.hero-sub { margin: 16px auto 0; max-width: 680px; color: var(--ink-2); font-size: 15.5px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.privacy { margin-top: 12px; color: var(--ink-3); font-size: 13px; }

/* ---------- workspace ---------- */
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.panel-head h2 { font-size: 16px; font-weight: 600; }
.count { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }

textarea {
  width: 100%; min-height: 380px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; font: inherit; font-size: 14.5px; line-height: 1.7;
  color: var(--ink); background: #fcfcfd;
  outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
textarea::placeholder { color: var(--ink-3); }

.panel-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn {
  font: inherit; font-size: 14px; cursor: pointer;
  border-radius: 9px; padding: 8px 16px; height: 38px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { border-color: #d4d4d8; background: #f7f7f8; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; margin-left: auto; padding: 8px 22px; font-weight: 500; }
.btn.primary:hover { background: #1e49b8; border-color: #1e49b8; }
.hint { margin-top: 12px; color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
.copied { color: var(--accent); font-size: 13px; margin-left: auto; }
.report-actions .btn.primary { margin-left: 0; }
.report-actions { justify-content: flex-end; }

/* ---------- report ---------- */
.report { min-height: 380px; }
.report .empty { color: var(--ink-3); font-size: 14px; padding: 48px 8px; text-align: center; line-height: 1.9; }

.score-block { display: flex; align-items: center; gap: 20px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.score-num { font-size: 56px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.score-num small { font-size: 16px; color: var(--ink-3); font-weight: 400; }
.score-grade { font-size: 19px; font-weight: 600; }
.score-note { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; max-width: 340px; }
.tone-bad .score-num, .tone-bad .score-grade { color: var(--danger); }
.tone-mid .score-num, .tone-mid .score-grade { color: var(--warn); }
.tone-good .score-num, .tone-good .score-grade { color: var(--ok); }

.dims { padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
.dim { display: grid; grid-template-columns: 76px 1fr 52px; gap: 12px; align-items: center; margin-bottom: 10px; }
.dim-name { font-size: 13.5px; font-weight: 500; }
.dim-bar { height: 6px; border-radius: 3px; background: #f0f0f2; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width .5s ease; }
.dim-fill.low { background: var(--danger); }
.dim-fill.mid { background: var(--warn); }
.dim-score { font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.dim-note { grid-column: 2 / 4; font-size: 12px; color: var(--ink-3); margin-top: -6px; }

.issues-head { font-size: 14px; font-weight: 600; margin: 18px 0 10px; }
.issue {
  border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff;
}
.issue.sev-high { border-left-color: var(--danger); }
.issue.sev-low { border-left-color: #d4d4d8; }
.issue-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  padding: 1px 8px; border-radius: 999px; margin-bottom: 6px;
  background: var(--warn-soft); color: var(--warn);
}
.sev-high .issue-tag { background: var(--danger-soft); color: var(--danger); }
.sev-low .issue-tag { background: #f4f4f5; color: var(--ink-2); }
.issue-sentence { font-size: 14.5px; line-height: 1.7; word-break: break-all; }
.issue-sentence mark { background: #ffe1d6; color: inherit; border-radius: 3px; padding: 0 2px; }
.issue-detail { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.issue-rewrite { margin-top: 8px; font-size: 13.5px; background: var(--ok-soft); border-radius: 8px; padding: 8px 10px; color: #14532d; }
.issue-rewrite b { font-weight: 600; }
.no-issues { text-align: center; color: var(--ok); padding: 28px 0 8px; font-size: 15px; }

/* ---------- rules ---------- */
.rules { margin-top: 20px; }
.rules h2 { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule-item h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.rule-item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.honest { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.honest strong { color: var(--danger); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 27px; }
  textarea { min-height: 300px; }
  .report { min-height: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .rules-grid { grid-template-columns: 1fr; }
  .score-block { flex-direction: column; align-items: flex-start; gap: 8px; }
  .header-note { display: none; }
}
