/* ==========================================================================
   Spedal — corporate website stylesheet
   Minimal, high-contrast, engineering-led. Light surfaces, dark feature bands.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */

:root {
  --ink: #0a0e17;
  --ink-soft: #1a2130;
  --body: #55607a;
  --body-strong: #33405a;
  --muted: #8b95a9;

  --paper: #ffffff;
  --paper-2: #f6f7fa;
  --paper-3: #eef1f6;
  --line: #e2e6ee;
  --line-strong: #cfd6e2;

  --brand: #1b5cff;
  --brand-dark: #0f3fbd;
  --brand-soft: rgba(27, 92, 255, 0.08);
  --brand-line: rgba(27, 92, 255, 0.28);

  /* Feature bands are now light-tinted surfaces: the whole site reads as a
     light theme with layered greys instead of dark blocks. */
  --dark: #f4f6fa;
  --dark-2: #ecf0f6;
  --dark-line: rgba(10, 14, 23, 0.09);
  --dark-body: #55607a;
  --dark-strong: #0a0e17;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(10, 14, 23, 0.05);
  --shadow: 0 18px 40px -24px rgba(10, 14, 23, 0.28);
  --shadow-lg: 0 40px 80px -48px rgba(10, 14, 23, 0.42);

  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 8vw, 128px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --header-h: 72px;
}

/* ----------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.028em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.16rem, 1.7vw, 1.45rem); }
h4 { font-size: 0.95rem; letter-spacing: 0.02em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brand); color: #fff; }

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

.shell {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(48px, 5vw, 76px) 0; }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--dark); color: var(--dark-body); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--ink); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.06rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--brand); }

.lead { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: var(--body); }
.section--dark .lead { color: var(--dark-body); }
#productOverview p { margin: 0 0 14px; }
#productOverview p:last-child { margin-bottom: 0; }
.doc-group { margin: 26px 0 12px; font-size: 1rem; font-weight: 600; color: var(--body-strong); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(27, 92, 255, 0.9);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }

.btn-light {
  background: var(--ink);
  color: #fff;
}
.btn-light:hover:not(:disabled) { background: var(--ink-soft); }

.btn-outline-light {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline-light:hover:not(:disabled) { border-color: var(--ink); background: var(--paper-2); }

.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
}
.link-arrow::after {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width 0.22s ease;
}
.link-arrow:hover::after { width: 26px; }

/* "View details" CTA on cards — a filled pill instead of a bare text link so
   it reads as a button at a glance. */
.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 12px 24px -16px rgba(27, 92, 255, 0.95);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-detail::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: width 0.22s ease;
}
.btn-detail:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -16px rgba(27, 92, 255, 1);
}
.btn-detail:hover::after { width: 30px; }
.btn-detail--sm { padding: 10px 20px; font-size: 0.92rem; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -26px rgba(10, 14, 23, 0.35);
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  opacity: 1;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 24px);
}

.brand { display: inline-flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.brand-logo { display: block; height: 32px; width: auto; }
.brand-tagline {
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

/* Header keeps a light base on every page so the brand colours stay
   prominent across the whole light theme. */

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 550;
  color: var(--body-strong);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--paper-3); }
.nav-link.is-active { color: var(--brand); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
}

/* Dropdown submenu (used by 联系我们 → 外贸销售 / 售后服务). */
.nav-item { position: relative; }
.nav-item > .nav-link { display: block; }
.nav-item.has-sub > .nav-link { padding-right: 26px; }
.nav-item.has-sub > .nav-link.is-active::after { right: 26px; }
.nav-item.has-sub::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: 0.5;
  pointer-events: none;
}
.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  min-width: 176px;
  padding: 7px;
  margin-top: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-sub-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--body-strong);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-sub-link:hover { color: var(--brand); background: var(--paper-3); }
