/* ==========================================================================
   Export Site - Design System
   Tokens extracted from Sasonix Webflow template (css/sasonix.app.shared.*.min.css)
   Palette actually shipped by the template: orange #ff6c02 + warm cream neutrals,
   NOT the blue/purple the README claims. Orange + cream suits manufacturing
   exporters better than it suits an AI SaaS brand, so it is kept as-is.

   Typography scale (2026-10-15) realigned to the template's own tokens:
   h1 80 / hero 60 / h2 48 / h3 40 / h4 24, body 18 @ 300 weight, headings 500,
   letter-spacing -2px / -1px, line-height 110% / 170%. Small text (14-16px) is
   bumped back to 400 because 300 renders too faint at that size.
   ========================================================================== */

:root {
  /* --- brand ------------------------------------------------------------ */
  --brand: #ff6c02;
  --brand-dark: #e05c00;
  --brand-soft: #fff1e6;
  --accent-red: #ef3622;
  --accent-green: #4ade80;

  /* --- neutrals (warm cream family) ------------------------------------- */
  --ink: #141414;
  --ink-warm: #2c180b;
  --ink-mid: #43372c;
  --muted: #5c4c3f;
  --muted-2: #8a7a6c;
  --line: #efe1d2;
  --line-2: #e2d2c0;
  --bg: #ffffff;
  --bg-soft: #fdf7f1;
  --bg-soft-2: #f8f3ec;
  --white: #ffffff;

  /* --- typography ------------------------------------------------------- */
  --font-head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-h1: 80px;
  --fs-h1-sm: 60px;
  --fs-h2: 48px;
  --fs-h2-sm: 36px;
  --fs-h3: 40px;
  --fs-h4: 24px;
  --fs-h5: 20px;
  --fs-lead: 20px;
  --fs-body: 18px;
  --fs-sm: 16px;
  --fs-xs: 14px;

  --lh-tight: 1.1;
  --lh-snug: 1.2;
  --lh-body: 1.7;

  /* --- spacing ---------------------------------------------------------- */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 20px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 56px;
  --s-9: 72px;
  --s-10: 96px;
  --s-11: 120px;

  /* --- radius ----------------------------------------------------------- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 100px;

  /* --- elevation -------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(44, 24, 11, .06);
  --shadow-md: 0 4px 16px rgba(44, 24, 11, .08);
  --shadow-lg: 0 12px 40px rgba(44, 24, 11, .12);

  /* --- layout ----------------------------------------------------------- */
  --wrap: 1240px;
  --nav-h: 72px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--ink-warm);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: var(--lh-snug);
  font-weight: 500;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -2px; }
h2 { font-size: var(--fs-h2); letter-spacing: -1px; }
h3 { font-size: var(--fs-h3); letter-spacing: -.5px; }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }

p { margin: 0 0 var(--s-3); }

/* 模板正文用 300，但小字号（14/16px 的元信息、表格、说明文字）在 300 下发虚，
   这里回补到 400。:where() 特异性为 0，不会盖掉任何显式的 500/600 声明。 */
:where(
  .card p, .pcard-desc, .checklist li, .spec-table td, .kv div, .faq-a,
  .news-body p, .quote-text, .crumb, .field-hint, .form-note, .filter-count,
  .pcard-meta, .hero-card-meta div, .quote-role, .stat-label, .footer,
  .footer-bottom, .topbar, .hero-proof-text, .logo-sub
) { font-weight: 400; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding-left: 20px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 var(--s-5); }

.section { padding: var(--s-10) 0; }
.section-sm { padding: var(--s-8) 0; }
.section-soft { background: var(--bg-soft); }
.section-soft-2 { background: var(--bg-soft-2); }
.section-dark { background: var(--ink-warm); color: var(--bg-soft); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(253, 247, 241, .78); }

.grid { display: grid; gap: var(--s-5); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: center; }
.split-4-6 { display: grid; grid-template-columns: 4fr 6fr; gap: var(--s-9); align-items: center; }

/* ==========================================================================
   Section header
   ========================================================================== */

