/* ==========================================================
   河北浩铂机械有限公司 · 官网样式
   移动端优先 / 简约大气 / 微信公众号适配
   ========================================================== */

/* ---------- 变量 ---------- */
:root {
  --ink: #0e1726;
  --ink-2: #1b2a41;
  --brand: #0a4da6;
  --brand-deep: #073a7e;
  --brand-soft: #eaf1fb;
  --accent: #ff6a13;
  --accent-deep: #e55a05;
  --ok: #0f9d58;
  --ok-soft: #e8f6ee;
  --warn: #d93025;
  --warn-soft: #fdeceb;

  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-deep: #0e1726;
  --line: #e4e9f0;
  --line-2: #d5dce6;

  --text: #1f2937;
  --text-2: #5b6675;
  --text-3: #8b95a3;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(14, 23, 38, .06);
  --shadow: 0 8px 30px rgba(14, 23, 38, .08);
  --shadow-lg: 0 20px 60px rgba(14, 23, 38, .14);

  --nav-h: 60px;
  --maxw: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Helvetica Neue", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; color: var(--ink); }
p { margin: 0; }
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

.section { padding: 52px 0; }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line); }

@media (min-width: 768px) {
  body { font-size: 16px; }
  .wrap { padding: 0 32px; }
  .section { padding: 76px 0; }
}
@media (min-width: 1024px) {
  .section { padding: 96px 0; }
}

/* ---------- 顶部标题块 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--brand);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.sec-head { margin-bottom: 30px; }
.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 {
  font-size: 26px;
  margin: 12px 0 10px;
  letter-spacing: -.01em;
}
.sec-head p {
  color: var(--text-2);
  font-size: 15px;
  max-width: 640px;
}
.sec-head.center p { margin: 0 auto; }

@media (min-width: 768px) {
  .sec-head { margin-bottom: 48px; }
  .sec-head h2 { font-size: 34px; }
  .sec-head p { font-size: 16px; }
}

/* ==========================================================
   顶部导航
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(14, 23, 38, .05);
}

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

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.02em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__cn { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.logo__en {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* 桌面菜单 */
.nav__menu { display: none; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-2);
  border-radius: 6px;
  transition: color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--brand); background: var(--brand-soft); }
.nav__link.is-active { color: var(--brand); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__cta { display: none; }

/* 汉堡 */
.burger {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
}
.burger span {
  display: block;
  width: 20px; height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* 移动抽屉 */
.drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: #fff;
  padding: 14px 18px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.drawer__link.is-active { color: var(--brand); }
.drawer__link::after { content: "›"; color: var(--text-3); font-size: 20px; }
.drawer__actions { margin-top: 26px; display: grid; gap: 12px; }

@media (min-width: 900px) {
  .nav__menu { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
  .drawer { display: none; }
}

/* ==========================================================
   按钮
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 77, 166, .24);
}
.btn--primary:hover { background: var(--brand-deep); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 106, 19, .26);
}
.btn--accent:hover { background: var(--accent-deep); }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: #fff;
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.btn--block { width: 100%; }
.btn--lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.btn > svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 auto; min-width: 150px; }

@media (min-width: 768px) {
  .btn-row .btn { flex: 0 0 auto; }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 40px) 0 0;
  background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 28px;
  padding-bottom: 44px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero__tag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: block;
}
.hero h1 {
  font-size: 30px;
  line-height: 1.28;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
  isolation: isolate;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 3px;
  height: 10px;
  background: rgba(255, 106, 19, .24);
  border-radius: 2px;
  z-index: -1;
}
.hero__lead {
  color: var(--text-2);
  font-size: 15.5px;
  margin-bottom: 24px;
}
.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-2);
  aspect-ratio: 4 / 3;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(14, 23, 38, .55));
}
.hero__badge {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(14, 23, 38, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);
}

@media (min-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 68px); }
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px;
    padding-bottom: 80px;
  }
  .hero h1 { font-size: 46px; }
  .hero__lead { font-size: 17px; margin-bottom: 32px; }
  .hero__visual { aspect-ratio: 5 / 4; }
  .hero__badge { left: 22px; bottom: 22px; font-size: 14px; }
}
@media (min-width: 1200px) {
  .hero h1 { font-size: 52px; }
}

/* ==========================================================
   数据条
   ========================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: #fff;
  padding: 20px 16px;
  text-align: center;
}
.stat__num {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.stat__num sup { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat__label { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 30px 16px; }
  .stat__num { font-size: 36px; }
  .stat__label { font-size: 14px; }
}

/* ==========================================================
   卡片通用
   ========================================================== */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 700px) {
  .grid { gap: 22px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .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-lg);
  padding: 24px 20px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d3e0f2;
}
.card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }

/* 带序号的卡片 */
.feat {
  position: relative;
  padding: 24px 20px 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.feat__no {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { color: var(--text-2); font-size: 14.5px; }

/* ==========================================================
   产品卡
   ========================================================== */
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 23, 38, .72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pcard__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.pcard__body h3 { font-size: 17px; margin-bottom: 6px; }
.pcard__model {
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.pcard__desc { font-size: 14px; color: var(--text-2); flex: 1; }
.pcard__specs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
}
.pcard__specs div { font-size: 13px; }
.pcard__specs span { color: var(--text-3); }
.pcard__specs strong { color: var(--ink); font-weight: 600; }

/* ==========================================================
   图片 + 文字 分栏
   ========================================================== */
.split {
  display: grid;
  gap: 28px;
  align-items: center;
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body h2 { font-size: 25px; margin: 12px 0 14px; }
.split__body p { color: var(--text-2); margin-bottom: 14px; }
.split__body .btn-row { margin-top: 22px; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--reverse .split__media { order: 2; }
  .split__media { aspect-ratio: 6 / 5; }
  .split__body h2 { font-size: 32px; }
}

/* 清单 */
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 15px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ok-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 13px;
  width: 6px; height: 3px;
  border-left: 1.6px solid var(--ok);
  border-bottom: 1.6px solid var(--ok);
  transform: rotate(-45deg);
}

/* ==========================================================
   时间轴
   ========================================================== */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--line));
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--brand);
}
.tl-item__year {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .04em;
}
.tl-item h4 { font-size: 16px; margin: 3px 0 4px; }
.tl-item p { font-size: 14.5px; color: var(--text-2); }

