/* 驾校透明比价 · 大厂简约风（单一强调色 #0071e3，手机端优先） */
:root {
  --accent: #0071e3;
  --accent-soft: #e8f2fd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #e5e5ea;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --warn-bg: #fff8e6;
  --warn-ink: #8a6d00;
  --ok: #1e7e34;
  --radius: 16px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px; line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 8px; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 12px; }
small, .muted { color: var(--muted); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
header.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 980px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; cursor: pointer; }
.brand span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
nav.main { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.main a { color: var(--ink); font-size: 14px; padding: 8px 10px; border-radius: 8px; }
nav.main a:hover { background: #f5f5f7; text-decoration: none; }
.lang-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--ink); min-height: 36px; }
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

/* 样本 / 过期提示条 */
.banner { background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; padding: 10px 16px; }
.banner.stale { background: #fdecea; color: #7a1f1f; }

/* Hero */
.hero { padding: 40px 0 8px; }
.hero p.lede { font-size: 17px; color: var(--muted); max-width: 640px; }
.hero .cta-row { display: flex; gap: 12px; margin: 20px 0 8px; flex-wrap: wrap; }
.btn {
  display: inline-block; min-height: 44px; line-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #0066cc; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.btn.small { min-height: 36px; line-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: #d70015; }
.btn:disabled { opacity: .5; cursor: default; }
.stats { display: flex; gap: 24px; flex-wrap: wrap; margin: 18px 0 4px; }
.stats b { font-size: 22px; display: block; }
.stats span { font-size: 13px; color: var(--muted); }

/* 卡片与列表 */
section { padding: 28px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card h2 { margin-bottom: 4px; }
.school-card { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.school-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.school-head { display: flex; justify-content: space-between; gap: 4px 12px; align-items: flex-start; flex-wrap: wrap; }
.school-head h3 { font-size: 18px; margin: 0; }
.tag { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin: 2px 4px 2px 0; white-space: nowrap; }
.tag.accent { color: var(--accent); border-color: var(--accent); }
.tag.warn { color: var(--warn-ink); border-color: #e5c200; background: var(--warn-bg); }
.price-line { font-size: 15px; margin: 8px 0; }
.price-line b { font-size: 18px; }
.score-box { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.score-total { font-size: 15px; }
.score-total b { font-size: 24px; color: var(--accent); }
.score-rows { margin-top: 8px; }
.score-row { display: grid; grid-template-columns: 110px 1fr 64px; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0; }
.score-row .bar { height: 6px; background: #f0f0f2; border-radius: 3px; overflow: hidden; }
.score-row .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.score-row .raw { color: var(--muted); font-size: 12px; grid-column: 1 / -1; margin-top: -4px; }
.score-row .pts { text-align: right; font-weight: 600; }
.sample-note { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* 键值表 */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv dd .src { font-size: 12px; color: var(--faint); display: block; }

/* 计算器 / 表单 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 88px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
.calc-total { font-size: 18px; margin-top: 8px; }
.calc-total b { color: var(--accent); font-size: 24px; }

/* 评价 */
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review:first-of-type { border-top: none; }
.review .meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px; margin-right: 6px; }
.badge.verified { background: #e6f4ea; color: var(--ok); }
.badge.self { background: #f5f5f7; color: var(--muted); }
.review .actions { font-size: 13px; margin-top: 8px; }
.review .actions a { margin-right: 14px; cursor: pointer; }
.review-items { font-size: 13px; color: var(--muted); margin: 4px 0; }

/* 清单 */
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.check-item input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check-item.done .q { color: var(--muted); text-decoration: line-through; }
.check-item .q { font-weight: 600; }
.check-item .a { font-size: 14px; color: var(--muted); }

/* 页脚 */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer p { margin-bottom: 8px; }
.err { color: #d70015; font-size: 14px; }
.ok-msg { color: var(--ok); font-size: 14px; }
.empty { color: var(--muted); font-size: 14px; padding: 16px 0; }
.hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.report-sec { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; }
.report-sec h3 { margin-bottom: 8px; }

/* 后台 */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table img { max-width: 220px; border-radius: 8px; border: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; min-height: 36px; }
.tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .kv { grid-template-columns: 110px 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 96px 1fr 52px; }
  nav.main a { padding: 8px 6px; }
}
@media print {
  header.top, .hero .cta-row, .no-print { display: none !important; }
  body { background: #fff; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
}
