/* ============================================================
   A-OK MOTORS — Design System v5
   Based on a-okmotors.com brand design
   Minimal radius, bold typography, yellow accent, clean surfaces

   Architecture: Two complementary design layers
   • cpq.css (this file) — Brand pages: flat cards, semantic CSS, CSS custom properties
   • cpq_page.html — CPQ wizard: Tailwind CDN with subtle 6px radius, shadow utilities
   Shared: HarmonyOS Sans fonts, #FFCC00 brand yellow, light/dark theme tokens
   ============================================================ */

/* --- HarmonyOS Sans @font-face (matches a-okmotor.com) --- */
@font-face {
  font-family: HarmonyOS_Sans_Light;
  src: url("/static/fonts/HarmonyOS_Sans_SC_Light.woff2") format("woff2"),
       url("/static/fonts/HarmonyOS_Sans_SC_Light.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: HarmonyOS_Sans_Regular;
  src: url("/static/fonts/HarmonyOS_Sans_SC_Regular.woff2") format("woff2"),
       url("/static/fonts/HarmonyOS_Sans_SC_Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: HarmonyOS_Sans_Medium;
  src: url("/static/fonts/HarmonyOS_Sans_SC_Medium.woff2") format("woff2"),
       url("/static/fonts/HarmonyOS_Sans_SC_Medium.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: HarmonyOS_Sans_Bold;
  src: url("/static/fonts/HarmonyOS_Sans_SC_Bold.woff2") format("woff2"),
       url("/static/fonts/HarmonyOS_Sans_SC_Bold.ttf") format("truetype");
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  /* Brand palette — matched to a-okmotors.com */
  --aok-yellow: #FFCC00;           /* link/text on dark — unified brand VI */
  --aok-yellow-dark: #E6B800;      /* hover state */
  --aok-yellow-bg: #F4DF3E;        /* section backgrounds */
  --aok-yellow-cta: #FFF000;       /* CTA button fill */
  --aok-yellow-light: #FFF9E1;     /* subtle highlights */
  --aok-accent-text: #8B6914;     /* accent label on light bg (5.1:1 on white) */
  --aok-accent-text-muted: #8F7114; /* secondary accent label (4.63:1 on white, WCAG AA) */
  --aok-orange: #C67114;           /* warm accent */
  --aok-orange-light: rgba(198, 113, 20, 0.08);

  /* Neutrals — a-okmotors.com palette */
  --white: #FFFFFF;
  --black: #000000;
  --ink: #1E2130;                  /* heading text (not pure black) */
  --ink-light: #222221;            /* body text, nav bg */
  --slate: #444543;                /* secondary body */
  --gray-600: #494C4F;             /* muted text */
  --gray-500: #5C5C5C;             /* medium gray (7.12:1 on white) */
  --gray-400: #767676;            /* label headings (4.54:1 on white) */
  --gray-300: #C0C0C0;
  --gray-200: #D0D0D0;
  --gray-150: #E0E0E0;
  --gray-100: #E8E8E6;
  --gray-50: #F1F2F3;             /* light bg (like filter bg) */

  /* Semantic */
  --success: #46b450;

  /* Typography — matches a-okmotor.com: HarmonyOS Sans + Noto Sans SC stack */
  --font-sans: "HarmonyOS_Sans_Regular", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "HarmonyOS_Sans_Medium", "HarmonyOS_Sans_Regular", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", monospace;

  /* Radius — ultra-flat system (only CTAs get rounded) */
  --radius-xs: 0px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-full: 9999px;           /* only for pill buttons/chips */
  --radius-cta: 32px;              /* CTA pill buttons */

  /* Shadows — ALL neutralized (ultra-flat philosophy) */
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-card: none;

  /* transitions for theme switching */
  --theme-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --aok-yellow: #FFCC00;
  --aok-yellow-dark: #E6B800;
  --aok-yellow-light: #2A2400;
  --aok-accent-text: #FFCC00;      /* bright gold on dark bg */
  --aok-accent-text-muted: #D4A017; /* muted gold on dark bg */
  --aok-orange: #E6A800;
  --aok-orange-light: rgba(230, 168, 0, 0.12);

  --white: #1A1A1A;
  --black: #FFFFFF;
  --ink: #E8E8E6;
  --ink-light: #D0D0CE;
  --slate: #C8C8C6;
  --gray-600: #B0B0AD;
  --gray-500: #989896;
  --gray-400: #8A8A88;            /* ≥4.5:1 on dark bg */
  --gray-300: #6A6A68;
  --gray-200: #505050;
  --gray-150: #444444;
  --gray-100: #333333;
  --gray-50: #242424;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.20);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.40);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.30), 0 4px 12px rgba(0, 0, 0, 0.20);
}

/* Smooth theme transitions on key elements */
body, nav, .nav, .hero, .page-hero, .footer,
.cat-card, .product-card, .cpq-scenario-card, .cpq-dim-card,
.cpq-protocol-card, .cpq-noise-card, .cpq-power-card, .cpq-tube-card,
.cpq-motor-card, .solution-card, .compat-card, .full-specs-grid,
.aok-card, .aok-btn-primary, .aok-btn-secondary, .aok-btn-yellow,
.cpq-select, .cpq-input, .dim-input {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Metallic selected card — 1px sharp yellow border, subtle metal sheen */
.cpq-card-metallic {
  border: 1px solid #FFCC00 !important;
  border-radius: var(--radius-sm) !important;
  background: linear-gradient(180deg, rgba(255,204,0,0.06) 0%, rgba(255,204,0,0.02) 50%, rgba(255,204,0,0.08) 100%) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(255,204,0,0.15) !important;
}
[data-theme="dark"] .cpq-card-metallic {
  border-color: #FFCC00 !important;
  background: linear-gradient(180deg, rgba(255,204,0,0.10) 0%, rgba(255,204,0,0.04) 50%, rgba(255,204,0,0.12) 100%) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -1px 0 rgba(255,204,0,0.20) !important;
}

/* Dark theme overrides for gradient hero sections */
[data-theme="dark"] .hero {
  background: linear-gradient(170deg, #1E1E1C 0%, #1C1C1A 30%, #181816 100%);
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(244, 223, 62, 0.07) 0%, transparent 65%);
}
[data-theme="dark"] .page-hero {
  background: linear-gradient(170deg, #1E1E1C 0%, #1A1A18 100%);
}
[data-theme="dark"] .product-detail-hero {
  background: linear-gradient(170deg, #1E1E1C 0%, #1A1A18 100%);
}

/* Dark theme nav */
[data-theme="dark"] .nav {
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .nav.scrolled {
  background: rgba(22, 22, 22, 0.95);
}

/* Dark theme hero badge */
[data-theme="dark"] .hero-badge {
  background: var(--aok-yellow-light);
  color: var(--aok-yellow);
  border-color: rgba(244, 223, 62, 0.2);
}

/* Dark theme spec badges & tags */
[data-theme="dark"] .spec-torque { background: var(--aok-yellow-light); color: var(--aok-yellow); }
[data-theme="dark"] .spec-speed { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .spec-power { background: rgba(70,180,80,0.12); }
[data-theme="dark"] .spec-voltage { background: rgba(229,148,58,0.12); }
[data-theme="dark"] .prod-tag-scenario { border-color: rgba(244,223,62,0.25); color: var(--aok-yellow); }
[data-theme="dark"] .prod-tag-protocol { border-color: var(--gray-100); }

/* Dark theme compat section */
[data-theme="dark"] .compat-section {
  background: var(--gray-50);
  border-color: var(--gray-100);
}

/* Dark theme empty states & placeholders */
[data-theme="dark"] .detail-hero-placeholder {
  background: var(--gray-50);
  border-color: var(--gray-100);
}
[data-theme="dark"] .product-img-placeholder {
  background: linear-gradient(135deg, #1E1E1C, #1A1A18);
}
[data-theme="dark"] .cat-card-icon {
  background: linear-gradient(135deg, #1E1E1C, #1A1A18);
}

/* Dark theme CPQ specific */
[data-theme="dark"] .cpq-scenario-card.selected {
  background: var(--aok-yellow-light);
}
[data-theme="dark"] .cpq-protocol-card.selected {
  background: var(--aok-yellow-light);
}
[data-theme="dark"] .cpq-noise-card.selected {
  background: var(--aok-yellow-light);
}
[data-theme="dark"] .cpq-power-card.selected {
  background: var(--aok-yellow-light);
}
[data-theme="dark"] .cpq-tube-card.selected {
  background: var(--aok-yellow-light);
}
[data-theme="dark"] .cpq-build-summary {
  background: var(--gray-50);
  border-color: var(--gray-100);
}
[data-theme="dark"] .cpq-gateway-lock {
  background: var(--gray-50);
  border-color: var(--aok-yellow);
}

/* Dark theme form elements */
[data-theme="dark"] .dim-input {
  background: var(--gray-50);
  color: var(--ink);
}
[data-theme="dark"] .dim-input:focus {
  background: var(--white);
}
[data-theme="dark"] .cpq-dim-preset {
  background: var(--gray-50);
  border-color: var(--gray-100);
}
[data-theme="dark"] .cpq-dim-preset:hover {
  background: var(--aok-yellow-light);
}

/* Dark theme buttons */
[data-theme="dark"] .aok-btn-primary {
  background: var(--aok-yellow);
  color: #1A1A1A;
}
[data-theme="dark"] .aok-btn-primary:hover {
  background: var(--aok-yellow-dark);
}
[data-theme="dark"] .aok-btn-secondary {
  background: var(--gray-50);
  border-color: var(--gray-100);
  color: var(--ink);
}
[data-theme="dark"] .aok-btn-secondary:hover {
  border-color: var(--gray-200);
  background: var(--gray-100);
}
[data-theme="dark"] .aok-btn-yellow {
  background: var(--aok-yellow);
  color: #1A1A1A;
}

/* Dark theme tables */
[data-theme="dark"] .specs-table th {
  background: var(--gray-50);
  border-bottom-color: var(--gray-100);
}
[data-theme="dark"] .specs-table td {
  border-bottom-color: var(--gray-50);
}
[data-theme="dark"] .specs-table tbody tr:hover td {
  background: var(--aok-yellow-light);
}

/* Dark theme full specs */
[data-theme="dark"] .full-specs-grid {
  background: var(--white);
  border-color: var(--gray-100);
}
[data-theme="dark"] .full-spec-row:hover {
  background: var(--aok-yellow-light);
}
[data-theme="dark"] .tag-link {
  background: var(--gray-50);
}


/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  background: #FAFAFA;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
  padding: 0;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.1px;
  overflow-x: hidden;
  /* Sticky footer: body fills viewport, main pushes footer to bottom */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Sub-pages: when page-section is the only child, let it fill the space */
#main-content > .page-section:only-child {
  flex: 1;
}
[data-theme="dark"] body {
  background: #1A1A1A;
}

/* Focus ring — WCAG 2.4.7 Focus Visible (Level A) */
:focus-visible {
  outline: 2px solid var(--aok-yellow);
  outline-offset: 2px;
  border-radius: 2px;
}
[data-theme="dark"] :focus-visible {
  outline-color: var(--aok-yellow);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   Navigation — White, clean, sticky
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 32px;
  transition: box-shadow 0.3s, background 0.3s;
}
.nav.scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  background: rgba(255, 255, 255, 0.95);
}
.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--aok-yellow) 0%, var(--aok-orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}
/* 明暗主题 LOGO 切换 */
.nav-logo-light { display: block; }
.nav-logo-dark  { display: none;  }
[data-theme="dark"] .nav-logo-light { display: none;  }
[data-theme="dark"] .nav-logo-dark  { display: block; }
.nav-logo-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nav-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
/* ── Nav simplified brand text ── */
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-brand-text:hover { color: var(--aok-yellow-dark); }
/* ── Brand Header (unified: logo + subtitle + nav + theme) ── */
.brand-header {
  background: var(--ink);
  transition: var(--theme-transition);
}
[data-theme="dark"] .brand-header {
  background: var(--aok-yellow);
}
.brand-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}
.brand-logo-wrap {
  position: relative;
  flex-shrink: 0;
}
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
/* Day (dark bg): show black-on-yellow logo */
.brand-logo-day  { display: block; }
.brand-logo-night { display: none;  }
/* Night (yellow bg): show yellow-on-black logo */
[data-theme="dark"] .brand-logo-day  { display: none;  }
[data-theme="dark"] .brand-logo-night { display: block; }
.brand-subtitle {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--aok-yellow);
  transition: var(--theme-transition);
  margin-right: auto;
}
[data-theme="dark"] .brand-subtitle {
  color: #1A1A1A;
}
/* ── Brand-nav (merged nav links) ── */
.brand-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.brand-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: var(--theme-transition);
}
.brand-nav-link:hover { color: var(--aok-yellow); background: rgba(255,255,255,0.06); }
[data-theme="dark"] .brand-nav-link { color: #6A6A68; }
[data-theme="dark"] .brand-nav-link:hover { color: #1A1A1A; background: rgba(0,0,0,0.06); }
.brand-nav-link.current {
  color: var(--aok-yellow);
  font-weight: 700;
}
[data-theme="dark"] .brand-nav-link.current { color: #1A1A1A; }
/* Theme toggle inside brand nav */
.brand-nav .theme-toggle {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-150);
  background: var(--gray-50);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  margin-left: 4px;
  transition: var(--theme-transition);
}
.brand-nav .theme-toggle:hover {
  border-color: var(--aok-yellow);
  background: var(--aok-yellow-light);
}
@media (max-width: 768px) {
  .brand-inner { padding: 10px 16px; gap: 10px; }
  .brand-logo { height: 30px; }
  .brand-subtitle { font-size: 12px; letter-spacing: 0.5px; }
  .brand-nav-link { font-size: 12px; padding: 4px 6px; }
  .brand-nav { gap: 2px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s, background 0.2s;
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-links > li > a::after {
  content: none;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--ink);
  background: var(--gray-50);
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 5px 10px;
  border: 1.5px solid var(--gray-150);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  transition: all 0.2s;
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
  text-decoration: none;
}
.lang-switch:hover {
  border-color: var(--aok-yellow);
  color: var(--ink);
  background: var(--aok-yellow-light);
}
.lang-switch.current {
  background: var(--aok-yellow);
  color: var(--ink);
  border-color: var(--aok-yellow);
  font-weight: 700;
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--gray-150);
  border-radius: var(--radius-full);
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.theme-toggle:hover {
  border-color: var(--aok-yellow);
  background: var(--aok-yellow-light);
}
.theme-toggle:hover {
  border-color: var(--aok-yellow);
  background: var(--aok-yellow-light);
}

/* Nav CTA button */
.nav-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--ink-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   Brand Header v2 — White, clean, sticky
   ============================================================ */
.brand-header-v2 {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 72px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-header-v2-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-header-v2-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-v2 {
  height: 50px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: none;
  flex-shrink: 0;
}
.brand-logo-link:hover { opacity: 0.85; }
.brand-logo-v2-light { display: block; }
.brand-logo-v2-dark  { display: none;  }
[data-theme="dark"] .brand-logo-v2-light { display: none;  }
[data-theme="dark"] .brand-logo-v2-dark  { display: block; }
.brand-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--gray-200);
}
/* A-OK brand accent: yellow vertical bar before the header title */
.brand-header-v2-badge {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: #FFCC00;
  border-radius: 2px;
  flex-shrink: 0;
}
.brand-header-v2-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.brand-header-v2-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-chip-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: all 0.2s;
}
.lang-chip-v2:hover {
  color: var(--ink);
  border-color: var(--gray-400);
}
.lang-chip-v2.active {
  background: var(--aok-yellow);
  color: var(--ink);
  border-color: var(--aok-yellow);
  font-weight: 700;
}
.theme-toggle-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--gray-600);
  transition: color 0.2s;
  padding: 0;
  margin-left: 4px;
}
.theme-toggle-v2:hover {
  color: var(--ink);
}

/* ============================================================
   Hero Main — Page-flip product showcase + CTA buttons
   ============================================================ */
.hero-main {
  flex-grow: 1;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) clamp(20px, 3vw, 48px) clamp(32px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0D0E10;
}
.hero-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
}

/* ── Hero Carousel (particle dissolve) ── */
.hero-flipbook {
  width: 100%;
  max-width: 960px;
}
.hero-flipbook-track {
  position: relative;
  width: 100%;
  aspect-ratio: 1403 / 540;
  overflow: hidden;
}
.flip-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.flip-page.active {
  opacity: 1;
}
.flip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
/* Particle canvas — sits above images, pointer-events pass through */
.hero-particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* CTA buttons — centered below image */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

/* Buttons — CPQ-style: 8px rounded, matching internal button design */
.hero-btn-primary-v2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--aok-yellow);
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 16px);
  padding: clamp(14px, 1.3vw, 18px) clamp(28px, 3vw, 44px);
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.25s;
}
.hero-btn-primary-v2:hover {
  background: #2A2A2A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.15);
}
.hero-btn-primary-v2:active {
  transform: translateY(0);
}
.hero-btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.hero-btn-primary-v2:hover .hero-btn-arrow {
  transform: translateX(5px);
}
.hero-btn-secondary-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 16px);
  padding: clamp(14px, 1.3vw, 18px) clamp(24px, 2.5vw, 40px);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
}
.hero-btn-secondary-v2:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.hero-btn-secondary-v2:active {
  transform: translateY(0);
}
.hero-btn-globe {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.hero-btn-secondary-v2:hover .hero-btn-globe {
  color: var(--ink);
}

/* Dark theme overrides */
[data-theme="dark"] .brand-header-v2 {
  background: #1A1A1A;
  border-bottom-color: #262626;
}
[data-theme="dark"] .brand-header-v2-title {
  color: #E8E8E6;
}
[data-theme="dark"] .brand-divider {
  background: #333333;
}
[data-theme="dark"] .lang-chip-v2 {
  color: #808080;
  border-color: #333333;
}
[data-theme="dark"] .lang-chip-v2:hover {
  color: #E8E8E6;
  border-color: #666;
}
[data-theme="dark"] .lang-chip-v2.active {
  background: var(--aok-yellow);
  color: #1A1A1A;
  border-color: var(--aok-yellow);
}
[data-theme="dark"] .theme-toggle-v2 {
  color: #B0B0AD;
}
[data-theme="dark"] .theme-toggle-v2:hover {
  color: #E8E8E6;
}
/* Dark theme — primary button: subtle outline, glow on hover (matching CPQ card-selected) */
[data-theme="dark"] .hero-btn-primary-v2 {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--aok-yellow);
  box-shadow: none;
}
[data-theme="dark"] .hero-btn-primary-v2:hover {
  background: rgba(255, 204, 0, 0.08);
  border-color: rgba(255, 204, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.12), 0 0 20px rgba(255, 204, 0, 0.08);
  transform: translateY(-2px);
}
[data-theme="dark"] .hero-btn-secondary-v2 {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
[data-theme="dark"] .hero-btn-secondary-v2:hover {
  background: rgba(255, 204, 0, 0.06);
  border-color: rgba(255, 204, 0, 0.4);
  color: var(--aok-yellow);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.08), 0 0 16px rgba(255, 204, 0, 0.05);
  transform: translateY(-2px);
}
[data-theme="dark"] .hero-btn-globe {
  color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .hero-btn-secondary-v2:hover .hero-btn-globe {
  color: var(--aok-yellow);
}

/* ============================================================
   Footer v2 — Dark, 4-column
   ============================================================ */
.footer-v2 {
  background: var(--ink);
  color: var(--gray-400);
  font-size: 12px;
  padding: 40px 0 0;
  border-top: 1px solid #262626;
}
.footer-v2-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}
.footer-v2-logo {
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-v2-tagline {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}
.footer-v2-col-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-v2-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-v2-col a {
  font-size: 12px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-v2-col a:hover {
  color: var(--white);
}
.footer-v2-lang-current {
  font-size: 12px;
  color: var(--aok-yellow);
  font-weight: 700;
  user-select: none;
}
.footer-v2-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 40px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  user-select: none;
}
.footer-v2-bottom p {
  margin: 0;
}

/* Footer v2 — Dark mode: keep footer dark in both themes */
[data-theme="dark"] .footer-v2 {
  background: #0D0D0F;
  color: #808080;
  border-top-color: #1A1A1A;
}
[data-theme="dark"] .footer-v2-logo {
  color: #E0E0E0;
}
[data-theme="dark"] .footer-v2-tagline {
  color: #808080;
}
[data-theme="dark"] .footer-v2-col-title {
  color: #E0E0E0;
}
[data-theme="dark"] .footer-v2-col a {
  color: #808080;
}
[data-theme="dark"] .footer-v2-col a:hover {
  color: #FFCC00;
}
[data-theme="dark"] .footer-v2-bottom {
  color: #666666;
  border-top-color: rgba(255, 255, 255, 0.04);
}

/* ============================================================
   Hero — Legacy styles (kept for backward compatibility)
   ============================================================ */

/* ============================================================
   Hero — Legacy (fallback for non-homepage)
   ============================================================ */
.hero {
  background: linear-gradient(170deg, #FCFCFA 0%, #F8F7F2 30%, #F3F2EC 100%);
  padding: 120px 24px 140px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 223, 62, 0.14) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aok-yellow) 0%, var(--aok-orange) 50%, var(--aok-yellow) 100%);
  opacity: 0.7;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 223, 62, 0.15);
  color: var(--ink);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(244, 223, 62, 0.3);
}
.hero-image {
  margin-bottom: 36px;
}
.hero-img {
  border-radius: var(--radius-xl);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.04);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -1.5px;
}
.hero h1 span {
  color: var(--ink);
  display: inline;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #b8860b, #8b6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--gray-500);
  font-size: 18px;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 52px;
  font-weight: 400;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -1.5px;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ============================================================
   Page Hero (sub-pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(170deg, #FCFCFA 0%, #F5F4F0 100%);
  padding: 64px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.page-hero-sm {
  padding: 48px 24px;
}
.page-hero-inner {
  max-width: 1600px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.8px;
}
.page-hero-sm h1 {
  font-size: clamp(24px, 3vw, 34px);
}
.page-hero-desc {
  color: var(--gray-500);
  font-size: 16px;
  max-width: 680px;
  line-height: 1.7;
}
.page-hero-desc p {
  margin: 0;
}


/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumbs {
  font-size: 12px;
  color: var(--gray-300);
  margin-bottom: 12px;
}
.breadcrumbs > * { vertical-align: middle; }
.breadcrumbs a {
  color: var(--gray-500);
  transition: color 0.2s;
  font-weight: 500;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { margin: 0 2px; }


/* ============================================================
   Page Section
   ============================================================ */
.page-section {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 56px 24px;
}
.page-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.page-section .section-sub {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 32px;
}


/* ============================================================
   Category Grid & Cards
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
}
.cat-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.cat-card-img {
  height: 200px;
  overflow: hidden;
}
.cat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.cat-card:hover .cat-img {
  transform: scale(1.05);
}
.cat-card-icon {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FAFAF8, #F5F4F0);
}
.cat-icon-placeholder {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--aok-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
}
.cat-card-body {
  padding: 18px 22px;
}
.cat-card-body h2 {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 6px;
}
.cat-card-body p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
  margin: 0;
}
.cat-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.cat-card-cta::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--aok-yellow);
  transition: transform 0.2s;
  transform: scaleX(0);
  transform-origin: left;
}
.cat-card:hover .cat-card-cta::after {
  transform: scaleX(1);
}


/* ============================================================
   Product Cards
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.product-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--gray-50);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img {
  transform: scale(1.04);
}
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FAFAF8, #F5F4F0);
}
.product-img-placeholder span {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--aok-yellow);
  opacity: 0.5;
}

/* Product card body */
.product-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-sku {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  align-self: flex-start;
}
.product-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.3;
}
.product-card-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0 0 14px;
  line-height: 1.4;
  flex: 1;
}

/* Spec badges */
.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.spec-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.spec-torque {
  background: var(--aok-yellow-light);
  color: #8a7a10;
}
.spec-speed {
  background: rgba(0, 0, 0, 0.04);
  color: var(--gray-600);
}
.spec-power {
  background: rgba(70, 180, 80, 0.08);
  color: #2d7a34;
}
.spec-voltage {
  background: rgba(198, 113, 20, 0.08);
  color: #8a4f0e;
}

/* Tags */
.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.prod-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}
.prod-tag-scenario {
  border: 1px solid rgba(244, 223, 62, 0.4);
  color: #8a7a10;
  background: var(--white);
}
.prod-tag-protocol {
  border: 1px solid var(--gray-100);
  color: var(--gray-500);
  background: var(--white);
}


/* ============================================================
   Product Detail Page
   ============================================================ */
.product-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-detail-hero {
  background: linear-gradient(175deg, #FAFAF8 0%, #F5F4F0 100%);
  padding: 48px 24px 56px;
  border-bottom: 1px solid var(--gray-100);
}
.product-detail-hero-inner {
  max-width: 1520px;
  margin: 0 auto;
}
.product-detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 20px;
}
.product-detail-hero-text h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.product-detail-subtitle {
  color: var(--gray-400);
  font-size: 16px;
  margin: 0 0 20px;
}
.product-detail-hero-img { text-align: center; }
.detail-hero-img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* SKU badge in hero */
.sku-badge {
  display: inline-block;
  background: var(--gray-50);
  color: var(--gray-500);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

/* Hero spec stats */
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 28px;
}
.hero-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}
.hero-spec-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.hero-spec-unit {
  font-size: 11px;
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.hero-spec-label {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
  text-align: center;
}

/* CTA in hero */
.product-detail-actions { margin-top: 8px; }
.product-detail-actions .aok-btn-primary {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Detail hero image placeholder */
.detail-hero-placeholder {
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px dashed var(--gray-100);
  border-radius: var(--radius-lg);
  color: var(--gray-300);
  font-size: 14px;
  gap: 12px;
}
.placeholder-icon {
  font-size: 48px;
  opacity: 0.2;
}


/* ============================================================
   Section Title
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}


/* ============================================================
   Full Specifications Table
   ============================================================ */
.full-specs-section {
  max-width: 760px;
}
.full-specs-grid {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.full-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.15s;
}
.full-spec-row:last-child { border-bottom: none; }
.full-spec-row:hover { background: var(--aok-yellow-light); }
.full-spec-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
}
.full-spec-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-mono);
  text-align: right;
}
.tag-link {
  font-size: 12px;
  color: var(--gray-500);
  background: var(--gray-50);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}


