/* ============================================================================
   TradeGo — Public storefront design system
   4 switchable colour themes via [data-theme] on <html>:
     graphite (dark gold) · azure (dark blue) · linen (light) · evergreen (dark green)
   Fonts are loaded in partials/head.ejs (Sora + IBM Plex Sans) with preconnect.
   Admin back-office styles live in /css/admin.css (untouched).
   ============================================================================ */

/* ---------- Theme-agnostic tokens ---------- */
:root {
  /* Typography */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Spacing — 8pt grid */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* Radius */
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;

  --container: 1240px;

  /* Default (fallback) theme = graphite, so the site never renders unstyled */
  --bg:#0c0e11; --bg-1:#111419; --bg-2:#171b21; --bg-3:#1e232b;
  --line:#262c35; --line-soft:#1a1f26;
  --text:#eef1f4; --text-2:#aab2bd; --text-3:#6b7280;
  --accent:#c9a86a; --accent-2:#e2c98f;
  --accent-soft:rgba(201,168,106,.10); --accent-line:rgba(201,168,106,.32);
  --on-accent:#1a1408; --ok:#6fcf97;
  --topbar-bg:#08090b; --header-bg:rgba(12,14,17,.72); --header-bg-scrolled:rgba(10,12,15,.9);
  --footer-bg:#08090b;
  --sh-1:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35);
  --sh-2:0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px rgba(0,0,0,.45);
  --grain-1:rgba(201,168,106,.06); --grain-2:rgba(120,140,170,.05);
  --theme-color:#0c0e11;
}

/* ---------- PRESET 1 · GRAPHITE (dark gold) ---------- */
:root[data-theme="graphite"] {
  --bg:#0c0e11; --bg-1:#111419; --bg-2:#171b21; --bg-3:#1e232b;
  --line:#262c35; --line-soft:#1a1f26;
  --text:#eef1f4; --text-2:#aab2bd; --text-3:#6b7280;
  --accent:#c9a86a; --accent-2:#e2c98f;
  --accent-soft:rgba(201,168,106,.10); --accent-line:rgba(201,168,106,.32);
  --on-accent:#1a1408; --ok:#6fcf97;
  --topbar-bg:#08090b; --header-bg:rgba(12,14,17,.72); --header-bg-scrolled:rgba(10,12,15,.92);
  --footer-bg:#08090b;
  --sh-1:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35);
  --sh-2:0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px rgba(0,0,0,.45);
  --grain-1:rgba(201,168,106,.06); --grain-2:rgba(120,140,170,.05);
  --theme-color:#0c0e11;
}

/* ---------- PRESET 2 · AZURE (dark blue, Dawnice-inspired) ---------- */
:root[data-theme="azure"] {
  --bg:#0a1424; --bg-1:#0f1d33; --bg-2:#122340; --bg-3:#16304f;
  --line:#1d3350; --line-soft:#142844;
  --text:#eaf2fb; --text-2:#9db4cc; --text-3:#5e7793;
  --accent:#2f9be0; --accent-2:#5fc4f0;
  --accent-soft:rgba(47,155,224,.12); --accent-line:rgba(47,155,224,.40);
  --on-accent:#04121f; --ok:#46d6c0;
  --topbar-bg:#07101d; --header-bg:rgba(10,20,36,.72); --header-bg-scrolled:rgba(7,16,29,.92);
  --footer-bg:#07101d;
  --sh-1:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.40);
  --sh-2:0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px rgba(0,0,0,.50);
  --grain-1:rgba(47,155,224,.08); --grain-2:rgba(25,194,201,.06);
  --theme-color:#0a1424;
}

/* ---------- PRESET 3 · LINEN (light, clean corporate) ---------- */
:root[data-theme="linen"] {
  --bg:#ffffff; --bg-1:#f4f6f9; --bg-2:#ffffff; --bg-3:#eef1f5;
  --line:#dbe0e7; --line-soft:#e9edf2;
  --text:#1a2230; --text-2:#4a5568; --text-3:#8a93a3;
  --accent:#2563eb; --accent-2:#1d4ed8;
  --accent-soft:rgba(37,99,235,.08); --accent-line:rgba(37,99,235,.30);
  --on-accent:#ffffff; --ok:#1f9d6b;
  --topbar-bg:#f4f6f9; --header-bg:rgba(255,255,255,.80); --header-bg-scrolled:rgba(255,255,255,.96);
  --footer-bg:#0f172a;
  --sh-1:0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px rgba(15,23,42,.08);
  --sh-2:0 1px 0 rgba(255,255,255,.7) inset, 0 18px 50px rgba(15,23,42,.12);
  --grain-1:rgba(37,99,235,.05); --grain-2:rgba(30,58,138,.04);
  --theme-color:#ffffff;
}

/* ---------- PRESET 4 · EVERGREEN (dark green) ---------- */
:root[data-theme="evergreen"] {
  --bg:#0a1410; --bg-1:#0f1d18; --bg-2:#122720; --bg-3:#163029;
  --line:#1d3a30; --line-soft:#142a23;
  --text:#e7f3ec; --text-2:#9bc4b1; --text-3:#5e8576;
  --accent:#2ecc8f; --accent-2:#5fe0ad;
  --accent-soft:rgba(46,204,143,.12); --accent-line:rgba(46,204,143,.40);
  --on-accent:#042018; --ok:#7ee0a8;
  --topbar-bg:#07100c; --header-bg:rgba(10,20,16,.72); --header-bg-scrolled:rgba(7,16,12,.92);
  --footer-bg:#07100c;
  --sh-1:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.40);
  --sh-2:0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px rgba(0,0,0,.50);
  --grain-1:rgba(46,204,143,.07); --grain-2:rgba(120,200,160,.05);
  --theme-color:#0a1410;
}

/* ===================== RESET / BASE ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
body::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--grain-1), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--grain-2), transparent 60%);
  transition: background var(--dur) var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }

/* ---- CJK (zh) typography: neutral tracking + relaxed leading so Chinese pages
   feel as airy as the Latin ones (font stack already falls back to PingFang/YaHei) ---- */
body:lang(zh) { line-height: 1.78; letter-spacing: .2px; }
h1:lang(zh), h2:lang(zh), h3:lang(zh), h4:lang(zh), h5:lang(zh), h6:lang(zh) { letter-spacing: .01em; line-height: 1.3; }
.hero h1:lang(zh), .page-hero h1:lang(zh), .product-title:lang(zh) { letter-spacing: .01em; line-height: 1.24; }
.section-head h2:lang(zh), .section-title:lang(zh) { line-height: 1.3; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===================== LAYOUT ===================== */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; position: relative; z-index: 1; }
.container.narrow { max-width: 900px; }
#main { position: relative; z-index: 1; }
#main > .container { padding-top: clamp(28px, 5vw, 56px); padding-bottom: var(--s5); }

.section { padding-block: var(--s6); position: relative; }
.section--tight { padding-block: var(--s5); }
.section-alt { background: var(--bg-1); border-block: 1px solid var(--line-soft); transition: background var(--dur) var(--ease); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 20ch; }
.section-head p { color: var(--text-3); margin-top: 8px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; }
.section-lead { color: var(--text-2); max-width: 56ch; margin-top: var(--s2); font-size: 1.05rem; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s2);
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: var(--accent-line); }

.link-all { color: var(--accent-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.link-all:hover { color: var(--accent); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  font-family: var(--font-body);
  transition: transform .2s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
  cursor: pointer; line-height: 1.1;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary, .btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px var(--accent-soft); }
.btn-primary:hover, .btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-2); transform: translateY(-2px); }
.btn-dark { background: var(--bg-3); color: var(--text); border-color: var(--line); }
.btn-dark:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--topbar-bg); border-bottom: 1px solid var(--line-soft);
  font-size: 13px; color: var(--text-3); position: relative; z-index: 60;
  transition: background var(--dur) var(--ease), margin-top .45s var(--ease);
}
/* Auto-collapse: after a few seconds the strip slides up out of view, freeing
   the space for content. Hovering the top edge of the viewport reveals it. */