/* ==========================================================
   资质 / 徽章
   ========================================================== */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-2);
  background: #fff;
}
.badge svg { width: 15px; height: 15px; color: var(--brand); }

/* ==========================================================
   CTA 横幅
   ========================================================== */
.cta-band {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 77, 166, .55), transparent 68%);
}
.cta-band__inner { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: 25px; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .72); margin-bottom: 24px; font-size: 15px; }

@media (min-width: 768px) {
  .cta-band { padding: 60px 56px; }
  .cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .cta-band h2 { font-size: 32px; }
  .cta-band p { margin-bottom: 0; }
  .cta-band .btn-row { flex-shrink: 0; }
}

/* ==========================================================
   表格
   ========================================================== */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { min-width: 620px; font-size: 14.5px; }
.tbl th, .tbl td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl thead th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafbfd; }
.tbl td strong { color: var(--brand); }

/* ==========================================================
   表单
   ========================================================== */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px; /* 防 iOS 聚焦缩放 */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 77, 166, .12);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.form-note { font-size: 13px; color: var(--text-3); }

.form-alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form-alert.is-show { display: block; }
.form-alert--ok { background: var(--ok-soft); color: #0b7a44; border: 1px solid #bfe6d0; }
.form-alert--err { background: var(--warn-soft); color: #a5221a; border: 1px solid #f4c9c5; }

/* ==========================================================
   联系信息
   ========================================================== */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.ci { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: 0; padding-bottom: 0; }
.ci:first-child { padding-top: 0; }
.ci__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.ci__icon svg { width: 19px; height: 19px; }
.ci__label { font-size: 12.5px; color: var(--text-3); }
.ci__value { font-size: 15.5px; font-weight: 600; color: var(--ink); word-break: break-all; }
.ci__value a { color: var(--brand); }

/* 二维码块 */
.qr-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.qr-box__img {
  width: 96px; height: 96px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.qr-box__img svg, .qr-box__img img { width: 100%; height: 100%; }
.qr-box__txt h4 { font-size: 15px; margin-bottom: 4px; }
.qr-box__txt p { font-size: 13.5px; color: var(--text-2); }

/* 地图占位 */
.map-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  min-height: 260px;
  position: relative;
}
.map-box iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
.map-box__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--text-2);
  font-size: 14px;
  background:
    repeating-linear-gradient(0deg, #eef1f6 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, #eef1f6 0 1px, transparent 1px 28px);
}
.map-pin {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(10, 77, 166, .3);
}
.map-pin::after {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
}

/* ==========================================================
   产品验真
   ========================================================== */
.verify-hero {
  padding: calc(var(--nav-h) + 36px) 0 8px;
  background: linear-gradient(180deg, #eef3fb 0%, #ffffff 100%);
  text-align: center;
}
.verify-hero h1 { font-size: 26px; margin: 12px 0 10px; }
.verify-hero p { color: var(--text-2); max-width: 560px; margin: 0 auto; font-size: 15px; }

@media (min-width: 768px) {
  .verify-hero { padding-top: calc(var(--nav-h) + 60px); }
  .verify-hero h1 { font-size: 36px; }
  .verify-hero p { font-size: 16px; }
}

.vcard {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}
@media (min-width: 600px) { .vcard { padding: 34px; } }

.code-input {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.code-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 77, 166, .12);
}
.code-input::placeholder {
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-3);
}
.code-input.is-bad { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(217, 48, 37, .1); }

