/* ===========================================================
   安车昇辉 · GJB 150B-2025 检测服务  |  主样式表
   =========================================================== */

:root {
  --navy-900: #070d1a;
  --navy-850: #0a1424;
  --navy-800: #0d1b2f;
  --navy-700: #122945;
  --navy-600: #1a3a5f;

  --ink: #0f1a2b;
  --ink-2: #2c3a4f;
  --muted: #66748c;
  --line: #e3e8f0;
  --line-2: #eef1f6;

  --paper: #ffffff;
  --paper-2: #f6f8fb;
  --paper-3: #eef2f7;

  --accent: #c8963e;
  --accent-2: #e0b45c;
  --accent-soft: #fbf4e6;

  --blue: #1f6fb2;
  --blue-soft: #eef5fc;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 26, 46, .05);
  --shadow: 0 12px 34px rgba(11, 26, 46, .09);
  --shadow-lg: 0 28px 70px rgba(11, 26, 46, .16);

  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --nav-h: 76px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

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

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(200, 150, 62, .28); color: var(--ink); }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow { max-width: 880px; }

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 68px 0; }
.section--paper { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line-2); }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); line-height: 1.22; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }

.lead {
  font-size: clamp(1rem, 1.25vw, 1.09rem);
  color: var(--ink-2);
  line-height: 1.85;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent-text { color: var(--accent); }

/* ---------- Section head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  display: block;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
}

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease,
    border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: #1a1206;
  box-shadow: 0 8px 22px rgba(200, 150, 62, .28);
}
.btn--primary:hover {
  background: var(--accent-2);
  box-shadow: 0 12px 30px rgba(200, 150, 62, .36);
}
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .34);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }
.btn--sm { padding: 10px 20px; font-size: .87rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-800);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  letter-spacing: .02em;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}
.topbar__left { display: flex; align-items: center; gap: 18px; }
.topbar__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, .18);
}
.topbar a { transition: color .2s; }
.topbar a:hover { color: var(--accent-2); }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__right span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 13px; height: 13px; opacity: .8; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .3s ease, background .3s ease;
}
.header.is-scrolled { box-shadow: 0 6px 26px rgba(11, 26, 46, .07); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--nav-h);
}

.logo { max-width: 300px; }
.logo__text { min-width: 0; }

/* logo */
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.28);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 5px;
}
.logo__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo__mark svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.logo__text { line-height: 1.24; }
.logo__cn {
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .01em;
  display: block;
  line-height: 1.3;
}
.logo__en {
  font-size: .56rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  font-weight: 600;
  margin-top: 3px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu > li { position: relative; }
.nav__link {
  display: block;
  padding: 10px 12px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav__link:hover { color: var(--navy-800); background: var(--paper-2); }
.nav__link.is-active { color: var(--navy-800); }
.nav__link.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent);
  margin-top: 6px;
  border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__tel {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  text-align: right;
}
.nav__tel small { font-size: .66rem; color: var(--muted); letter-spacing: .08em; }
.nav__tel b { font-size: .98rem; color: var(--ink); letter-spacing: .01em; }

/* burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
  flex: none;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.6px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Page hero (inner pages) ---------- */
.pagehero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  padding: 74px 0 62px;
  overflow: hidden;
}
.pagehero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%);
}
.pagehero::after {
  content: "";
  position: absolute;
  right: -8%; top: -35%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(200, 150, 62, .16), transparent 62%);
  pointer-events: none;
}
.pagehero__in { position: relative; z-index: 1; max-width: 780px; }
.pagehero h1 { color: #fff; margin-bottom: 18px; }
.pagehero p { color: rgba(255, 255, 255, .68); font-size: 1.03rem; max-width: 640px; }
.crumb {
  display: flex; align-items: center; gap: 9px;
  font-size: .78rem; color: rgba(255, 255, 255, .48);
  margin-bottom: 26px; flex-wrap: wrap;
}
.crumb a:hover { color: var(--accent-2); }
.crumb span.sep { opacity: .5; }
.crumb .now { color: rgba(255, 255, 255, .86); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag {
  font-size: .74rem;
  letter-spacing: .06em;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 100px;
  color: rgba(255, 255, 255, .8);
}
.tag--gold { border-color: rgba(200, 150, 62, .5); color: var(--accent-2); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5dde9; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--muted); }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  color: var(--navy-700);
}
.card__icon svg { width: 22px; height: 22px; }