body.tb-collapsed .topbar { margin-top: calc(-1 * var(--tb-h, 42px) - 1px); }
.topbar .container, .topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: var(--s3); }
.topbar a:hover { color: var(--text); }
.topbar .tb-right { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.tb-left { white-space: nowrap; overflow: hidden; }
.tb-brand { font-weight: 700; font-size: 13.5px; letter-spacing: .04em; color: var(--text); }
.topbar .dot { color: var(--accent); }
.topbar .tb-sep { opacity: .4; }
.topbar-link { color: var(--text-3); text-decoration: none; font-size: 13px; padding: 5px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.topbar-link:hover { color: var(--accent-2); border-color: var(--accent-line); background: var(--bg-2); }

/* Theme switcher */
.theme-switch { display: inline-flex; align-items: center; gap: 7px; }
.theme-switch .ts-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-right: 2px; }
.theme-swatch {
  width: 18px; height: 18px; border-radius: 50%; padding: 0; border: 2px solid transparent;
  background: var(--sw); position: relative; transition: transform .15s var(--ease), border-color .15s;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.theme-swatch:hover { transform: scale(1.12); }
.theme-swatch.active { border-color: var(--text); }
.theme-swatch.active::after { content:""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--text-3); }

/* ===================== HEADER / NAV ===================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled { border-color: var(--line); background: var(--header-bg-scrolled); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--s3); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; font-family: var(--font-display); font-weight: 700; letter-spacing: .03em; font-size: 1.12rem; line-height: 1.15; }
/* Name and slogan must always read in full — never squeezed into a wrapping,
   half-clipped block when the viewport narrows. */
.brand > span:not(.mark) { white-space: nowrap; }
.brand .mark {
  /* Auto-sized: the box hugs the characters instead of clipping them —
     a fixed 36px square used to clip a four-character mark. */
  width: auto; height: auto; min-width: 36px; min-height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  display: inline-grid; place-items: center; color: var(--on-accent); font-weight: 800; font-size: 15px;
  padding: 6px 9px;
  box-shadow: var(--sh-1);
}
.brand small { display: block; font-family: inherit; font-weight: 400; font-size: 11px; letter-spacing: .02em; line-height: 1.3; margin-top: 2px; color: var(--text-3); white-space: nowrap; }
/* Single-line monogram — text comes from 站点名称 (see header.ejs); one row,
   the box hugs whatever the name resolves to. */
.mark-4 { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-indent: 1px; line-height: 1; white-space: nowrap; }
/* Uploaded logo (admin → 设置 → 品牌 Logo). Height comes from the inline style
   so the admin controls it; width follows the artwork's own ratio. */
.brand-logo { display: block; height: 36px; width: auto; max-width: 240px; object-fit: contain; flex: none; }

.main-nav { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }
.main-nav > a, .nav-link, .nav-item-head .nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s, background .2s;
}
.main-nav > a:hover, .nav-link:hover, .nav-item.open > .nav-item-head > .nav-link,
.main-nav > a.active, .nav-link.active { color: var(--text); background: var(--bg-2); }

.nav-item { position: relative; }
.nav-item-head { display: flex; align-items: center; }
.nav-caret {
  background: none; border: 0; color: var(--text-3); padding: 6px; margin-left: -4px; cursor: pointer;
  display: inline-flex; align-items: center;
}
.nav-caret .caret { font-size: 10px; transition: transform .2s; }
.nav-item.open > .nav-item-head > .nav-caret .caret { transform: rotate(180deg); }

/* ===================== MEGA DROPDOWN =====================
   Professional 6-column grid: each L2 category becomes a vertical column,
   L3 links stack underneath. Scales down to 5 / 3 columns on smaller screens. */
.nav-dropdown {
  list-style: none; padding: var(--s3); margin: 0;
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px; width: max-content; max-width: min(720px, calc(100vw - 48px)); display: none;
  background: var(--header-bg-scrolled); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2); z-index: 60;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.nav-item.open > .nav-dropdown { display: block; transform: translateX(-50%) translateY(0); }
.nav-dropdown.mega { display: none; }
/* Six-column responsive grid: columns auto-fit so the panel shows as many
   columns as the viewport allows (≈6 on wide screens, fewer when narrow),
   and the whole panel is capped to the viewport width. */
.nav-item.open > .nav-dropdown.mega {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 30px 32px;
  width: min(1180px, calc(100vw - 64px));
  padding: 36px 44px;
  align-items: start;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.mega-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  padding: 0 0 10px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.mega-head::before {
  content: "";
  width: 4px; height: 16px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}
.mega-head:hover { color: var(--accent-2); background: transparent; }

.mega-list { display: flex; flex-direction: column; gap: 3px; }
.mega-list a {
  display: block;
  padding: 5px 0 5px 12px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color .2s, background .2s, transform .2s;
}
.mega-list a:hover {
  color: var(--accent-2);
  background: var(--bg-2);
  transform: translateX(4px);
}

.mega-leaf { color: var(--accent) !important; font-weight: 600; }
.nav-dropdown-all { display: block; margin-top: 8px; padding: 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--accent-2) !important; font-weight: 600; }

/* Desktop: reveal mega menus on hover (keyboard/click via .open still works) */
@media (min-width: 1081px) {
  .nav-item.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; }
  .nav-item.has-dropdown:hover > .nav-dropdown { display: block; transform: translateX(-50%) translateY(0); }
  .nav-item.has-dropdown:hover > .nav-dropdown.mega {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 30px 32px;
    width: min(1180px, calc(100vw - 64px));
  }
}

/* Smaller desktop: tighter mega menu padding */
@media (max-width: 1080px) and (min-width: 861px) {
  .nav-item.open > .nav-dropdown.mega {
    max-width: min(860px, calc(100vw - 48px));
    padding: 28px 32px;
    gap: 24px;
  }
}

.header-actions { display: flex; align-items: center; gap: var(--s2); }
.search-form { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 12px; height: 40px; }
.search-form .ico { color: var(--text-3); flex: none; }
.search-form input { background: none; border: 0; outline: none; color: var(--text); font-size: 14px; width: 150px; }
.search-form input::placeholder { color: var(--text-3); }

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-2); border-radius: var(--r-pill); padding: 8px 12px; font-size: 13px; font-weight: 600;
}
.lang-btn:hover { color: var(--text); border-color: var(--accent-line); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; display: none;
  background: var(--header-bg-scrolled); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-2); padding: 6px; z-index: 60; backdrop-filter: blur(16px);
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14px; }
.lang-menu a:hover, .lang-menu a.active { background: var(--bg-2); color: var(--accent-2); }

.cart-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 600; position: relative; }
.cart-link:hover { color: var(--accent-2); }
.cart-badge { background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; border-radius: var(--r-pill); padding: 1px 7px; }

.nav-toggle {
  display: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  width: 44px; height: 44px; color: var(--text); align-items: center; justify-content: center;
}

.nav-cta { display: flex; align-items: center; gap: var(--s2); }