/* ============================================================
   Compatible Products Section
   ============================================================ */
.compat-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.compat-group { margin-bottom: 32px; }
.compat-group:last-child { margin-bottom: 0; }
.compat-group-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}
.compat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.compat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.2s;
}
.compat-card:hover {
  border-color: var(--aok-yellow);
  box-shadow: var(--shadow-xs);
}
.compat-card-img {
  width: 60px;
  height: 45px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-50);
}
.compat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.compat-card-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.compat-card-name {
  font-size: 13px;
  color: var(--gray-500);
}
.compat-card-specs {
  font-size: 11px;
  color: var(--gray-300);
  margin-top: 2px;
}

/* Product detail body (StreamField content) */
.product-detail-body {
  max-width: 800px;
}


/* ============================================================
   Rich text content blocks
   ============================================================ */
.rich-text {
  line-height: 1.8;
  color: var(--ink-light);
}
.rich-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.rich-text h3 {
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 28px 0 12px;
}
.rich-text p { margin: 0 0 16px; }
.content-image {
  border-radius: var(--radius-md);
  margin: 16px 0;
}


/* ============================================================
   Tech Specs / System Diagram / Load Capacity blocks
   ============================================================ */
.tech-specs-block,
.diagram-block,
.load-capacity-block {
  margin: 32px 0;
}
.specs-table-title,
.diagram-title,
.load-chart-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 16px;
}
.specs-table-wrap,
.load-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.specs-table th {
  background: var(--gray-50);
  color: var(--gray-500);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 2px solid var(--gray-100);
}
.specs-table td {
  padding: 10px 14px;
  color: var(--ink-light);
  border-bottom: 1px solid var(--gray-50);
  white-space: nowrap;
}
.specs-table tbody tr:hover td {
  background: var(--aok-yellow-light);
}