.sec-head { max-width: 720px; margin: 0 auto var(--s-8); text-align: center; }
.sec-head-left { margin-left: 0; text-align: left; }
.sec-head h2 { margin-bottom: var(--s-3); }
.sec-head p { font-size: var(--fs-lead); color: var(--muted); }
.section-dark .sec-head p { color: rgba(253, 247, 241, .78); }

/* ==========================================================================
   Eyebrow / pill / badge
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid #ffdcc0;
  border-radius: var(--r-pill);
  padding: 6px 14px;
  margin-bottom: var(--s-4);
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-soft-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); border-color: #ffdcc0; }
.badge-green { background: #e8f9ee; color: #1a7a42; border-color: #bfe9cf; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); display: inline-block; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }

.btn-light { background: var(--white); color: var(--ink-warm); }
.btn-light:hover { background: var(--bg-soft); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }

.btn-lg { padding: 16px 28px; font-size: var(--fs-body); }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* arrow glyph on buttons */
.btn .ar { transition: transform .18s ease; }
.btn:hover .ar { transform: translateX(3px); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card-hover:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card h4 { margin-bottom: var(--s-2); }
.card p { color: var(--muted); font-size: var(--fs-sm); }

.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
  color: var(--brand-dark);
}
.card-icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   Placeholder media (swap for real photos later)
   ========================================================================== */

.ph {
  position: relative;
  width: 100%;
  background-color: var(--bg-soft-2);
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 12px, rgba(44, 24, 11, .035) 12px, rgba(44, 24, 11, .035) 24px
  );
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted-2);
  letter-spacing: .04em;
  text-align: center;
  padding: 0 var(--s-4);
}
.ph-ratio-16-9 { aspect-ratio: 16 / 9; }
.ph-ratio-4-3 { aspect-ratio: 4 / 3; }
.ph-ratio-1-1 { aspect-ratio: 1 / 1; }
.ph-ratio-3-4 { aspect-ratio: 3 / 4; }

/* Fabric colour swatch — replaces the dashed .ph look for colour chips */
.swatch {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  border: 1px solid rgba(44, 24, 11, .12);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.swatch:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 24, 11, .16);
}
.swatch::after {
  content: attr(data-name);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: inherit;
  opacity: .92;
}

/* Media slots — generated placeholder imagery, swap for real photos later */
img.media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: var(--bg-soft-2);
  border-radius: var(--r-lg);
}
img.media-ratio-16-9 { aspect-ratio: 16 / 9; }
img.media-ratio-4-3 { aspect-ratio: 4 / 3; }
img.media-ratio-1-1 { aspect-ratio: 1 / 1; }
img.media-ratio-3-4 { aspect-ratio: 3 / 4; }

/* ==========================================================================
   Stats / trust bar
   ========================================================================== */

.stat {
  text-align: center;
  padding: var(--s-5) var(--s-3);
}
.stat-num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -.02em;
}
.section-dark .stat-num { color: var(--brand); }
.stat-label {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: var(--s-2);
}
.section-dark .stat-label { color: rgba(253, 247, 241, .75); }

/* ==========================================================================
   Top announcement bar + nav
   ========================================================================== */

.topbar {
  background: var(--ink-warm);
  color: rgba(253, 247, 241, .85);
  font-size: var(--fs-xs);
  padding: 9px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.topbar a { color: var(--brand); }
.topbar a:hover { text-decoration: underline; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-6); }