/* ===================== HERO ===================== */
.hero { position: relative; padding-block: clamp(48px, 8vw, 104px) var(--s6); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s6); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: var(--text-2); font-size: 1.16rem; max-width: 50ch; margin-top: var(--s3); }
.hero-actions { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.hero-stat span { font-size: 13px; color: var(--text-3); letter-spacing: .03em; }

.hero-content { max-width: 60ch; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent); border: 1px solid var(--accent-line);
  padding: 7px 13px; border-radius: var(--r-pill); margin-bottom: var(--s3);
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* Hero visual (orb / rings / tags) */
.hero-visual {
  position: relative; aspect-ratio: 1/1.02; border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 70% 10%, var(--grain-1), transparent 55%), linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; display: grid; place-items: center;
}
.hero-visual .grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(120% 120% at 50% 30%, #000, transparent 75%);
}
.hero-visual .orb {
  width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
  filter: blur(1px); opacity: .92; animation: spin 26s linear infinite; box-shadow: 0 0 80px var(--accent-line);
}
.hero-visual .ring { position: absolute; border: 1px solid var(--accent-line); border-radius: 50%; }
.hero-visual .ring.r1 { inset: 14%; } .hero-visual .ring.r2 { inset: 26%; border-style: dashed; }
.hero-visual .tag {
  position: absolute; font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  background: color-mix(in srgb, var(--bg-2) 82%, transparent); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: var(--r-pill); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-visual .tag.t1 { top: 14%; left: 8%; } .hero-visual .tag.t2 { bottom: 16%; right: 6%; }
.hero-visual .tag b { color: var(--accent-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Fullscreen homepage ad hero (admin → 站点设置 → 首页广告位) =====
   The opening screen IS the ad artwork, edge to edge. Every slide paints the
   SAME file twice: a blurred copy beneath fills the frame while the sharp
   copy loads (and stays a graceful backdrop if a file is ever missing), and
   the sharp copy on top covers the frame (object-fit: cover) so the artwork
   is fullscreen at any viewport — the user's explicit preference over
   letterboxed `contain`. Copy sits in the site gutter (same left edge as the
   header logo) and is revealed with a short stagger. */
.hero--ads {
  /* Fill the opening screen exactly: viewport minus the promo strip and the
     sticky header (both heights are published as --tb-h / --hd-h by main.js).
     When the strip auto-collapses the hero grows by the freed space, so the
     first screen stays edge-to-edge in both states. */
  height: calc(100vh - var(--tb-h, 42px) - var(--hd-h, 77px));
  height: calc(100dvh - var(--tb-h, 42px) - var(--hd-h, 77px));
  min-height: 460px;
  padding-block: 0;
  background: var(--bg-1);
  transition: height .45s var(--ease);
}
body.tb-collapsed .hero--ads {
  height: calc(100vh - var(--hd-h, 77px));
  height: calc(100dvh - var(--hd-h, 77px));
}

/* Regular hero copy that follows the fullscreen banner. It keeps the original
   hero typography / CTAs / stats / art — it is stacked BELOW the ad, never
   removed — with a slightly tighter top gap so it reads as part of the same
   opening block. */
.hero--copy { padding-block: clamp(40px, 5.5vw, 76px) var(--s6); }

.hero-ads { position: absolute; inset: 0; z-index: 0; overflow: hidden; isolation: isolate; background: #05070a; }
.hero-ads-stage { position: absolute; inset: 0; }

/* One slide. Only .is-on is painted; visibility (not just opacity) keeps the
   hidden slides out of hit-testing and out of the a11y tree. */
.hero-ad {
  position: absolute; inset: 0; display: block; color: inherit; text-decoration: none;
  opacity: 0; visibility: hidden;
  transition: opacity .85s cubic-bezier(.33, 0, .2, 1), visibility 0s linear .85s;
}
.hero-ad.is-on { opacity: 1; visibility: visible; transition: opacity .85s cubic-bezier(.33, 0, .2, 1), visibility 0s; }

/* Ambient backdrop — the same artwork blown up and blurred, so a wide frame
   never shows flat bars beside a narrower photo. Same URL as .hero-ad-shot,
   so it costs no extra download. */
.hero-ad-blur {
  position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; z-index: 0;
  object-fit: cover; object-position: center;
  filter: blur(48px) saturate(1.12) brightness(.66);
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero-ad.is-on .hero-ad-blur { transform: scale(1.13); }

/* The artwork fills the frame edge to edge (user preference: 全屏, not
   letterboxed). The blurred layer beneath only shows while the image loads. */
.hero-ad-shot {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transform: scale(1.012);
  transition: transform 1.3s cubic-bezier(.33, 0, .2, 1);
}
.hero-ad.is-on .hero-ad-shot { transform: scale(1); }

/* Legibility veil — much lighter than a blanket scrim, shaped so the copy side
   is readable while the artwork keeps its colour. */
.hero-ad-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(4,6,10,.80) 0%, rgba(4,6,10,.56) 24%, rgba(4,6,10,.16) 46%, rgba(4,6,10,0) 64%),
    linear-gradient(0deg, rgba(4,6,10,.58) 0%, rgba(4,6,10,.12) 18%, rgba(4,6,10,0) 34%);
}

/* Copy block — same .container as the header logo, so the left edge lines up.
   pointer-events:none keeps the whole banner one big clickable target. */
.hero-ad-body { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; pointer-events: none; }
.hero-ad-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; max-width: min(680px, 58%); }

.hero-ad-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .28em;
  color: rgba(255,255,255,.70); text-transform: uppercase;
}
.hero-ad-kicker i { font-style: normal; }
.hero-ad-kicker i:first-child { color: #fff; font-size: 13px; letter-spacing: .18em; }
.hero-ad-slash { opacity: .4; }
.hero-ad-kicker::after {
  content: ""; width: 54px; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.8), rgba(255,255,255,0));
}

