/* ============================================================
   Performance Parts Catalog — Racing Edition
   Black / White / Racing Red — Clean Motorsport Visual Language
   Inspired by high-performance aftermarket parts brands
   ============================================================ */

:root {
  /* Core palette — clean racing */
  --red:            #E8272A;
  --red-dark:       #C01F22;
  --red-light:      #FF3B3F;
  --red-glow:       rgba(232,39,42,0.18);

  --black:          #0A0A0A;
  --black-2:        #111111;
  --black-3:        #1A1A1A;
  --dark-card:      #141414;
  --dark-border:    #2A2A2A;
  --dark-divider:   #1E1E1E;

  --white:          #FFFFFF;
  --off-white:      #F5F5F5;
  --text-primary:   #EEEEEE;
  --text-muted:     #888888;
  --text-dim:       #555555;

  --metal:          #AAAAAA;
  --metal-light:    #CCCCCC;

  --green:          #22C55E;

  --font-heading: 'Barlow Condensed', 'Barlow', 'Arial Narrow', 'Arial Black', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius:       2px;
  --radius-md:    4px;
  --radius-lg:    6px;

  --shadow-card:  0 2px 16px rgba(0,0,0,0.5);
  --shadow-red:   0 4px 24px rgba(232,39,42,0.28);
  --transition:   0.18s ease;
  --max-width:    1440px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: #FFFFFF;
  scrollbar-gutter: stable;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-suspenders: no sideways scroll */
  min-width: 320px;
}

/* ── Site-wide overflow clipping wrapper ─────────────────────────
   Placed BELOW the sticky navbar so clip doesn't break sticky.
   position: relative is required for overflow: clip to take effect.
──────────────────────────────────────────────────────────────── */
.site-clip {
  position: relative;
  overflow-x: clip;
  width: 100%;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--black-2); }
.section--dark { background: var(--black-3); }

/* ── Section headers ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.75;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--dark-border);
}
.btn-ghost:hover {
  background: var(--dark-card);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.btn-red-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-red-outline:hover {
  background: var(--red);
  color: var(--white);
}

/* ── Navigation ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--dark-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 0;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 28px;
  margin-right: 20px;
  border-right: 1px solid var(--dark-border);
}
.navbar__logo:hover { opacity: 0.8; }

.navbar__logo-svg { flex-shrink: 0; }

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.navbar__logo-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar__logo-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
}

.navbar__nav a {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius);
}
.navbar__nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.navbar__nav a.active { color: var(--white); }

/* Racing tag */
.navbar__nav .nav-racing a {
  color: var(--red);
}
.navbar__nav .nav-racing a:hover {
  background: rgba(232,39,42,0.08);
  color: var(--red-light);
}

/* Right controls */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 20px;
}

.navbar__cta {
  font-size: 11px;
  padding: 8px 16px;
  letter-spacing: 0.08em;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}
.lang-switcher:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

body.lang-zh {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
}

/* ── HERO — Clean Racing Style ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid var(--dark-border);
}

/* Subtle red left-edge accent */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  z-index: 2;
}

.hero__slash { display: none; }

.hero .container {
  z-index: 3;
  position: relative;
  padding-top: 90px;
  padding-bottom: 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* Hide old badge style */
.hero__badge { display: none; }

.hero__title {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.0;
  margin-bottom: 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero__title em {
  font-style: normal;
  color: var(--red);
  display: block;
}

.hero__subtitle-zh {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.6;
  font-family: 'Noto Sans SC', sans-serif;
}

.hero__title-sub {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero__title-zh {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.7;
}

.hero__desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__actions .btn {
  font-size: 13px;
  padding: 14px 28px;
}

/* Hero right: stat panel */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__stat {
  background: var(--dark-card);
  padding: 24px 16px;
  text-align: center;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.hero__stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.hero__card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition);
}
.hero__card:hover { border-color: rgba(232,39,42,0.3); }
.hero__card-left {
  width: 36px;
  height: 36px;
  background: rgba(232,39,42,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.hero__card-icon { font-size: 18px; }
.hero__card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero__card-desc { font-size: 11px; color: var(--text-muted); line-height: 1.45; }

/* ── Marquee / Trust Bar ── */
.trust-bar {
  background: var(--black-2);
  border-bottom: 1px solid var(--dark-border);
  border-top: 1px solid var(--dark-border);
  padding: 12px 0;
  overflow: hidden;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.trust-bar__item .icon { color: var(--red); font-size: 10px; }

/* ── Racing Stats Bar ── */
.racing-bar {
  background: var(--red);
  padding: 20px 0;
}

.racing-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.racing-bar__item {
  padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.racing-bar__item:last-child { border-right: none; }

.racing-bar__num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.racing-bar__label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Application Scenarios ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.app-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
  border-color: rgba(255,138,0,0.4);
  background: #fff;
}

.app-card__icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.app-card__name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.app-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Product Cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  background: transparent;
}

/* Grid wrapper for gap-based layout */
.products-grid--gap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  background: transparent;
}

.product-card {
  background: var(--dark-card);
  overflow: hidden;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  background: var(--black-3);
  z-index: 2;
}

.product-card__image {
  background: var(--white);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }

/* Badge — top left */
.product-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 1;
}

/* Tag — bottom right */
.product-card__tag {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(10,10,10,0.82);
  color: var(--metal);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 1;
}

.product-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--dark-border);
}