.card--num { padding-top: 26px; }
.card__no {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .58);
  padding: 72px 0 0;
  font-size: .89rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(200, 150, 62, .15) 55%, transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: 44px;
  padding-bottom: 56px;
}
.footer__brand .logo__cn { color: #fff; }
.footer__brand .logo__en { color: rgba(255, 255, 255, .42); }
.footer__brand p { margin: 20px 0 0; line-height: 1.85; max-width: 330px; color: rgba(255,255,255,.5); }
.footer h5 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 12px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--accent-2); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer__contact svg { width: 15px; height: 15px; margin-top: 4px; flex: none; opacity: .55; }
.footer__contact b { color: #fff; font-weight: 600; letter-spacing: .02em; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .79rem;
  color: rgba(255, 255, 255, .4);
}
.footer__meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer__dot { opacity: .5; }
.footer__bottom .icp {
  color: rgba(255, 255, 255, .52);
  border-bottom: 1px dashed rgba(255, 255, 255, .22);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.footer__bottom .icp:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------- Floating contact ---------- */
.floatbar {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floatbar a, .floatbar button {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 26, 46, .26);
  border: none;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.floatbar a:hover, .floatbar button:hover { transform: translateY(-3px) scale(1.04); }
.floatbar svg { width: 21px; height: 21px; }
.floatbar .is-accent { background: var(--accent); color: #1a1206; }
.floatbar .is-wechat { background: #2f9e44; }
.floatbar__tip {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  border: 1px solid var(--line);
}
.floatbar a:hover .floatbar__tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.drawer__mask {
  position: absolute; inset: 0;
  background: rgba(7, 13, 26, .5);
  opacity: 0;
  transition: opacity .3s ease;
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 26px 34px;
}
body.nav-open .drawer { visibility: visible; pointer-events: auto; }
body.nav-open .drawer__mask { opacity: 1; }
body.nav-open .drawer__panel { transform: translateX(0); }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px;
}
.drawer__close {
  width: 38px; height: 38px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); cursor: pointer;
  display: grid; place-items: center;
}
.drawer__close svg { width: 16px; height: 16px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 15px 2px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer nav a.is-active { color: var(--accent); }
.drawer nav a svg { width: 14px; height: 14px; opacity: .35; }
.drawer__foot { margin-top: auto; padding-top: 26px; }
.drawer__foot .btn { margin-bottom: 10px; }
.drawer__foot small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.7; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }
.reveal.d6 { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .topbar__right span.hide-sm { display: none; }
  .nav__menu, .nav__cta .nav__tel, .nav__cta .btn { display: none; }
  .burger { display: block; }
  .section { padding: 66px 0; }
  .section--tight { padding: 50px 0; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .pagehero { padding: 52px 0 46px; }
  .floatbar { right: 14px; bottom: 16px; }
  .floatbar a, .floatbar button { width: 46px; height: 46px; }
  .floatbar__tip { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 34px; }
  .head-row { margin-bottom: 32px; }
  .footer { padding-top: 52px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 38px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .topbar__in { min-height: 34px; font-size: .74rem; }
  .topbar__left span.hide-xs { display: none; }
  .card { padding: 24px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__cn { font-size: .98rem; }
  .logo__en { font-size: .55rem; }
}


@media (max-width: 860px) {
  .topbar .hide-md { display: none; }
}
@media (max-width: 1180px) {
  .nav__menu .nav__link { padding: 10px 9px; font-size: .89rem; }
  .logo { max-width: 250px; }
  .logo__cn { font-size: .86rem; }
}
@media (max-width: 680px) {
  .logo__cn { font-size: .8rem; }
  .logo__en { font-size: .5rem; letter-spacing: .1em; }
}

/* ---------- 回到顶部 ---------- */
.floatbar__top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease,
    background .25s ease !important;
  background: #fff !important;
  color: var(--navy-800) !important;
  border: 1px solid var(--line) !important;
}
.floatbar__top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floatbar__top:hover {
  background: var(--navy-800) !important;
  color: #fff !important;
  border-color: var(--navy-800) !important;
}
/* 提示条跟随悬停 */
.floatbar__top:hover .floatbar__tip { opacity: 1; transform: translateY(-50%) translateX(0); }