.hero-ad-title {
  display: block; margin: 0; color: #fff;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.022em;
  font-size: clamp(1.8rem, 3.05vw, 3.3rem); line-height: 1.09;
  text-wrap: balance; text-shadow: 0 2px 28px rgba(0,0,0,.45);
}
.hero-ad-desc {
  display: block; color: rgba(255,255,255,.88);
  font-size: clamp(.95rem, 1.1vw, 1.08rem); line-height: 1.68; max-width: 52ch;
  white-space: pre-line; text-shadow: 0 1px 16px rgba(0,0,0,.42);
}
.hero-ad-more {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 4px;
  padding: 11px 20px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; letter-spacing: .01em; color: #fff;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.30);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.hero-ad-more i { font-style: normal; transition: transform .35s var(--ease); }
.hero-ad:hover .hero-ad-more { background: #fff; border-color: #fff; color: #0b0d12; transform: translateY(-1px); }
.hero-ad:hover .hero-ad-more i { transform: translateX(4px); }

/* Staggered reveal. .is-live is added by main.js one frame after load so the
   opening copy animates in instead of popping. */
.hero-ad-copy > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.hero-ads.is-live .hero-ad.is-on .hero-ad-copy > * { opacity: 1; transform: none; }
.hero-ads.is-live .hero-ad.is-on .hero-ad-copy > *:nth-child(1) { transition-delay: .10s; }
.hero-ads.is-live .hero-ad.is-on .hero-ad-copy > *:nth-child(2) { transition-delay: .18s; }
.hero-ads.is-live .hero-ad.is-on .hero-ad-copy > *:nth-child(3) { transition-delay: .26s; }
.hero-ads.is-live .hero-ad.is-on .hero-ad-copy > *:nth-child(4) { transition-delay: .34s; }

/* Controls: side arrows + bottom progress pills, all above the slide links. */
.hero-ads-bar { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero-ad-nav {
  position: absolute; top: 50%; transform: translateY(-50%); pointer-events: auto;
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  color: #fff; border-radius: 50%; padding: 0;
  background: rgba(8,10,14,.42); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s, background .25s, border-color .25s;
}
.hero-ads:hover .hero-ad-nav, .hero-ads:focus-within .hero-ad-nav { opacity: 1; }
.hero-ad-nav:hover { background: rgba(8,10,14,.78); border-color: rgba(255,255,255,.5); }
.hero-ad-nav:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 3px; }
.hero-ad-nav--prev { left: clamp(12px, 2.2vw, 38px); }
.hero-ad-nav--next { right: clamp(12px, 2.2vw, 38px); }

.hero-ads-dots {
  position: absolute; left: 50%; bottom: clamp(18px, 3.4vh, 34px);
  transform: translateX(-50%); display: flex; align-items: center; gap: 9px; pointer-events: auto;
}
.hero-ad-dot {
  position: relative; width: 30px; height: 4px; padding: 0; cursor: pointer;
  border: 0; border-radius: var(--r-pill); overflow: hidden;
  background: rgba(255,255,255,.30);
  transition: width .45s var(--ease), background .3s;
}
.hero-ad-dot:hover { background: rgba(255,255,255,.52); }
.hero-ad-dot.is-on { width: 66px; background: rgba(255,255,255,.30); }
.hero-ad-dot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
/* The active pill doubles as the timer: its fill walks the slide interval. */
.hero-ad-dot-fill {
  position: absolute; inset: 0; border-radius: inherit; background: #fff;
  transform: scaleX(0); transform-origin: left center;
}
.hero-ad-dot.is-on .hero-ad-dot-fill { animation: heroAdFill var(--ad-dur, 7000ms) linear forwards; }
.hero-ad-dot.is-frozen .hero-ad-dot-fill { animation-play-state: paused; }
@keyframes heroAdFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (hover: none) {
  .hero-ad-nav { opacity: 1; }
}

@media (max-width: 1024px) {
  .hero-ad-copy { max-width: min(640px, 78%); }
  .hero-ad-nav { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  .hero-ad-copy { max-width: 100%; gap: 12px; }
  .hero-ad-title { font-size: clamp(1.5rem, 6.2vw, 2rem); }
  .hero-ad-desc { font-size: .95rem; line-height: 1.6; }
  .hero-ad-nav { display: none; }
  .hero-ad-dot { width: 22px; }
  .hero-ad-dot.is-on { width: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ad, .hero-ad-blur, .hero-ad-shot, .hero-ad-copy > *, .hero-ad-more, .hero-ad-more i, .hero-ad-dot { transition: none; }
  .hero-ad-blur { transform: none; }
  .hero-ad-shot { transform: none; }
  .hero-ad-copy > * { opacity: 1; transform: none; }
  .hero-ad-dot.is-on .hero-ad-dot-fill { animation: none; transform: scaleX(1); }
}

/* ===================== STATS BAND ===================== */
.stats { border-block: 1px solid var(--line); background: var(--bg-1); transition: background var(--dur) var(--ease); }
.stats .container { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { padding: var(--s4) var(--s3); border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; color: var(--text); }
.stat .n span { color: var(--accent); }
.stat .l { font-size: 13px; color: var(--text-3); margin-top: 6px; letter-spacing: .02em; }

/* ===================== CATEGORY GRID ===================== */
.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.cat-tile, .cat-card {
  position: relative; padding: var(--s4); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); overflow: hidden; min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.cat-tile:hover, .cat-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--sh-2); }
.cat-tile img, .cat-card > img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--r); margin-bottom: var(--s2); border: 1px solid var(--line); }
.cat-tile h3, .cat-card h3 { font-size: 1.22rem; margin-top: var(--s2); }
.cat-tile p, .cat-card p { color: var(--text-3); font-size: 14px; margin-top: 6px; }
.cat-tile .arrow, .cat-card .arrow { position: absolute; top: var(--s4); right: var(--s4); color: var(--text-3); transition: transform .3s, color .3s; }
.cat-tile:hover .arrow, .cat-card:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }

/* ===================== HOME · PRODUCT-LINE DECK =====================
   The homepage 「产品分类」 section: one panel per one-level product line.
   The lead panel carries the tagline, the three spec tags aggregated from
   real products and the series list; the three compact panels carry their
   own series names. Everything is driven by theme tokens, so all four
   presets (graphite / azure / linen / evergreen) restyle it for free. */
.cat-deck-section { isolation: isolate; }
.cat-deck-section::before,
.cat-deck-section::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cat-deck-section::before {
  background:
    radial-gradient(58% 52% at 10% 0%, var(--grain-1), transparent 70%),
    radial-gradient(48% 48% at 94% 6%, var(--grain-2), transparent 72%);
}
.cat-deck-section::after {
  opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(105% 85% at 16% 8%, #000, transparent 70%);
  mask-image: radial-gradient(105% 85% at 16% 8%, #000, transparent 70%);
}
.cat-deck-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s2);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; color: var(--accent);
}
.cat-deck-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent-line); }
.section-head .cat-deck-sum { color: var(--text-2); font-family: var(--font-mono); font-size: 13.5px; }

.cat-deck { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.cat-lines { display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cat-line {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), border-color .3s, box-shadow var(--dur), background .3s;
}
.cat-line::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  transition: opacity var(--dur) var(--ease);
}
.cat-line::after {
  content: ""; position: absolute; top: auto; left: auto; right: -22%; bottom: -42%;
  width: 62%; aspect-ratio: 1; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  transition: opacity .55s var(--ease);
}
.cat-line:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--sh-2); }
.cat-line:hover::before, .cat-line:hover::after { opacity: 1; }
.cat-line--lead { padding: var(--s5) var(--s4); gap: var(--s3); }

.cat-line > * { position: relative; z-index: 1; }
.cat-line-num {
  position: absolute; top: -8px; right: 12px; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-size: clamp(64px, 7.5vw, 96px); line-height: 1;
  letter-spacing: -.04em; color: var(--text); opacity: .05;
}
.cat-line--lead .cat-line-num { top: -16px; right: 18px; font-size: clamp(88px, 10vw, 148px); }

.cat-line-top { display: flex; align-items: center; gap: 14px; }
.cat-line--lead .cat-line-top { align-items: flex-start; gap: var(--s2); }
.cat-line-top h3 { min-width: 0; font-size: 1.3rem; }
.cat-line--lead .cat-line-top h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.cat-line-top h3 a { color: inherit; }
.cat-line-top h3 a:hover { color: var(--accent-2); }
.cat-line-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--r); color: var(--accent-2);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  transition: transform var(--dur) var(--ease), color .3s, background .3s;
}
.cat-line--lead .cat-line-ico { width: 56px; height: 56px; }
.cat-line:hover .cat-line-ico { transform: translateY(-2px) scale(1.05); color: var(--accent); }
.cat-line-arrow { margin-left: auto; color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.cat-line:hover .cat-line-arrow { color: var(--accent); transform: translate(3px, -3px); }

.cat-line-tag { color: var(--text-2); font-size: 14.5px; line-height: 1.65; max-width: 44ch; }
.cat-line-kids { font-size: 13px; line-height: 1.7; color: var(--text-3); }
.cat-line-kids a { color: var(--text-3); }
.cat-line-kids a:hover { color: var(--accent-2); }
.cat-line-foot {
  margin-top: auto; padding-top: var(--s2); border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3);
}

.cat-series { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cat-series > li { border-top: 1px solid var(--line-soft); }
.cat-series > li:last-child { border-bottom: 1px solid var(--line-soft); }
.cat-series > li > a {
  position: relative; display: grid; align-items: center; gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 13px 12px 13px 14px; border-radius: var(--r-sm);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.cat-series > li > a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 58%;
  border-radius: 2px; background: var(--accent); opacity: 0;
  transform: translateY(-50%) scaleY(.2); transition: opacity .3s, transform .3s var(--ease);
}
.cat-series > li > a:hover { background: var(--accent-soft); padding-left: 20px; }
.cat-series > li > a:hover::before { opacity: 1; transform: translateY(-50%) scaleY(1); }
.cat-series-name { font-size: 15px; color: var(--text); }
.cat-series-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.cat-series-arrow { color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.cat-series > li > a:hover .cat-series-arrow { color: var(--accent); transform: translateX(3px); }
.cat-series-kids { margin: -4px 0 0; padding: 0 14px 12px; font-size: 13px; color: var(--text-3); }
.cat-series-kids a { color: var(--text-3); }
.cat-series-kids a:hover { color: var(--accent-2); }

.cat-line-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px;
  border-radius: var(--r-pill); border: 1px solid var(--accent-line);
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 14.5px; font-weight: 600;
  transition: background .3s, color .3s, border-color .3s, gap .3s var(--ease);
}
.cat-line-cta:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); gap: 15px; }
.cat-line-cta-ico { transition: transform .3s var(--ease); }
.cat-line-cta:hover .cat-line-cta-ico { transform: translateX(3px); }

