/* ============================================================
   TitanWatt — design-tokens.css
   方向 A：镉橙机房 Cadmium Rack
   Archivo + Inter + JetBrains Mono · 深钢青 #12181D + 镉橙 #FF6B1A
   本文件为本站从零产出，禁止跨站复制
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* 正文浅色系统 */
  --bg: #F4F5F3;
  --surface: #FFFFFF;
  --surface-2: #EDEFEA;
  --ink: #1A222A;
  --muted: #55616B;
  --line: #DDE1DC;

  /* 深色钢青系统（hero/band/CTA/footer） */
  --steel-900: #12181D;
  --steel-800: #1A232B;
  --steel-700: #26313B;
  --steel-line: #2E3A45;
  --steel-text: #C9D1D8;
  --steel-muted: #8A96A0;

  /* 镉橙 accent */
  --accent: #FF6B1A;            /* 按钮/图形底，配 --steel-900 深字 */
  --accent-ink: #B34300;        /* 浅底上的橙文字（≥4.5:1） */
  --accent-soft: rgba(255, 107, 26, 0.12);
  --accent-line: #FF8A47;

  /* 钛金属 */
  --titanium: #C7CDD2;
  --titanium-dark: #9BA3AA;

  /* 状态（瓦数路线） */
  --status-prod: #1F7A3D;
  --status-dev: #B34300;
  --status-road: #55616B;

  /* 字体 */
  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* 版式 */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 10px rgba(18, 24, 29, 0.07);
  --shadow-lg: 0 10px 32px rgba(18, 24, 29, 0.13);
  --container: 1180px;

  /* 节奏 */
  --sec-pad: 72px;
  --card-gap: 20px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-display); line-height: 1.15; }
h1, .h1 { font-size: 44px; font-weight: 900; letter-spacing: -0.015em; margin-bottom: 18px; }
h2, .h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
h3, .h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
p { margin-bottom: 14px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: var(--sec-pad) 0; }
section.tight { padding: 44px 0; }

/* ---------- 签名元素：瓦数芯片标签 ---------- */
.watt-chip {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid rgba(255, 107, 26, 0.35);
}
.watt-chip.on-dark { background: rgba(255, 107, 26, 0.16); color: var(--accent); }
.watt-chip.prod { background: rgba(31, 122, 61, 0.1); color: var(--status-prod); border-color: rgba(31, 122, 61, 0.3); }
.watt-chip.road { background: rgba(85, 97, 107, 0.12); color: var(--status-road); border-color: rgba(85, 97, 107, 0.3); }

/* 端子标签 eyebrow（P12 变体：左侧橙条） */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 16px;
  display: inline-block;
}
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--accent); }