.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--ink-warm); }
.logo-mark { width: 32px; height: 32px; flex: 0 0 auto; display: block; margin-top: -1px; }
.logo-mark img { width: 100%; height: 100%; display: block; }
.logo-sub { font-family: var(--font-body); font-size: 10px; color: #8a7a6d; letter-spacing: .24em; display: block; line-height: 1; margin-top: 3px; font-weight: 500; }

.nav-menu { display: flex; gap: var(--s-5); margin-left: auto; align-items: center; }
.nav-menu a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-mid);
  padding: 6px 0;
  position: relative;
  transition: color .15s ease;
}
.nav-menu a:hover { color: var(--brand-dark); }
.nav-menu a.is-active { color: var(--brand-dark); }
.nav-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.nav-cta { display: flex; gap: var(--s-2); align-items: center; margin-left: var(--s-5); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r-sm); width: 40px; height: 36px; cursor: pointer; align-items: center; justify-content: center; margin-left: auto; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) var(--s-5) var(--s-6);
  box-shadow: var(--shadow-md);
  z-index: 49;
}
.nav-drawer.is-open { display: block; }
.nav-drawer a { display: block; padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-drawer .btn { margin-top: var(--s-4); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--s-11) 0 var(--s-10);
  background:
    radial-gradient(1100px 520px at 82% 8%, var(--brand-soft) 0%, transparent 62%),
    var(--bg-soft);
  overflow: hidden;
}
.hero h1 { font-size: var(--fs-h1-sm); margin-bottom: var(--s-4); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: var(--fs-lead); color: var(--muted); max-width: 560px; margin-bottom: var(--s-6); }
.hero-side { position: relative; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-4);
  box-shadow: var(--shadow-lg);
}
.hero-card-meta { display: flex; gap: var(--s-4); padding: var(--s-3) var(--s-2) var(--s-1); flex-wrap: wrap; }
.hero-card-meta div { font-size: var(--fs-xs); color: var(--muted); }
.hero-card-meta b { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); }

.hero-proof { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; }
.hero-proof-text { font-size: var(--fs-sm); color: var(--muted); }
.avatars { display: flex; }
.avatars i {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--white);
  margin-left: -8px;
  display: block;
}
.avatars i:first-child { margin-left: 0; }

/* ==========================================================================
   Product cards
   ========================================================================== */

.pcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pcard:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pcard-media { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.pcard-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.pcard-body h4 { font-size: 19px; }
.pcard-meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted-2); }
.pcard-desc { font-size: var(--fs-sm); color: var(--muted); flex: 1; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-3); margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.pcard-foot .link { color: var(--brand-dark); font-weight: 500; }

.link { color: var(--brand-dark); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.link:hover { text-decoration: underline; }

/* ==========================================================================
   Market ticker — 对应模板 branding-section / logo-ticker
   两遍重复 + translateX(-50%) 实现无缝循环，两侧渐变遮罩
   ========================================================================== */

.ticker-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--s-5);
}
.ticker {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 36s linear infinite; }
.ticker-row { display: flex; align-items: center; gap: var(--s-8); padding-right: var(--s-8); flex: none; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--muted-2);
  white-space: nowrap;
}
.ticker-item::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
  opacity: .5;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ==========================================================================
   Collection card 内部结构 — 对应模板 feature-card（icon + 标题 + 短清单）
   ========================================================================== */

.pcard-head { display: flex; align-items: center; gap: var(--s-3); }
.pcard-ico {
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.pcard-ico svg { width: 22px; height: 22px; }
.pcard-list {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pcard-list li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  font-weight: 400;
}
.pcard-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 11px; height: 6px;
  border-left: 1.6px solid var(--brand);
  border-bottom: 1.6px solid var(--brand);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Certification wall — 对应模板 integrations-section（工具图标墙）
   外贸站换成认证/标准，位置与功能一致，信息更有用
   ========================================================================== */

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.cert {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.cert-mark {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}
.cert b {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}
.cert span { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }

/* ==========================================================================
   Feature / checklist list
   ========================================================================== */

.checklist { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--ink-mid);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 10px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--brand-dark);
  border-bottom: 1.5px solid var(--brand-dark);
  transform: rotate(-45deg);
}
.section-dark .checklist li { color: rgba(253, 247, 241, .9); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.quote-mark { font-family: var(--font-head); font-size: 40px; line-height: .6; color: var(--brand); height: 24px; }
.quote-text { font-size: var(--fs-body); color: var(--ink-mid); flex: 1; }
.quote-by { display: flex; align-items: center; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.quote-av { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft-2); flex: none; }
.quote-name { font-weight: 600; font-size: var(--fs-sm); font-family: var(--font-head); }
.quote-role { font-size: var(--fs-xs); color: var(--muted); }
.stars { color: var(--brand); letter-spacing: 2px; font-size: var(--fs-sm); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.faq-q:hover { background: var(--bg-soft); }
.faq-q .sign { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .sign::before, .faq-q .sign::after {
  content: ""; position: absolute; background: var(--brand);
  left: 3px; top: 10px; width: 16px; height: 2px; border-radius: 2px;
  transition: transform .2s ease;
}
.faq-q .sign::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q .sign::after { transform: rotate(0); }
.faq-a { display: none; padding: 0 var(--s-5) var(--s-5); color: var(--muted); font-size: var(--fs-sm); }
.faq-item.is-open .faq-a { display: block; }

/* ==========================================================================
   Table (spec sheet)
   ========================================================================== */

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px var(--s-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  width: 38%;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: var(--fs-xs); font-weight: 500; margin-bottom: 6px; color: var(--ink-mid); }
.field label .req { color: var(--accent-red); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field-hint { font-size: var(--fs-xs); color: var(--muted-2); margin-top: 5px; }

.form-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-3); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.crumb { font-size: var(--fs-xs); color: var(--muted-2); margin-bottom: var(--s-4); }
.crumb a:hover { color: var(--brand-dark); }
.crumb span { margin: 0 6px; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--ink-warm);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-9) var(--s-8);
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: var(--s-7);
  align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: var(--s-3); }
.cta-band p { color: rgba(253, 247, 241, .78); }
.cta-band-actions { display: flex; flex-direction: column; gap: var(--s-3); }

/* ==========================================================================
   Footer
   ========================================================================== */

/* Footer — aligned to sasonix template: light bg, left brand block + right link
   groups, bottom copyright / social icons, warm glow rising from bottom center. */

.footer {
  position: relative;
  background: var(--bg-soft-2);
  color: var(--ink-warm);
  padding: 80px 0 108px;
  overflow: hidden;
}
.footer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -240px;
  transform: translateX(-50%);
  width: 920px;
  height: 440px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 108, 2, .26), rgba(255, 108, 2, 0) 65%);
}
.footer .wrap { position: relative; z-index: 1; }

