:root {
  --bg: #FCFAF7;
  --surface: #F2EFE9;
  --surface-elevated: #FFFFFF;
  --line: #DDD7CE;
  --line-strong: #B5ADA0;
  --ink: #111615;
  --muted: #333B39;
  --brand: #173F35;
  --brand-soft: #E6F0EC;
  --accent: #B85A28;
  --accent-hover: #96451B;
  --ok: #0D6832;
  --ok-bg: #E7F4EC;
  --warn: #8F470A;
  --danger: #A61C1C;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, monospace;

  --sp-0: 0; --sp-25: 2px; --sp-50: 4px; --sp-75: 8px; --sp-100: 12px;
  --sp-200: 16px; --sp-300: 24px; --sp-400: 32px; --sp-500: 40px;
  --sp-600: 48px; --sp-700: 64px; --sp-800: 80px; --sp-900: 96px;

  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px;
  --container: 1280px;
  --shadow-sm: 0 2px 6px rgba(23, 63, 53, 0.06);
  --shadow-md: 0 10px 28px rgba(23, 63, 53, 0.10);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ink); font-family: var(--font-sans); overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 26px; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--r-lg); }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* Named Typography Tokens (Strict Scale: 12,14,16,18,20,24,30,36,48,60) */
.heading-1 { font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 var(--sp-200); color: var(--ink); }
.heading-2 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 var(--sp-200); color: var(--ink); }
.heading-3 { font-size: 30px; line-height: 36px; font-weight: 600; text-wrap: balance; margin: 0 0 var(--sp-100); color: var(--ink); }
.heading-4 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 0 0 var(--sp-100); color: var(--ink); }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0 0 var(--sp-75); color: var(--ink); }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; margin: 0 0 var(--sp-75); color: var(--ink); }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; margin: 0; color: var(--ink); }
.body-1 { font-size: 18px; line-height: 30px; font-weight: 400; max-width: 65ch; text-wrap: pretty; color: var(--muted); margin: 0 0 var(--sp-300); }
.body-2 { font-size: 16px; line-height: 26px; font-weight: 400; max-width: 65ch; text-wrap: pretty; color: var(--ink); margin: 0 0 var(--sp-200); }
.body-3 { font-size: 14px; line-height: 22px; font-weight: 400; color: var(--muted); margin: 0; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.caption-2 { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 24px; line-height: 32px; }
}

.wrap { width: min(var(--container), calc(100% - 2 * var(--sp-300))); margin-inline: auto; }
.section { padding-block: var(--sp-900); border-bottom: 1px solid var(--line); }
.section-alt { background: var(--surface); }
@media (max-width: 768px) { .section { padding-block: var(--sp-700); } }

/* Top Status Bar & Navigation */
.topbar { background: var(--brand); color: #FFFFFF; padding-block: var(--sp-75); font-size: 14px; line-height: 20px; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-200); }
.topbar a { color: #FFFFFF; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }
.lang-switch { display: inline-flex; gap: var(--sp-100); align-items: center; }
.lang-switch a { padding: var(--sp-25) var(--sp-75); border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.3); font-size: 12px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(252, 250, 247, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-200); min-height: 72px; flex-wrap: nowrap; padding-block: var(--sp-75); }
.brand-logo { font-size: 18px; font-weight: 700; color: var(--brand); text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: center; gap: var(--sp-75); white-space: nowrap; flex-shrink: 0; }
.brand-badge { background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600; padding: var(--sp-25) var(--sp-75); border-radius: var(--r-sm); }
.nav-links { display: flex; align-items: center; gap: var(--sp-200); flex-wrap: nowrap; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 1120px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: var(--sp-50); -webkit-overflow-scrolling: touch; }
}

