/* =========================================================
   个人工具助手 · 站点公共样式
   主题：车辆台账管理
   说明：纯静态站点，无外部依赖，可直接部署到任意静态托管
   ========================================================= */

:root {
  --brand: #1466b8;
  --brand-dark: #0d4a86;
  --brand-light: #e8f1fb;
  --accent: #0f9d8c;
  --accent-light: #e5f6f3;
  --ink: #17232f;
  --ink-soft: #3f5162;
  --muted: #6b7c8d;
  --line: #e3eaf2;
  --surface: #f5f8fc;
  --white: #ffffff;
  --warn: #c9761a;
  --warn-bg: #fdf3e4;
  --ok: #1a8a5a;
  --ok-bg: #e7f6ee;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(23, 35, 47, .06), 0 6px 16px -8px rgba(23, 35, 47, .12);
  --shadow: 0 2px 4px rgba(23, 35, 47, .04), 0 18px 40px -22px rgba(23, 35, 47, .28);
  --max: 1128px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 99;
}
.skip-link:focus { left: 0; color: #fff; }

/* ================= 顶部导航 ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(145deg, var(--brand) 0%, #0a4f8f 100%);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 14px -6px rgba(20, 102, 184, .7);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .12em; line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
}
.nav a:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-light); font-weight: 600; }
.nav-cta {
  margin-left: 8px; padding: 9px 18px !important;
  background: var(--brand); color: #fff !important; font-weight: 600; border-radius: 10px;
  box-shadow: 0 8px 18px -10px rgba(20, 102, 184, .9);
}
.nav-cta:hover { background: var(--brand-dark); text-decoration: none; }

@media (max-width: 900px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
  .brand-sub { display: none; }
}
@media (max-width: 720px) {
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .nav-cta { margin-left: 0; }
}

/* ================= 通用板块 ================= */
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px;
  border-radius: 999px; background: var(--brand-light); color: var(--brand-dark);
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ================= 首屏 ================= */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 76px;
  background:
    radial-gradient(920px 420px at 88% -10%, #e6f1fd 0%, rgba(230, 241, 253, 0) 70%),
    radial-gradient(680px 380px at 0% 100%, #eaf7f4 0%, rgba(234, 247, 244, 0) 72%),
    var(--white);
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.24; letter-spacing: -.02em; margin-bottom: 18px;
}
.hero h1 .hl {
  color: var(--brand);
  background: linear-gradient(transparent 62%, #cfe4f9 62%);
  padding: 0 2px;
}
.hero-lead { color: var(--ink-soft); font-size: 17px; max-width: 33em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 11px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -14px rgba(20, 102, 184, 1); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d8e8; color: var(--brand-dark); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-facts li { list-style: none; display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-soft); }
.hero-facts svg { width: 16px; height: 16px; flex: none; }

/* 首屏配图 + 浮动卡片 */
.hero-visual { position: relative; }
.hero-figure {
  border-radius: var(--radius-l); overflow: hidden;
  background: linear-gradient(165deg, #eef5fd 0%, #f8fbfe 55%, #eff8f5 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px;
}
.hero-figure img { width: 100%; height: auto; border-radius: 18px; }
.hero-caption {
  margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center;
}
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px;
  display: flex; align-items: center; gap: 11px; font-size: 13px;
}
.float-card strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.float-card span { color: var(--muted); font-size: 12px; }
.float-card .ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
}
.float-card--a { left: -22px; top: 26px; }
.float-card--a .ico { background: var(--warn-bg); }
.float-card--b { right: -14px; bottom: 34px; }
.float-card--b .ico { background: var(--ok-bg); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 56px; }
  .float-card--a { left: 6px; top: 10px; }
  .float-card--b { right: 6px; bottom: 26px; }
}
@media (max-width: 560px) {
  .float-card { display: none; }
  .section { padding: 60px 0; }
}

/* ================= 功能卡片 ================= */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-s);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5e3f2; }
.card .ico-box {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-light); margin-bottom: 16px;
}
.card .ico-box svg { width: 24px; height: 24px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ================= 台账示例表 ================= */
.table-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.table-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fbfdff;
}
.table-head h3 { font-size: 16px; }
.table-head .hint { font-size: 12.5px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 780px; }
thead th {
  text-align: left; padding: 12px 18px; background: var(--surface);
  color: var(--ink-soft); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid #eef3f8; color: var(--ink-soft); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
tbody td:first-child { color: var(--ink); font-weight: 600; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-info { background: var(--brand-light); color: var(--brand-dark); }
.table-foot { padding: 12px 22px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: #fbfdff; }

/* ================= 使用流程 ================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 24px 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; margin-bottom: 12px;
  font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-light); padding: 2px 9px; border-radius: 6px; letter-spacing: .06em;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ================= 双栏内容 ================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 16px; }
.split p { color: var(--ink-soft); margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.check-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.panel-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.panel-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.meter-row { margin-bottom: 16px; }
.meter-row:last-child { margin-bottom: 0; }
.meter-label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.meter-label b { color: var(--ink); }
.meter { height: 8px; border-radius: 999px; background: #eef3f8; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #4d9be0); }
.meter i.g { background: linear-gradient(90deg, var(--accent), #52c3b3); }
.meter i.o { background: linear-gradient(90deg, #d98829, #efb264); }

/* ================= FAQ ================= */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; box-shadow: var(--shadow-s);
}
.faq details[open] { border-color: #cfe0f2; }
.faq summary {
  cursor: pointer; padding: 15px 0; font-size: 15.5px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 16px; color: var(--muted); font-size: 14.5px; }

/* ================= CTA ================= */
.cta {
  background: linear-gradient(135deg, #0d4a86 0%, #1466b8 55%, #177b8f 100%);
  border-radius: var(--radius-l); padding: 52px 44px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: 0 24px 50px -28px rgba(13, 74, 134, .8);
}
.cta h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; color: #fff; }
.cta p { color: rgba(255, 255, 255, .84); font-size: 15px; max-width: 40em; }
.cta .btn-light { background: #fff; color: var(--brand-dark); font-weight: 700; }
.cta .btn-light:hover { background: #f0f6ff; color: var(--brand-dark); text-decoration: none; }
@media (max-width: 700px) { .cta { padding: 36px 26px; } }

/* ================= 内页 ================= */
.page-head {
  padding: 54px 0 40px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 62em; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

.prose { max-width: 860px; }
.prose h2 { font-size: 22px; margin: 38px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 24px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 7px; }
.prose table { min-width: 0; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 8px 0 18px; }
.prose thead th { background: var(--surface); }
.note {
  background: #fbfdff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--ink-soft); margin: 18px 0;
}

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 10px; }
.info-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.info-item dt { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.info-item dd { margin: 0; font-size: 14.5px; color: var(--ink); font-weight: 600; word-break: break-all; }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }

/* ================= 页脚 ================= */
.site-footer { background: #0f1c28; color: #b6c4d2; padding: 56px 0 0; font-size: 14px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { box-shadow: none; background: linear-gradient(145deg, #1c7ac9, #0d4a86); }
.footer-brand strong { color: #fff; font-size: 16px; letter-spacing: .02em; }
.footer-about p { color: #93a5b6; font-size: 13.5px; line-height: 1.8; max-width: 30em; }
.site-footer h4 { color: #fff; font-size: 13.5px; margin-bottom: 14px; letter-spacing: .04em; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-links a { color: #b6c4d2; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; display: grid; gap: 10px; font-size: 13.5px; color: #93a5b6; }
.footer-contact b { color: #dfe8f1; font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px;
  font-size: 12.5px; color: #8a9cad;
}
.filing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.filing a { color: #a8bac9; }
.filing a:hover { color: #fff; }
.filing .sep { color: #3d5266; }
.filing .placeholder { color: #7f93a6; border-bottom: 1px dashed #46596b; }
.footer-disclaimer { padding: 0 0 22px; font-size: 12px; color: #6f8296; line-height: 1.8; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ================= 备案信息（页脚合规展示） ================= */
.footer-bottom { align-items: center; }
.copyright {
  font-size: 13px; color: #b6c4d2; letter-spacing: .01em; margin: 0;
}
.filing { row-gap: 8px; }
.filing .filing-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #cfdbe6; line-height: 1.6; text-decoration: none;
}
.filing .filing-link:hover { color: #fff; text-decoration: underline; }
.filing .filing-link img {
  width: 20px; height: 20px; display: block; flex: none; border: 0;
}
