/* ============================================================
   BRABUS Lubricants — light professional theme (Western B2B)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg2: #f6f8fb;
  --panel: #ffffff;
  --panel2: #f1f5f9;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #5b6b7f;
  --blue: #e5c82e;
  --blue2: #f0d94a;
  --blue-deep: #8f7509;   /* dark gold reserved for text: readable on light backgrounds */
  --red: #e04545;
  --shadow: 0 4px 18px rgba(15, 23, 42, .06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .10);
  --radius: 14px;
  --maxw: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .2s;
}
.nav > a:hover { color: var(--text); }
.nav > a.active { color: var(--text); border-bottom-color: var(--blue-deep); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 9px 8px; margin-right: -8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }

/* ---------- buttons / chips / badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; border: 1px solid transparent; transition: .2s;
}
.btn-primary { background: var(--blue); color: #14160f; }
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(229,200,46,.32); }
.btn-ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.btn-tel { background: #eef9f0; border-color: #bfe6c8; color: #1a7f37; }
.btn-tel:hover { background: #e0f4e5; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* hidden 属性必须压过 .chip / .badge 自带的 display，否则包装按钮池里多余的
   空按钮会漏出来（辅助油各规格包装数不同时靠 hidden 收起） */
[hidden] { display: none !important; }

.chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .18s;
}
.chip:hover { color: var(--text); border-color: #d8cf9e; }
.chip-on { background: var(--blue); border-color: var(--blue-deep); color: #14160f; }
.chip-mini { padding: 3px 10px; font-size: 11px; font-weight: 600; cursor: default; }
.chip-vis { color: var(--blue-deep); border-color: #e8dfa8; background: #fdfaec; }
.badge {
  display: inline-block; padding: 5px 14px; border-radius: 6px;
  background: var(--panel2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted);
}
.badge-api { border-color: #ded29a; color: var(--blue-deep); background: #fdf8e3; }
.cert-chip {
  padding: 5px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .1em; background: #fff;
}

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(37,99,235,.07), transparent 60%),
    radial-gradient(600px 400px at 5% 95%, rgba(37,99,235,.04), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--blue-deep); margin-bottom: 18px; }
.hero h1 { font-size: 56px; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; color: #0b1526; }
.hero h1 .accent { color: var(--blue-deep); }
.hero-sub { color: var(--muted); font-size: 17px; margin: 22px 0 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-certs { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
  transition: transform .35s ease;
}
.hero-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-card img { border-radius: 10px; }
.hero-card-tag {
  margin-top: 14px; text-align: center; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; color: #33445c;
}

/* ---------- hero variant: full-bleed factory photo ---------- */
/* Backup lives in _backup_hero_v1_*; rolling back means restoring the hero block in index.html */
/* Fixed height + cover: the photo scales to fill and overflow is cropped, tank farm centre-low */
.hero-photo {
  position: relative; overflow: hidden;
  height: 560px;
  background: #0a1226;
  border-bottom: 1px solid var(--line);
}
.hero-photo .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 68%;
}
.hero-photo .hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(4,9,20,.62);
}
.hero-photo .container {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-photo .hero-copy { max-width: 760px; }
.hero-photo .hero-kicker { color: #ffdc55; }
.hero-photo h1 { color: #ffffff; font-size: 48px; white-space: nowrap; }
.hero-photo h1 .accent { color: #ffdb4d; }
/* Hidden on wide screens so the title stays one line; shown at <=1180px: white line + gold line */
.hero-photo h1 .hero-br { display: none; }
.hero-photo .hero-sub { color: rgba(255,255,255,.86); max-width: 560px; }
.hero-photo .cert-chip {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.92);
}
.hero-photo .btn-tel { background: rgba(37,211,102,.16); border-color: rgba(37,211,102,.55); color: #7fe3a4; }
.hero-photo .btn-tel:hover { background: rgba(37,211,102,.28); }

@media (max-width: 1180px) {
  .hero-photo { height: 480px; }
  .hero-photo .hero-bg { object-position: center 62%; }
  .hero-photo h1 { font-size: 42px; }
  .hero-photo h1 .hero-br { display: block; }   /* white line / gold line */
}
/* <=980px: fixed height becomes flexible (min-height, grows with content) so text/buttons never clip */
@media (max-width: 980px) {
  .hero-photo { height: auto; min-height: 430px; display: flex; padding: 0; }
  .hero-photo .hero-bg { object-position: center 58%; }
  .hero-photo .container { position: relative; inset: auto; padding-top: 52px; padding-bottom: 56px; }
  .hero-photo .hero-copy { max-width: 100%; }
  .hero-photo h1 { font-size: 34px; }
  .hero-photo .hero-sub { max-width: 100%; }
}
@media (max-width: 640px) {
  .hero-photo { min-height: 380px; }
  .hero-photo .container { padding-top: 44px; padding-bottom: 48px; }
  .hero-photo h1 { font-size: 30px; }
  .hero-photo .hero-sub { font-size: 15px; }
}
@media (max-width: 420px) {
  .hero-photo h1 { font-size: 27px; }
}

/* ---------- stats band ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--bg2); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 36px 0; }
.stat { text-align: center; }
.stat-num { font-size: 34px; font-weight: 800; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--blue-deep); margin-bottom: 12px; }
.section-head h2, .group-title { font-size: 34px; font-weight: 800; letter-spacing: -.01em; color: #0b1526; }
.section-sub { color: var(--muted); margin-top: 14px; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; box-shadow: var(--shadow);
}
.cat-card:hover { border-color: #d8cf9e; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-media { background: #fff; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 12px; }
.cat-media img { width: 100%; height: 100%; object-fit: contain; }
.cat-body { padding: 22px 24px 26px; }
.cat-body h3 { font-size: 21px; margin-bottom: 10px; }
.cat-body p { color: var(--muted); font-size: 14.5px; }
.cat-desc-short { display: none; }   /* long description is the desktop default */
.cat-link { display: inline-block; margin-top: 16px; color: var(--blue-deep); font-weight: 700; font-size: 14px; }

/* ---------- feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: #fdf8e3; color: var(--blue-deep); font-weight: 800; font-size: 13px; letter-spacing: .05em;
  border: 1px solid #d4e2fa; margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* ---------- product listing ---------- */
.page-head { padding: 64px 0 40px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--blue-deep); }
.crumbs span { color: var(--text); }
.page-head h1 { font-size: 42px; font-weight: 800; color: #0b1526; }
.page-sub { color: var(--muted); margin-top: 10px; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.prod-group { margin-bottom: 64px; }
.group-title { font-size: 26px; margin-bottom: 8px; }
.group-desc { color: var(--muted); font-size: 15px; max-width: 720px; margin-bottom: 26px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.prod-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .22s; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.prod-card:hover { border-color: #d8cf9e; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prod-media { position: relative; background: #fff; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 10px; }
.prod-media img { width: 100%; height: 100%; object-fit: contain; }
.prod-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(11,21,38,.82); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; letter-spacing: .05em;
}
.prod-body { padding: 18px 18px 20px; flex: 1; }
.prod-name { font-weight: 800; font-size: 17px; }
.prod-full { color: var(--muted); font-size: 13px; margin: 3px 0 12px; min-height: 20px; }
.prod-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- product detail ---------- */
.detail-section { padding: 56px 0 72px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 52px; align-items: start; }
.viewer {
  background: #fff; border-radius: 18px; padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.viewer-stage {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.v-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .18s ease, transform .18s ease;
  pointer-events: none; user-select: none;
}
.v-img.active { opacity: 1; pointer-events: auto; }
.viewer-single .v-img { position: static; width: 100%; }
.variant-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.variant-label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }

.d-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.d-title { font-size: 34px; font-weight: 800; line-height: 1.15; color: #0b1526; }
.d-grade { color: var(--muted); margin: 8px 0 26px; font-size: 15px; letter-spacing: .04em; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec-table th { color: var(--muted); font-weight: 600; width: 34%; white-space: nowrap; }
.spec-table td { font-weight: 600; }
/* Hidden applications row: delete this rule to show it on the page */
.hidden-app { display: none; }
.d-feats h3 { font-size: 13px; letter-spacing: .18em; color: var(--blue-deep); margin-bottom: 14px; }
.d-feats ul { list-style: none; }
.d-feats li {
  padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line);
  color: #33445c; font-size: 14.5px; position: relative;
}
.d-feats li::before {
  content: "◆"; position: absolute; left: 2px; top: 10px;
  color: var(--blue-deep); font-size: 11px;
}
.d-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.rel-title { font-size: 24px; margin-bottom: 26px; color: #0b1526; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.about-copy h2 { font-size: 30px; margin-bottom: 22px; color: #0b1526; }
.about-copy p { color: #33445c; margin-bottom: 18px; }
.about-numbers {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.about-numbers b { display: block; font-size: 24px; color: var(--blue-deep); font-weight: 800; }
.about-numbers span { font-size: 12.5px; color: var(--muted); }
.about-cert { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.cert-list { list-style: none; }
.cert-list li { padding: 9px 0 9px 24px; font-size: 13.5px; color: #33445c; position: relative; border-bottom: 1px solid var(--line); }
.cert-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-deep); font-weight: 800; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.principle h3 { font-size: 17px; margin-bottom: 8px; color: var(--blue-deep); }
.principle p { color: var(--muted); font-size: 14px; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; transition: .22s; box-shadow: var(--shadow);
}
.contact-card:hover { border-color: #d8cf9e; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.c-ico {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.16);
  transition: transform .2s ease;
}
.contact-card:hover .c-ico { transform: scale(1.06); }
.c-ico.tel { background: #25d366; }
.c-ico.mail { background: #e5c82e; color: #14160f; }
.c-ico.fb { background: #1877f2; }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 14.5px; }
.c-cta { display: inline-block; margin-top: 16px; color: var(--blue-deep); font-weight: 700; font-size: 13.5px; }
.inquiry { text-align: center; }
.inquiry-note { color: var(--muted); font-size: 13.5px; margin-top: 16px; }

/* ---------- floating contact rail (right edge, all pages) ---------- */
.float-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}.rail-item {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px 0 0 10px;
  color: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .22);
  transition: transform .18s ease;
  pointer-events: auto;
}
.rail-item:hover { transform: translateX(-3px); }
.rail-tel { background: #25d366; }
.rail-mail { background: #e5c82e; color: #14160f !important; }
.rail-fb { background: #1877f2; }
.rail-tip {
  position: absolute; right: 56px; top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #0f172a; color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.rail-item:hover .rail-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- cta band (dark industrial base with yellow accent) ---------- */
.cta-band { background: linear-gradient(120deg, #12151c, #1d2230 130%); border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 0; flex-wrap: wrap; }
.cta-inner h2 { font-size: 28px; color: #fff; }
.cta-inner p { color: rgba(255,255,255,.68); margin-top: 6px; }
.cta-band .btn-primary { background: var(--blue); color: #14160f; }
.cta-band .btn-primary:hover { background: var(--blue2); box-shadow: none; }

/* ---------- footer (dark navy base — standard Western B2B) ---------- */
.site-footer { background: #0b1220; border-top: 1px solid #1a2740; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 24px 40px; }
.f-logo { margin-bottom: 16px; }
.f-desc { color: #8fa0b8; font-size: 13.5px; }
.f-col h4 { font-size: 12px; letter-spacing: .18em; color: #e9eef6; margin-bottom: 16px; }
.f-col a { display: block; color: #8fa0b8; font-size: 13.5px; padding: 5px 0; }
.f-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1a2740; padding: 20px 24px; font-size: 12.5px; color: #5d6a80; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* Touch devices: drop translate-style hover so cards do not stay stuck after a tap */
@media (hover: none) {
  .cat-card:hover, .prod-card:hover, .contact-card:hover,
  .hero-card:hover, .btn-primary:hover, .contact-card:hover .c-ico, .rail-item:hover { transform: none; }
}
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }   /* 4 categories go 2x2 when narrow, not a squeezed 218px column */
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { padding-right: 56px; }
}
@media (max-width: 980px) {
  .hero-grid, .detail-grid, .about-grid, .cat-grid { grid-template-columns: 1fr; }
  .feature-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .float-rail { gap: 8px; }
  .rail-item { width: 40px; height: 40px; border-radius: 8px 0 0 8px; }
  .rail-item svg { width: 18px; height: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-right: 52px; }
  .cta-inner h2 { font-size: 24px; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }

  /* Hamburger menu anchors to the header (top:100%) instead of a hard-coded height, so no gap appears */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .10);
    flex-direction: column; align-items: flex-start; padding: 10px 24px 16px; gap: 2px;
    display: none;
  }
  .site-header { position: sticky; }
  .nav.open { display: flex; animation: navDrop .22s ease; }  .nav > a { width: 100%; padding: 13px 2px; border-bottom: none; font-size: 15px; }
  .nav > a.active { border-bottom-color: transparent; color: var(--blue-deep); }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Filter chips and product variant chips: taller for comfortable touch targets */
  .chip { padding: 10px 18px; }
  .chip-mini { padding: 4px 11px; }
  .chip-vis { padding: 10px 18px; }
  .variant-bar .chip-vis { padding: 9px 16px; }
  /* Breadcrumb links: larger tap area */
  .crumbs a { display: inline-block; padding: 4px 2px; }

  /* Hero stat bar: single row of five on mobile — smaller figures so "100,000 t" fits one cell */
  .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 5px; padding: 24px 0; }
  .stat-num { font-size: 15px; white-space: nowrap; }
  .stat-unit { font-size: 9.5px; line-height: 1.35; margin-top: 3px; }

  /* Tighter section rhythm */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 25px; }
  .section-sub { font-size: 14.5px; }

  /* Home category cards: side-by-side pair on narrow screens (the short description keeps both
     cards equal-height with complete sentences). With 3 cards the third spans both columns, centred */
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
  .cat-grid .cat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 7px);   /* column width = (100% - 14px gap) / 2 */
    margin-left: auto; margin-right: auto;
  }
  .cat-card { display: flex; flex-direction: column; }
  .cat-media { padding: 8px; }
  .cat-body { padding: 14px 13px 16px; display: flex; flex-direction: column; flex: 1; }
  .cat-body h3 { font-size: 14.5px; line-height: 1.3; margin-bottom: 7px; min-height: 2.6em; }
  .cat-body p { font-size: 12px; line-height: 1.5; }
  .cat-desc-long { display: none; }
  .cat-desc-short { display: block; }
  .cat-link { font-size: 12px; margin-top: auto; padding-top: 10px; }

  /* Product listing: single-column large cards */
  .page-head { padding: 44px 0 32px; }
  .page-head h1 { font-size: 30px; }
  .filter-bar { margin-bottom: 28px; }
  .prod-group { margin-bottom: 44px; }
  .group-title { font-size: 22px; }
  .prod-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Product detail */
  .detail-section { padding: 36px 0 52px; }
  .detail-grid { gap: 28px; }
  .d-title { font-size: 25px; }
  .spec-table th, .spec-table td { font-size: 13.5px; padding: 10px 8px; }
  .d-actions .btn { flex: 1 1 100%; justify-content: center; }

  /* About */
  .about-copy h2 { font-size: 24px; }
  .about-numbers { gap: 18px 12px; padding: 22px; }

  /* Full-width buttons (hero pair, CTA) */
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta-inner { padding-right: 0; }
  .cta-inner .btn { width: 100%; justify-content: center; }

  /* Side rail becomes a fixed horizontal bar at the bottom on mobile, clear of text and buttons */
  .float-rail {
    top: auto; bottom: 0; right: 0; left: 0;
    transform: none;
    flex-direction: row; justify-content: center; gap: 14px;
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
  }
  .rail-item {
    width: 42px; height: 42px;
    border-radius: 12px;              /* bottom bar: fully rounded corners, no longer a half-round left edge */
    box-shadow: 0 4px 12px rgba(15, 23, 42, .16);
  }
  .rail-item svg { width: 19px; height: 19px; }
  .rail-tip { display: none; }        /* no hover on touch, so hide the tooltip bubbles */
  .rail-item:hover { transform: none; }
  /* Fixed bottom bar must not cover the end of the footer */
  .site-footer { padding-bottom: 76px; }
  .cta-band .cta-inner { padding-bottom: 22px; }

  /* Feature / philosophy / contact cards go single-column */
  .feature-grid, .principle-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 22px; }
}
/* Small phones (iPhone SE / 320px) */
@media (max-width: 420px) {
  .section-head h2 { font-size: 23px; }
  .stat-num { font-size: 12.5px; }
  .stat-unit { font-size: 8.5px; }
  .stats-grid { gap: 8px 3px; }
  .d-title { font-size: 23px; }
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   geo-20261116 动效替换层
   以追加方式覆盖旧规则，便于逐项回退：删掉对应注释块即恢复旧效果。
   ============================================================ */

/* #1 / #2  淡入 + 上移  →  遮罩自上而下揭开 + 轻微去模糊，同组错峰。
   默认态覆盖旧规则为「可见」；只有 html.motion-on（由 head 内联脚本挂上）才启用隐藏态，
   脚本没跑或自愈兜底撤销标记时内容照常显示，不会白屏。 */
.reveal { opacity: 1; transform: none; transition: none; }
.motion-on .reveal:not(.in) {
  clip-path: inset(0 0 100% 0 round 8px);
  filter: blur(5px);
}
.motion-on .reveal {
  transition: clip-path .7s cubic-bezier(.22,.72,.2,1) var(--rv-delay, 0ms),
              filter .7s ease var(--rv-delay, 0ms);
}
.motion-on .reveal.in { clip-path: inset(0 0 0 0 round 8px); filter: blur(0); }

/* 旧规则里 .chip-vis 排在 .chip-on 之后，把选中态背景盖掉了；两级选择器必须有明显选中态 */
.chip-vis.chip-on { background: var(--blue); border-color: var(--blue-deep); color: #14160f; }

/* #4  整卡抬升  →  主图放大 + 卡片底部描边由左向右展开 */
.prod-card { position: relative; overflow: hidden; }
.prod-card::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: #b99a3e;
  transition: width .42s cubic-bezier(.22,.72,.2,1);
  pointer-events: none;
}
.prod-card:hover::after { width: 100%; }
.prod-media img { transition: transform .45s cubic-bezier(.22,.72,.2,1); }
.prod-card:hover {
  transform: none;
  border-color: #d8cf9e;
  box-shadow: 0 10px 26px rgba(11,21,38,.12);
}
.prod-card:hover .prod-media img { transform: scale(1.065); }
.cat-card:hover { transform: none; }

/* #8  首屏静态工厂图  →  缓慢推近（CSS 动画）+ 滚动视差（JS 给 --hero-shift） */
.hero-photo .hero-bg { transform-origin: center 62%; will-change: transform; }
.hero-motion .hero-bg {
  animation: heroKenBurns 24s ease-out both;
  translate: 0 var(--hero-shift, 0px);
}
@keyframes heroKenBurns {
  from { transform: scale(1.015); }
  to   { transform: scale(1.13); }
}

/* #6  GEO 详情页：两级 chip + 主图交叉淡入 */
.stage-xfade { aspect-ratio: 4 / 3; }
.stage-xfade .v-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; pointer-events: none;
  transition: opacity .34s ease, transform .34s ease;
}
.stage-xfade .v-img.active { opacity: 1; }
.stage-xfade .v-img:not(.active) { transform: scale(.985); }
.geo-bar { margin-top: 14px; }
.geo-bar + .geo-bar { margin-top: 10px; }

/* GEO 系列标识与认证口径提示 */
.series-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--series-accent, #b99a3e); margin-right: 10px;
  vertical-align: middle; box-shadow: 0 0 0 3px rgba(11,21,38,.07);
}
.badge-series { border-color: var(--series-accent, #b99a3e); color: #0b1526; font-weight: 700; }
.approval-note {
  margin: -14px 0 28px; padding: 12px 16px;
  border-left: 3px solid #b99a3e; background: #faf8f0;
  color: #5b6472; font-size: 13px; line-height: 1.65;
}

/* 无障碍：系统开了「减少动态效果」就全部关掉 */
@media (prefers-reduced-motion: reduce) {
  .hero-motion .hero-bg { animation: none; translate: none; }
  .motion-on .reveal, .motion-on .reveal.in { clip-path: none !important; filter: none !important; transition: none !important; }
  .prod-media img, .prod-card::after, .stage-xfade .v-img { transition: none; }
}

/* 本版只上线汽机油一条产品线：单个分类卡居中收窄，避免 4 列网格里孤零零占 1/4 宽。
   两个 class 的权重高于响应式里的 .cat-grid，窄屏也保持单列。恢复多分类时该 class 会自动消失。 */
.cat-grid.cat-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
  margin-inline: auto;
}
.cat-grid.cat-grid-single .cat-media { max-height: 300px; }

/* 单分类时 5 张产品卡按 3+2 排，避免 auto-fill 4 列留下最后一行孤卡。
   恢复多分类后该 class 自动消失，回到原来的自适应列数。 */
.prod-grid.prod-grid-single { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .prod-grid.prod-grid-single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .prod-grid.prod-grid-single { grid-template-columns: 1fr; }
}

/* ============================================================
   首页改版 2026-11-16：黑 + 黄，代码绘制发动机线稿，整页重排。
   全部规则限定在 body.home-dark 内，产品页 / 关于 / 联系页仍是原浅色主题。
   静态线稿始终完整可见；所有动画都是叠加层，动画不运行也不会空背景。
   ============================================================ */
.home-dark {
  --ink: #08090b;
  --ink-2: #0e1014;
  --ink-3: #15171c;
  --gold: #f0c430;
  --gold-2: #ffdc63;
  --hair: rgba(240, 196, 48, .20);
  --txt: #eceef2;
  --txt-dim: #979daa;
  --eng-line: #e8b93a;
  --eng-hi: #ffd75e;
  --eng-text: #d9b45c;
  background: var(--ink);
  color: var(--txt);
}

/* ---------- header / footer / rail ---------- */
.home-dark .site-header {
  background: rgba(8, 9, 11, .93);
  border-bottom-color: var(--hair);
}
.home-dark .brand {
  display: block; width: 172px; height: 34px;
  background: url("../img/logo-white.png") no-repeat left center / contain;
}
.home-dark .brand img { visibility: hidden; }
.home-dark .nav > a { color: #9ba2ae; }
.home-dark .nav > a:hover,
.home-dark .nav > a.active { color: #fff; border-bottom-color: var(--gold); }
.home-dark .nav-toggle span { background: #fff; }
.home-dark .site-footer { background: #050607; border-top-color: var(--hair); }
.home-dark .f-col h4 { color: var(--gold); }
.home-dark .f-desc,
.home-dark .f-col a { color: #858d9b; }
.home-dark .f-col a:hover { color: var(--gold); }
.home-dark .footer-bottom { border-top-color: var(--hair); }
.home-dark .rail-tel,
.home-dark .rail-fb { background: #1b1d22 !important; color: var(--gold) !important; }
.home-dark .rail-mail { background: var(--gold) !important; color: #14160f !important; }

/* ---------- 首屏 ---------- */
.home-dark .hero-tech {
  position: relative; overflow: hidden;
  min-height: 700px; display: flex; align-items: center;
  background: var(--ink);
  border-bottom: 1px solid var(--hair);
}
.home-dark .hero-tech .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  transform-origin: center 55%; will-change: transform;
  animation: engZoom 30s ease-out both;
  translate: 0 var(--hero-shift, 0px);
}
.home-dark .hero-tech .hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,9,11,.98) 0%, rgba(8,9,11,.95) 34%,
                    rgba(8,9,11,.62) 52%, rgba(8,9,11,.10) 78%, rgba(8,9,11,.02) 100%),
    linear-gradient(0deg, rgba(8,9,11,.78) 0%, transparent 48%);
}
.home-dark .hero-tech .container {
  position: relative; z-index: 2;
  /* 与统计条/产品区共用同一条竖直基准线：宽度铺满到 max-width 后由 auto margin 水平居中。
     flex 下必须显式 width:100%，否则会 shrink-to-fit 被 auto margin 推到画面正中。 */
  margin: 0 auto;
  width: 100%;
  padding-top: 92px; padding-bottom: 92px;
}
/* 文案区局部柔化背板：只压住左栏的线稿，右侧 3D 爆炸图仍然透出来 */
.home-dark .hero-tech .container::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; top: 0; bottom: 0; width: min(940px, 78%);
  background:
    linear-gradient(90deg, rgba(8,9,11,.99) 0%, rgba(8,9,11,.97) 58%,
                    rgba(8,9,11,.74) 76%, rgba(8,9,11,0) 100%);
}
.home-dark .hero-tech .hero-copy { max-width: 620px; }
.home-dark .hero-tech .hero-kicker { color: var(--gold); overflow-wrap: anywhere; }
.home-dark .hero-tech .hero-certs { flex-wrap: wrap; }
/* 标题固定两行：原来 nowrap 一行会冲出左栏、横穿发动机线稿 */
.home-dark .hero-tech h1 { color: #fff; font-size: 50px; line-height: 1.12; white-space: normal; }
.home-dark .hero-tech h1 .accent { color: var(--gold); }
.home-dark .hero-tech h1 .hero-br { display: block; }
.home-dark .hero-tech .hero-sub { color: #c4c9d2; max-width: 560px; }
.home-dark .hero-tech .btn-tel {
  background: rgba(240, 196, 48, .08);
  border-color: rgba(240, 196, 48, .55);
  color: var(--gold-2);
}
.home-dark .hero-tech .btn-tel:hover { background: rgba(240, 196, 48, .18); }
.home-dark .hero-tech .cert-chip {
  background: rgba(240, 196, 48, .06);
  border-color: rgba(240, 196, 48, .32);
  color: #e7cf8b;
}
.home-dark .hero-edge {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: rgba(8, 9, 11, .82);
  border-top: 1px solid var(--hair);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px; letter-spacing: .18em; color: rgba(233, 196, 84, .62);
}

/* ---------- 发动机线稿：线条层级 ---------- */
.scene-drawing { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-drawing .ln,
.scene-drawing .ln2,
.scene-drawing .ln3,
.scene-drawing .hi,
.scene-drawing .oil,
.scene-drawing .oil2,
.scene-drawing .trace,
.scene-drawing .flow,
.scene-drawing .teeth { fill: none; }
.scene-drawing .ln   { stroke: var(--eng-line); stroke-width: 1.6; opacity: .58; }
.scene-drawing .ln2  { stroke: var(--eng-line); stroke-width: 1;   opacity: .30; }
.scene-drawing .ln3  { stroke: var(--eng-line); stroke-width: 2.4; opacity: .82; }
.scene-drawing .hi   { stroke: var(--eng-hi);   stroke-width: 1.8; opacity: .88; }
.scene-drawing .oil  { stroke: #ffcf3f; stroke-width: 2;   opacity: .62; }
.scene-drawing .oil2 { stroke: #ffcf3f; stroke-width: 1.2; opacity: .40; }
.scene-drawing .teeth {
  stroke: var(--eng-line); stroke-width: 6;
  stroke-dasharray: 5 9; opacity: .34;
}
.scene-drawing .dot { fill: var(--eng-hi); stroke: none; opacity: .85; }
.scene-drawing .txt {
  fill: var(--eng-text); stroke: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .16em; opacity: .78;
}
.scene-drawing .txt.dim { font-size: 11px; opacity: .46; }
.scene-drawing .eng-labels .ln2 { opacity: .42; }

/* ---------- 发动机线稿：动态叠加层 ---------- */
.scene-drawing .eng-grid-layer { animation: engGridShift 26s linear infinite; }
.scene-drawing .spin,
.scene-drawing .spin-fast {
  transform-box: view-box;
  animation: engSpin 14s linear infinite;
}
.scene-drawing .spin-fast { animation-duration: 3.4s; }
.scene-drawing .piston { animation: engPiston 2.4s ease-in-out infinite; }
.scene-drawing .flow {
  stroke: #ffe58a; stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 10 26; opacity: .9;
  animation: engFlow 1.7s linear infinite;
}
.scene-drawing .trace {
  stroke: #ffe9a8; stroke-width: 2.8; stroke-linecap: round;
  stroke-dasharray: 90 6200; opacity: .9;
  animation: engTrace 13s linear infinite;
}
.scene-drawing .scan {
  stroke: #ffdf7a; stroke-width: 1; opacity: .26;
  transform-box: view-box;
  animation: engScan 11s linear infinite;
}
.scene-drawing .sweep { opacity: .42; transform-box: view-box; animation: engSweepMove 11s linear infinite; }
.scene-drawing .pulse { fill: var(--eng-hi); stroke: none; animation: engPulse 2.6s ease-in-out infinite; }

@keyframes engZoom        { from { transform: scale(1) }     to { transform: scale(1.09) } }
@keyframes engSpin        { to   { transform: rotate(360deg) } }
@keyframes engPiston      { 0%,100% { transform: translateY(-13px) } 50% { transform: translateY(15px) } }
@keyframes engFlow        { to   { stroke-dashoffset: -72 } }
@keyframes engTrace       { from { stroke-dashoffset: 90 }   to { stroke-dashoffset: -6200 } }
@keyframes engGridShift   { to   { transform: translate(48px, 48px) } }
@keyframes engScan        { 0% { transform: translateY(150px); opacity: 0 }
                            12%,88% { opacity: .26 }
                            100% { transform: translateY(810px); opacity: 0 } }
@keyframes engSweepMove   { from { transform: translateY(0) } to { transform: translateY(700px) } }
@keyframes engPulse       { 0%,100% { opacity: .22 } 50% { opacity: 1 } }

/* ============================================================
   矿场场景专用：矿卡往返穿梭 + 工程机械 + 保养工位
   ============================================================ */
.scene-drawing .road-dash { stroke: var(--eng-line); stroke-width: 1; opacity: .26; stroke-dasharray: 16 22; }
.scene-drawing .mine-labels .ln2 { opacity: .42; }
.scene-drawing .beam { fill: url(#mineBeam); stroke: none; }
.scene-drawing .drip { fill: var(--eng-hi); stroke: none; }
.scene-drawing .oil-level { stroke: #ffcf3f; stroke-width: 2; opacity: .72; }
.scene-drawing .belt-flow {
  stroke: #ffe58a; stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 6 20; opacity: .8;
  animation: mineBelt 1.1s linear infinite;
}

/* 矿卡：外层 <g transform="translate(x,y)"> 给静止位置，这里只做相对位移。
   动画被关闭时矿车仍停在场景里，不会跑到画外。 */
.scene-drawing .truck-run {
  transform-box: view-box;
  animation: mineHaul var(--dur, 20s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.scene-drawing .truck-run.rev { animation-name: mineHaulRev; }
/* 折返点瞬间掉头：step-end 保证车头方向硬切，不做镜像插值 */
.scene-drawing .truck-flip {
  transform-box: view-box; transform-origin: 0px 0px;
  animation: mineFlip var(--dur, 20s) step-end infinite;
  animation-delay: var(--delay, 0s);
}
.scene-drawing .rev .truck-flip { animation-name: mineFlipRev; }
.scene-drawing .truck-bounce { animation: mineBounce .42s ease-in-out infinite; }
.scene-drawing .wheel-spin {
  transform-box: fill-box; transform-origin: center;
  animation: mineWheel .85s linear infinite;
}
.scene-drawing .dust circle {
  fill: var(--eng-hi); stroke: none; opacity: 0;
  animation: mineDust 2s ease-out infinite;
}

/* 挖掘机 / 装载机 / 举升机 / 油路 / 探照灯 */
.scene-drawing .exc-boom,
.scene-drawing .exc-bucket,
.scene-drawing .loader-arm,
.scene-drawing .loader-bucket,
.scene-drawing .beacon-beam { transform-box: view-box; }
.scene-drawing .exc-boom        { animation: mineBoom 6s ease-in-out infinite; }
.scene-drawing .exc-bucket      { animation: mineBucket 3s ease-in-out infinite; }
.scene-drawing .loader-arm      { animation: mineArm 5.5s ease-in-out infinite; }
.scene-drawing .loader-bucket   { animation: mineBucket 5.5s ease-in-out infinite; }
.scene-drawing .beacon-beam     { animation: mineBeamSweep 9s ease-in-out infinite; }
.scene-drawing .lift            { animation: mineLift 7s ease-in-out infinite; }
.scene-drawing .oil-level       { animation: mineLevel 3.4s ease-in-out infinite; }
.scene-drawing .drip            { animation: mineDrip 1.8s ease-in infinite; }

/* 0% / 100% 都是静止可见位置：动画被暂停或关闭时矿车仍在画面里。
   非 rev 车向左穿梭再返回，rev 车向右穿梭再返回，形成双向车流。 */
@keyframes mineHaul       { 0%, 100% { transform: translateX(0) }
                            50%      { transform: translateX(-820px) } }
@keyframes mineHaulRev    { 0%, 100% { transform: translateX(0) }
                            50%      { transform: translateX(360px) } }
@keyframes mineFlip       { 0%, 49.99% { transform: scaleX(-1) }
                            50%, 100%  { transform: scaleX(1) } }
@keyframes mineFlipRev    { 0%, 49.99% { transform: scaleX(1) }
                            50%, 100%  { transform: scaleX(-1) } }
@keyframes mineBounce     { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-1.6px) } }
@keyframes mineWheel      { to { transform: rotate(360deg) } }
@keyframes mineDust       { 0% { opacity: .55; transform: translate(0, 0) }
                            100% { opacity: 0; transform: translate(-26px, -16px) } }
@keyframes mineBoom       { 0%, 100% { transform: rotate(-6deg) } 50% { transform: rotate(7deg) } }
@keyframes mineBucket     { 0%, 100% { transform: rotate(-16deg) } 50% { transform: rotate(14deg) } }
@keyframes mineArm        { 0%, 100% { transform: rotate(8deg) } 50% { transform: rotate(-9deg) } }
@keyframes mineLift       { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes mineLevel      { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@keyframes mineDrip       { 0% { opacity: 0; transform: translateY(-8px) }
                            20% { opacity: .95 }
                            100% { opacity: 0; transform: translateY(26px) } }
@keyframes mineBelt       { to { stroke-dashoffset: -52 } }
@keyframes mineBeamSweep  { 0%, 100% { transform: rotate(-11deg) } 50% { transform: rotate(11deg) } }

/* ---------- 统计带 ---------- */
.home-dark .stats { background: var(--ink-2); border-bottom: 1px solid var(--hair); }
.home-dark .stats-grid { padding: 40px 0; }
.home-dark .stat { border-left: 1px solid var(--hair); }
.home-dark .stat:first-child { border-left: 0; }
.home-dark .stat-num { color: var(--gold); font-size: 38px; }
.home-dark .stat-unit { color: var(--txt-dim); }

/* ---------- 通用区块 ---------- */
.home-dark .section { background: var(--ink); }
.home-dark .section-alt { background: var(--ink-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.home-dark .kicker { color: var(--gold); }
.home-dark .section-head h2 { color: #fff; }
.home-dark .section-sub { color: var(--txt-dim); }

/* ---------- 产品范围：DEO 柴油组在前、GEO 汽油组在后，各 5 张系列卡 ---------- */
.home-dark .range-group { margin-top: 38px; }
.home-dark .section-head + .range-group { margin-top: 4px; }
.home-dark .range-group-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--hair);
}
.home-dark .range-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .14em; color: var(--gold);
}
.home-dark .range-group-head h3 { margin: 0; color: #fff; font-size: 19px; }
.home-dark .range-meta { margin-left: auto; color: var(--txt-dim); font-size: 12px; }

/* ---------- 10 个系列陈列（两组，每组 5 张，各自带标签主色） ---------- */
.home-dark .series-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.home-dark .series-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--hair); border-radius: 12px;
  transition: transform .25s ease, border-color .25s ease;
}
.home-dark .series-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--series-accent, var(--gold)); opacity: .9;
}
.home-dark .series-card:hover { transform: translateY(-4px); border-color: var(--series-accent, var(--gold)); }
.home-dark .series-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 16px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: .12em; color: var(--gold);
}
.home-dark .series-count { color: var(--txt-dim); font-size: 10px; }
.home-dark .series-media {
  margin: 12px 12px 0; padding: 8px; border-radius: 8px;
  /* 底板色取产品图自带背景主色 #d3d9db，contain 后图片白底与底板同色、边界隐形 */
  background: #d3d9db; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
/* 不再用 mix-blend-mode：darken 会把亮色标签压暗、把瓶身染黄。
   产品图已是柔和处理过的浅底，按原色显示即可。 */
.home-dark .series-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .45s ease;
}
.home-dark .series-card:hover .series-media img { transform: scale(1.07); }
.home-dark .series-body { padding: 16px 18px 22px; }
.home-dark .series-body h3 { color: #fff; font-size: 18px; }
.home-dark .series-body p { color: var(--txt-dim); font-size: 13px; margin-top: 6px; }
.home-dark .series-link { display: inline-block; margin-top: 14px; color: var(--gold); font-size: 13px; font-weight: 700; }

/* ---------- 规格矩阵 ---------- */
.home-dark .spectrum { background: var(--ink-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.home-dark .spectrum-grid { border-top: 1px solid var(--hair); }
.home-dark .spectrum-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--hair);
}
.home-dark .spectrum-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px; letter-spacing: .06em; color: var(--gold);
}
.home-dark .spectrum-items { display: flex; flex-wrap: wrap; gap: 10px; }
.home-dark .spectrum-chip {
  padding: 8px 18px; border: 1px solid var(--hair); border-radius: 4px;
  background: rgba(240, 196, 48, .04); color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; letter-spacing: .06em; transition: .2s;
}
.home-dark .spectrum-chip:hover { border-color: var(--gold); color: var(--gold); }
.home-dark .spectrum-foot {
  margin-top: 22px; color: var(--txt-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; letter-spacing: .14em;
}

/* ---------- 能力编号矩阵 ---------- */
.home-dark .cap-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hair); border-left: 1px solid var(--hair);
}
.home-dark .cap-item {
  display: flex; gap: 22px; padding: 30px 28px;
  border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.home-dark .cap-no {
  min-width: 46px; line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px; color: var(--gold);
}
.home-dark .cap-item h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.home-dark .cap-item p { color: var(--txt-dim); font-size: 14px; }

/* ---------- CTA ---------- */
.home-dark .cta-band {
  position: relative;
  background: linear-gradient(100deg, var(--ink-2), #191a12 72%, #241d08);
  border-top: 1px solid var(--hair);
}
.home-dark .cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.home-dark .cta-inner h2 { color: #fff; }
.home-dark .cta-inner p { color: var(--txt-dim); }

/* ---------- 矿场应用 / 保养点位 / 服务流程 ---------- */
.home-dark .mine-app { background: var(--ink); border-top: 1px solid var(--hair); }
.home-dark .cond-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair); border-left: 1px solid var(--hair);
}
.home-dark .cond-item {
  padding: 26px 22px;
  border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.home-dark .cond-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: .14em; color: var(--gold);
}
.home-dark .cond-item h3 { color: #fff; font-size: 16px; margin: 12px 0 8px; }
.home-dark .cond-item p { color: var(--txt-dim); font-size: 13px; }
.home-dark .point-head {
  margin: 46px 0 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .18em; color: var(--gold);
}
.home-dark .point-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.home-dark .point-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  background: var(--ink-2); border: 1px solid var(--hair); border-radius: 10px;
  transition: border-color .25s ease, transform .25s ease;
}
.home-dark .point-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.home-dark .point-ico { flex: none; width: 44px; height: 44px; }
.home-dark .point-ico path,
.home-dark .point-ico circle,
.home-dark .point-ico rect,
.home-dark .point-ico line {
  fill: none; stroke: var(--gold); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.home-dark .point-item h4 { color: #fff; font-size: 14px; margin-bottom: 6px; }
.home-dark .point-item p { color: var(--txt-dim); font-size: 12.5px; }
.home-dark .scope-note {
  margin-top: 26px; padding: 18px 22px;
  background: rgba(240, 196, 48, .05); border-left: 3px solid var(--gold);
  color: var(--txt-dim); font-size: 13px; line-height: 1.7;
}
.home-dark .scope-note strong { color: var(--gold); }
.home-dark .scope-note em { color: #fff; font-style: normal; }
.home-dark .cycle-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair); border-left: 1px solid var(--hair);
}
.home-dark .cycle-item {
  padding: 28px 24px;
  border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.home-dark .cycle-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px; color: var(--gold);
}
.home-dark .cycle-item h3 { color: #fff; font-size: 16px; margin: 14px 0 8px; }
.home-dark .cycle-item p { color: var(--txt-dim); font-size: 13px; }
@media (max-width: 980px) {
  .home-dark .cond-grid,
  .home-dark .point-grid,
  .home-dark .cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-dark .cond-grid,
  .home-dark .point-grid,
  .home-dark .cycle-grid { grid-template-columns: 1fr; }
}

/* ---------- 首页响应式 ---------- */
@media (max-width: 1180px) {
  .home-dark .hero-tech { min-height: 640px; }
  .home-dark .hero-tech h1 { font-size: 42px; white-space: normal; }
  .home-dark .hero-tech h1 .hero-br { display: block; }
  .home-dark .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .home-dark .hero-tech .hero-shade {
    background: linear-gradient(90deg, rgba(8,9,11,.97) 0%, rgba(8,9,11,.84) 55%, rgba(8,9,11,.55) 100%);
  }
  .home-dark .cap-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .home-dark .nav { background: var(--ink-2); border-bottom-color: var(--hair); box-shadow: none; }
  .home-dark .nav > a.active { color: var(--gold); }
  .home-dark .hero-tech { min-height: 0; }
  .home-dark .hero-tech .container { padding-top: 58px; padding-bottom: 66px; }
  .home-dark .hero-tech h1 { font-size: 32px; }
  .home-dark .hero-tech .hero-sub { font-size: 15px; }
  .home-dark .hero-edge { font-size: 9px; letter-spacing: .1em; padding: 10px 20px; }
  .home-dark .hero-edge span:last-child { display: none; }
  .home-dark .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-dark .range-meta { margin-left: 0; }
  .home-dark .spectrum-row { grid-template-columns: 1fr; gap: 10px; }
  /* 统计数字移动端压成一行，字号跟随通用小号，避免 26px 把单格撑破 */
  .home-dark .stat-num { font-size: 15px; }
  .home-dark .float-rail { background: rgba(8,9,11,.94); border-top-color: var(--hair); }
  .home-dark .cta-inner h2 { font-size: 24px; }
}
@media (max-width: 420px) {
  .home-dark .series-grid { grid-template-columns: 1fr; }
  .home-dark .hero-tech h1 { font-size: 27px; }
  .home-dark .stat-num { font-size: 12.5px; }
  .home-dark .stat-unit { font-size: 8.5px; }
}

/* 系统开了「减少动态效果」：关掉全部线稿与推近动画，静态图保持完整 */
@media (prefers-reduced-motion: reduce) {
  .home-dark .hero-tech .hero-bg { animation: none; translate: none; }
  .scene-drawing * { animation: none !important; }
  .home-dark .series-media img { transition: none; }
}

/* 首屏文案直接可见，不参与滚动区块的遮罩 reveal。
   clip-path 过渡在某些无头 / 嵌入环境里不推进，会造成整屏文案空白，这里彻底排除。 */
.motion-on .hero-tech .hero-copy.reveal,
.motion-on .hero-tech .hero-copy.reveal.in {
  clip-path: none !important;
  filter: none !important;
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   首屏背景：露天矿场实拍视频（替换原发动机爆炸图 / 矿场线稿）
   视频铺满首屏，上盖半透明黑保证左侧文案可读；旧 3D 层已从模板移除。
   ============================================================ */
.home-dark .hero-tech.hero-video-on {
  background: #08090b;
}
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 52%;
  border: 0;
  pointer-events: none;
  transform: none;
  animation: none;
  translate: 0 var(--hero-shift, 0px);
}
/* 半透明黑：左栏近乎纯黑护住文案，向右逐渐透出矿场实拍 */
.home-dark .hero-video-on .hero-shade {
  background:
    linear-gradient(90deg, rgba(8,9,11,.94) 0%, rgba(8,9,11,.86) 30%,
                    rgba(8,9,11,.55) 54%, rgba(8,9,11,.30) 78%, rgba(8,9,11,.22) 100%),
    linear-gradient(0deg, rgba(8,9,11,.70) 0%, transparent 42%);
}
/* 文案区背板同步减弱，避免把视频压成纯黑 */
.home-dark .hero-video-on .container::before { background: none; }

@media (max-width: 980px) {
  .home-dark .hero-video-on .hero-shade {
    background: linear-gradient(90deg, rgba(8,9,11,.92) 0%, rgba(8,9,11,.72) 52%, rgba(8,9,11,.46) 100%);
  }
}
@media (max-width: 640px) {
  .home-dark .hero-video-on .hero-shade {
    background: linear-gradient(180deg, rgba(8,9,11,.62) 0%, rgba(8,9,11,.80) 48%, rgba(8,9,11,.92) 100%);
  }
  .hero-bg-video { object-position: center 46%; }
}

/* ============================================================
   全站深色统一 2026-11-18：产品页 / 详情页 / 关于页 / 联系页
   首页已是 body.home-dark（黑金主题）。这里让内页共享同一套深色
   变量并重定义浅色组件，使导航切换时色调一致。
   产品图区（.prod-media/.viewer/.cat-media）保留浅底 #d3d9db：
   图片本身是白底，浅底能让边界隐形，深底会露出白方块。
   ============================================================ */

/* 1) 在 home-dark 作用域重定义浅色主题变量为深色值。
      首页深色区域只用 --ink/--gold/--hair/--txt 专属变量，不受影响。 */
.home-dark {
  --bg: #08090b;
  --bg2: #0e1014;
  --panel: #15171c;
  --panel2: #0e1014;
  --line: rgba(240, 196, 48, .20);
  --text: #eceef2;
  --muted: #9aa1ae;
  --blue-deep: #f0c430;   /* 金色，深底上可读 */
  --blue: #f0c430;
  --blue2: #ffdc63;
  --shadow: 0 4px 18px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);
}

/* 2) 写死的深色文字 → 浅色 / 金色 */
.home-dark .section-head h2,
.home-dark .group-title,
.home-dark .page-head h1,
.home-dark .d-title,
.home-dark .rel-title,
.home-dark .about-copy h2 { color: #fff; }
.home-dark .about-copy p,
.home-dark .d-feats li,
.home-dark .cert-list li { color: var(--txt-dim); }

/* 3) 页面头 / 筛选 / 说明文字 */
.home-dark .page-head { background: var(--ink-2); border-bottom-color: var(--hair); }
.home-dark .crumbs { color: var(--muted); }
.home-dark .crumbs span { color: var(--txt); }
.home-dark .group-desc,
.home-dark .page-sub,
.home-dark .section-sub { color: var(--muted); }

/* 4) chip / badge：深底浅字，选中态金底 */
.home-dark .chip { background: var(--panel); border-color: var(--line); color: var(--muted); }
.home-dark .chip:hover { color: var(--txt); border-color: var(--gold); }
.home-dark .chip-on { background: var(--gold); border-color: var(--gold); color: #14160f; }
.home-dark .chip-vis { color: var(--gold); border-color: var(--hair); background: rgba(240,196,48,.07); }
.home-dark .badge { background: var(--panel2); border-color: var(--line); color: var(--muted); }
.home-dark .badge-api { border-color: var(--hair); color: var(--gold); background: rgba(240,196,48,.07); }
.home-dark .cert-chip { background: var(--panel); border-color: var(--line); color: var(--muted); }
.home-dark .badge-series { color: var(--gold); }

/* 5) 按钮：ghost 改深底浅字，tel 改深色系 */
.home-dark .btn-ghost { background: var(--panel); border-color: var(--line); color: var(--txt); }
.home-dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.home-dark .btn-tel { background: rgba(240,196,48,.08); border-color: var(--hair); color: var(--gold); }
.home-dark .btn-tel:hover { background: rgba(240,196,48,.16); }

/* 6) 卡片容器：深底 + 金边（hover） */
.home-dark .prod-card,
.home-dark .about-numbers,
.home-dark .about-cert,
.home-dark .principle,
.home-dark .contact-card {
  background: var(--panel); border-color: var(--line); box-shadow: var(--shadow);
}
.home-dark .prod-card:hover,
.home-dark .contact-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.home-dark .prod-name,
.home-dark .contact-card h3 { color: var(--txt); }
.home-dark .prod-full,
.home-dark .prod-body p,
.home-dark .contact-card p { color: var(--muted); }
.home-dark .about-numbers b { color: var(--gold); }
.home-dark .about-numbers span { color: var(--muted); }
.home-dark .principle h3 { color: var(--gold); }
.home-dark .principle p { color: var(--muted); }
.home-dark .c-cta { color: var(--gold); }
.home-dark .inquiry-note { color: var(--muted); }
.home-dark .cert-list li::before { color: var(--gold); }

/* 7) 产品图区保留浅底（白底图边界隐形），仅详情页 viewer 外框改深 */
.home-dark .prod-media,
.home-dark .cat-media { background: #d3d9db; }
.home-dark .viewer { background: var(--panel); border-color: var(--line); }
.home-dark .viewer-stage { background: #d3d9db; }
.home-dark .prod-badge { background: rgba(8,9,11,.85); color: #fff; }

/* 8) 详情页：标题/规格表/要点/标签 */
.home-dark .d-grade { color: var(--muted); }
.home-dark .variant-label { color: var(--muted); }
.home-dark .spec-table th,
.home-dark .spec-table td { border-bottom-color: var(--line); }
.home-dark .spec-table th { color: var(--muted); }
.home-dark .spec-table td { color: var(--txt); }
.home-dark .d-feats h3 { color: var(--gold); }
.home-dark .d-feats li { border-bottom-color: var(--line); }
.home-dark .d-feats li::before { color: var(--gold); }
.home-dark .approval-note {
  color: var(--muted);
  background: rgba(240, 196, 48, .07);
  border-left-color: var(--gold);
}
.home-dark .feature-ico { background: rgba(240,196,48,.08); color: var(--gold); border-color: var(--hair); }

/* 9) 移动端下拉菜单：深底 */
@media (max-width: 640px) {
  .home-dark .nav { background: var(--ink-2); border-bottom-color: var(--hair); }
}

/* ============================================================
   产品范围区背景装饰：精细发动机剖面线稿（照片抠线，透明底 webp）
   整块铺在产品区右侧，始终贴右、随视口自适应缩放，不拦截点击。
   深色底 + 低透明度，只在卡片间隙与右侧留白处透出，不干扰阅读。
   ============================================================ */
.home-dark #series { position: relative; overflow: hidden; }
.home-dark .series-bp {
  position: absolute; top: 90px; right: 0; z-index: 0;
  width: min(60%, 940px);
  pointer-events: none; user-select: none;
}
.home-dark .series-bp img {
  width: 100%; height: auto; display: block;
  opacity: .4;
  /* 左侧渐隐，避免线稿硬边切断正文 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
/* 内容抬到线稿之上 */
.home-dark #series .container { position: relative; z-index: 1; }

@media (max-width: 980px) {
  .home-dark .series-bp { width: 68%; top: 70px; }
  .home-dark .series-bp img { opacity: .3; }
}
@media (max-width: 640px) {
  .home-dark .series-bp { width: 92%; top: 54px; }
  .home-dark .series-bp img { opacity: .2; }
}