.cat-trust {
  margin-top: var(--s3); padding: 18px var(--s4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--accent-soft), transparent 58%);
}
.cat-trust-txt { color: var(--text-2); font-size: 14px; }
.cat-trust a { color: var(--accent-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.cat-trust a:hover { color: var(--accent); }

/* Wide screens: the promoted line runs full width with the series list beside
   the tagline. Four product lines rarely carry enough detail to fill a tall
   half-width card, so the hierarchy is expressed by width, not height. */
@media (min-width: 1081px) {
  .cat-line--lead {
    display: grid; align-content: start; gap: var(--s3) var(--s6);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
    grid-template-areas: "top series" "cta series";
  }
  .cat-line--lead .cat-line-top { grid-area: top; }
  .cat-line--lead .cat-series--lead { grid-area: series; }
  .cat-line--lead .cat-line-cta { grid-area: cta; margin-top: var(--s2); align-self: end; }
}
@media (max-width: 1080px) {
  .cat-line--lead { padding: var(--s4); }
  .cat-line--lead .cat-line-num { font-size: clamp(80px, 14vw, 130px); }
}
@media (max-width: 860px) {
  .cat-lines { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cat-line, .cat-line--lead { padding: var(--s3); }
  .cat-line-num { font-size: 68px; }
  .cat-trust { flex-direction: column; align-items: flex-start; }
  /* The CTA is nowrap on desktop; on a phone a long translation (German,
     Spanish) would otherwise push the page into horizontal scroll. */
  .cat-trust a { white-space: normal; }
}

/* ===================== PRODUCT CARD ===================== */
.card, .product-card {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.card:hover, .product-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--sh-2); }
.card-media {
  aspect-ratio: 4/3; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  display: grid; place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph {
  width: 64%; aspect-ratio: 1.3/1; border-radius: var(--r); position: relative;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
  border: 1px dashed var(--line); display: grid; place-items: center; color: var(--text-3);
  font-family: var(--font-mono); font-size: 12px; text-align: center; padding: 10px;
}
.card-media .badge {
  position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 11px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); color: var(--text-2);
  padding: 4px 9px; border-radius: var(--r-pill);
}
.card-media .sku { position: absolute; bottom: 12px; left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.card-body { padding: var(--s3); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 1.12rem; }
.card-title a:hover { color: var(--accent-2); }
.card-meta { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.card-meta a { color: var(--accent); }
.card-media { border-bottom: 1px solid var(--line); }
/* Product cards are square (1:1) to match the 800x800 default product art —
   the image fills the media box edge-to-edge with no white bars. */
.product-card .card-media { aspect-ratio: 1/1; }

/* ---- Card image slider: multi-image products auto-rotate (crossfade) ---- */
.card-slider { position: absolute; inset: 0; display: block; }
.card-slider > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .55s ease;
}
.card-slider > img.active { opacity: 1; }
.card-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2; pointer-events: none;
}
.card-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5); box-shadow: 0 0 3px rgba(0,0,0,.3);
  transition: background .3s;
}
.card-dots i.on { background: #fff; }
.card-price { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--accent); }
.card-price small { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); font-weight: 400; }
.card-desc { color: var(--text-3); font-size: 13.5px; line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; }

/* ===================== FEATURES / VALUE ===================== */
.features, .value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.feature, .value {
  padding: var(--s4); border-radius: var(--r-lg); background: var(--bg-1);
  border: 1px solid var(--line); display: flex; gap: var(--s3); align-items: flex-start;
  transition: border-color .3s, transform .4s var(--ease);
  min-width: 0;
}
.feature:hover, .value:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.feature-ico, .value .vn {
  width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent);
}
.feature h3, .value h3 { font-size: 1.15rem; }
/* min-width:0 + breakable words keep a long compound (German, Spanish) from
   widening the card past its grid track on narrow screens. */
.feature > *:not(.feature-ico), .value > *:not(.vn) { min-width: 0; }
.feature p, .value p { color: var(--text-3); font-size: 14.5px; margin-top: 6px; overflow-wrap: anywhere; }

/* ===================== CTA BAND ===================== */
.cta-band {
  border-radius: var(--r-lg); padding: clamp(36px, 6vw, 68px);
  background: radial-gradient(100% 160% at 0% 0%, var(--grain-1), transparent 55%), linear-gradient(150deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); max-width: 20ch; }
.cta-band p { color: var(--text-2); margin-top: 10px; }

/* ===================== FAQ ===================== */
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); margin-bottom: var(--s2); overflow: hidden; transition: border-color .3s; }
.faq-item.open, details.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary, .faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: var(--s3); font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q .pm, .faq-item summary::after {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--accent); transition: transform .3s; content: "+"; font-size: 16px;
}
.faq-item.open .faq-q .pm, .faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 var(--s3) var(--s3); }
.faq-a p { color: var(--text-2); }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid var(--line); background: var(--footer-bg); margin-top: var(--s6); transition: background var(--dur) var(--ease); }
.site-footer .container { padding-block: var(--s6) var(--s4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s4); }
.site-footer h4, .footer-about h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--s2); }
/* CJK headings: the mono/uppercase/track style is a Latin convention —
   switch Chinese footer headings to the sans stack with modest tracking. */
:lang(zh) .site-footer h4, :lang(zh) .footer-about h4 { font-family: var(--font-sans); font-weight: 600; letter-spacing: .04em; font-size: 13px; text-transform: none; color: var(--text-2); }
.site-footer a { color: var(--text-2); display: block; padding: 5px 0; font-size: 14.5px; transition: color .2s; }
.site-footer a:hover { color: var(--accent-2); }
/* Footer link/contact lists: strip default bullets, unify rhythm & type.
   Plain-text items (WhatsApp, working hours) must match link items exactly. */
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); text-wrap: balance; font-variant-numeric: tabular-nums; }
.site-footer li a { display: inline; padding: 0; }
.u-nowrap { white-space: nowrap; }
.footer-about p { color: var(--text-3); font-size: 14px; max-width: 36ch; margin-top: var(--s2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  /* Hairline reads as a whisper, not a rule: mixed 50% toward the footer background
     so it stays correctly subtle across all 4 presets (incl. light themes on a dark footer). */
  padding-top: var(--s3); margin-top: var(--s4);
  border-top: 1px solid color-mix(in srgb, var(--line-soft) 50%, var(--footer-bg));
  color: var(--text-3); font-size: 13px; flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--accent-2); }
.footer-bottom .footer-links { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* ===================== MINI CARD (related products / applications) ============
   Compact tile: image on top, single text line below. Used 4-across. */
.mini-card {
  display: block; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--bg-1); text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2, 0 10px 24px rgba(0,0,0,.10)); }
.mini-card .mini-media {
  display: block; aspect-ratio: 4/3; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
}
/* object-fit:contain keeps the whole artwork visible — mini tiles are the only
   place a reader compares images side by side, so cropping is never worth it. */