.product-card__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.product-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.product-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 10px;
}

.product-card__sales {
  font-size: 11px;
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-card__price {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-card__footer {
  display: flex;
  gap: 8px;
}

.product-card__footer .btn {
  flex: 1;
  font-size: 11px;
  padding: 9px 10px;
}

/* ── Category Series Cards ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* 7 items: 4+3 layout */
@media (min-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-card);
  padding: 28px 22px 24px;
  text-decoration: none;
  transition: background var(--transition);
  position: relative;
}

.cat-card:hover { background: var(--black-3); }

/* Red top-border on hover */
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.cat-card:hover::before { transform: scaleX(1); }

.cat-card__icon {
  font-size: 26px;
  margin-bottom: 14px;
  display: block;
}

.cat-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.cat-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}

.cat-card__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: auto;
}

/* ── Why / Capability Cards ── */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cap-card {
  background: var(--dark-card);
  padding: 32px 28px;
  transition: background var(--transition);
}
.cap-card:hover { background: var(--black-3); }

.cap-card__icon {
  font-size: 26px;
  margin-bottom: 16px;
  display: block;
}

.cap-card__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--white);
}

.cap-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Why cards ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 40px;
}

.why-card {
  background: var(--dark-card);
  padding: 32px 26px;
  position: relative;
  transition: background var(--transition);
}
.why-card:hover { background: var(--black-3); }

.why-card__num {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 900;
  color: rgba(232,39,42,0.06);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
}

.why-card__icon { font-size: 24px; margin-bottom: 16px; }

.why-card__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Floating Inquiry Button ── */
.float-inquiry {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
}

.float-inquiry__btn {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(232,39,42,0.4);
  transition: all var(--transition);
}

.float-inquiry__btn:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,39,42,0.5);
}

.float-inquiry__pulse {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ── Form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #FF8A00;
  box-shadow: 0 0 0 3px rgba(255,138,0,0.12);
}

.form-group select option { background: #ffffff; color: #111827; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Alert / Form feedback ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}

.alert-success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--green);
}

.alert-error {
  background: rgba(232,39,42,0.08);
  border: 1px solid rgba(232,39,42,0.3);
  color: #ff6b6b;
}

/* ── Footer ── */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--dark-border);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.footer__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer__col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dark-border);
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }

.footer__col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--white); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer__contact-item .icon { margin-top: 2px; flex-shrink: 0; color: var(--red); }

.footer__bottom {
  border-top: 1px solid var(--dark-border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer__cert {
  background: rgba(232,39,42,0.07);
  border: 1px solid rgba(232,39,42,0.18);
  border-radius: var(--radius);
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--black-2);
  border-bottom: 1px solid var(--dark-border);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
}

.page-hero__title {
  font-size: clamp(26px, 4vw, 46px);
  margin-bottom: 14px;
  text-transform: uppercase;
  position: relative;
}

.page-hero__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

/* ── Products Page Hero — with filter bar ── */
.products-page-hero {
  background: var(--black-2);
  border-bottom: 1px solid var(--dark-border);
  padding: 48px 0 0;
  position: relative;
}
.products-page-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
}
.products-page-hero .container { padding-bottom: 0; }

.products-hero__top {
  padding-bottom: 32px;
}

.products-hero__title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.products-hero__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Filter tabs */
.filter-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--dark-border);
  margin: 0;
  padding: 0;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-tab {
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  background: none;
  flex-shrink: 0;
}
.filter-tab:hover { color: var(--white); }
.filter-tab.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 0;
  max-width: 420px;
}

.search-input {
  flex: 1;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--white);
  font-size: 14px;
  padding: 10px 16px;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--red); }
.search-input::placeholder { color: var(--text-dim); }

.search-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--red-dark); }

/* Products toolbar */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.products-count {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Product Detail Page ── */
.product-detail { padding: 48px 0 80px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 36px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--text-dim); }

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Image panel */
.product-detail__image-wrap {
  position: sticky;
  top: 80px;
}

.product-detail__image {
  background: var(--white);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

/* Thumbnails */
.product-detail__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.product-thumb {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: var(--white);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition);
  opacity: 0.7;
  padding: 4px;
}
.product-thumb:hover, .product-thumb.active {
  border-color: var(--red);
  opacity: 1;
}

#main-product-img { transition: opacity 0.18s ease; }

/* Right info panel */
.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-detail__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.product-detail__name {
  font-size: clamp(20px, 2.8vw, 32px);
  margin-bottom: 6px;
  text-transform: uppercase;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.product-detail__name-zh {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 400;
}

/* Market Verified */
.detail-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 11px;
  color: var(--green);
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Price note */
.product-detail__price-note {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-detail__desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--dark-border);
}