/* System diagram */
.diagram-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.diagram-img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-md);
}
.diagram-anchor {
  position: absolute;
  transform: translate(-50%, -50%);
  text-decoration: none;
  z-index: 2;
}
.diagram-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aok-yellow);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 3px rgba(244, 223, 62, 0.4);
  transition: all 0.2s;
}
.diagram-anchor:hover .diagram-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(244, 223, 62, 0.3);
}
.diagram-label {
  display: none;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.diagram-anchor:hover .diagram-label { display: block; }
.load-chart-notes {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.6;
}


/* ============================================================
   Buttons
   ============================================================ */
.aok-btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}
.aok-btn-primary:hover {
  background: var(--ink-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.aok-btn-primary:disabled {
  background: var(--gray-100);
  color: var(--gray-300);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.aok-btn-secondary {
  display: inline-block;
  padding: 10px 22px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.aok-btn-secondary:hover {
  border-color: var(--ink);
  background: var(--gray-50);
}

/* Yellow CTA variant */
.aok-btn-yellow {
  display: inline-block;
  width: 100%;
  padding: 14px 28px;
  background: var(--aok-yellow);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}
.aok-btn-yellow:hover {
  background: var(--aok-yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(244, 223, 62, 0.40);
}


/* ============================================================
   About Page
   ============================================================ */
.about-body { max-width: 760px; }
.about-contact {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}
.about-contact h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.about-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--aok-yellow);
}
.about-contact a:hover { color: var(--ink-light); }


/* ============================================================
   Solutions Grid
   ============================================================ */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.solution-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}
.solution-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.solution-icon {
  font-size: 40px;
  margin-bottom: 12px;
  color: var(--aok-yellow);
}
.solution-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.solution-slug {
  font-size: 12px;
  color: var(--gray-300);
  font-family: var(--font-mono);
}
.solution-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.solution-cta::after {
  content: "";
  display: block;
  margin-top: 2px;
  height: 1px;
  background: var(--aok-yellow);
  transition: transform 0.2s;
  transform: scaleX(0);
  transform-origin: left;
}
.solution-card:hover .solution-cta::after { transform: scaleX(1); }

/* 按帘种折叠的解决方案布局（室内/室外两模块横向并排） */
.solution-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.solution-env-module { min-width: 0; }
.solution-env-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}
.solution-env-title::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--aok-yellow);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 折叠面板（原生 details/summary） */
.solution-acc-list { display: flex; flex-direction: column; gap: 10px; }
.solution-acc {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.solution-acc[open] {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-card);
}
.solution-acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.solution-acc summary::-webkit-details-marker { display: none; }
.solution-acc summary:hover { background: var(--gray-50); }
.solution-acc summary:focus-visible {
  outline: 2px solid var(--aok-yellow);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}