.mini-card .mini-media img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* --- Media-box variants: match the artwork's own aspect ratio, so a contain
       fit has no letterbox bars at all.
       wide   → blog / news / case covers, generated at 1200×630
       square → product shots and square uploads (800×800 / 1200×1200)        */
.mini-card--wide .mini-media { aspect-ratio: 1200/630; }
.mini-card--square .mini-media { aspect-ratio: 1/1; }
.mini-card .mini-name {
  padding: 12px 14px; font-weight: 600; font-size: 14.5px;
  line-height: 1.45; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-card:hover .mini-name { color: var(--accent); }

/* ===================== PAGE HERO (inner pages) ===================== */
#main > .container > h1,
#main > .container > .section-head h1,
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: var(--s2); }
.page-hero { padding-block: clamp(40px, 6vw, 72px) var(--s4); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.page-hero p { color: var(--text-2); max-width: 60ch; }

/* ===================== PRODUCT DETAIL ===================== */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s6); align-items: start; }
/* Gallery must NOT be sticky: the left column (highlights/specs/FAQ) is much
   taller than the image, and a sticky gallery floats over that content when
   scrolling. Only the buy box sticks. */
.product-gallery {
  position: relative;
  display: grid;
  place-items: center;
  width: 800px;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.product-gallery > .gallery-slide {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .6s ease;
}
.product-gallery > .gallery-slide.active { opacity: 1; }
.gallery-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-1) 82%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.gallery-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-3);
  box-shadow: 0 0 3px rgba(0,0,0,.2);
  transition: background .3s;
}
.gallery-dots i.on { background: var(--accent); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: var(--s2); }
.thumbs button, .thumbs .t { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); overflow: hidden; padding: 0; }
.thumbs img, .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .active { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-soft); }

.answer-box { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r); }
.answer-box h2 { font-size: 1.05rem; color: var(--accent-2); margin-bottom: 6px; }
.answer-box p { color: var(--text); }

.content-block { margin-top: var(--s4); }
.content-block h2 { font-size: 1.4rem; margin-bottom: var(--s2); }
.content { color: var(--text-2); line-height: 1.7; }
.content h2, .content h3 { color: var(--text); margin: var(--s3) 0 var(--s1); }
.content ul, .content ol { color: var(--text-2); padding-left: 1.2em; }
.content li { margin-bottom: 8px; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bullets li { padding-left: 26px; position: relative; color: var(--text-2); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.content-block + .content-block { margin-top: var(--s4); }

/* ===================== SOLUTIONS PAGE (page kind='page') ===================== */
.sol-equip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--s1);
}
.sol-grid { margin-top: var(--s3); }
.sol-card { overflow: hidden; }
.sol-card .sol-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2, rgba(127,127,127,.08)); }
.sol-card .sol-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
a.sol-card:hover .sol-cover img { transform: scale(1.04); }
.sol-card .card-body { padding: var(--s3) var(--s4); }
.sol-card .card-title { font-size: 1.12rem; }
a.sol-card { display:block; text-decoration:none; color:inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.sol-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2, 0 10px 24px rgba(0,0,0,.10)); }
a.sol-card .card-title { color: var(--text-1); }
a.sol-card:hover .card-title { color: var(--accent); }
.sol-close {
  margin-top: var(--s5);
  padding: var(--s4);
  border-left: 3px solid var(--accent);
  background: var(--bg-1);
  border-radius: var(--r);
  color: var(--text-2);
}
.sol-more { margin-top: var(--s2); }
.sol-more a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}
.sol-more a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.sol-process { margin-top: var(--s2); }
.sol-process li { font-size: 15px; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: var(--s2); }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.spec-table th { color: var(--text-2); font-weight: 500; font-size: 14px; width: 38%; }
.spec-table td { color: var(--text); }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }

.product-buy { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); position: sticky; top: 96px; }
.price-block { padding-bottom: var(--s3); border-bottom: 1px solid var(--line-soft); }
.product-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 var(--s4); max-width: 28ch; }
.price-main { font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.price-note { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 96px 1fr; margin-top: var(--s3); border-top: 1px solid var(--line-soft); }
.kv dt, .kv dd { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; }
.kv dt { font-size: 13px; color: var(--text-2); padding-right: 12px; }
.kv dd { color: var(--text); font-weight: 600; font-size: 14px; }

.product-buy form { margin-top: var(--s3); }
.qty-row { display: flex; gap: 10px; align-items: stretch; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.qty-input button { width: 40px; background: var(--bg-2); border: 0; color: var(--text); font-size: 18px; }
.qty-input input { width: 56px; text-align: center; border: 0; background: var(--bg); color: var(--text); font-size: 15px; padding: 10px 0; }
.qty-input button:hover { background: var(--bg-3); }

.contact-box { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.contact-box b { color: var(--text); display: block; margin-bottom: 4px; }
.contact-box .small { color: var(--text-3); }

/* ===================== CONTACT PAGE ===================== */
/* Deliberately plain: title + form on the left, one information card on the
   right. Nothing competes with the form itself. */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s6); align-items: start; }
.field label .req { color: var(--accent); font-style: normal; }

/* The information card reads in two tiers. Direct channels first — icon,
   label, value, the whole row is a link — because that is what the visitor
   came for; then the supporting company facts as compact label/value rows.
   Before this, all eight lines were styled identically, so finding the phone
   number meant reading every row. */
.contact-card-title { display: flex; align-items: center; gap: 9px; margin: 0 0 var(--s3); font-size: 1.05rem; }
.contact-card-title::before { content: ""; width: 3px; height: 17px; border-radius: 2px; background: var(--accent); flex: none; }

.contact-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-methods a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-soft); background: var(--bg-2);
  transition: border-color .22s, background .22s, transform .22s;
}
.contact-methods a:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateX(2px); }
.cm-ico {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.cm-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cm-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.cm-v { font-size: 14.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.cm-go { margin-left: auto; flex: none; color: var(--text-3); display: grid; place-items: center; transition: transform .22s, color .22s; }
.contact-methods a:hover .cm-v { color: var(--accent); }
.contact-methods a:hover .cm-go { color: var(--accent); transform: translateX(3px); }

.contact-facts { list-style: none; margin: var(--s3) 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.contact-facts li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.contact-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-facts b { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.contact-facts span { font-size: 14px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }

@media (max-width: 420px) {
  .contact-facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* Social accounts live at the foot of the contact card, below a hairline. */
.contact-social { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line-soft); }
.contact-social-label {
  display: block; margin-bottom: 10px;
  color: var(--text-3); font-size: 12.5px; font-weight: 600;
  font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
}
.contact-social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-social-row a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text-3);
  transition: transform .25s var(--ease), color .25s, border-color .25s, background .25s;
}
.contact-social-row a:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
@media (max-width: 560px) {
  .contact-social-row a { width: 42px; height: 42px; }
}

.form-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea, .search-form input, .qty-input input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

.summary-box { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); }

/* ===================== ALERTS ===================== */
.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: 14.5px; margin-bottom: var(--s3); border: 1px solid var(--line); }
.alert-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--text); }
.alert-error { background: color-mix(in srgb, #e2554f 14%, transparent); border-color: color-mix(in srgb, #e2554f 45%, var(--line)); color: var(--text); }

/* ===================== BREADCRUMB ===================== */
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); margin-bottom: var(--s3); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--text-3); opacity: .6; }
.breadcrumb a:hover { color: var(--accent-2); }