/* CTA buttons */
.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.product-detail__actions .btn {
  justify-content: center;
  padding: 15px;
  font-size: 13px;
}

.detail-bulk-link {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.detail-bulk-link a {
  color: var(--text-muted);
  border-bottom: 1px dashed var(--dark-border);
}
.detail-bulk-link a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Quick specs */
.quick-specs,
.product-detail__quick-specs {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #ffffff;
}

.quick-spec-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}
.quick-spec-row:last-child { border-bottom: none; }

.quick-spec-key {
  width: 140px;
  flex-shrink: 0;
  padding: 10px 14px;
  background: #f3f4f6;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-right: 1px solid #e5e7eb;
}

.quick-spec-val {
  padding: 10px 14px;
  color: #111827;
  flex: 1;
  background: #ffffff;
}

/* Product highlights */
.product-detail__features {
  margin-bottom: 24px;
}

.product-detail__features h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dark-border);
}

.product-detail__features ul { list-style: none; }

.product-detail__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  padding: 7px 0;
  border-bottom: 1px solid var(--dark-divider);
}

.product-detail__features li::before {
  content: '▸';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Specs Table ── */
.specs-section {
  margin-top: 64px;
  border-top: 1px solid #e5e7eb;
  padding-top: 48px;
}

.specs-section h3 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.specs-section h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.specs-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  background: #ffffff;
}

.specs-table tr:last-child td { border-bottom: none; }