.solution-acc-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.solution-acc-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.solution-acc-desc {
  font-size: 13px;
  color: var(--gray-300);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.solution-acc-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-300);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}
.solution-acc-chevron {
  color: var(--gray-300);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.solution-acc[open] .solution-acc-chevron { transform: rotate(180deg); }
.solution-acc-body {
  padding: 4px 20px 20px;
}
.solution-acc-body .solution-grid { gap: 14px; grid-template-columns: repeat(2, 1fr); }
.solution-acc-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-300);
  border-top: 1px dashed var(--gray-100);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .solution-modules { grid-template-columns: 1fr; gap: 40px; }
  .solution-acc-body .solution-grid { grid-template-columns: repeat(3, 1fr); }
  .solution-env-title { font-size: 20px; }
}
@media (max-width: 640px) {
  .solution-modules { gap: 32px; }
  .solution-acc-body .solution-grid { grid-template-columns: 1fr; }
  .solution-env-title { font-size: 18px; }
  .solution-acc-icon { width: 30px; height: 30px; }
  .solution-acc-name { font-size: 15px; }
  .solution-acc-desc { display: none; }
  .solution-acc summary { padding: 12px 14px; gap: 10px; }
  .solution-acc-body { padding: 4px 14px 14px; }
}


/* ============================================================
   Generic Card
   ============================================================ */
