/* ==========================================================================
   XX 汽车服务 · 官网样式
   纯静态、无外部依赖（无 CDN 字体 / 图片 / JS）
   ========================================================================== */

:root {
  --ink:        #0f1b2d;
  --ink-2:      #3d4d63;
  --muted:      #6b7a90;
  --brand:      #0b4f8a;
  --brand-600:  #0a4275;
  --brand-50:   #eef4fb;
  --accent:     #12a594;
  --accent-50:  #e8f7f5;
  --line:       #e4e9f0;
  --bg:         #ffffff;
  --bg-soft:    #f7f9fc;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
  --maxw:       1140px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.35; margin: 0; }
h1 { font-size: 38px; letter-spacing: -.5px; }
h2 { font-size: 28px; letter-spacing: -.3px; }
h3 { font-size: 18px; }
p  { margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 1px; line-height: 1.1; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-2); font-size: 15px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--brand); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--brand); color: #fff !important; font-size: 14px;
}
.nav-cta:hover { background: var(--brand-600); }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3.5px auto; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 15.5px; }

/* ---------- 首屏 ---------- */
.hero { padding: 72px 0 76px; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 78%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 42px; }
.hero .lead { margin-top: 20px; font-size: 17px; color: var(--ink-2); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag {
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; transition: .18s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px 4px; }
.stat b { display: block; font-size: 32px; color: var(--brand); font-weight: 600; letter-spacing: -1px; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d5e0ee; }
.card .icon { width: 56px; height: 56px; margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { margin-top: 16px; }
.card li {
  position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); margin-top: 7px;
}
.card li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.card .more { display: inline-block; margin-top: 20px; font-size: 14px; }

/* ---------- 业务详情（图文交错） ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 12px; }
.feature.reverse .feature-media { order: 2; }
.feature-media {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px;
}
.feature h2 { font-size: 25px; }
.feature .kicker { font-size: 13px; letter-spacing: 2px; color: var(--accent); font-weight: 600; }
.feature p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.checklist { margin-top: 22px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent-50);
  box-shadow: inset 0 0 0 1px rgba(18,165,148,.3);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 14px; width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-size: 14px; font-weight: 600; color: var(--brand);
  background: var(--brand-50); border-radius: 999px; padding: 4px 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-size: 16px; font-weight: 500; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); transition: .2s; margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.info-list li {
  display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .k { flex: none; width: 84px; color: var(--muted); font-size: 14.5px; }
.info-list .v { color: var(--ink); font-size: 15.5px; }
.info-list .v small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }

/* ---------- 尾部 CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--brand) 0%, #0d6ba8 100%);
  border-radius: 20px; padding: 52px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: 26px; }
.cta p { color: rgba(255,255,255,.82); margin-top: 10px; font-size: 15px; }
.cta .btn-ghost { background: #fff; color: var(--brand); border-color: #fff; }
.cta .btn-ghost:hover { color: var(--brand-600); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f1b2d; color: #94a3b8; padding: 56px 0 28px; margin-top: 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 500; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 9px; }
.footer-brand p { margin-top: 14px; line-height: 1.9; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px;
}
.beian { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- 正文页（隐私/声明） ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 21px; margin: 40px 0 14px; }
.prose p, .prose li { font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line);
}
.notice {
  background: var(--accent-50); border: 1px solid rgba(18,165,148,.22);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: 14.5px; color: var(--ink-2);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  h1, .hero h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-grid, .feature, .contact-grid, .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-media { order: 0; }
  .feature { padding: 40px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 36px 26px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { justify-content: center; margin-top: 14px; border-bottom: 0; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