.specs-table td:first-child {
  color: #374151;
  font-weight: 600;
  width: 38%;
  background: #f3f4f6;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.specs-table td:last-child { color: #111827; }

.specs-table tr:hover td { background: #fafafa; }
.specs-table tr:hover td:first-child { background: #eef0f3; }

/* ── Detail Tabs ── */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 28px;
  overflow-x: auto;
}

.detail-tab {
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s ease, border-color .2s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.detail-tab:hover { color: #374151; }

.detail-tab.active {
  color: #FF8A00;
  border-bottom-color: #FF8A00;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--black-2);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.cta-banner h2 {
  font-size: clamp(22px, 3.5vw, 40px);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.cta-banner p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page image banners ── */
.page-img-banner {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* ── About / Factory / Quality inner page styles ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.timeline { position: relative; padding-left: 28px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--dark-border);
}

.timeline__item {
  position: relative;
  margin-bottom: 28px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -24px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--black);
}

.timeline__year {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.timeline__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── QC Steps ── */
.qc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qc-step {
  background: var(--dark-card);
  padding: 28px 22px;
  position: relative;
}

.qc-step__number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: rgba(232,39,42,0.07);
  line-height: 1;
  position: absolute;
  top: 16px; right: 16px;
}

.qc-step__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}

.qc-step__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Privacy / text content ── */
.prose h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  text-transform: uppercase;
  color: var(--white);
}
.prose p, .prose li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 10px;
}
.prose ul { padding-left: 20px; }
.prose a { color: var(--red); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 480px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }

  .product-detail__grid { grid-template-columns: 1fr; gap: 40px; }
  .product-detail__image-wrap { position: static; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .racing-bar__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .navbar__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    padding: 16px 20px 32px;
    gap: 0;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(15,23,42,0.12);
  }
  .navbar__nav.open li { width: 100%; }
  .navbar__nav.open a {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111827 !important;
    padding: 14px 4px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
  }
  .navbar__nav.open a:hover { color: #FF8A00 !important; }
  /* Send Inquiry CTA in mobile menu */
  .navbar__nav.open .navbar__cta {
    display: block !important;
    margin-top: 16px;
    background: #FF8A00;
    color: #fff !important;
    border-radius: 8px;
    text-align: center;
    padding: 14px !important;
    border-bottom: none !important;
  }
  /* hamburger active animation */
  .navbar__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar__toggle.active span:nth-child(2) { opacity: 0; }
  .navbar__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .navbar__toggle span { transition: transform .25s ease, opacity .2s ease; }

  .navbar__toggle { display: block; }
  .navbar__right .navbar__cta { display: none; }

  /* Section spacing */
  .section { padding: 48px 0; }
  .hero .container { padding-top: 48px; padding-bottom: 48px; }

  /* Product grids */
  .products-grid { grid-template-columns: 1fr 1fr; background: transparent; gap: 12px; }
  .products-grid--gap { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Hot grid */
  .hot-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }

  /* Form */
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .contact-two-col { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; }

  /* Tabs */
  .detail-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* CTA */
  .cta-banner { padding: 48px 0; }
  .cta-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-actions a, .cta-actions button { width: 100%; text-align: center; }

  /* Toolbar */
  .products-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Filter bar */
  .filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }

  /* Hero */
  .hero__title { font-size: clamp(28px, 7vw, 42px) !important; }
  .hero__actions { flex-wrap: wrap; gap: 10px; }
  .hero__actions a { flex: 1 1 auto; min-width: 140px; text-align: center; }

  /* Gallery */
  .rgallery { flex-direction: column !important; }
  .rgallery__panel { width: 100% !important; }
  .rgallery__photos { width: 100% !important; height: 240px; }

  /* Floating WhatsApp */
  .whatsapp-float { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .app-grid { grid-template-columns: 1fr !important; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .racing-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .products-grid--gap { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr !important; }
  .hot-grid { grid-template-columns: 1fr !important; }
  .related-grid { grid-template-columns: 1fr !important; }
}


/* ============================================================
   THEME V2 — Light Racing Edition (Override layer)
   Black/White/Yellow-Orange · Real motorsport scenes
   Loaded last to override the V1 dark base.
   ============================================================ */

:root {
  /* Racing yellow-orange becomes the new primary accent */
  --racing-orange:        #FF8A00;
  --racing-orange-dark:   #E07500;
  --racing-orange-light:  #FFA133;
  --racing-yellow:        #FFD700;
  --racing-glow:          rgba(255,138,0,0.25);

  /* Page background = light, sections alternate */
  --bg-page:        #FFFFFF;
  --bg-soft:        #F5F6F8;
  --bg-soft-2:      #ECEEF2;
  --bg-dark:        #0E0E12;        /* Charcoal, not pure black */
  --bg-dark-2:      #16161B;
  --line-light:     #E4E6EB;
  --line-mid:       #D0D3D9;

  --ink:            #14161C;        /* Body ink */
  --ink-2:          #383C45;        /* Secondary ink */
  --ink-muted:      #6B7280;        /* Muted on light bg */
  --ink-on-dark:    #F2F3F6;        /* Text on dark sections */
  --ink-on-dark-2:  #B8BCC4;        /* Muted text on dark */

  /* Re-map old vars so existing selectors get the new palette */
  --red:            var(--racing-orange);
  --red-dark:       var(--racing-orange-dark);
  --red-light:      var(--racing-orange-light);
  --red-glow:       var(--racing-glow);

  --shadow-soft:    0 8px 30px rgba(20,22,28,0.08);
  --shadow-card-2:  0 10px 32px rgba(20,22,28,0.12);
  --shadow-orange:  0 6px 20px rgba(255,138,0,0.35);
}

/* ── Body & global typography ── */
body {
  background: var(--bg-page);
  color: var(--ink);
}
h1, h2, h3, h4, h5 { color: var(--ink); }

a { color: var(--racing-orange); }
a:hover { color: var(--racing-orange-dark); }

/* ── Section backgrounds (override the dark V1 defaults) ── */
.section { background: var(--bg-page); padding: 90px 0; }
.section--alt  { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #FFF; }
.section--dark .section-subtitle { color: var(--ink-on-dark-2); }

.section-label { color: var(--racing-orange); }
.section-label::before { background: var(--racing-orange); }
.section-title { color: var(--ink); }
.section--dark .section-title { color: #FFF; }
.section-subtitle { color: var(--ink-muted); }

/* ── Navbar — light, sticky, premium ── */
.navbar {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
  box-shadow: 0 2px 14px rgba(20,22,28,0.04);
}
.navbar__logo-name { color: var(--ink); }
.navbar__logo-sub  { color: var(--ink-muted); }
.navbar__nav a     { color: var(--ink-2); }
.navbar__nav a:hover,
.navbar__nav a.active { color: var(--racing-orange); }

/* ── Buttons ── */
.btn {
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 14px 28px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--racing-orange);
  color: #fff;
  border: 2px solid var(--racing-orange);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--racing-orange-dark);
  border-color: var(--racing-orange-dark);
  transform: translateY(-2px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 2px solid var(--line-mid);
}
.btn-ghost:hover {
  border-color: var(--racing-orange);
  color: var(--racing-orange);
}

/* On dark sections / hero overlays, switch outline btn to white */
.hero .btn-outline,
.section--dark .btn-outline,
.cta-banner .btn-outline {
  color: #fff;
  border-color: #fff;
}
.hero .btn-outline:hover,
.section--dark .btn-outline:hover,
.cta-banner .btn-outline:hover {
  background: #fff;
  color: var(--ink);
}
.hero .btn-ghost,
.cta-banner .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.hero .btn-ghost:hover,
.cta-banner .btn-ghost:hover {
  border-color: var(--racing-orange);
  color: var(--racing-orange);
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   HERO CAROUSEL  —  Real motorsport background images
   ============================================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(520px, 78vh, 760px);
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8,8,12,0.78) 0%,
    rgba(8,8,12,0.55) 35%,
    rgba(8,8,12,0.18) 65%,
    rgba(8,8,12,0.05) 100%
  );
  z-index: 1;
}
.hero-slide__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  color: #fff;
}
.hero-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--racing-orange);
  background: rgba(255,138,0,0.10);
  border: 1px solid rgba(255,138,0,0.45);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-slide__eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--racing-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,138,0,0.25);
}
.hero-slide__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 16px;
  max-width: 760px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-slide__title em {
  font-style: normal;
  color: var(--racing-orange);
  display: inline;
}
.hero-slide__title-zh {
  font-family: 'Noto Sans SC','PingFang SC',sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  max-width: 640px;
}
.hero-slide__desc {
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-carousel__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.hero-carousel__dot {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
  transition: background .25s ease, width .25s ease;
}
.hero-carousel__dot.is-active {
  background: var(--racing-orange);
  width: 56px;
}
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.hero-carousel__arrow:hover {
  background: var(--racing-orange);
  border-color: var(--racing-orange);
}
.hero-carousel__arrow--prev { left: 22px; }
.hero-carousel__arrow--next { right: 22px; }

/* Hide V1 hero so only the new carousel renders */
.hero { display: none; }

/* ============================================================
   CATEGORY STRIP (under hero)
   Horizontal cards with image on top, light bg
   ============================================================ */
.cat-strip {
  background: var(--bg-soft);
  padding: 70px 0;
  border-bottom: 1px solid var(--line-light);
}
.cat-strip__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.cat-strip__card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-width: 0;   /* prevent grid blowout */
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-strip__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-2);
  border-color: var(--racing-orange);
}
.cat-strip__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fafafa;
  padding: 12px;
}
.cat-strip__body {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line-light);
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-strip__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cat-strip__count {
  font-size: 11px;
  font-weight: 600;
  color: var(--racing-orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 1100px) { .cat-strip__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .cat-strip__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   FEATURED SERIES — overhaul to large image cards
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-2);
  border-color: var(--racing-orange);
}
.cat-card::before {
  background: var(--racing-orange);
  height: 3px;
}
.cat-card__icon { color: var(--racing-orange); }
.cat-card__name { color: var(--ink); }
.cat-card__desc { color: var(--ink-muted); }
.cat-card__count { color: var(--racing-orange); }