.vhint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}
.vhint svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }

.samples { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.samples__label { font-size: 13px; color: var(--text-3); }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--line-2);
  background: #fff;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); border-style: solid; }

/* ==========================================================
   车辆查询页卡片（verify.html，独立页；安装登记见 register.html）
   ========================================================== */
.vtabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 26px;
  background: var(--bg-soft);
  border-radius: 12px;
}
.vtab {
  flex: 1;
  min-height: 42px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.vtab.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.vpane { display: none; }
.vpane.is-active { display: block; animation: rise .3s var(--ease); }

/* 数据源状态条 */
.mode-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-2);
}
.mode-bar .mode-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-3);
}
.mode-bar.is-server {
  background: var(--ok-soft);
  border-color: #bfe6d0;
  color: #0b7a44;
}
.mode-bar.is-server .mode-dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(15, 157, 88, .18);
}
.mode-bar.is-local {
  background: #fff7e8;
  border-color: #f2dcae;
  color: #8a6310;
}
.mode-bar.is-local .mode-dot { background: #e8a317; }

/* 管理员登录区 */
.auth-box {
  padding: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.auth-box.is-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--brand-soft);
  border-color: #c9dcf5;
}
.auth-title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.auth-sub { font-size: 13px; color: var(--text-2); margin: 3px 0 12px; }
.auth-box.is-login .auth-sub { margin: 2px 0 0; }
.auth-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .auth-row { grid-template-columns: 1fr 1fr; } }
.auth-row .input { min-height: 44px; }

/* 车架号分段显示 */
.vin-display {
  margin-top: 12px;
  min-height: 20px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text-3);
  transition: color .2s var(--ease), font-size .2s var(--ease);
  word-break: break-all;
}
.vin-display.is-on { color: var(--ink); font-size: 17px; }