.nav-sub-link.is-active { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
.lang-switch button {
  padding: 4px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-switch button.is-active { background: var(--ink); color: #fff; }

.header-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body-strong);
  border: 1px solid transparent;
  white-space: nowrap;
}
.header-account:hover { border-color: var(--line-strong); color: var(--ink); }
.account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 11px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.24s ease, opacity 0.24s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

/* Full-bleed photographic banner, one picture per screen, exactly as the
   artwork was designed (1920×600, never cropped at deskop widths).  The
   photographs already print their own headline along the bottom edge and put
   the product in the middle of the frame, so *our* copy is not laid over the
   picture at all: it lives in a light band directly underneath, where it can
   never bury the product or fight the printed headline. */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--paper);
}

.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  aspect-ratio: 1920 / 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- copy band ------------------------------------------------------ */

.hero-band {
  position: relative;
  background: var(--dark);
  border-bottom: 1px solid var(--line);
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 520px at 94% -30%, rgba(27, 92, 255, 0.07), transparent 72%);
  pointer-events: none;
}
.hero-band-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(18px, 2.1vw, 27px) 0 clamp(20px, 2.3vw, 30px);
}

/* Right-hand column: the call to action rides at heading level, the slide
   indicator sits under it — which keeps the headline block free to fill the
   band on its own, so the band stays shallow. */
.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
/* Base .hero-actions is shared with the inner pages' page-hero. */
.hero-band .hero-actions { gap: 12px; margin-top: 0; }
/* The three primary buttons share one grid cell, so the row never reflows as
   the carousel turns; only the one matching the active slide is visible. */
.hero-cta-slot { display: grid; }
.hero-cta-slot .btn {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.hero-cta-slot .btn.is-active { opacity: 1; visibility: visible; }

/* All three copy panes share one grid cell, so the band keeps the height of
   the longest one and never jumps as the carousel turns. */
.hero-copies { display: grid; }
.hero-copy-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}
.hero-copy-slide.is-active { opacity: 1; visibility: visible; transform: none; }

.hero .eyebrow { margin-bottom: 10px; }
.hero h1 {
  color: var(--ink);
  max-width: 26ch;
  font-size: clamp(1.6rem, 2.6vw, 2.24rem);
}
.hero-copy {
  max-width: 66ch;
  margin-top: 9px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  color: var(--body);
}
/* Button row base class is shared with the inner pages' page-hero. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Slide indicator: bottom-right of the band, clear of every picture. */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-dots { display: flex; gap: 7px; }
.hero-dot {
  width: 26px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 2px;
  background: rgba(10, 14, 23, 0.16);
  cursor: pointer;
  transition: background-color 0.24s ease, width 0.24s ease;
}
.hero-dot.is-active { width: 40px; background: var(--brand); }
.hero-nav { display: flex; gap: 8px; }
.hero-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}
.hero-arrow:hover { background: var(--paper-3); border-color: var(--ink); }
.hero-arrow svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* --------------------------------------------------------------- sections */

.grid { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;   /* anchors the agency badge in the card corner */
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }

/* Distributed-brand marker: a product we represent rather than build ourselves
   (text comes from the record's `badge_zh` / `badge_en`). */
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(10, 14, 23, 0.84);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}
.hero-eyebrow-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-eyebrow-row .eyebrow { margin-bottom: 0; }
.badge-agency {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 14, 23, 0.84);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.card-art {
  --art-line: rgba(10, 14, 23, 0.28);
  --art-grid: rgba(10, 14, 23, 0.05);
  --art-panel: rgba(10, 14, 23, 0.03);
  --art-screen: var(--brand-soft);
  --art-label: rgba(10, 14, 23, 0.42);
  padding: 22px 22px 0;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
}
.card-art .art-svg { width: 100%; }

.card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.card-body h3 { margin: 0; }
.card-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-body p { font-size: 0.95rem; }
.card-foot { margin-top: auto; padding-top: 8px; }

.card--flat { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 26px; }
.card--flat h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card--flat p { font-size: 0.94rem; }

.feature-index {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 14px;
}

.panel {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.panel--dark { background: var(--dark-2); border-color: var(--dark-line); color: var(--body); }
.panel--dark h3, .panel--dark h4 { color: var(--ink); }

/* -------------------------------------------------------------- metrics */

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { padding: 28px 24px; background: var(--paper); }
.metric strong { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 680; color: var(--ink); letter-spacing: -0.03em; }
.metric span { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--muted); }

