/* ==========================================================================
   嘀嗒拍车 官方网站 - 样式系统
   品牌主色取自官方标识实测值 #DC0000
   字体使用系统字体栈，不引入任何外部字体，规避商用授权风险
   ========================================================================== */

:root {
  --brand: #dc0000;
  --brand-dark: #b30000;
  --brand-soft: #fff4f4;
  --brand-line: #ffd9d9;
  --ink: #16181d;
  --ink-2: #3d434f;
  --muted: #5f6775;
  --faint: #8b93a1;
  --line: #e5e8ee;
  --line-soft: #eef1f5;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-deep: #16181d;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .10);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.32; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.6vw, 44px); }
h2 { font-size: clamp(22px, 3.2vw, 31px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius); transition: top .18s;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 56px 0; }
.section--deep { background: var(--bg-deep); color: #fff; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep p { color: #b9c0cc; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section--deep .section-head p { color: #a8b0bd; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 14px;
}
.section--deep .eyebrow { color: #ff6b6b; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--bg-deep); color: #aab2be; font-size: 13px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; }
.topbar a { color: #d5dae1; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); font-size: 15px; padding: 8px 13px;
  border-radius: var(--radius-sm); white-space: nowrap;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

.header-cta { flex: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); font-size: 15px;
  font-weight: 500; border: 1px solid transparent; cursor: pointer;
  transition: background .16s, border-color .16s, color .16s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #c9cfda; background: var(--bg-alt); color: var(--ink); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: #f2f2f2; color: var(--brand-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 首屏 ---------- */
.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-meta div { font-size: 14px; color: var(--muted); }
.hero-meta strong { display: block; font-size: 22px; color: var(--ink); font-weight: 600; line-height: 1.3; }

.hero-visual {
  border-radius: var(--radius-lg); background: var(--bg-alt);
  border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow);
}
.mock {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); background: #fbfbfc; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #dfe3ea; }
.mock-body { padding: 18px; }
.mock-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.mock-photo {
  height: 132px; border-radius: 8px; background:
    linear-gradient(135deg, #e8ebf0 0%, #d7dce4 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 13px; margin-bottom: 12px; position: relative;
}
.mock-photo::after {
  content: ""; position: absolute; right: 10px; bottom: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); opacity: .9;
}
.mock-lines { display: grid; gap: 8px; }
.mock-line { height: 9px; border-radius: 5px; background: #eef1f5; }
.mock-line.w70 { width: 70%; }
.mock-line.w45 { width: 45%; }
.mock-tag {
  display: inline-block; margin-top: 4px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600;
  border: 1px solid var(--brand-line);
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: #d3d9e2; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--brand);
}
.card-icon svg { width: 22px; height: 22px; display: block; }
.card--link:hover { transform: translateY(-2px); }

.pain-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pain-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.pain-list .q { color: var(--brand); font-weight: 700; flex: none; font-size: 15px; }
.pain-list strong { display: block; margin-bottom: 4px; }
.pain-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; display: grid; gap: 20px; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: var(--brand); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
}
.step h3 { margin-bottom: 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 事实表 ---------- */
.facts { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.facts dl { margin: 0; display: grid; grid-template-columns: 200px 1fr; }
.facts dt, .facts dd {
  margin: 0; padding: 15px 22px; border-bottom: 1px solid var(--line-soft); font-size: 15px;
}
.facts dt { background: var(--bg-alt); color: var(--muted); font-weight: 500; }
.facts dd { color: var(--ink); }
.facts dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th {
  background: var(--bg-alt); text-align: left; padding: 13px 20px;
  font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
  align-items: flex-start;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .18s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-body { padding: 18px 22px 20px; color: var(--muted); font-size: 15px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- 文章 ---------- */
.post-list { display: grid; gap: 16px; }
.post-item {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 24px 26px; transition: border-color .18s, box-shadow .18s;
}
.post-item:hover { border-color: #d3d9e2; box-shadow: var(--shadow); text-decoration: none; }
.post-item h3 { color: var(--ink); margin-bottom: 8px; }
.post-item:hover h3 { color: var(--brand); }
.post-item p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.post-meta { font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 14px; }

.article { max-width: 760px; }
.article h2 { margin: 40px 0 14px; font-size: 24px; }
.article h3 { margin: 30px 0 12px; font-size: 18px; }
.article p, .article li { color: var(--ink-2); }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article blockquote {
  margin: 22px 0; padding: 16px 22px; background: var(--brand-soft);
  border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
}
.article blockquote p:last-child { margin-bottom: 0; }
.article strong { color: var(--ink); font-weight: 600; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.article table { margin: 22px 0; }
.article img { border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- 政策引用 ---------- */
.article sup.ref { font-size: .72em; line-height: 0; }
.article sup.ref a { color: var(--brand); text-decoration: none; font-weight: 600; padding: 0 2px; }
.article sup.ref a:hover { text-decoration: underline; }

.policy-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 14px 0 0; padding: 5px 13px;
  font-size: 13px; color: var(--ink-2);
  background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px;
}
.policy-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.policy-refs { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); max-width: 760px; }
.policy-refs__title { font-size: 20px; margin-bottom: 10px; }
.policy-refs__note { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.policy-refs__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.policy-refs__list > li {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt); scroll-margin-top: 90px;
}
.policy-refs__head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.policy-refs__num {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; transform: translateY(2px);
}
.policy-refs__name { font-size: 16px; font-weight: 600; color: var(--ink); }
.policy-refs__meta { display: grid; grid-template-columns: 76px 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
.policy-refs__meta dt { color: var(--faint); }
.policy-refs__meta dd { margin: 0; color: var(--ink-2); }
.policy-refs__points { margin: 0 0 12px; padding-left: 20px; font-size: 14px; color: var(--muted); }
.policy-refs__points li { margin-bottom: 6px; }
.policy-refs__link { font-size: 14px; font-weight: 500; }

@media (max-width: 640px) {
  .policy-refs__meta { grid-template-columns: 1fr; gap: 2px; }
  .policy-refs__meta dt { margin-top: 6px; }
}

/* ---------- 办事导航 ---------- */
.guide-table { overflow-x: auto; margin-bottom: 18px; }
.guide-table table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.guide-table th, .guide-table td {
  padding: 14px 18px; text-align: left; font-size: 15px;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
.guide-table th { background: var(--bg-alt); font-weight: 600; color: var(--ink); white-space: nowrap; }
.guide-table td { color: var(--ink-2); }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-note { font-size: 14px; color: var(--muted); margin: 0; }

.breadcrumb { font-size: 14px; color: var(--faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 7px; }

.page-head { padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.page-head--alt { background: var(--bg-alt); border-bottom: 0; }
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0; }

/* ---------- 提示条 ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.notice-icon { flex: none; color: var(--brand); margin-top: 2px; }
.notice p { margin: 0; font-size: 15px; color: var(--ink-2); }
.notice strong { color: var(--brand); }

/* ---------- 经营范围 ---------- */
.scope-block { margin-top: 54px; padding-top: 44px; border-top: 1px solid var(--line); }
.scope-block h3 { font-size: 20px; margin-bottom: 18px; }
.scope-note { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.scope-note strong { color: var(--ink); font-weight: 600; }
.scope-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.scope-tag {
  display: inline-block; padding: 7px 15px; font-size: 14px;
  color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
}
.section--alt .scope-tag { background: #fff; }

/* ---------- 二维码 ---------- */
.qr-block {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: center; align-items: flex-start;
  margin-top: 38px;
}
.qr-item { text-align: center; flex: none; }
.qr-item img {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; background: #fff; box-shadow: var(--shadow-sm);
}
.qr-item p { margin: 11px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 620px; margin: 0 auto 30px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-deep); color: #9aa3b0; padding: 62px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer-brand img { height: 28px; margin-bottom: 18px; }
.footer-brand p { color: #9aa3b0; margin: 0 0 8px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #9aa3b0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  color: #7e8796; font-size: 13px;
}
.footer-bottom a { color: #9aa3b0; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; display: none; box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 12px; border-radius: var(--radius-sm); font-size: 16px; }
  .header-cta { display: none; }
  .site-header .wrap { position: relative; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 4px; }
  .facts dd { padding-top: 4px; }
  .facts dl > :nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .facts dl > :nth-last-child(-n+1) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 52px 0 40px; }
  .hero-meta { gap: 18px 24px; }
  .hero-meta strong { font-size: 19px; }
}

@media print {
  .site-header, .topbar, .nav-toggle, .site-footer, .btn-row { display: none; }
  body { font-size: 12pt; }
}