/* 实时校验提示 */
.vin-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-3);
}
.vin-hint.is-typing { color: var(--text-2); }
.vin-hint.is-ok { color: #0b7a44; }
.vin-hint.is-warn { color: #a57505; }
.vin-hint.is-err { color: var(--warn); }
.vin-hint.is-ok::before { content: "\2713"; font-weight: 700; }
.vin-hint.is-warn::before { content: "!"; font-weight: 700; }
.vin-hint.is-err::before { content: "\2715"; font-weight: 700; }

.vin-field {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* 安装记录卡 */
.rec {
  margin-top: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rec__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rec__no { font-size: 12px; color: var(--text-3); letter-spacing: .06em; }
.rec__head h4 { font-size: 16px; margin-top: 2px; }
.rec__tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.rec__tag--ok { background: var(--ok-soft); color: #0b7a44; }
.rec__tag--bad { background: var(--warn-soft); color: #a5221a; }
.rec .vinfo { border-radius: 8px; }
.rec .vinfo__row { padding: 10px 12px; font-size: 14px; }

/* 数据统计条 */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mini-stat { background: #fff; padding: 14px 8px; text-align: center; }
.mini-stat b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.3;
}
.mini-stat span { font-size: 12.5px; color: var(--text-2); }

/* 历史记录维护：表格 */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.rec-table th, .rec-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rec-table th {
  background: var(--bg-soft);
  color: var(--text-2);
  font-weight: 600;
  font-size: 12.5px;
  position: sticky;
  top: 0;
}
.rec-table tbody tr:hover { background: var(--brand-soft); }
.rec-table .mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.rec-table .nowrap { white-space: nowrap; }

.link-btn {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.link-btn:hover { background: var(--brand-soft); text-decoration: underline; }
.link-danger { color: var(--warn); }
.link-danger:hover { background: var(--warn-soft); }

.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* 编辑弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(14, 23, 38, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 20px 22px;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal__head h4 { font-size: 17px; }
.modal__close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
  padding: 0 4px;
}
.modal__close:hover { color: var(--text); }

/* 移动端：表格改为卡片式 */
@media (max-width: 680px) {
  .rec-table { min-width: 0; }
  .rec-table thead { display: none; }
  .rec-table, .rec-table tbody, .rec-table tr, .rec-table td { display: block; width: 100%; }
  .rec-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 4px 0;
  }
  .rec-table td {
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }
  .rec-table td:last-child { border-bottom: none; justify-content: flex-end; }
  .rec-table td::before {
    content: attr(data-label);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
  }
}

/* 表单两列 */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }

/* 扫码遮罩 */
.scan-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
}
.scan-mask video { width: 100%; max-height: 70vh; object-fit: cover; }
.scan-tip { font-size: 14px; opacity: .85; }
.scan-close {
  padding: 10px 26px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 600;
}

/* 结果 */
.vresult { margin-top: 22px; display: none; }
.vresult.is-show { display: block; animation: rise .35s var(--ease); }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.vresult__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.vresult__head--ok { background: var(--ok-soft); border: 1px solid #bfe6d0; }
.vresult__head--bad { background: var(--warn-soft); border: 1px solid #f4c9c5; }
.vresult__head--wait { background: #fff7e8; border: 1px solid #f6dfae; }

.vmark {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.vmark--ok { background: var(--ok); }
.vmark--bad { background: var(--warn); }
.vmark--wait { background: #e8a317; }
.vmark svg { width: 24px; height: 24px; }

.vresult__title { font-size: 19px; font-weight: 700; }
.vresult__sub { font-size: 13.5px; margin-top: 2px; }
.vresult__head--ok .vresult__title { color: #0b7a44; }
.vresult__head--ok .vresult__sub { color: #3b8a68; }
.vresult__head--bad .vresult__title { color: #a5221a; }
.vresult__head--bad .vresult__sub { color: #b55048; }
.vresult__head--wait .vresult__title { color: #9a6b06; }
.vresult__head--wait .vresult__sub { color: #a5801f; }

.vinfo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.vinfo__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.vinfo__row:last-child { border-bottom: 0; }
.vinfo__row:nth-child(odd) { background: #fafbfd; }
.vinfo__row span { color: var(--text-3); flex-shrink: 0; }
.vinfo__row strong { font-weight: 600; text-align: right; word-break: break-all; }

.valert {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
}
.valert strong { color: var(--ink); }

/* 查询历史 */
.vhistory { margin-top: 26px; }
.vhistory__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.vhistory__head h4 { font-size: 15px; }
.vhistory__clear { font-size: 13px; color: var(--text-3); }
.vhistory__list { display: grid; gap: 8px; }
.vhitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13.5px;
}
.vhitem__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.vhitem__dot--ok { background: var(--ok); }
.vhitem__dot--bad { background: var(--warn); }
.vhitem__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  flex: 1;
  word-break: break-all;
}
.vhitem__time { color: var(--text-3); font-size: 12.5px; flex-shrink: 0; }

/* 验真说明步骤 */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__no {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.step h4 { font-size: 15.5px; margin-bottom: 3px; }
.step p { font-size: 14px; color: var(--text-2); }

/* 铭牌示意 */
.nameplate {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f4f6fa, #e6ebf3);
  display: grid;
  gap: 8px;
}
.nameplate__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.nameplate__row span { color: var(--text-3); }
.nameplate__row strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nameplate__code {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
}

/* ==========================================================
   页脚
   ========================================================== */
.footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, .66);
  padding: 44px 0 0;
  font-size: 14px;
}
.footer__grid { display: grid; gap: 30px; }
.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer p { line-height: 1.85; }
.footer a { color: rgba(255, 255, 255, .66); transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__links li { margin-bottom: 9px; }
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__logo .logo__cn { color: #fff; }
.footer__logo .logo__en { color: rgba(255, 255, 255, .38); }
.footer__contact li { margin-bottom: 8px; display: flex; gap: 8px; }
.footer__contact span { color: rgba(255, 255, 255, .4); flex-shrink: 0; }

.footer__bar {
  margin-top: 34px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  display: grid;
  gap: 6px;
}
.footer__bar a { color: rgba(255, 255, 255, .45); }

@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
  .footer { padding-top: 60px; }
  .footer__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
}

/* ==========================================================
   移动端底部工具栏（微信场景）
   ========================================================== */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 16px rgba(14, 23, 38, .06);
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 54px;
  font-size: 11px;
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.tabbar__item svg { width: 21px; height: 21px; }
.tabbar__item.is-active { color: var(--brand); font-weight: 600; }
.tabbar__item--accent { color: var(--accent); font-weight: 600; }
.tabbar__item:active { background: var(--bg-soft); }

body.has-tabbar { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }

@media (min-width: 900px) {
  .tabbar { display: none; }
  body.has-tabbar { padding-bottom: 0; }
}

/* 返回顶部 */
.totop {
  position: fixed;
  right: 14px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 88;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(14, 23, 38, .82);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .3s var(--ease);
  box-shadow: var(--shadow);
}
.totop.is-show { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .totop { bottom: 30px; right: 30px; } }

/* ==========================================================
   滚动进场动画
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

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

/* ==========================================================
   内页页头
   ========================================================== */
.phead {
  padding: calc(var(--nav-h) + 34px) 0 38px;
  background: linear-gradient(160deg, #eef3fb 0%, #ffffff 78%);
  border-bottom: 1px solid var(--line);
}
.crumb { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.crumb a { color: var(--brand); }
.crumb a:hover { text-decoration: underline; }
.phead h1 { font-size: 27px; letter-spacing: -.02em; margin-bottom: 10px; }
.phead p { color: var(--text-2); font-size: 15px; max-width: 640px; }

@media (min-width: 768px) {
  .phead { padding: calc(var(--nav-h) + 58px) 0 60px; }
  .phead h1 { font-size: 38px; }
  .phead p { font-size: 16.5px; }
}

/* ==========================================================
   价值观卡片
   ========================================================== */
.value {
  position: relative;
  padding: 30px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.value::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.value__no {
  font-size: 34px;
  font-weight: 800;
  color: #eef1f6;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -.03em;
}
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { color: var(--text-2); font-size: 14.5px; }

/* 输入框内嵌扫码按钮 */
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-scan {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  transition: background .2s var(--ease);
}
.input-scan:hover { background: #dbe7f8; }
.input-scan svg { width: 19px; height: 19px; }

/* ==========================================================
   产品合格证
   ========================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.cert-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
.cert-item svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.cert-item__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
}
.cert-item__vin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-2);
  word-break: break-all;
}
.cert-item__btns { display: flex; gap: 6px; flex-shrink: 0; }
.cert-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  background: #fff;
}
.cert-btn:hover { background: var(--brand-soft); border-color: var(--brand); }

@media print {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4mm;
  }
  .cert-item {
    border: 0;
    padding: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .cert-item__bar { display: none; }
  .cert-item svg { border-radius: 0; }
}

/* ==========================================================
   二维码贴纸
   ========================================================== */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.qr-card {
  padding: 14px 10px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  break-inside: avoid;
}
.qr-card__code {
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.qr-card__code canvas,
.qr-card__code img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.qr-card__vin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  word-break: break-all;
}
.qr-card__tip {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-3);
}
.qr-card__dl {
  margin-top: 10px;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: #fff;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.qr-card__dl:hover { background: var(--brand-soft); border-color: var(--brand); }

/* ==========================================================
   管理工具子导航（4 个管理员页互通跳转，吸顶）
   ========================================================== */
.admin-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(14, 23, 38, .04);
}
.admin-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.admin-nav__inner::-webkit-scrollbar { display: none; }
.admin-nav__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-2);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.admin-nav__item:hover { color: var(--brand); }
.admin-nav__item.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.print-title { display: none; }

/* 打印：只保留二维码网格，4 列排版便于裁剪 */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .nav, .footer, .tabbar, .totop, .phead, .no-print,
  .section--soft, .drawer { display: none !important; }
  .section { padding: 0 !important; }
  .wrap { max-width: 100%; padding: 0; }
  .print-title {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
  }
  .qr-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .qr-card {
    border: 1px dashed #999;
    border-radius: 0;
    padding: 8px 4px 6px;
  }
  .qr-card__vin { font-size: 10px; }
  .qr-card__tip { font-size: 9px; }
}

/* ==========================================================
   常见问题（折叠）
   ========================================================== */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary { color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 14.5px;
}

/* ---------- 工具类 ---------- */
.mt-sm { margin-top: 14px; }
.mt { margin-top: 22px; }
.mt-lg { margin-top: 34px; }
.mb { margin-bottom: 22px; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: block; } }