/* ============================================================
   PRODUCT CARDS (light theme)
   ============================================================ */
.product-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 1px 4px rgba(15,23,42,0.05);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.12), 0 2px 8px rgba(255,138,0,0.08);
  border-color: #FF8A00;
}

/* image area */
.product-card__image {
  background: #f7f8fb;
  position: relative;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .3s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.06); }

/* body */
.product-card__body {
  background: #fff;
  padding: 14px 16px 16px;
  border-top: 1px solid #f0f2f5;
}

/* category label */
.product-card__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--racing-orange);
  margin-bottom: 5px;
}

/* name */
.product-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* desc */
.product-card__desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* sales / proof */
.product-card__sales {
  font-size: 11.5px;
  color: #16a34a;
  margin-bottom: 10px;
  font-weight: 600;
}

/* price line */
.product-card__price {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* footer buttons */
.product-card__footer {
  display: flex;
  gap: 8px;
}
.product-card__footer .btn {
  flex: 1;
  font-size: 12px;
  padding: 9px 10px;
  font-weight: 700;
  border-radius: 8px;
}

/* OEM badge */
.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--racing-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 5px;
  z-index: 2;
  text-transform: uppercase;
}

/* performance tag bottom-right */
.product-card__tag {
  position: absolute;
  bottom: 0; right: 0;
  background: rgba(15,23,42,0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px 0 0 0;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}

/* ── Filter bar (products page) — pill tabs ── */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: none;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 0 16px;
  margin-bottom: 0;
  background: transparent;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  letter-spacing: 0;
  text-transform: none;
}
.filter-tab:hover {
  border-color: #FF8A00;
  color: #FF8A00;
  background: #FFF7ED;
}
.filter-tab.active {
  background: #FF8A00;
  color: #fff;
  border-color: #FF8A00;
  box-shadow: 0 3px 10px rgba(255,138,0,0.28);
}

/* Search bar */
.search-input {
  background: #fff;
  border: 1px solid var(--line-mid);
  color: var(--ink);
}
.search-input::placeholder { color: var(--ink-muted); }
.search-input:focus { border-color: var(--racing-orange); outline: none; }

/* Products page hero — light */
.products-page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
}
.products-page-hero::before { display: none; }
.products-page-hero h1 { color: var(--ink); }
.products-count { color: var(--ink-muted); }

/* Racing stats bar */
.racing-bar { background: var(--ink); }
.racing-bar__num { color: var(--racing-orange); }
.racing-bar__label { color: rgba(255,255,255,0.7); }

/* ============================================================
   APPLICATION CARDS — real scene images
   ============================================================ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: transparent;
}
.app-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
  border-color: rgba(255,138,0,0.4);
  background: #fff;
}
.app-card__media {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.app-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
}
.app-card__media-icon {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  font-size: 30px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.app-card__body {
  padding: 18px 20px 22px;
  text-align: left;
}
.app-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.app-card__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}
@media (max-width: 980px) { .app-grid { grid-template-columns: repeat(2, 1fr); background: transparent; } }
@media (max-width: 540px) { .app-grid { grid-template-columns: 1fr; background: transparent; gap: 16px; } }

/* ============================================================
   WHY-US / FACTORY CARDS on light
   ============================================================ */