.aok-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px;
}


/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-300);
  padding: 56px 24px;
  font-size: 14px;
}


/* ============================================================
   Footer — Dark for contrast
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--gray-400);
  font-size: 13px;
}
.footer-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 64px 24px 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-col-brand { }
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
  max-width: 240px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
  font-size: 13px;
}
.footer-col a:hover { color: var(--aok-yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 24px;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: var(--gray-500);
}
.footer a {
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer a:hover { color: var(--aok-yellow); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .footer-col-brand { grid-column: 1 / -1; margin-bottom: 4px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-col-brand { grid-column: auto; margin-bottom: 0; }
}


/* ============================================================
   CPQ Wizard — Card Composition Configurator
   Primary styles are inline in cpq_page.html (uses template tags).
   These are fallback/shared styles for cpq_wizard_content.html.
   ============================================================ */
.cpq-loading {
  max-width: 400px;
  margin: 80px auto;
  text-align: center;
}
.cpq-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--aok-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cpq-alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
}
.cpq-alert-error {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}
.cpq-alert-warn {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #92400e;
}
.cpq-alert-info {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--gray-100);
  color: var(--ink-light);
}
.cpq-alert-item + .cpq-alert-item { margin-top: 8px; }

/* CPQ scenario matrix (Vue/Flask fallback) */
.scenario-matrix {
  display: grid;
  gap: 24px;
}
.scenario-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}
.scenario-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.scenario-option {
  padding: 16px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-500);
  background: var(--white);
}
.scenario-option:hover {
  border-color: var(--aok-yellow);
  background: var(--aok-yellow-light);
}
.scenario-option.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* Motor result cards (Vue/Flask fallback) */
.motor-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.motor-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.motor-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.motor-card-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.motor-card-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-400);
}
.motor-card-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--aok-yellow-dark);
  flex-shrink: 0;
}
.motor-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.motor-card-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  background: var(--gray-50);
  color: var(--gray-500);
}
.motor-card-reason {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
}