.footer-top { display: flex; justify-content: space-between; gap: 64px; }
.footer-left { max-width: 410px; display: flex; flex-direction: column; gap: 24px; }
.footer-logo { color: var(--ink-warm); }
.footer-sub { margin: 0; font-size: 16px; font-weight: 300; line-height: 170%; color: var(--ink-warm); }

.footer-right { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.fl-group { display: flex; flex-direction: column; gap: 16px; }
.footer h5 {
  margin: 0;
  color: var(--ink-warm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 170%;
  letter-spacing: 0;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a {
  color: var(--ink-warm);
  font-size: 16px;
  font-weight: 300;
  line-height: 160%;
  text-decoration: none;
  transition: color .4s ease-in-out;
}
.footer a:hover { color: var(--brand); }
.ft-plain { font-size: 16px; font-weight: 300; line-height: 160%; }

.footer-bottom {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.copy-right-text { margin: 0; color: #5c4c3f; font-size: 14px; font-weight: 300; }
.fb-right { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 300; }
.fb-right p { margin: 0; }
.socials { display: flex; gap: 6px; }
.socials a {
  display: flex;
  padding: 8px;
  border-radius: 100px;
  color: var(--ink-warm);
  transition: all .4s ease-in-out;
}
.socials a:hover { color: var(--brand); background: rgba(44, 24, 11, .07); }
.socials svg { width: 18px; height: 18px; display: block; fill: currentColor; }

@media (max-width: 991px) {
  .footer { padding: 60px 0 70px; }
  .footer-top { flex-direction: column; gap: 48px; }
  .footer-right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .footer { padding: 50px 0 60px; }
  .footer-right { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Filter bar (products page)
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.chip {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink-mid);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted-2);
}

/* ==========================================================================
   Product detail page
   ========================================================================== */

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-8); align-items: start; }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.thumbs .ph { border-radius: var(--r-md); cursor: pointer; }
.thumbs .ph::after { font-size: 11px; }

.quote-card {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-md);
}
.quote-card-note {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
}

.kv { margin-bottom: var(--s-5); }
.kv div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-sm);
}
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; font-family: var(--font-head); }

/* ==========================================================================
   News list
   ========================================================================== */

.news-list { display: flex; flex-direction: column; gap: var(--s-4); }
.news-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-5); align-items: start; padding: var(--s-5); }
.news-body h4 { margin: 6px 0 var(--s-2); }
.news-body p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-3); }