.section--dark .metrics { background: var(--dark-line); border-color: var(--dark-line); }
.section--dark .metric { background: var(--dark); }
.section--dark .metric strong { color: var(--ink); }
.section--dark .metric span { color: var(--muted); }

/* ------------------------------------------------------------------ forms */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
/* `.field` sets display:flex, which beats the UA rule for the `hidden`
   attribute — without this, conditionally hidden fields stay visible. */
.field[hidden] { display: none; }
.field > label { font-size: 0.84rem; font-weight: 600; color: var(--body-strong); }
.field .req { color: var(--brand); margin-left: 4px; }
.field .opt { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 0.78rem; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 38px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* Two-column page split (contact / after-sales). Collapses on small screens —
   inline styles could not be overridden by the media queries. */
.split-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 960px) {
  .split-2 { grid-template-columns: 1fr; }
}

.form-note { font-size: 0.82rem; color: var(--muted); }

.form-message {
  display: none;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.form-message.is-visible { display: block; }
.form-message.is-success { background: rgba(20, 140, 90, 0.08); border-color: rgba(20, 140, 90, 0.25); color: #10714a; }
.form-message.is-error { background: rgba(206, 48, 48, 0.07); border-color: rgba(206, 48, 48, 0.22); color: #b02a2a; }
.form-message.is-info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }

.file-drop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  font-size: 0.88rem;
}
.file-drop input[type="file"] { display: none; }
.file-drop .file-name { color: var(--muted); font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -------------------------------------------------------------- enquiry */

.inquiry-band { background: var(--paper-2); border-top: 1px solid var(--line); }
.inquiry-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.inquiry-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }

/* --------------------------------------------------------------- inquiry list */

.record-list { display: flex; flex-direction: column; gap: 12px; }
.record {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.record-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.record-top strong { color: var(--ink); font-weight: 600; }
.record-top time { font-size: 0.8rem; color: var(--muted); }
.record-meta { margin-top: 8px; font-size: 0.86rem; color: var(--body); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.record-message { margin-top: 10px; font-size: 0.9rem; color: var(--body-strong); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--body-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.badge--brand { background: var(--brand-soft); color: var(--brand-dark); }

/* ------------------------------------------------------------------ tabs */

.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); }
.tab {
  flex: 1;
  padding: 10px 14px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--paper-2);
  color: var(--body);
  padding: clamp(56px, 6vw, 88px) 0 28px;
  border-top: 1px solid var(--line);
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 64px); }
.footer-logo { display: flex; align-items: center; }
.footer-logo img { display: block; height: 42px; width: auto; }
.footer-tagline { margin: 14px 0 0; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.footer-slogan { margin: 14px 0 26px; font-size: 0.9rem; color: var(--body); }
.footer-contact li { display: flex; gap: 12px; font-size: 0.88rem; padding: 6px 0; }
.footer-contact span { flex: 0 0 86px; color: var(--muted); white-space: nowrap; }
.footer-contact a { color: var(--body-strong); }
.footer-contact a:hover { color: var(--brand); text-decoration: underline; }
.footer-contact em { font-style: normal; color: var(--body-strong); }

/* Three link columns: company, products, support. */
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-col h4 { margin-bottom: 16px; color: var(--ink); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-col a { display: block; padding: 4px 0; font-size: 0.88rem; color: var(--body); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 4vw, 60px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-domain { font-family: var(--mono); letter-spacing: 0.08em; }

/* ------------------------------------------------------------- page top */

.page-hero {
  background: var(--paper-2);
  color: var(--body);
  padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(52px, 6vw, 84px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 82% 0%, rgba(27, 92, 255, 0.09), transparent 60%);
  pointer-events: none;
}
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { color: var(--ink); max-width: 22ch; }
.page-hero .lead { max-width: 62ch; margin-top: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.8rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span::after { content: "/"; margin-left: 8px; opacity: 0.5; }
.breadcrumb em { font-style: normal; color: var(--body-strong); }

/* --------------------------------------------------------------- filters */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--body-strong);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------- product detail */

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-art {
  --art-line: rgba(10, 14, 23, 0.28);
  --art-grid: rgba(10, 14, 23, 0.05);
  --art-panel: rgba(10, 14, 23, 0.03);
  --art-screen: var(--brand-soft);
  --art-label: rgba(10, 14, 23, 0.42);
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  width: 38%;
  padding: 14px 18px 14px 0;
  text-align: left;
  vertical-align: top;
  font-weight: 600;
  color: var(--body-strong);
}
.spec-table td { padding: 14px 0; color: var(--body); }

.model-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.model-card { padding: 20px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); background: var(--paper); }
.model-card strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.model-card p { font-size: 0.88rem; margin: 0; }

.highlight-item { padding: 22px 0; border-top: 1px solid var(--line); }
.highlight-item:first-child { border-top: 0; padding-top: 0; }
.highlight-item strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 8px; }
.highlight-item p { font-size: 0.93rem; margin: 0; }

.check-list li { position: relative; padding: 7px 0 7px 26px; font-size: 0.93rem; }

#productAccessories.has-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
#productAccessories li.acc-card { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
#productAccessories li.acc-card::before { display: none; }
#productAccessories li.acc-card img { display: block; width: 100%; aspect-ratio: 3 / 2; background: #fff; }
#productAccessories .acc-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
#productAccessories .acc-card-body strong { font-size: 0.88rem; color: var(--strong); line-height: 1.35; }
#productAccessories .acc-card-body span { font-size: 0.8rem; color: var(--body); line-height: 1.45; }
#productAccessories .acc-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
#productAccessories li .acc-tag { margin-left: 8px; }
.acc-note { margin: 6px 0 12px; font-size: 0.84rem; color: var(--brand-dark); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.82rem; color: var(--body-strong); background: var(--paper); }
/* Use-case pills on the product detail page: soft tinted chips. */
#productUseCases { gap: 12px; }
#productUseCases .pill {
  padding: 11px 22px;
  font-size: 1.02rem;
  font-weight: 500;
  background: #e6f6f0;
  border-color: #d3ece1;
  color: #0e7c5f;
}