.why-card,
.caps-grid > * {
  background: #fff !important;
  border: 1px solid var(--line-light) !important;
  color: var(--ink) !important;
}
.why-card *,
.caps-grid > * * {
  color: inherit;
}
.section--dark .why-card,
.section--dark .caps-grid > * {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: #fff !important;
}

/* ============================================================
   CTA BANNER — orange racing energy with scene background
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 90px 0;
  background:
    linear-gradient(100deg, rgba(20,22,28,0.85) 0%, rgba(20,22,28,0.55) 60%, rgba(20,22,28,0.30) 100%),
    url('.webp') center/cover no-repeat;
  color: #fff;
  text-align: center;
  border-top: 4px solid var(--racing-orange);
}
.cta-banner::before { display: none; }
.cta-banner h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  margin: 14px auto 28px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER — keep dark for premium feel
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}

/* ============================================================
   PRODUCT DETAIL PAGE — light surface
   ============================================================ */
.product-detail { background: var(--bg-page); padding: 60px 0; }
.product-detail__name { color: var(--ink); }
.product-detail__name-zh { color: var(--ink-muted); }
.product-detail__category { color: var(--racing-orange); }
.product-detail__desc { color: var(--ink-2); }
.product-detail__features {
  background: var(--bg-soft);
  border-left: 3px solid var(--racing-orange);
  color: var(--ink);
}
.product-detail__features h4 { color: var(--ink); }
.product-detail__features li { color: var(--ink-2); }
.product-detail__price-note {
  border-left: 3px solid var(--racing-orange);
  background: rgba(255,138,0,0.06);
  color: var(--ink);
}
.product-detail__image {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 8px;
}
.quick-specs,
.product-detail__quick-specs {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 8px;
}
.quick-spec-row { border-bottom: 1px solid #e5e7eb; }
.quick-spec-key { color: #374151; background: #f3f4f6; border-right: 1px solid #e5e7eb; }
.quick-spec-val { color: #111827; background: #ffffff; }
.specs-section { background: var(--bg-soft); padding: 40px; border-radius: 10px; margin-top: 60px; }
.detail-tabs { border-bottom: 1px solid var(--line-mid); }
.detail-tab {
  background: transparent;
  color: var(--ink-2);
  border-bottom: 3px solid transparent;
}
.detail-tab.active {
  color: var(--racing-orange);
  border-bottom-color: var(--racing-orange);
}
.specs-table td { color: var(--ink-2); border-bottom: 1px solid var(--line-light); background: #ffffff; }
.specs-table td:first-child { color: var(--ink); font-weight: 600; background: #f3f4f6; }
.detail-verified {
  background: rgba(34,197,94,0.10);
  color: #166534;
  border: 1px solid rgba(34,197,94,0.3);
}
.breadcrumb { color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--racing-orange); }
.breadcrumb span { color: var(--ink-muted); }

/* ============================================================
   GENERIC PAGE-HERO (factory / about / quality / contact)
   ============================================================ */
.page-hero {
  background:
    linear-gradient(120deg, rgba(20,22,28,0.85) 0%, rgba(20,22,28,0.55) 100%),
    url('/images/hero/hero-motocross-jump.webp') center/cover no-repeat;
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
}
.page-hero .section-label { color: var(--racing-orange); }
.page-hero__title { color: #fff; font-size: clamp(32px, 5vw, 56px); }
.page-hero__subtitle { color: rgba(255,255,255,0.85); max-width: 720px; margin: 14px auto 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-carousel { height: 64vh; min-height: 460px; }
  .hero-slide__title { font-size: 36px; }
  .hero-carousel__arrow { display: none; }
  .section { padding: 60px 0; }
  .cta-banner { padding: 70px 0; }
}

/* ============================================================
   V2 ADDITIONS — Nav mega-menu, Application scene cards,
   Hot product cards, Gallery collage, Filter tabs counts.
   Loaded via @import at the end of style.css
   ============================================================ */

/* ─── Nav mega menu (Products dropdown) ─── */
.nav-item { position: relative; }
.nav-item--has-menu > a .nav-caret {
  font-size: 10px; opacity: 0.7; margin-left: 4px;
  transition: transform .2s ease;
}
.nav-item--has-menu:hover > a .nav-caret { transform: rotate(180deg); }

/* ── Mega dropdown ── */
@keyframes megaIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-mega {
  position: absolute;
  top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.09);
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(15,23,42,0.08), 0 24px 48px rgba(15,23,42,0.14);
  padding: 8px;
  display: none;
  grid-template-columns: 1fr;
  gap: 2px;
  z-index: 200;
  animation: megaIn .18s ease both;
  /* top arrow */
  &::before {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%);
    width: 12px; height: 6px;
    background: #fff;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 -1px 0 rgba(15,23,42,0.09));
  }
}
.nav-item--has-menu:hover .nav-mega,
.nav-item--has-menu:focus-within .nav-mega { display: grid; }

.nav-mega__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  transition: background .14s ease, color .14s ease, transform .14s ease;
  position: relative;
}
.nav-mega__item:hover {
  background: #FFF7ED;
  color: #FF8A00;
  transform: translateX(2px);
}

/* dot before each item */
.nav-mega__item::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  transition: background .14s ease;
}
.nav-mega__item:hover::before { background: #FF8A00; }

/* "All Products" row */
.nav-mega__item--all {
  background: linear-gradient(135deg, #FF8A00 0%, #FFB347 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  border-radius: 10px;
  padding: 10px 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(255,138,0,0.25);
}
.nav-mega__item--all::before { display: none; }
.nav-mega__item--all:hover {
  background: linear-gradient(135deg, #e67c00 0%, #FF9F2F 100%);
  color: #fff;
  transform: none;
  box-shadow: 0 4px 12px rgba(255,138,0,0.35);
}

/* divider after "All" */
.nav-mega__item--all + .nav-mega__item {
  margin-top: 2px;
}

.nav-mega__name { flex: 1; }

.nav-mega__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  background: #FF8A00;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.nav-mega__item--all .nav-mega__count {
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12px;
}

.nav-item--cta > a {
  background: #FF8A00; color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 999px;
  font-weight: 700;
}
.nav-item--cta > a:hover { background: #E07700; color: #fff !important; }

/* ─── Section variants ─── */
.section--white {
  background: #f5f6f8;
  padding: 80px 0;
}
.section--white .section-title { color: #0F172A; }
.section--white .section-subtitle { color: #475569; }
.section--gallery {
  background: linear-gradient(180deg,#0a0e1a 0%,#101727 100%);
  color: #fff;
}

/* ─── Application scene cards (white/light bg, real photo) ─── */
.app-card--scene {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15,23,42,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.app-card--scene:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15,23,42,0.14);
  border-color: rgba(255,138,0,0.35);
}
.app-card--scene .app-card__media {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}
.app-card--scene .app-card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18) 100%);
}
.app-card--scene .app-card__body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.app-card--scene .app-card__name {
  font-family: 'Barlow Condensed','Barlow',sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.2px;
  color: #0F172A;
}
.app-card--scene .app-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}
.app-card--scene .app-card__cta {
  margin-top: 6px;
  font-size: 13px; font-weight: 700;
  color: #FF8A00;
  letter-spacing: 0.4px;
}

/* ─── Homepage hot-selling grid (white bg, gap layout, no dark bleed) ─── */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: transparent;
}
@media (max-width: 960px) { .hot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hot-grid { grid-template-columns: 1fr; } }

/* ─── Hot product cards on white ─── */
.product-card--hot {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card--hot:hover {
  transform: translateY(-3px);
  border-color: rgba(255,138,0,0.4);
  box-shadow: 0 16px 38px rgba(15,23,42,0.12);
}
.product-card--hot .product-card__image {
  background: #F6F7FB;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-card--hot .product-card__image img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}
.product-card__badge--verified {
  position: absolute; top: 12px; left: 12px;
  background: #15803D; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  z-index: 2;
}
.product-card--hot .product-card__body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.product-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.product-card__meta .product-card__category {
  background: rgba(255,138,0,0.12); color: #FF8A00;
  padding: 3px 8px; border-radius: 4px;
}
.product-card__meta .product-card__app {
  background: rgba(15,23,42,0.06); color: #475569;
  padding: 3px 8px; border-radius: 4px;
}
.product-card--hot .product-card__name {
  font-family: 'Barlow Condensed','Barlow',sans-serif;
  font-size: 19px; font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
}
.product-card--hot .product-card__desc {
  font-size: 13.5px; color: #475569; line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card--hot .product-card__sales {
  font-size: 12px;
  color: #15803D;
  font-weight: 600;
}
.product-card--hot .product-card__price {
  font-size: 13px;
  color: #0F172A;
  font-weight: 700;
  border-top: 1px dashed rgba(15,23,42,0.12);
  padding-top: 8px;
  margin-top: 4px;
}
.product-card--hot .product-card__footer {
  display: flex; gap: 8px; margin-top: 10px;
}
.product-card--hot .product-card__footer .btn {
  flex: 1; text-align: center;
  font-size: 12.5px; padding: 9px 12px;
  font-weight: 700;
}

/* ─── Filter tab counter chip ─── */
.filter-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  margin-left: 5px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(15,23,42,0.07);
  color: #64748b;
  padding: 0 6px;
  border-radius: 999px;
  line-height: 1;
}
.filter-tab.active .filter-tab__count {
  background: rgba(255,255,255,0.28);
  color: #fff;
}

/* ─── Products page hero tagline ─── */
.products-hero__tagline {
  margin: 6px 0 0;
  font-size: 14px;
  color: #475569;
  max-width: 620px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   RACING GALLERY — full-width split: copy left | mosaic right
   ═══════════════════════════════════════════════════════════ */
.rgallery {
  display: flex;
  width: 100%;
  min-height: 580px;
  background: #0C0D11;
  overflow: hidden;            /* clips mosaic tiles that bleed outside */
  position: relative;
}

/* ── Left copy panel ── */
.rgallery__copy {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 56px 72px 5%;
  background: linear-gradient(
    105deg,
    #0C0D11 55%,
    rgba(12,13,17,0.92) 80%,
    rgba(12,13,17,0.6) 100%
  );
  position: relative;
  z-index: 2;
}
.rgallery__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #FF8A00;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rgallery__label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: #FF8A00;
}
.rgallery__title {
  font-family: 'Barlow Condensed', 'Barlow', 'Arial Black', sans-serif;
  font-size: clamp(32px, 3.5vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  white-space: pre-line;
  margin-bottom: 22px;
}
.rgallery__desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 420px;
  margin-bottom: 36px;
}
.rgallery__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.rgallery__btn-ghost {
  display: inline-block;
  padding: 13px 26px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.rgallery__btn-ghost:hover {
  border-color: #FF8A00;
  color: #FF8A00;
  background: rgba(255,138,0,0.07);
}

/* ── Right mosaic wall ── */
.rgallery__mosaic {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow: hidden;
}
.rgallery__mosaic-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.rgallery__mosaic-col--a { flex: 1.5; }
.rgallery__mosaic-col--b { flex: 1.2; }
.rgallery__mosaic-col--c { flex: 1; }

.rgallery__tile {
  overflow: hidden;
  position: relative;
  flex: 1;
  min-height: 0;
}
.rgallery__tile--tall { flex: 1.6; }
.rgallery__tile--short { flex: 1; }

.rgallery__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94), filter .4s ease;
  filter: saturate(1.08) contrast(1.06) brightness(0.92);
}
.rgallery__tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.2) contrast(1.1) brightness(1.0);
}