/* ==========================================================================
   Hero — sasonix template layout
   Values mirroring template: .hero-section / .home-hero-title-v2 /
   .hero-section-subtitle / .hero-button(-02) / .hero-image-wrapper /
   .hero-image-02 / .hero-shape
   ========================================================================== */

.hero-tpl {
  position: relative;
  overflow: hidden;
  padding: 150px var(--s-5) 0;
  background-color: #1d1008;
  background-image: url("../assets/hero-bg.webp");
  background-position: 50% 50%;
  background-size: cover;
  /* 压暗梯度（自上而下）。当前背景图偏亮（实测 L=184），按 WCAG 反推：
     不压暗白字对比度仅 1.76:1，取 top .55 后 ≈5.5:1。换图后重跑 _tune_scrim.py */
  --hero-scrim-top: .46;
  --hero-scrim-mid: .32;
  --hero-scrim-bot: .14;
  /* 局部柔化：当前背景图在文字区有成片亮斑，整体压暗会把图压糊，
     所以用一层椭圆渐变只压文案那一块 */
  --hero-scrim-spot: .26;
}
/* template .hero-shape-v2 — scrim so white copy stays readable on any photo */
.hero-tpl::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(ellipse 62% 44% at 50% 32%, rgba(0, 0, 0, var(--hero-scrim-spot)) 0%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, var(--hero-scrim-top)) 0%,
      rgba(0, 0, 0, var(--hero-scrim-mid)) 45%,
      rgba(0, 0, 0, var(--hero-scrim-bot)) 100%
    );
  pointer-events: none;
}

.hero-tpl-in {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-tpl-col { display: flex; flex-flow: column; align-items: center; gap: 80px; width: 100%; }
.hero-tpl-copy { display: flex; flex-flow: column; align-items: center; width: 100%; max-width: 642px; gap: 22px; }
.hero-tpl-head { display: flex; flex-flow: column; align-items: center; gap: 16px; }

.hero-tpl h1 {
  margin: 0;
  font-size: 60px;              /* template --heading--h1-small */
  font-weight: 500;
  line-height: 1.1;             /* template --line-height--medium */
  letter-spacing: -1px;         /* template --letter-spacing--large */
  color: #fff;
  text-align: center;
}
.hero-tpl h1 em { font-style: normal; color: var(--brand); }
.hero-tpl-sub {
  margin: 0;
  max-width: 572px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
  text-align: center;
}

/* --- buttons: template .hero-button / .hero-button-02 ------------------- */
.hero-tpl-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-tpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--brand);     /* template uses dark #2c180b — invisible on our dark hero */
  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease;
}
.hero-tpl-btn:hover { background: var(--brand-dark); color: #fff; }
.hero-tpl-btn._02 { background: #fff; color: var(--ink); }
.hero-tpl-btn._02:hover { background: var(--bg-soft); color: var(--ink); }

/* template .button-title-wrap — 25px window, two stacked labels, slide on hover */
.btn-title-wrap {
  display: flex;
  flex-flow: column;
  align-items: center;
  height: 25px;
  overflow: hidden;
}
.btn-title {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  white-space: nowrap;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.hero-tpl-btn:hover .btn-title { transform: translateY(-25px); }

/* --- image stack: template .hero-image-wrapper / .hero-image-02 --------- */
.hero-tpl-shot {
  position: relative;
  z-index: 3;
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 1064px;
  height: 510px;
  margin-bottom: -50px;
}
.hero-tpl .hero-tpl-main {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: 461px;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: cover;
}
/* template .hero-shape — fade the section into the page background */
.hero-tpl-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 318px;
  background-image: linear-gradient(rgba(253, 247, 241, 0) 53%, var(--bg-soft));
  pointer-events: none;
}

/* ==========================================================================
   Inner page hero + blog cards  (aligned to template blog.html)
   ========================================================================== */
.page-hero {
  padding: 160px var(--s-5) 0;
  text-align: center;
}
.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 572px;
  margin: 0 auto;
}
.label {
  display: inline-block;
  background: var(--bg-soft-2);
  border-left: 2.5px solid #c94232;
  padding: 8px 24px 8px 21px;
}
.label-text {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-warm);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
}
.page-hero h1 {
  font-size: var(--fs-h1-sm);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
}
.page-hero-sub {
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  max-width: 572px;
  margin: 0;
}