/* Buttons (Min 48px Touch Target) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-75); min-height: 48px; padding: var(--sp-100) var(--sp-300); border-radius: var(--r-md); font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out); }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-secondary { background: var(--surface-elevated); color: var(--brand); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.btn-sm { min-height: 44px; padding: var(--sp-75) var(--sp-200); font-size: 14px; }

/* Grid Layouts & Cards */
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: var(--sp-600); align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-400); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-300); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-300); }
.hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card { background: var(--surface-elevated); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-300); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; }
.card img { border-radius: var(--r-md); margin-bottom: var(--sp-200); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.pill { display: inline-block; background: var(--brand-soft); color: var(--brand); padding: var(--sp-25) var(--sp-100); border-radius: var(--r-sm); font-size: 12px; font-weight: 600; margin-bottom: var(--sp-100); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-200); margin-top: var(--sp-400); padding-top: var(--sp-300); border-top: 1px solid var(--line); }
@media (max-width: 600px) { .metric-strip { grid-template-columns: 1fr; } }
.metric-val { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--brand); font-family: var(--font-mono); }

/* Container-Query Responsive Spec Tables */
.table-wrapper { container-type: inline-size; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface-elevated); margin-block: var(--sp-300); }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.spec-table th, .spec-table td { padding: var(--sp-200); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink); }
.spec-table th { background: var(--surface); font-weight: 600; color: var(--ink); }
.spec-table tr:last-child td { border-bottom: none; }
@container (width < 600px) {
  .spec-table thead { display: none; }
  .spec-table tr { display: block; padding: var(--sp-200); border-bottom: 1px solid var(--line-strong); }
  .spec-table td { display: block; padding: var(--sp-50) 0; border: none; }
  .spec-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--brand); }
}

/* 10-Golden-Standard Inquiry Form & Spec Chips */
.rfq-box { background: var(--surface-elevated); border: 2px solid var(--brand); border-radius: var(--r-xl); padding: var(--sp-500); box-shadow: var(--shadow-md); }
@media (max-width: 600px) { .rfq-box { padding: var(--sp-300); } }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-75); margin-bottom: var(--sp-300); }
.spec-chip { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--sp-75) var(--sp-200); font-size: 14px; font-weight: 500; cursor: pointer; min-height: 44px; }
.spec-chip.active, .spec-chip:hover { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
.field { margin-bottom: var(--sp-200); }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: var(--sp-25); }
.field .hint { display: block; font-size: 12px; color: var(--muted); margin-bottom: var(--sp-50); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: var(--sp-100) var(--sp-200); border: 1px solid var(--line-strong); border-radius: var(--r-md); font-family: var(--font-sans); font-size: 16px; color: var(--ink); background: #FFFFFF; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.hp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Floating Instant FOB BOM & MOQ Calculator */
.calc-fab { position: fixed; right: var(--sp-300); bottom: var(--sp-300); z-index: 50; background: var(--brand); color: #FFFFFF; border: 2px solid #FFFFFF; border-radius: var(--r-2xl); padding: var(--sp-100) var(--sp-300); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-md); min-height: 48px; display: flex; align-items: center; gap: var(--sp-75); max-width: calc(100vw - 24px); }
.calc-fab:hover { background: var(--accent); }
@media (max-width: 600px) {
  body { padding-bottom: var(--sp-700); }
  .calc-fab { right: var(--sp-100); bottom: var(--sp-100); padding: var(--sp-75) var(--sp-200); font-size: 12px; min-height: 44px; }
}
.calc-drawer { position: fixed; right: var(--sp-300); bottom: 84px; z-index: 55; width: min(420px, calc(100vw - 32px)); background: var(--surface-elevated); border: 2px solid var(--brand); border-radius: var(--r-xl); padding: var(--sp-300); box-shadow: var(--shadow-md); display: none; }
.calc-drawer.open { display: block; }
.calc-result { background: var(--brand-soft); border: 1px solid var(--brand); border-radius: var(--r-md); padding: var(--sp-200); margin-block: var(--sp-200); }

/* Footer & Consent Banner */
.site-footer { background: var(--surface); padding-block: var(--sp-700); border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); }
.consent-bar { position: fixed; left: var(--sp-300); bottom: var(--sp-300); z-index: 45; max-width: 420px; background: var(--surface-elevated); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: var(--sp-200); box-shadow: var(--shadow-md); display: none; font-size: 14px; }
details.faq-item { background: var(--surface-elevated); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-200) var(--sp-300); margin-bottom: var(--sp-100); }
details.faq-item summary { font-size: 18px; font-weight: 500; cursor: pointer; color: var(--ink); }
details.faq-item p { margin: var(--sp-100) 0 0; color: var(--muted); }
