/* ============================================================
   SpareHQ — wholesale spare parts site (v1, 2026-10)
   工作代号 SpareHQ（对应候选域名 sparehq.com）。
   换品牌名：全站替换 "SpareHQ" / "sparehq" 即可。
   ============================================================ */

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --navy: #0a1a33;
  --navy-2: #10294d;
  --primary: #1257c9;
  --primary-dark: #0d439c;
  --accent: #f59e0b;
  --wa: #22c15e;
  --wa-dark: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .08), 0 16px 40px rgba(15, 23, 42, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.brand .tld { color: var(--muted); font-weight: 600; font-size: 13px; align-self: flex-start; margin-top: 1px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 14.5px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--primary); text-decoration: none; border-bottom-color: var(--primary); }
.nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-cta { margin-left: auto; }

/* language toggle in nav */
.nav-links .lang {
  margin-left: 8px;
  color: var(--primary); font-weight: 700; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px;
}
.nav-links .lang:hover { border-color: var(--primary); background: #eef4fd; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(18, 87, 201, .28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(34, 193, 94, .30); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: #eef4fd; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(18, 87, 201, .35), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(245, 158, 11, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
.hero h1 .accent { color: #7db4ff; }
.hero .lede { margin: 18px 0 30px; font-size: 17.5px; color: #c7d5ec; max-width: 54ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: #8ea3c4; }

.hero-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.stat .num { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat .lbl { font-size: 12.5px; color: #a9bbd8; margin-top: 4px; }
.stat .ic { width: 26px; height: 26px; margin-bottom: 10px; opacity: .9; }

/* ---------- trust strip ---------- */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 16px 0; }
.strip-item { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.strip-item svg { width: 18px; height: 18px; color: var(--primary); }

/* ---------- sections ---------- */
.section { padding: 68px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head .kicker { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: 30px; letter-spacing: -.02em; line-height: 1.2; margin: 8px 0 10px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .15s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card .ic { width: 38px; height: 38px; color: var(--primary); margin-bottom: 14px; }
.cat-card h3 { font-size: 17px; letter-spacing: -.01em; }
.cat-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.cat-card .count { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--primary); background: #eaf1fc; border-radius: 999px; padding: 3px 10px; }
.cat-card.ghosted { background: transparent; border-style: dashed; box-shadow: none; }
.cat-card.ghosted .ic { color: var(--accent); }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .ph { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #eef2f9, #e2e9f5); position: relative; }
.product-card .ph svg.glyph { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; color: #b3c1d9; }
.product-card .ph .ph-note {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #93a3bf;
}
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 15.5px; line-height: 1.35; letter-spacing: -.01em; }
.product-body .compat { font-size: 13px; color: var(--muted); }
.product-body .row { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 6px; }

.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  border-radius: 6px; padding: 2px 8px; text-transform: uppercase;
}
.badge-premium { color: #92600a; background: #fdf0d5; border: 1px solid #f3d9a4; }
.badge-a { color: #0d439c; background: #e7effc; border: 1px solid #c4d8f7; }
.badge-b { color: #475569; background: #eef1f5; border: 1px solid #d7dee8; }

/* ---------- chips filter ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all .12s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.feature .ic { width: 34px; height: 34px; color: var(--primary); margin-bottom: 12px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 12px;
}
.step h3 { font-size: 15.5px; margin-bottom: 5px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(34, 193, 94, .22), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-2));
  border-radius: 20px; color: #fff; padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; letter-spacing: -.02em; }
.cta-band p { color: #c7d5ec; margin-top: 8px; max-width: 52ch; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8fafc; }
tr:last-child td { border-bottom: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.contact-card .ic { width: 34px; height: 34px; margin-bottom: 12px; }
.contact-card.ic-wa .ic { color: var(--wa); }
.contact-card.ic-mail .ic { color: var(--primary); }
.contact-card.ic-wechat .ic { color: #20c46a; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { font-size: 13.5px; color: var(--muted); }
.contact-card .val { font-size: 15px; font-weight: 700; margin: 6px 0 14px; color: var(--ink); }
.qr-slot {
  width: 132px; height: 132px; border: 2px dashed #c7d2e0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; color: var(--muted); background: #f8fafc; padding: 10px;
}

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
label .req { color: #dc2626; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  background: #f8fafc; border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 13px; transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18, 87, 201, .13); background: #fff; }
textarea { min-height: 120px; resize: vertical; }
.form-foot { margin-top: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .hint { font-size: 12.5px; color: var(--muted); }

/* ---------- notice ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #f3ddab; border-radius: 12px;
  padding: 14px 18px; font-size: 14px; color: #715206; margin-bottom: 28px;
}
.notice svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: #d9a514; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b7c6de; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 52px 0 40px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer a { color: #b7c6de; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-brand .mark { width: 26px; height: 26px; }
.footer-note { font-size: 13px; line-height: 1.7; max-width: 44ch; }
.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0 28px; font-size: 12.5px; color: #8ea3c4; line-height: 1.7; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(34, 193, 94, .45);
  transition: transform .12s ease;
}
.wa-float:hover { transform: scale(1.07); text-decoration: none; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::after {
  content: ""; position: absolute; inset: -5px; border-radius: 999px;
  border: 2px solid rgba(34, 193, 94, .4); animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(18, 87, 201, .35), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff; padding: 56px 0 48px;
}
.page-hero h1 { font-size: 34px; letter-spacing: -.02em; }
.page-hero p { color: #c7d5ec; margin-top: 10px; max-width: 62ch; font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .cat-grid, .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .cat-grid, .feature-grid, .steps, .product-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 52px; }
  .hero-panel { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 26px; }
  .form-card { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