/* ============================================================
   Responsive
   ============================================================ */

/* ── Tablet Landscape / Small Laptop (900–1100px) ── */
@media (max-width: 1100px) {
  /* Hero */
  .hero { padding: 64px 24px 84px; }
  .hero h1 { font-size: 40px; }
  .hero-stats { gap: 40px; }
  .hero-main { padding: 48px 24px 72px; }

  /* Nav — compress before full mobile break */
  .nav-links { gap: 4px; }
  .nav-links > li > a { padding: 6px 10px; font-size: 13px; }
  .nav-logo-text { font-size: 15px; }
  .nav-logo-sub { font-size: 11px; }

  /* Header v2 */
  .brand-header-v2-title { font-size: 12px; }
  .brand-logo-v2 { height: 38px; max-width: 80px; }

  /* Grids — 3-col → 2-col */
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Product detail hero */
  .product-detail-hero-grid { gap: 32px; }
  .product-detail-hero-text h1 { font-size: 34px; }

  /* Page hero */
  .page-hero { padding: 48px 24px; }
  .page-hero-sm { padding: 40px 24px; }
  .page-hero h1 { font-size: clamp(26px, 3.5vw, 44px); }

  /* Footer v2 */
  .footer-v2-inner { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
}

@media (max-width: 900px) {
  .hero { padding: 80px 24px 100px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 36px; }
  .hero-stat-value { font-size: 30px; }

  /* New hero v2 responsive */
  .hero-main { padding: 40px 24px 60px; }
  /* Header v2 responsive */
  .brand-header-v2 { padding: 12px 16px; }
  .brand-header-v2-title { font-size: 12px; }
  .brand-logo-v2 { height: 35px; max-width: 74px; }

  /* Footer v2 responsive */
  .footer-v2-inner { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .footer-v2-col:first-child { grid-column: 1 / -1; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }

  .product-detail-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-hero-img { order: -1; }
  .product-detail-hero-text h1 { font-size: 30px; }

  .compat-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links { gap: 4px; }
  .nav-links > li > a { padding: 6px 10px; font-size: 13px; }
  .nav-logo-img { height: 30px; max-width: 100px; }
  .nav-logo-text { font-size: 15px; }
  .nav-inner { height: 64px; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 20px 76px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.8px; }
  .hero-desc { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 24px; }

  /* New hero v2 responsive */
  .hero-main { padding: 32px 16px 48px; }
  .hero-buttons { flex-direction: column; }
  .hero-btn-primary-v2,
  .hero-btn-secondary-v2 { width: 100%; justify-content: center; }

  /* Header v2 responsive */
  .brand-header-v2 { padding: 10px 12px; }
  .brand-header-v2-title { display: none; }
  .brand-divider { display: none; }
  .brand-logo-v2 { height: 31px; max-width: 66px; }
  .lang-chip-v2 { min-width: 26px; padding: 3px 6px; font-size: 10px; }

  /* Footer v2 responsive */
  .footer-v2-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-v2-col:first-child { grid-column: auto; }

  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }

  .page-hero h1 { font-size: 24px; }
  .page-hero-sm h1 { font-size: 22px; }

  .product-detail-hero-text h1 { font-size: 24px; }
  .compat-grid { grid-template-columns: 1fr; }

  .nav { padding: 0 16px; }
  .nav-inner { height: 60px; }
  .nav-links { gap: 2px; }
  .nav-links > li > a { padding: 6px 8px; font-size: 12px; }
  .nav-logo-text { font-size: 14px; }
  .nav-logo-sub { display: none; }
  .nav-logo-img { height: 26px; }
  .lang-switch { min-width: 28px; padding: 4px 7px; font-size: 10px; }

  .page-section { padding: 40px 16px; }
  .page-section h2 { font-size: 24px; }
  .section-title { font-size: 22px; }

  .product-card-img { height: 180px; }
  .detail-hero-placeholder { min-height: 220px; }

  .hero-specs { gap: 16px; }
  .hero-spec-value { font-size: 20px; }
}

/* ── Landscape phone / short viewport (height < 500px) ──
   On landscape phones, the viewport is wide but short.
   Compress header, hero, and sections so content remains visible. */
@media (max-height: 500px) {
  /* Brand header — minimal height */
  .brand-header-v2 { padding: 6px 12px; }
  .brand-header-v2-title { font-size: 10px; }
  .brand-logo-v2 { height: 25px; max-width: 53px; }
  .brand-divider { margin: 0 6px; }

  /* Nav — compact */
  .nav-inner { height: 48px; }
  .nav-logo-img { height: 22px; }
  .nav-logo-text { font-size: 13px; }
  .nav-logo-sub { display: none; }
  .nav-links > li > a { padding: 4px 7px; font-size: 11px; }
  .lang-switch { min-width: 24px; padding: 2px 5px; font-size: 10px; }

  /* Brand nav */
  .brand-inner { padding: 6px 12px; gap: 6px; }
  .brand-logo { height: 24px; }
  .brand-subtitle { font-size: 10px; }
  .brand-nav-link { font-size: 11px; padding: 3px 5px; }

  /* Hero — reduce vertical padding */
  .hero { padding: 32px 20px 48px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .hero-stats { gap: 20px; }
  .hero-stat-value { font-size: 22px; }
  .hero-main { padding: 24px 16px 36px; }

  /* Page hero sub-pages */
  .page-hero { padding: 24px 20px; }
  .page-hero-sm { padding: 20px 20px; }
  .page-hero h1 { font-size: clamp(20px, 3vw, 28px); }

  /* Sections */
  .page-section { padding: 24px 16px; }
  .page-section h2 { font-size: 22px; }

  /* Product detail hero */
  .product-detail-hero { padding: 24px 20px 28px; }
  .product-detail-hero-text h1 { font-size: 24px; }

  /* Footer — compact */
  .footer-v2-inner { gap: 16px; }
  .footer-v2-col { font-size: 12px; }
  .footer-bottom { padding: 12px 16px; }
}


/* ============================================================
   Hero — Extended Elements (from brochure design)
   ============================================================ */
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: var(--gray-500);
  margin: -8px 0 28px;
  letter-spacing: -0.3px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.hero-bg-orb {
  position: absolute;
  top: -180px;
  right: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 223, 62, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bottom-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aok-yellow) 0%, var(--aok-orange) 50%, var(--aok-yellow) 100%);
  opacity: 0.7;
}