/* ---------- 深色板块 ---------- */
.section--dark { background: var(--steel-900); color: var(--steel-text); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #EFF3F5; }
.section--dark p { color: var(--steel-muted); }

/* ---------- 网格 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--card-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--card-gap); }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; }
.card-body h3, .card-body .f-h4 { font-size: 17px; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.card-link { font-weight: 600; font-size: 14px; display: inline-block; padding: 9px 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--steel-900); }
.btn-primary:hover { background: #FF7E38; text-decoration: none; }
.btn-dark { background: var(--steel-900); color: #F2F4F6; }
.btn-dark:hover { background: var(--steel-700); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: rgba(18, 24, 29, 0.06); text-decoration: none; }
.btn-ghost.on-dark { color: var(--steel-text); border-color: var(--steel-line); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,0.06); }

/* ---------- 图文分屏（P2） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-media { min-height: 380px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-body { order: 1; }

/* ---------- 数据带（P4） ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--card-gap); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.stat-card .num { font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; overflow-wrap: anywhere; }
.stat-card .num em { font-style: normal; color: var(--accent-ink); }
.stat-card .lbl { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- 数据表（P5） ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.spec-table th { background: var(--steel-900); color: var(--steel-text); text-align: left; padding: 12px 16px; font-weight: 600; }
.spec-table td { padding: 11px 16px; border-top: 1px solid var(--line); }
.spec-table tr td:first-child { font-weight: 600; width: 30%; }
.spec-table .mono { font-family: var(--font-mono); font-size: 14px; }

/* ---------- 步骤条（P6） ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 6px 9px;
  flex-shrink: 0;
}
.step h4, .step .step-title, .step .f-h4 { font-size: 15.5px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- FAQ 手风琴（P7） ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600; color: var(--ink);
  padding: 17px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .chev { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 20px 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- Quote/CTA band（P9） ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--steel-900); }
.cta-band img.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.cta-band .cta-inner { position: relative; padding: 64px 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--steel-text); max-width: 560px; margin: 0 auto 24px; }

/* ---------- 徽章 ---------- */
.status-badge {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 99px; display: inline-block; margin-bottom: 12px;
}
.status-badge.dev { background: var(--accent); color: var(--steel-900); }
.status-badge.road { background: var(--steel-700); color: var(--steel-text); }

/* ---------- 询盘弹窗（左图右表，硬约束 22） ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(18, 24, 29, 0.66); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-dialog { display: grid; grid-template-columns: 1fr 1fr; max-width: 760px; width: 100%; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; max-height: 92vh; }
.modal-image-panel { position: relative; min-height: 420px; }
.modal-image-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-image-panel .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,24,29,0.1) 30%, rgba(18,24,29,0.82)); display: flex; align-items: flex-end; padding: 24px; }
.modal-image-panel .overlay p { color: #E8ECEF; font-size: 14px; margin: 0; }
.modal-form-panel { padding: 32px 30px; overflow-y: auto; }
.modal-form-panel h3 { font-size: 21px; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; background: rgba(18,24,29,0.55); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; }

/* ---------- 表单 ---------- */
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14.5px; background: #FCFCFB; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

/* ---------- 页头导航 ---------- */
.site-header { background: var(--steel-900); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--steel-line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 19px; color: #F2F4F6; letter-spacing: 0.01em; padding: 8px 0; }
.brand img { height: 30px; width: auto; }
.brand .watt { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > .nav-item { position: relative; }
.main-nav a.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 22px 14px;
  color: var(--steel-text); font-size: 14.5px; font-weight: 500;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: #fff; text-decoration: none; }
.main-nav a.nav-link.active { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.18s ease;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 10px 14px; border-radius: 4px; color: var(--ink); font-size: 14px; }
.nav-dropdown a:hover { background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle svg { stroke: #F2F4F6; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--steel-900); color: var(--steel-muted); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer .footer-h { color: #E8ECEF; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin-bottom: 14px; }
.site-footer a { color: var(--steel-muted); font-size: 14px; display: block; padding: 10px 0; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 32px; width: 32px; margin-bottom: 14px; }
.footer-brand > a:first-child { padding: 0; display: inline-block; }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--steel-line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }

/* ---------- 轻 hero（P1d） ---------- */
.hero-light { background: linear-gradient(180deg, var(--surface-2), var(--bg)); padding: 46px 0 40px; }
.hero-light h1 { font-size: 36px; margin-bottom: 12px; }
.hero-light .lead { font-size: 16.5px; color: var(--muted); max-width: 720px; }

/* ---------- 深色主题覆盖成对规则 ---------- */
.section--dark .btn-ghost { color: var(--steel-text); border-color: var(--steel-line); }
.section--dark .stat-card { background: var(--steel-800); border-color: var(--steel-line); }
.section--dark .stat-card .num { color: #EFF3F5; }
.section--dark .stat-card .lbl { color: var(--steel-muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  h1, .h1 { font-size: 36px; }
  h2, .h2 { font-size: 27px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split-media, .split.reverse .split-media { order: 0; min-height: 300px; }
  .split-body, .split.reverse .split-body { order: 1; padding: 32px 26px; }
}
@media (max-width: 680px) {
  :root { --sec-pad: 48px; }
  .spec-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stat-card .num { font-size: 24px; }
  h1, .h1 { font-size: 29px; }
  h2, .h2 { font-size: 23px; }
  .hero-light h1 { font-size: 26px; }
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .main-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--steel-900); flex-direction: column; align-items: stretch;
    padding: 12px 18px 22px; gap: 0; box-shadow: 0 14px 24px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 13px 4px; width: 100%; justify-content: space-between; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--steel-800); display: none; min-width: 0; }
  .nav-item:hover .nav-dropdown { display: block; }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-cta { margin: 14px 0 0; }
  .nav-toggle { display: block; }
  .modal-dialog { grid-template-columns: 1fr; max-height: 94vh; }
  .modal-image-panel { min-height: 180px; }
  .cta-band .cta-inner { padding: 44px 22px; }
  .btn { width: 100%; max-width: 360px; }
  .cta-inner .btn, .hero-ctas .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* 通用 f-h4（原 h4 降级，避免标题层级跳级） */
.f-h4 { font-weight: 700; font-size: 15.5px; margin-bottom: 8px; }