/* ===================== TABLES / CART / CHECKOUT ===================== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 14.5px; }
.table th { color: var(--text-2); font-weight: 500; font-size: 14px; }
.cart-item-product { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.cart-item-product img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); flex: none; }
.cart-item-product .small { margin-top: 3px; }
.cart-subtotal-cell { text-align: right; }
.cart-subtotal { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--accent-2); }
.cart-empty { margin-top: var(--s3); padding: var(--s6) var(--s4); border: 1px dashed var(--line); border-radius: var(--r-lg); text-align: center; }
.cart-empty-title { font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; }
.cart-empty .btn { margin-top: var(--s2); }
.checkout-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: var(--s6); align-items: start; }
.summary-line { display: flex; justify-content: space-between; gap: var(--s2); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: var(--s2); }

/* ===================== BLOG / POST ===================== */
/* 封面统一为 1200×630 的宽幅图；容器按同比例并 contain，保证整图完整可见不裁切。 */
.post-card .card-media { aspect-ratio: 1200 / 630; }
.post-card .card-media img { object-fit: contain; }
.post-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.post-card .card-title { font-size: 1.15rem; }

/* ===================== CATEGORY INDEX (categories page) ===================== */
.cat-index { display: grid; gap: var(--s4); }
.cat-index-group { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); background: var(--bg-1); }
.cat-index-title { font-size: 1.3rem; margin-bottom: var(--s2); }
.cat-index-title a:hover { color: var(--accent-2); }
.cat-index-children { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s2); }
.cat-index-item { display: flex; flex-direction: column; gap: 6px; }
.cat-index-head { font-weight: 600; color: var(--text); }
.cat-index-head:hover { color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg-1); color: var(--text-2); font-size: 13px; transition: all .2s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--accent-line); }

/* ===================== PRODUCT GROUP (category tree) ===================== */
.product-group { margin-bottom: var(--s5); }
.subgroups { display: grid; gap: var(--s4); margin-top: var(--s3); margin-left: 0; border-left: none; padding-left: 0; }

/* Grouped category: a clear DESCENDING type scale by depth so a parent
   subgroup reads larger than its children (fixes "all headings same size"). */
.product-group.level-1 > .section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.product-group.level-2 > .section-head h2 { font-size: clamp(1.18rem, 1.9vw, 1.45rem); }
.product-group.level-2 > .section-head { margin-bottom: var(--s3); }

/* ===================== PAGINATION ===================== */
.pagination { display: flex; gap: 8px; align-items: center; margin-top: var(--s4); flex-wrap: wrap; }
.pagination a, .pagination .current, .pagination .muted { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.pagination a:hover { border-color: var(--accent-line); color: var(--accent-2); }
.pagination .current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ===================== SUCCESS ===================== */
.success-wrap { max-width: 560px; margin-inline: auto; text-align: center; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6) var(--s4); }
.success-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; margin: 0 auto var(--s3); font-size: 30px; }
.order-no { font-family: var(--font-mono); color: var(--accent-2); }

/* ===================== UTILITIES ===================== */
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: var(--s1) !important; } .mb-2 { margin-bottom: var(--s2) !important; }
.mb-3 { margin-bottom: var(--s3) !important; } .mb-4 { margin-bottom: var(--s4) !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: var(--s1) !important; } .mt-2 { margin-top: var(--s2) !important; }
.mt-3 { margin-top: var(--s3) !important; } .mt-4 { margin-top: var(--s4) !important; }
.row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .orb { animation: none; }
  html { scroll-behavior: auto; }
  body { transition: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .stats .container { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-visual { max-width: 460px; }
  .product-layout, .contact-grid, .checkout-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .product-gallery, .product-buy { position: static; }
  .product-gallery { height: auto; aspect-ratio: 1 / 1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: var(--s2);
    background: var(--header-bg-scrolled); border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-link { justify-content: flex-start; }
  .nav-item { width: 100%; }
  .nav-item-head { width: 100%; justify-content: space-between; }
  .nav-dropdown, .nav-dropdown.mega {
    position: static; transform: none; min-width: 0; width: auto; max-width: none; box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; padding: var(--s1) var(--s2); display: none; backdrop-filter: none;
  }
  .nav-item.open > .nav-dropdown, .nav-item.open > .nav-dropdown.mega { display: block; }
  .nav-dropdown.mega { flex-direction: column; gap: 0; }
  .mega-col { gap: 0; padding: 8px 0; width: auto; }
  .mega-head { border-bottom: 0; padding: 8px 0; margin: 0; font-size: 14.5px; white-space: normal; }
  .mega-head::before { display: none; }
  .mega-list { gap: 0; }
  .mega-list a { padding: 6px 0 6px 14px; font-size: 14px; transform: none !important; white-space: normal; }
  .mega-list a:hover { transform: none; }
  .search-form input { width: 110px; }
  .topbar .tb-right .tb-extra { display: none; }
  .features, .value-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  /* hero: stack text above visual, never let the 2-col grid widen the page */
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero h1, .hero .lead { max-width: 100%; }
  /* On small screens the nested rail would squeeze product cards to the right;
     collapse it to a slim rail so cards stay near full-width. */
  .subgroups { margin-left: 0; padding-left: 0; border-left: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .stats .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--s3); }
  /* topbar: drop the decorative tagline + let the bar grow so nothing
     overlaps the header below on narrow screens */
  .topbar .tb-left { display: none; }
  .topbar .container, .topbar-inner { height: auto; min-height: 42px; flex-wrap: wrap; padding: 6px 0; }
  .topbar .tb-right { gap: var(--s2); flex-wrap: wrap; }
  /* hero title: keep the longest words inside a 390px viewport */
  .hero h1 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .hero .lead { font-size: 1.02rem; }
  /* brand tagline is the widest header element — drop it so the page never
     overflows 390px (it was forcing ~450px min-width and clipping every edge) */
  .brand small { display: none; }
  .brand { min-width: 0; }
  /* keep the search icon but drop the input — the full box pushed the
     header row (and with it the whole body) past the 390px viewport */
  .search-form input { display: none; }
  /* and on the narrowest screens drop the now-inert search pill entirely:
     brand + language + cart is all that fits a 360px header row */
  .search-form { display: none; }
}

/* ===================== PAGE BANNER (category promotional carousel) ===== */
.page-banner { position: relative; height: clamp(200px, 30vw, 400px); overflow: hidden; background: var(--bg-3); }
.page-banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.page-banner-slide.active { opacity: 1; }
.page-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-banner-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.page-banner-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, .45); cursor: pointer; transition: background .2s;
}
.page-banner-dots button.active { background: #fff; }

/* ===================== PRODUCTS INDEX (categories-style) ===================== */
.prod-index .cat-index-children { grid-template-columns: 1fr; gap: var(--s3); }
.prod-index .cat-index-item { gap: 12px; }
.prod-index .prod-index-grid { margin-top: 4px; }
.prod-index-node { display: grid; gap: 10px; padding-left: 14px; border-left: 2px solid var(--line-soft); }
.prod-index-subhead { font-weight: 600; font-size: 15px; color: var(--text-2); }
.prod-index-subhead:hover { color: var(--accent-2); }

/* ============ Downloads hub (two-column, news-detail language) ============
   The listing shares the news detail's skeleton (.news-layout + .post-sidebar)
   so every deep page reads as one site; each product's files become a card. */
.dl-card {
  margin-top: var(--s3); padding: var(--s3);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r);
  scroll-margin-top: 96px;
  transition: border-color .3s, box-shadow .3s;
}
.dl-card:hover { border-color: var(--accent-line); box-shadow: var(--sh-1); }
.dl-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-group-title { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.12rem; margin: 0; }
.dl-group-title a { color: var(--text); text-decoration: none; }
.dl-group-title a:hover { color: var(--accent); }
.dl-sku {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em;
  color: var(--text-3); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 2px 8px;
}
.dl-count { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); white-space: nowrap; }
.dl-list { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.dl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 6px; border-bottom: 1px dashed var(--line-soft);
}
.dl-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.dl-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1; color: var(--text); text-decoration: none;
}
.dl-link:hover .dl-name { color: var(--accent); }
.dl-icon {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: 14px;
}
.dl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.dl-ext {
  flex: none; font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .05em; color: var(--text-3); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 6px;
}
.dl-size { flex: none; font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); }
@media (max-width: 640px) {
  .dl-card { padding: var(--s2); }
  .dl-name { white-space: normal; }
  .dl-count { display: none; }
}
/* Right rail: anchor nav with per-group file counts. */
.dl-nav-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dl-nav-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-nav-count { font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); }