/* ============================================================
   Shared Section Layout
   ============================================================ */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--aok-orange);
  background: var(--aok-orange-light);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.8px;
}
.section-desc {
  color: var(--gray-500);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ============================================================
   Section 2: CPQ Core Advantage Comparison Table
   ============================================================ */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-100);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
}
.compare-table thead th {
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--gray-100);
}
.compare-col-label {
  width: 22%;
  color: var(--gray-500);
}
.compare-col-old {
  width: 39%;
  background: rgba(255, 230, 230, 0.3);
  color: var(--gray-500);
}
.compare-col-new {
  width: 39%;
  background: rgba(70, 180, 80, 0.06);
  color: var(--success);
}
.compare-col-icon {
  margin-right: 6px;
}
.compare-table tbody td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
  line-height: 1.5;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-label strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.compare-label small {
  font-size: 11px;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.compare-old {
  color: var(--gray-500);
}
.compare-new strong {
  color: #2a7d32;
}
.compare-new {
  color: #3a9d42;
}


/* ============================================================
   Section 3: Three-layer Rule Engine
   ============================================================ */
.page-section-alt {
  background: linear-gradient(170deg, #FCFCFA 0%, #F5F4F0 100%);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
[data-theme="dark"] .page-section-alt {
  background: linear-gradient(170deg, #1E1E1C 0%, #1A1A18 100%);
  border-color: var(--gray-100);
}
.rule-engine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.rule-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.rule-card-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
  pointer-events: none;
}
[data-theme="dark"] .rule-card-num {
  color: var(--gray-200);
}
.rule-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.rule-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 12px;
}
.rule-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--aok-orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.rule-card-desc {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* Silent motor highlight */
.silent-highlight {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 2px solid var(--aok-yellow);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
}
.silent-highlight-badge {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--aok-yellow-dark);
  background: var(--aok-yellow-light);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  letter-spacing: -1px;
}
.silent-highlight p {
  margin: 0;
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}
.silent-highlight p strong {
  color: var(--ink);
}


/* ============================================================
   Section 4: Digital Production & System Chain
   ============================================================ */
.system-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 12px;
  flex-wrap: wrap;
}
.chain-node {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  text-align: center;
  transition: all 0.2s;
}
.chain-node-active {
  border-color: var(--aok-yellow);
  background: var(--aok-yellow-light);
  box-shadow: 0 0 0 4px rgba(244, 223, 62, 0.15);
}
.chain-node-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.chain-arrow {
  font-size: 24px;
  color: var(--gray-300);
  font-weight: 300;
}
.system-chain-caption {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  margin: 0 0 48px;
  letter-spacing: 0.3px;
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.production-stat {
  text-align: center;
  background: var(--white);
  border: 2px solid var(--aok-yellow);
  border-radius: var(--radius-xl);
  padding: 36px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.production-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.production-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 8px;
}
.production-stat-unit {
  font-size: 24px;
  color: var(--aok-orange);
}
.production-stat-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ============================================================
   Section 5: Technical Resource Center
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.resource-card-icon {
  font-size: 36px;
  margin-bottom: 20px;
}
.resource-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 10px;
}
.resource-card-desc {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.resource-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.resource-card-meta span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}
.resource-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--aok-orange);
  text-decoration: none;
  transition: gap 0.2s;
}
.resource-card-link:hover {
  gap: 8px;
  color: var(--aok-yellow-dark);
}