/* ------------------------------------------------------------------ news */

.news-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background-color 0.2s ease; }
.news-item:hover { background: var(--paper-2); }
.news-item time { font-size: 0.84rem; color: var(--muted); font-family: var(--mono); }
.news-item h3 { margin-bottom: 8px; font-size: 1.12rem; }
.news-item p { font-size: 0.92rem; margin: 0; }
/* The news row's "view details" pill keeps its own size/alignment; colour and
   shape come from .btn-detail. */
.news-item .news-go { align-self: center; padding: 10px 20px; font-size: 0.92rem; }

.article { max-width: 760px; }
.article-body { font-size: 1.03rem; line-height: 1.85; color: var(--body-strong); }
.article-body p { margin: 0 0 1.3em; }

/* --------------------------------------------------------------- support */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 4px;
}
.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.doc-chip:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(27, 92, 255, 0.14); }
.chip-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 4px;
  padding: 3px 6px;
}
.chip-arrow { color: var(--brand); font-weight: 400; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0 0 8px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cat-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.cat-icon {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.cat-meta { flex: 1; min-width: 0; }
.cat-meta strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; }
.cat-meta span { font-size: 0.84rem; color: var(--muted); }
.cat-arrow { font-size: 1rem; color: var(--brand); }

/* ------------------------------------------------------- download centre */

/* 型号检索框：80+ 个型号，靠它把列表收窄 */
.dl-search { position: relative; max-width: 380px; margin: 0 0 30px; }
.dl-search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dl-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dl-search .dl-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* 分类分组 */
.dl-cat { margin: 0 0 38px; scroll-margin-top: calc(var(--header-h) + 16px); }
.dl-cat-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.dl-cat-head h3 { margin: 0; font-size: 1.06rem; color: var(--ink); font-weight: 600; }
.dl-cat-head .dl-count { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

/* 型号卡片网格 */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 12px; }
.model-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.model-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.model-card strong { color: var(--ink); font-size: 0.98rem; font-weight: 600; }
.model-card .model-meta { font-size: 0.79rem; color: var(--muted); line-height: 1.5; }
.model-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1px; }
.mini-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.mini-tag.is-fw { background: rgba(14, 124, 95, 0.1); color: #0e7c5f; }

/* 详情页：固件 / 说明书分组 */
.dl-group { margin: 0 0 32px; }
.dl-group-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.dl-group-head h3 { margin: 0; font-size: 1rem; color: var(--body-strong); font-weight: 600; }
.dl-group-head .dl-count { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.chip-size { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); font-weight: 400; }
/* 固件体积大，给个绿色标签和下载提示，和说明书药丸区分开 */
.doc-chip.is-fw .chip-tag { background: rgba(14, 124, 95, 0.1); color: #0e7c5f; }

/* 提示条 */
.dl-note {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--body-strong);
  margin: 0 0 30px;
}
.dl-note strong { color: var(--ink); }

.dl-back { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--brand-dark); margin: 0 0 20px; }
.dl-placeholder { color: var(--muted); }
.dl-empty { padding: 34px 0; color: var(--muted); font-size: 0.94rem; }
.dl-empty.is-hidden { display: none; }
.dl-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dl-hero-tags .mini-tag { font-size: 0.68rem; padding: 4px 9px; }

