/* 汽配查价官网 · 无外部依赖，全部使用系统字体 */
:root {
  --brand: #1a6fe8;
  --brand-dark: #0f3f8f;
  --brand-soft: #eef5ff;
  --ink: #0f172a;
  --text: #344054;
  --muted: #667085;
  --line: #e3ebf7;
  --bg: #f5f7fa;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(15, 63, 143, 0.12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }

.wrap {
  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, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--brand); }
.header-cta {
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(26, 111, 232, 0.22);
}
.header-cta:hover { background: var(--brand-dark); }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0f3f8f 0%, #1768da 58%, #2f8bf5 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-top: 84px;
  padding-bottom: 96px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  letter-spacing: 0.4px;
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: 50px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 1px;
}
.hero h1 em {
  font-style: normal;
  color: #ffd873;
}
.hero p.lead {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 12px 26px rgba(4, 24, 64, 0.22);
}
.btn-primary:hover { color: var(--brand-dark); background: #f4f8ff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-meta div strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.hero-meta div span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* 手机样机 */
.device {
  position: relative;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px;
  border-radius: 38px;
  background: #0b1d3a;
  box-shadow: 0 40px 80px rgba(4, 20, 50, 0.42);
}
.device::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 7px;
  border-radius: 99px;
  background: #13294b;
}
.screen {
  border-radius: 28px;
  background: linear-gradient(180deg, #f7faff 0%, #eaf2ff 100%);
  padding: 44px 16px 20px;
  color: var(--ink);
}
.screen-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.screen-top img { width: 34px; height: 34px; border-radius: 9px; }
.screen-top b { font-size: 15px; }
.screen-top small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.screen-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dce8fa;
  color: #98a2b3;
  font-size: 12px;
}
.screen-search i {
  width: 12px;
  height: 12px;
  border: 2px solid #98a2b3;
  border-radius: 50%;
  position: relative;
}
.screen-search i::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: #98a2b3;
  transform: rotate(45deg);
}
.screen-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6eefb;
}
.screen-card b { display: block; font-size: 13px; margin-bottom: 4px; }
.screen-card span { display: block; font-size: 11px; color: var(--muted); }
.screen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed #e8eef8;
  font-size: 12px;
}
.screen-row:last-child { border-bottom: none; }
.screen-row .price { color: #d92d20; font-weight: 800; }
.screen-chip {
  display: inline-block;
  margin: 10px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
}
.section-head h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.3;
  font-weight: 900;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #c9dcf8;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon svg { width: 24px; height: 24px; }

/* 角色 */
.role {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.role-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}
.role h3 { margin: 14px 0 8px; color: var(--ink); font-size: 19px; }
.role p { margin: 0; color: var(--muted); font-size: 14.5px; }
.role ul { margin: 14px 0 0; padding: 0; list-style: none; }
.role li {
  position: relative;
  padding-left: 20px;
  margin-top: 7px;
  color: var(--text);
  font-size: 14px;
}
.role li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
}
.step h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* 关于 / 联系 */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}
.about-copy h2 { margin: 0 0 16px; color: var(--ink); font-size: 32px; font-weight: 900; }
.about-copy p { margin: 0 0 14px; color: var(--text); }
.contact-card {
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #0f3f8f, #1a6fe8);
  color: #fff;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.contact-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14.5px;
}
.contact-row:last-child { border-bottom: none; }
.contact-row b { flex-shrink: 0; width: 84px; color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.contact-row span { color: #fff; word-break: break-all; }

/* 页脚 */
.site-footer {
  padding: 54px 0 34px;
  background: #0b1d3a;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 19px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { color: rgba(255, 255, 255, 0.74); }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; line-height: 2; }
.footer-bottom p { margin: 0; }

/* ---------- 协议页 ---------- */
.doc-header {
  padding: 44px 0 30px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.doc-header h1 { margin: 0 0 8px; color: var(--ink); font-size: 30px; font-weight: 900; }
.doc-header .meta { color: var(--muted); font-size: 14px; }
.doc-main { padding: 40px 0 70px; }
.doc-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 44px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
}
.doc-body.is-empty { color: var(--muted); }
.doc-note {
  max-width: 860px;
  margin: 0 auto 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #f5dfa5;
  color: #8a5b00;
  font-size: 14px;
}
.doc-loading { color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-top: 64px; padding-bottom: 76px; }
  .hero p.lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .device { margin-top: 8px; }
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(15, 63, 143, 0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #f1f5fb; }
  .nav a:last-child { border-bottom: none; }
  .header-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 37px; }
  .hero p.lead { font-size: 15.5px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 27px; }
  .grid, .grid.cols-4, .grid.cols-2, .steps { grid-template-columns: 1fr; }
  .doc-body { padding: 26px 20px; font-size: 15px; }
}