/* blog / news grid — template .blog-collection-list */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 25px;
  row-gap: 80px;
  width: 100%;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-decoration: none;
}
.post-thumb {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1.37 / 1;
  background: var(--bg-soft-2);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--muted-2);
  letter-spacing: .03em;
}
.post-title {
  font-family: var(--font-body);
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-warm);
  margin: 0;
  transition: color .4s ease;
}
.post-card:hover .post-title { color: var(--brand); }
.post-title-lg {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -.5px;
}

/* article detail page — template .blog-content */
.post-cover {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1.37 / 1;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-soft-2);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body {
  width: 100%;
  max-width: 827px;
  margin: 0 auto;
}
.post-body h4 {
  font-size: var(--fs-h4);
  font-weight: 500;
  letter-spacing: -.5px;
  margin: var(--s-7) 0 var(--s-4);
}
.post-body p {
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 var(--s-5);
}
.post-body ul {
  margin: 0 0 var(--s-5);
  padding-left: var(--s-5);
}
.post-body li {
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.post-body strong { font-weight: 500; color: var(--ink-warm); }
.post-note {
  border-left: 2.5px solid #c94232;
  background: var(--bg-soft-2);
  padding: var(--s-5);
  margin: var(--s-6) 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.post-related { border-top: 1px solid var(--line); }

@media (max-width: 991px) {
  .hero-tpl { padding-top: 110px; }
  .hero-tpl-col { gap: 60px; }
  .hero-tpl h1 { font-size: 48px; }
  .hero-tpl-shot { height: 420px; }
  .hero-tpl .hero-tpl-main { height: 372px; }
  .page-hero { padding-top: 120px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
}
@media (max-width: 767px) {
  .hero-tpl { padding-top: 90px; }
  .hero-tpl-col { gap: 50px; }
  .hero-tpl h1 { font-size: 40px; }
  .hero-tpl-shot { height: 300px; margin-bottom: -30px; }
  .hero-tpl .hero-tpl-main { height: 260px; }
  .hero-tpl-fade { height: 210px; }
  .page-hero { padding-top: 100px; }
  .news-grid { grid-template-columns: 1fr; row-gap: 50px; }
  .page-hero h1 { font-size: 40px; }
}
@media (max-width: 479px) {
  .hero-tpl h1 { font-size: 32px; }
  .page-hero { padding-top: 90px; }
  .page-hero h1 { font-size: 34px; }
}

/* ==========================================================================
   Reveal on scroll (no GSAP needed)
   ========================================================================== */

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

/* ==========================================================================
   Responsive - breakpoints kept from the Webflow template (991 / 767 / 479)
   ========================================================================== */

@media (max-width: 991px) {
  :root { --fs-h1: 52px; --fs-h2: 38px; --fs-h3: 30px; --s-10: 64px; --s-11: 80px; }
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .split, .split-4-6 { grid-template-columns: 1fr; gap: var(--s-6); }
  .pdp { grid-template-columns: 1fr; }
  .quote-card { position: static; }
  .news-row { grid-template-columns: 240px minmax(0, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: var(--s-7) var(--s-5); }
}

@media (max-width: 767px) {
  :root { --fs-h1: 42px; --fs-h2: 32px; --fs-lead: 18px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: var(--s-8) 0; }
  .hero { padding: var(--s-8) 0 var(--s-8); }
  .footer-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .ticker-item { font-size: 18px; }
  .ticker-row { gap: var(--s-6); padding-right: var(--s-6); }
  .stat-num { font-size: 32px; }
  .btn-lg { padding: 14px 22px; }
}

@media (max-width: 479px) {
  .wrap, .wrap-narrow { padding: 0 var(--s-4); }
  :root { --fs-h1: 36px; --fs-h2: 28px; }
  .eyebrow { white-space: normal; }
  .btn { padding: 12px 16px; font-size: var(--fs-xs); }
  .btn-group .btn { flex: 1 1 auto; }
}
/* 图片 logo（_set_brand.py --img 模式） */
.logo img { display: block; height: 34px; width: auto; }
.footer-logo img { height: 36px; }