/* ----------------------------------------------------------------- login */

.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-aside {
  position: relative;
  padding: calc(var(--header-h) + 60px) clamp(32px, 5vw, 72px) 60px;
  background: var(--paper-2);
  color: var(--body);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 20% 20%, rgba(27, 92, 255, 0.1), transparent 62%);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: var(--ink); max-width: 18ch; }
.auth-points { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.auth-point { display: flex; gap: 12px; font-size: 0.92rem; }
.auth-point b { color: var(--ink); font-weight: 600; display: block; }
.auth-point i {
  flex: 0 0 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--brand);
}
.auth-main { display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 48px) var(--gutter) 60px; background: var(--paper); }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.auth-switch { display: flex; gap: 18px; margin-bottom: 26px; font-size: 0.88rem; }
.auth-switch button { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; font-weight: 600; }
.auth-switch button.is-active { color: var(--brand); }

/* --------------------------------------------------------------- account */

.account-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
.account-nav button {
  text-align: left;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.account-nav button:hover { background: var(--paper-2); color: var(--ink); }
.account-nav button.is-active { background: var(--ink); color: #fff; }

.identity-card { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.identity-avatar {
  flex: 0 0 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  overflow: hidden;
}
.identity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.identity-meta strong { display: block; color: var(--ink); font-size: 1.05rem; }
.identity-meta span { font-size: 0.84rem; color: var(--muted); word-break: break-all; }

/* ------------------------------------------------------------- art / svg */

.art-svg { overflow: visible; }
.art-svg .art-grid path { fill: none; stroke: var(--art-grid); stroke-width: 1; }
.art-svg .art-main path,
.art-svg .art-main rect,
.art-svg .art-main circle,
.art-svg .art-marks path,
.art-svg .art-marks rect,
.art-svg .art-marks circle { fill: none; stroke: var(--art-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-svg .art-accent { stroke: var(--brand); }
.art-svg .art-panel { fill: var(--art-panel); }
.art-svg .art-screen { fill: var(--art-screen); }
.art-svg .art-dot { fill: #ff4d4f; stroke: none; }
.art-svg .art-label { fill: var(--art-label); stroke: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }

/* ----------------------------------------------------------------- misc */

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 37%, var(--paper-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.skeleton-card { height: 340px; }
.skeleton-line { height: 14px; margin-bottom: 12px; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.88rem;
}
.notice.is-hidden { display: none; }

.empty-state { padding: 48px 0; text-align: center; color: var(--muted); font-size: 0.95rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 12px; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1260px) {
  .brand-tagline { display: none; }
  .nav-link { padding: 9px 10px; font-size: 0.9rem; }
  .lang-switch button { padding: 4px 9px; }
}

@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Anywhere below the artwork's own width the banner keeps its 3.2:1 ratio
     and scales down whole — no crop, so the printed headline strip can never
     come back half-cut.  Only the copy band goes single-column. */
  .hero-slide { aspect-ratio: auto; }
  .hero-photo { position: static; width: 100%; height: auto; }

  .hero-band-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }
  /* One row again: buttons left, indicator right. */
  .hero-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--gutter) 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    /* The drawer is a fixed overlay. `.nav-sub` below re-declares
       `visibility: visible` so the submenu stays expanded inside the drawer —
       and because `visibility` is inherited but overridable, those child links
       stayed clickable even while the drawer was closed, silently swallowing
       taps aimed at the hero and the cards underneath. Kill hit-testing on the
       whole subtree until the drawer is actually open. */
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-link { padding: 13px 14px; font-size: 1rem; color: var(--body-strong) !important; }
  .nav-link.is-active::after { display: none; }
  /* In the drawer the submenu is always expanded and indented. */
  .nav-item { display: block; }
  .nav-item.has-sub > .nav-link { padding-right: 14px; }
  .nav-item.has-sub::after { display: none; }
  .nav-sub {
    position: static;
    min-width: 0;
    margin: 0 0 4px;
    padding: 0 0 0 14px;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-sub-link { padding: 11px 14px; font-size: 0.95rem; color: var(--muted) !important; }
  .nav-sub-link.is-active { color: var(--brand) !important; background: var(--paper-3); }
  .nav-toggle { display: flex; }
  .header-quote { display: none; }
  .header-account .account-label { display: none; }

  .hero h1 { max-width: none; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inquiry-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding-top: calc(var(--header-h) + 40px); }
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .news-item .news-go { display: none; }
}

@media (max-width: 680px) {
  :root { --header-h: 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
  .brand-logo { height: 28px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* On a phone the un-cropped banner would be a 120px sliver, so it is
     re-framed at 2:1 — and the crop is pushed off whichever side the artwork
     printed its headline on (slides 0/2 print bottom-left, slide 1
     bottom-right). */
  .hero-photo { aspect-ratio: 2 / 1; object-fit: cover; }
  .hero-slide[data-slide="0"] .hero-photo,
  .hero-slide[data-slide="2"] .hero-photo { object-position: 88% center; }
  .hero-slide[data-slide="1"] .hero-photo { object-position: 22% center; }
  .hero-band-inner { padding: 16px 0 20px; gap: 16px; }
  /* Too narrow to hold buttons and indicator side by side: stack them. */
  .hero-aside { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-controls { justify-content: space-between; }
  .hero .btn { padding: 11px 18px; font-size: 0.88rem; }
  .hero-arrow { width: 36px; height: 36px; }
  .card-art { padding: 14px 14px 0; }
}

/* ---------------------------------------------------------------
   Catalogue photos & model line-up (2026 dealer-catalogue update)
   --------------------------------------------------------------- */

/* Real product photos replace the blueprint art where available. */
.card-art--photo { padding: 0; background: #fff; }
.card-art--photo .card-img,
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
.detail-art--photo { padding: 0; overflow: hidden; background: #fff; }
.detail-art--photo img { display: block; width: 100%; height: auto; }
/* Square studio shot on the detail hero: keep it whole and centred. */
.detail-art--photo img.img-fit {
  width: auto;
  max-width: 100%;
  max-height: 440px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 30px);
}

/* Factory collage beside the company profile on the about page. */
.about-photo { margin: 0; }
.about-photo figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* Model line-up grid on the product detail page. */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 22px;
}
.model-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
  scroll-margin-top: calc(var(--header-h) + 22px);
}
.model-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
/* Deep link landed on this card (/products/<slug>#model-N) — flash it. */
.model-card.is-target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 92, 255, 0.28), 0 26px 52px -30px rgba(10, 14, 23, 0.55);
}
.model-card.is-target:hover { transform: none; }
.model-media {
  background: linear-gradient(180deg, var(--paper-2), #fff);
  border-bottom: 1px solid var(--line);
}
.model-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* Square white-background studio shots (the CarPlay adapter line) must never be
   cropped: show the whole product, centred, with breathing room around it.
   Applied via `Spedal.fitClass(slug)` in the page scripts. */
.model-media.img-fit { background: #fff; }
.model-media img.img-fit {
  object-fit: contain;
  padding: clamp(18px, 2.4vw, 32px);
}

/* Extra shots shipped with `imgs: [...]` are stacked under the main picture.
   They are scene photos that fill their own frame, so they go full-bleed
   (no white padding) and are separated from the picture above by a hairline. */
.model-media--multi img + img { border-top: 1px solid var(--line); }
.model-media img.model-shot { padding: 0; }
/* Each shot now sits in its own wrapper so a corner badge can be pinned to
   an individual picture (see modelShotBadge below). */
.model-shot-wrap { display: block; position: relative; }
.model-shot-wrap + .model-shot-wrap { border-top: 1px solid var(--line); }
/* Landscape layout for models with three or more pictures: the main shot keeps
   the full width and the remaining ones sit two-up underneath. */
.model-media--split .model-shot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.model-shot-row .model-shot-wrap + .model-shot-wrap {
  border-top: 0;
  border-left: 1px solid var(--line);
}
.model-shot-row img.model-shot { aspect-ratio: 16 / 9; }
.model-shot-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 21px 11px 17px;
  border-radius: 999px;
  background-image: linear-gradient(120deg, #1b5cff 0%, #7a3cff 52%, #b23cff 100%);
  color: #fff;
  font-size: clamp(0.92rem, 0.36vw + 0.79rem, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(22, 10, 60, 0.42);
  box-shadow: 0 16px 34px -14px rgba(46, 40, 190, 0.98), inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  animation: shotBadgePulse 2.6s ease-in-out infinite;
}
.model-shot-badge::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6bffb0;
  box-shadow: 0 0 11px rgba(107, 255, 176, 0.98);
}
@keyframes shotBadgePulse {
  0%, 100% { box-shadow: 0 16px 34px -14px rgba(46, 40, 190, 0.98), inset 0 0 0 1px rgba(255, 255, 255, 0.36); }
  50% { box-shadow: 0 22px 44px -13px rgba(130, 60, 255, 0.98), inset 0 0 0 1px rgba(255, 255, 255, 0.52); }
}
@media (prefers-reduced-motion: reduce) {
  .model-shot-badge { animation: none; }
}
.card-img.img-fit {
  object-fit: contain;
  padding: 18px;
}
.model-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; flex: 1; }
.model-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.model-name { margin: 0; font-size: 1.12rem; color: var(--ink); }
.model-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 650;
}
.model-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.model-chips span {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper-2);
  color: var(--body-strong);
  font-size: 0.75rem;
  font-family: var(--mono, ui-monospace, monospace);
}
.model-specs { margin: 0; display: grid; gap: 6px; font-size: 0.87rem; }
.model-specs > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.model-specs dt { color: rgba(10, 14, 23, 0.52); white-space: nowrap; }
.model-specs dd { margin: 0; color: var(--body-strong); }
.model-extra { margin: 0; font-size: 0.88rem; color: var(--body); }
.fitment { border-top: 1px dashed var(--line-strong); padding-top: 12px; margin-top: auto; }
.fitment h4 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 14, 23, 0.52);
}
.fitment .pill { padding: 3px 10px; font-size: 0.74rem; }
.fitment-note { margin: 0; font-size: 0.9rem; color: var(--body-strong); }

/* ------------------------------------------------- store (Shopify) links */

.model-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.model-buy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.model-buy:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --------------------------------------------------------- new arrival drop */

.newdrop {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 6vw, 96px) 0;
  background-color: #080c15;
  background-image:
    radial-gradient(70% 150% at 6% -25%, rgba(27, 92, 255, 0.38) 0%, rgba(27, 92, 255, 0) 62%),
    radial-gradient(60% 140% at 104% 125%, rgba(27, 92, 255, 0.22) 0%, rgba(27, 92, 255, 0) 58%),
    linear-gradient(120deg, #070a12 0%, #101827 58%, #080c15 100%);
  color: rgba(255, 255, 255, 0.74);
}
.newdrop-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 72px);
}
.newdrop-media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
  padding: clamp(14px, 1.6vw, 20px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 38px 72px -32px rgba(3, 7, 16, 0.9);
}
.newdrop-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.newdrop-tag {
  align-self: flex-start;
  padding: clamp(10px, 1vw, 14px) clamp(22px, 2.2vw, 34px);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffa62b 0%, #f97316 48%, #ea580c 100%);
  color: #fff;
  font-size: clamp(1.02rem, 0.42vw + 0.92rem, 1.22rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 16px 30px -12px rgba(234, 88, 12, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.newdrop-body .eyebrow { color: #7fa6ff; }
.newdrop-body h2 { color: #fff; }
.newdrop-body .lead {
  max-width: 54ch;
  margin-top: 12px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}
.newdrop-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.newdrop-feats li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.newdrop-feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 92, 255, 0.24);
}
.newdrop-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.newdrop .btn-primary { box-shadow: 0 18px 36px -16px rgba(27, 92, 255, 0.95); }
.newdrop .btn-ghost { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.newdrop .btn-ghost:hover:not(:disabled) { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 980px) {
  .newdrop-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .newdrop-media { order: -1; }
}
@media (max-width: 560px) {
  .newdrop-feats { grid-template-columns: minmax(0, 1fr); }
  .newdrop-cta .btn { flex: 1 1 100%; }
}

.shop-band {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 5.5vw, 84px) 0;
  background-color: #080c15;
  background-image:
    radial-gradient(90% 170% at 94% -30%, rgba(27, 92, 255, 0.42) 0%, rgba(27, 92, 255, 0) 62%),
    radial-gradient(70% 140% at 2% 130%, rgba(27, 92, 255, 0.2) 0%, rgba(27, 92, 255, 0) 58%),
    linear-gradient(115deg, #070a12 0%, #121b2f 55%, #080c15 100%);
  color: rgba(255, 255, 255, 0.74);
}
.shop-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.shop-band .eyebrow { color: #7fa6ff; }
.shop-band h2 { color: #fff; }
.shop-band .lead { max-width: 62ch; margin-top: 12px; margin-bottom: 0; color: rgba(255, 255, 255, 0.74); }
.shop-band-cta { display: grid; justify-items: start; gap: 10px; }
.shop-band .btn-primary { box-shadow: 0 18px 36px -16px rgba(27, 92, 255, 0.95); }
.shop-band-note {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------ AI assistant */

.ai-fab {
  position: fixed;
  z-index: 60;
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 34px -18px rgba(27, 92, 255, 0.8);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ai-fab:hover { background: var(--brand-dark); transform: translateY(-2px); }
.ai-fab.is-active { background: var(--ink-soft); }
.ai-fab-icon { display: grid; place-items: center; }
.ai-fab-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.ai-panel {
  position: fixed;
  z-index: 61;
  right: clamp(16px, 2.2vw, 28px);
  bottom: calc(clamp(16px, 2.2vw, 28px) + 62px);
  width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 150px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.ai-panel.is-open { display: flex; }

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--ink);
  color: #fff;
}
.ai-head-text strong { display: block; font-size: 0.95rem; }
.ai-head-text span { font-size: 0.74rem; color: rgba(255, 255, 255, 0.66); }
.ai-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.ai-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.ai-chips {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.ai-chip {
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--body-strong);
  font-family: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.ai-chip:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-dark); }

.ai-list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 16px;
  overflow-y: auto;
  background: var(--paper-2);
}
.ai-msg p { margin: 0; font-size: 0.88rem; line-height: 1.6; }
.ai-msg--bot { justify-self: start; }
.ai-msg--bot p {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  background: var(--paper);
  color: var(--body-strong);
}
.ai-msg--user { justify-self: end; }
.ai-msg--user p {
  padding: 10px 12px;
  border-radius: 12px 12px 4px 12px;
  background: var(--brand);
  color: #fff;
}
.ai-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
}

.ai-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.ai-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink);
}
.ai-input:focus { outline: none; border-color: var(--brand); }
.ai-send {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.ai-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.ai-human {
  display: grid;
  gap: 4px;
  padding: 10px 14px 14px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.ai-human-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.ai-human-mail a { color: var(--brand); }

@media (max-width: 680px) {
  .shop-band-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ai-panel { bottom: calc(clamp(16px, 2.2vw, 28px) + 58px); max-height: min(560px, calc(100vh - 130px)); }
  .ai-fab { padding: 11px 15px 11px 12px; font-size: 0.85rem; }
}
