/* SKSTEEL 非洲双站共享设计系统 — 令牌与组件（皮肤变量由 [data-theme] 切换）
   依据 sites/DESIGN.md；字体 Archivo / IBM Plex Sans / IBM Plex Mono 自托管 */

@font-face { font-family:"Archivo"; src:url("/static/fonts/archivo-700.woff2") format("woff2"); font-weight:700; font-display:swap; }
@font-face { font-family:"Archivo"; src:url("/static/fonts/archivo-500.woff2") format("woff2"); font-weight:500; font-display:swap; }
@font-face { font-family:"IBM Plex Sans"; src:url("/static/fonts/plexsans-400.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"IBM Plex Sans"; src:url("/static/fonts/plexsans-600.woff2") format("woff2"); font-weight:600; font-display:swap; }
@font-face { font-family:"IBM Plex Mono"; src:url("/static/fonts/plexmono-400.woff2") format("woff2"); font-weight:400; font-display:swap; }

:root {
  --f-head: "Archivo", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --r-card: 8px; --r-btn: 4px; --r-input: 6px;
  --gap: 24px;
  --maxw: 1180px;
  --c-bg: #FAFAF9;          /* 冷钢白 stone-50 */
  --c-surface: #FFFFFF;
  --c-ink: #1C1917;         /* stone-900 */
  --c-ink-2: #57534E;       /* stone-600 */
  --c-line: #E7E5E4;        /* stone-200 */
  --ease-out: cubic-bezier(.16,1,.3,1);
}
/* 站1：SK STEEL 品牌，钢蓝 */
[data-theme="brand"] { --c-accent: #1D4E89; --c-accent-ink:#FFFFFF; --c-accent-soft:#EAF1F8; --c-band:#12294A; --c-band-ink:#DCE7F5; }
/* 站2：品类配供站，石墨+安全橙 */
[data-theme="supply"] { --c-accent: #C2410C; --c-accent-ink:#FFFFFF; --c-accent-soft:#FDF0E7; --c-band:#23272E; --c-band-ink:#E5E7EB; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after{ animation:none!important; transition:none!important; } }

body { margin:0; font-family: var(--f-body); color: var(--c-ink); background: var(--c-bg); line-height: 1.6; font-size: 16px; }
h1,h2,h3,h4 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.13rem; }
p  { margin: 0 0 1em; }
a  { color: var(--c-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(250,250,249,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--c-line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-family: var(--f-head); font-weight: 800; font-size: 19px; color: var(--c-ink); letter-spacing: .01em; white-space: nowrap; }
.logo b { color: var(--c-accent); font-weight: 800; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--c-ink-2); font-size: 14.5px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--c-accent); }
.nav-cta { background: var(--c-accent); color: var(--c-accent-ink)!important; padding: 9px 16px; border-radius: var(--r-btn); font-weight: 600; }
.nav-cta:hover { filter: brightness(1.08); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--c-line); border-radius: var(--r-btn); padding: 7px 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--c-ink); margin: 4px 0; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--c-surface); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 4px; border-bottom: 1px solid var(--c-line); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; }
  .burger { display: block; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; } .hero { padding: 44px 0; } }
.kicker { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 14px; }
.hero p.lede { font-size: 18px; color: var(--c-ink-2); max-width: 46ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-block; font-weight: 600; font-size: 15.5px; padding: 13px 24px; border-radius: var(--r-btn); border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease-out), filter .18s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--c-line); color: var(--c-ink); background: var(--c-surface); }
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-card); overflow: hidden; margin-top: 44px; }
.stat { background: var(--c-surface); padding: 18px 20px; }
.stat .n { font-family: var(--f-mono); font-size: 26px; font-weight: 600; color: var(--c-accent); }
.stat .l { font-size: 13px; color: var(--c-ink-2); }
@media (max-width: 760px){ .stats { grid-template-columns: repeat(2,1fr);} }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.band { background: var(--c-band); color: var(--c-band-ink); }
.band h2, .band h3 { color: #fff; }

/* product cards */
.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px){ .grid.c3,.grid.c4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .grid.c3,.grid.c4 { grid-template-columns: 1fr;} }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 22px; min-width: 0; transition: border-color .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }
a.card:hover { border-color: var(--c-accent); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.card h3 { margin-bottom: 6px; color: var(--c-ink); }
.card p { font-size: 14px; color: var(--c-ink-2); margin: 0; }
.card .tag { display:inline-block; font-family: var(--f-mono); font-size: 11.5px; color: var(--c-accent); background: var(--c-accent-soft); border-radius: 3px; padding: 2px 7px; margin: 0 6px 6px 0; }

/* ---------- product page ---------- */
.page-head { padding: 52px 0 30px; border-bottom: 1px solid var(--c-line); }
.crumbs { font-size: 13px; color: var(--c-ink-2); margin-bottom: 16px; }
.crumbs a { color: var(--c-ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
@media (max-width: 960px){ .two-col { grid-template-columns: 1fr; } }
.spec-card { position: sticky; top: 84px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 24px; }
.spec-card .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--c-line); }
.spec-card .row:last-of-type { border-bottom: 0; }
.spec-card .row b { font-weight: 600; }

/* tables */
.tbl-scroll { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.data th { background: var(--c-band); color: #fff; text-align: left; padding: 9px 14px; font-family: var(--f-head); font-weight: 600; white-space: nowrap; }
table.data td { padding: 8px 14px; border-top: 1px solid var(--c-line); font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
table.data tr:nth-child(even) td { background: #F5F5F4; }

/* checklist blocks */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px){ .duo { grid-template-columns: 1fr; } }
.block { background: var(--c-surface); border-left: 3px solid var(--c-accent); border-radius: 0 var(--r-card) var(--r-card) 0; padding: 18px 20px; border-top:1px solid var(--c-line); border-right:1px solid var(--c-line); border-bottom:1px solid var(--c-line); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 26px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid var(--c-line); border-radius: var(--r-input); background: #fff; color: var(--c-ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-accent); }
.field .err { color: #B91C1C; font-size: 12.5px; margin-top: 4px; min-height: 1em; }
.form-note { font-size: 13px; color: var(--c-ink-2); }
.sent { display:none; background:#ECFDF5; border:1px solid #A7F3D0; color:#065F46; border-radius: var(--r-card); padding: 18px; font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { margin-top: 72px; background: var(--c-band); color: var(--c-band-ink); padding: 52px 0 30px; font-size: 14px; }
.site-foot a { color: var(--c-band-ink); }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
@media (max-width: 800px){ .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: 12.5px; opacity: .75; }

/* reveal (JS 门控，无 JS 全部可见) */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ html.js .reveal { opacity:1; transform:none; } }