/* ── Mobile: stack copy on top, grid below ── */
@media (max-width: 900px) {
  .rgallery {
    flex-direction: column;
    min-height: auto;
  }
  .rgallery__copy {
    flex: none;
    padding: 56px 24px 44px;
    background: #0C0D11;
  }
  .rgallery__mosaic {
    height: 280px;
    flex: none;
  }
  .rgallery__mosaic-col--c { display: none; }
}
@media (max-width: 480px) {
  .rgallery__mosaic { height: 220px; }
  .rgallery__mosaic-col--b { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SERVICE ADVANTAGE BAR
   ═══════════════════════════════════════════════════════════ */
.svc-bar {
  background: #13141A;
  border-top: 1px solid rgba(255,138,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.svc-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.svc-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.svc-bar__item:last-child { border-right: none; }
.svc-bar__icon {
  width: 26px; height: 26px;
  color: #FF8A00;
  flex-shrink: 0;
  margin-top: 2px;
}
.svc-bar__name {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: .03em;
}
.svc-bar__desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.52);
}
@media (max-width: 900px) {
  .svc-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .svc-bar__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .svc-bar__item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
  .svc-bar__item:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .svc-bar__inner { grid-template-columns: 1fr; }
  .svc-bar__item:nth-child(odd) { border-right: none; }
}

/* ─── Mobile nav: hide mega ─── */
@media (max-width: 900px) {
  .nav-mega { display: none !important; }
  .nav-caret { display: none; }
}

/* ─── Related Products Grid ─── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  background: transparent;
}
.related-grid .product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 420px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ========================================
   TASK #81 - Product Detail Mobile
   ======================================== */

/* 产品详情：图片全宽 */
@media (max-width: 768px) {
  .detail-layout {
    flex-direction: column !important;
    gap: 24px;
  }
  .detail-gallery {
    width: 100% !important;
    max-width: 100%;
  }
  .detail-info {
    width: 100% !important;
  }

  /* quick-spec 上下堆叠 */
  .quick-spec-row {
    flex-direction: column !important;
  }
  .quick-spec-key {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 6px 6px 0 0 !important;
  }
  .quick-spec-val {
    width: 100% !important;
    border-radius: 0 0 6px 6px !important;
    padding: 6px 10px;
  }

  /* specs-table 手机：左列更窄，字更小 */
  .specs-table { font-size: 12px; }
  .specs-table td:first-child { width: 38%; }
  .specs-table td { padding: 7px 8px; }

  /* detail-tabs 横向滚动 */
  .detail-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 4px;
    padding-bottom: 2px;
  }
  .detail-tab {
    font-size: 13px;
    padding: 8px 14px;
    flex-shrink: 0;
  }

  /* CTA 按钮最小高度 44px */
  .btn-inquiry,
  .detail-info .btn,
  .detail-cta a,
  .float-cta a,
  .cta-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 产品主图高度 */
  .detail-main-img {
    max-height: 280px;
    object-fit: contain;
    width: 100%;
  }

  /* 缩略图横排 */
  .detail-thumbs {
    flex-direction: row !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }
  .detail-thumb {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0;
  }
}

/* 480px 以下进一步收窄 */
@media (max-width: 480px) {
  .detail-main-img { max-height: 220px; }
  .detail-tabs { gap: 2px; }
  .detail-tab { font-size: 12px; padding: 7px 10px; }
  .specs-table { font-size: 11px; }
  .specs-table td { padding: 5px 6px; }
}