/* ============================================================
   Responsive — Brochure Sections
   ============================================================ */
@media (max-width: 900px) {
  .rule-engine-grid { grid-template-columns: 1fr; }
  .production-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .system-chain { gap: 4px; }
  .chain-node { padding: 12px 18px; }
  .chain-node-label { font-size: 14px; }
  .chain-arrow { font-size: 18px; }
  .silent-highlight { flex-direction: column; text-align: center; }
  .compare-table { font-size: 13px; }
  .compare-table thead th, .compare-table tbody td { padding: 14px 16px; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-subtitle { font-size: 16px; }
  .section-title { font-size: 24px; }
  .compare-table thead { display: none; }
  .compare-table tbody td { display: block; padding: 12px 16px; }
  .compare-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
  }
  .system-chain { gap: 2px; }
  .chain-node { padding: 10px 12px; }
  .chain-node-label { font-size: 12px; }
}

/* ── Large-screen / high-DPI scaling（全站统一，2026-08-18 由 cpq_page.html 移入）──
   On 3K/4K monitors with 100% OS scaling, the same 14px renders physically
   ~30-50% smaller than on 2K. CSS zoom scales everything proportionally.
   Breakpoints are CSS viewport widths (after OS scaling).
   --html-zoom mirrors the zoom value so fixed-height overlays can divide
   vh-based sizes by it (zoom scales rendering but not the layout viewport).
   cpq_page.html 原为页级专属，导致超宽屏下 cpq 页 LOGO 比首页大 1.3 倍；
   移至全站共享 CSS 后所有页面统一缩放。 */
:root { --html-zoom: 1; }
@media (min-width: 2200px) {
    html { zoom: 1.10; }
    :root { --html-zoom: 1.10; }
    #app main { max-width: 1440px !important; }
}
@media (min-width: 2800px) {
    html { zoom: 1.20; }
    :root { --html-zoom: 1.20; }
    #app main { max-width: 1600px !important; }
}
@media (min-width: 3400px) {
    html { zoom: 1.30; }
    :root { --html-zoom: 1.30; }
    #app main { max-width: 1760px !important; }
}