/* ============ Post detail: sidebar navigation ============ */
.post-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
}
.post-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.side-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s2);
}
.side-title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side-list a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.45;
  border-left: 2px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.side-list a:hover { color: var(--text); background: var(--bg-2); }
.side-list a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: var(--accent);
  font-weight: 600;
}
.side-posts a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: none;
  padding: 9px 10px;
}
.side-post-title {
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-post-date { font-size: .78rem; color: var(--text-3); }
.side-posts a:hover .side-post-title { color: var(--text); }

/* TOC */
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border-left: 2px solid var(--line);
  color: var(--text-2);
  text-decoration: none;
  font-size: .88rem;
  line-height: 1.4;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.toc-list a:hover { color: var(--text); }
.toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.toc-list .toc-l3 a { padding-left: 24px; font-size: .84rem; }

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .toc-card { display: none; }
}

/* ============ News detail: editorial two-column layout ============
   Story on the left, support rail on the right. The rail reuses the blog's
   .post-sidebar / .side-card language so the sections still read as one site;
   only the column order differs (content first, for reading). */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s5);
  align-items: start;
}
.news-main-col { min-width: 0; display: flex; flex-direction: column; gap: var(--s4); }
.news-side { gap: 14px; }

.news-article { min-width: 0; }
.news-head { margin-bottom: var(--s3); }
.news-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s2); }
.news-chip {
  display: inline-flex; align-items: center; padding: 5px 13px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-1);
  color: var(--text-2); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  transition: color .25s, border-color .25s, background .25s;
}
.news-chip:hover { color: var(--text); border-color: var(--accent-line); }
.news-chip--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.news-head h1 { margin: 0 0 var(--s2); font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.24; letter-spacing: -.01em; }
.news-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3);
}
.news-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

.news-lede {
  margin: 0 0 var(--s3); padding-left: var(--s2); max-width: 64ch;
  border-left: 3px solid var(--accent-line);
  color: var(--text-2); font-size: 1.09rem; line-height: 1.78;
}
.news-cover {
  margin: 0 0 var(--s4); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
}
.news-cover img { display: block; width: 100%; height: auto; }

.news-body { font-size: 1.03rem; }
.news-body img { max-width: 100%; height: auto; border-radius: var(--r); }

.news-tags { margin: var(--s4) 0 0; }
.news-tag {
  display: inline-block; padding: 6px 15px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: var(--bg-2); color: var(--text-2); font-size: 13px;
}

.news-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: var(--s4); padding: var(--s3) 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.news-share-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.news-share-btn {
  padding: 7px 15px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--bg-1); color: var(--text-2); font-family: inherit; font-size: 13px;
  line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: color .25s, border-color .25s, background .25s;
}
.news-share-btn:hover { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.news-share-btn.is-done { color: var(--ok); border-color: var(--ok); }

.news-nav { display: flex; gap: var(--s2); margin-top: var(--s4); }
.news-nav-item {
  /* Half the row each, so the pair stays balanced; a lone neighbour keeps its
     own half and stays on its own side instead of stretching full width. */
  flex: 1 1 50%; max-width: calc(50% - var(--s2) / 2); min-width: 0;
  display: flex; flex-direction: column; gap: 7px;
  padding: 15px var(--s2); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-1); transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.news-nav-item--next { text-align: right; }
.news-nav-item--next:only-child { margin-left: auto; }
.news-nav-item:hover { transform: translateY(-2px); border-color: var(--accent-line); background: var(--bg-2); }
.news-nav-dir { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); }
.news-nav-title {
  color: var(--text); font-size: 14.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.news-card-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.news-related { padding-bottom: 0; }

.news-cta { background: linear-gradient(150deg, var(--accent-soft), var(--bg-1)); border-color: var(--accent-line); }
.news-cta-title { margin: 0 0 7px; font-size: 1.02rem; }
.news-cta-body { margin: 0 0 var(--s2); color: var(--text-2); font-size: 13.5px; line-height: 1.68; }

@media (max-width: 1024px) {
  .news-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .news-side { position: static; }
}
@media (max-width: 560px) {
  .news-nav { flex-direction: column; }
  .news-nav-item { max-width: none; }
  .news-nav-item--next { text-align: left; }
  .news-cover { border-radius: var(--r); }
}

/* ==================================================================
   Content sections — News / Cases / Careers  (sec-*)
   ================================================================== */
.sec-hero { padding: var(--s5) 0 var(--s3); max-width: 860px; }
.sec-hero h1 { margin: 6px 0 10px; }
.sec-hero .eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; font-size: 13px; margin: 0;
}
.sec-hero .sec-intro { color: var(--text-2); margin-top: 12px; max-width: 68ch; }

.chips-sm { gap: 6px; }
.chip-sm { font-size: 12px; padding: 3px 10px; }

/* 案例封面：容器按原图 1200×630 的比例，contain 保证整图完整可见、不被裁切。 */
.case-card .card-media { aspect-ratio: 1200 / 630; }
.case-card .card-media img { object-fit: contain; }

/* case cards + fact rows */
.case-stats { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.case-stats li { display: flex; flex-direction: column; }
.case-stats b { font-size: 20px; color: var(--accent-2); font-family: var(--font-display); line-height: 1.1; }
.case-stats span { font-size: 12px; color: var(--text-3); }

.case-results {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
}
.case-results li { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 12px 14px; }
.case-results b { display: block; font-size: 22px; color: var(--accent-2); font-family: var(--font-display); }
.case-results span { font-size: 12px; color: var(--text-3); }

/* job list (careers) */
.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-card { border: 1px solid var(--line); background: var(--bg-1); border-radius: var(--r); padding: 18px 20px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.job-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.job-head h3 { margin: 0; font-size: 18px; }
.job-head h3 a { color: inherit; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.job-tag { font-size: 12.5px; padding: 4px 11px; border-radius: var(--r-pill); background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line-soft); }
.job-tag--salary { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }
.job-sum { color: var(--text-2); margin: 12px 0 0; }

/* info card (case / job detail) */
.info-card { border: 1px solid var(--line); background: var(--bg-1); border-radius: var(--r-lg); padding: 20px 22px; margin: 0 0 var(--s3); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 22px; }
.info-row { display: flex; flex-direction: column; gap: 3px; }
.info-row span { font-size: 12.5px; color: var(--text-3); }
.info-row b { font-size: 15px; color: var(--text); }
.info-sub { font-size: 13px; margin: 18px 0 0; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.info-actions { margin-top: 18px; }

.section-post .eyebrow a { color: var(--accent); text-decoration: none; }
.section-post .eyebrow a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .job-head { flex-direction: column; align-items: flex-start; }
  .sec-hero { padding-top: var(--s4); }
}

/* ==================================================================
   Sidebar blog taxonomy — nested (level-1 group + level-2 children)
   ================================================================== */
.side-cats > li { display: flex; flex-direction: column; }
.side-cat > a { font-weight: 500; }
.side-cat.is-group > a { color: var(--text); font-weight: 600; }
.side-cat.has-active > a { color: var(--text); }
.side-sub {
  list-style: none;
  margin: 2px 0 4px 12px;
  padding: 0 0 0 12px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-soft);
}
.side-sub a { font-size: .86rem; padding: 5px 10px; }
.side-sub a.active { border-left-color: transparent; }


