/* ============================================================
   服装厂全链路 AI 赋能方案 — 设计系统
   风格：高端咨询商务风（深蓝 + 白 + 金）
   图表色（已通过 dataviz 校验器）：
     一期金 #a57b23 / 二期蓝 #2a78d6 / 三期深蓝 #184f95
   ============================================================ */

:root {
  /* 品牌色 */
  --navy-950: #0a1f38;
  --navy-900: #0f2b4c;
  --navy-800: #163a63;
  --navy-700: #1c3f6e;
  --navy-100: #dce6f2;
  --gold-700: #8f6a1d;
  --gold-600: #a57b23;
  --gold-400: #b08d3f;
  --gold-200: #e8d9b8;
  --gold-100: #f5eedd;

  /* 图表分类色（validator 通过：CVD ΔE 20.2） */
  --phase1: #a57b23;
  --phase2: #2a78d6;
  --phase3: #184f95;

  /* 中性色 */
  --paper: #faf9f7;
  --card: #ffffff;
  --ink-900: #16202c;
  --ink-600: #4a5768;
  --ink-400: #7f8a99;
  --line: #e5e2da;
  --line-soft: #eeece6;

  /* 字体 */
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif-en: Georgia, "Times New Roman", serif;

  --maxw: 1120px;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(15, 43, 76, 0.04), 0 8px 28px rgba(15, 43, 76, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light only; }

body {
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-200); color: var(--navy-900); }

img, svg { max-width: 100%; }

/* ---------- 通用容器与节 ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section.block { padding: 104px 0; }
section.block.tint { background: #f4f2ec; }
section.block.dark { background: var(--navy-900); color: #eef2f7; }

/* 节头：编号 + 标题 + 引言 */
.sec-head { margin-bottom: 56px; max-width: 780px; }
.sec-no {
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: 0.35em;
  color: var(--gold-600);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.sec-no::after { content: ""; height: 1px; width: 64px; background: var(--gold-400); opacity: 0.6; }
.sec-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--navy-900);
}
.block.dark .sec-title { color: #fff; }
.sec-lede { margin-top: 20px; font-size: 17px; color: var(--ink-600); }
.block.dark .sec-lede { color: #b9c6d8; }

/* ---------- 顶部导航 ---------- */

.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 43, 76, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s;
}
.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand .dot { width: 8px; height: 8px; background: var(--gold-400); transform: rotate(45deg); flex: none; }
.navlinks { display: flex; gap: 6px; list-style: none; overflow-x: auto; }
.navlinks a {
  color: #c5d2e2;
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.navlinks a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.navlinks a.active { color: var(--gold-200); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(42, 120, 214, 0.18), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(176, 141, 63, 0.14), transparent 55%),
    var(--navy-900);
  color: #fff;
  padding: 168px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold-200);
  border: 1px solid rgba(232, 217, 184, 0.35);
  padding: 8px 18px;
  border-radius: 2px;
  margin-bottom: 36px;
  font-family: var(--serif-en);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.02em;
  max-width: 820px;
}
.hero h1 .gold { color: var(--gold-400); }
.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #b9c6d8;
  max-width: 680px;
  line-height: 1.9;
}
.hero-meta {
  margin-top: 44px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #8fa2ba;
}
.hero-meta b { color: #dfe7f0; font-weight: 600; display: block; font-size: 15px; margin-bottom: 2px; }

/* Hero 底部关键数字条 */
.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stats .stat { padding: 28px 24px 0 0; }
.hero-stats .stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.stat-value {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.stat-value .unit { font-size: 0.55em; font-weight: 500; color: var(--gold-200); margin-left: 2px; }
.stat-label { margin-top: 6px; font-size: 13.5px; color: #8fa2ba; }

/* 行内图例圆点 */
.dot-key {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin: 0 4px 0 2px;
  vertical-align: baseline;
}

/* 引用上标 */
sup a {
  color: var(--gold-600);
  text-decoration: none;
  font-size: 11px;
}
sup a:hover { text-decoration: underline; }

/* ---------- 卡片 ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ---------- 机会地图（八大板块） ---------- */

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.seg-card { padding: 30px 30px 26px; display: flex; flex-direction: column; }
.seg-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 4px; }
.seg-no {
  font-family: var(--serif-en);
  font-size: 26px;
  color: var(--gold-400);
  line-height: 1;
  min-width: 40px;
}
.seg-title { font-size: 19px; font-weight: 700; color: var(--navy-900); }
.seg-sub { font-size: 13px; color: var(--ink-400); margin-left: 54px; margin-bottom: 18px; }
.seg-pains { margin: 0 0 18px 54px; padding: 0; list-style: none; }
.seg-pains li {
  font-size: 14.5px;
  color: var(--ink-600);
  padding-left: 18px;
  position: relative;
  margin-bottom: 7px;
  line-height: 1.65;
}
.seg-pains li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.7em;
  width: 6px; height: 2px;
  background: var(--gold-400);
}
.seg-agents { margin-left: 54px; display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.agent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f7f5f0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px 16px;
}
.agent-row .ph {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  border-radius: 3px;
  padding: 3px 8px;
  margin-top: 2px;
}
.ph.p1 { background: var(--phase1); }
.ph.p2 { background: var(--phase2); }
.ph.p3 { background: var(--phase3); }
.agent-row .nm { font-size: 14.5px; font-weight: 600; color: var(--navy-900); }
.agent-row .ds { font-size: 13px; color: var(--ink-600); line-height: 1.6; margin-top: 2px; }

/* ---------- 图表通用（dataviz 规范） ---------- */

.viz-root {
  --surface-1: #ffffff;
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-600);
  --text-muted: var(--ink-400);
  --grid-hairline: #e7e5de;
  --axis: #c9c6bd;
}
.viz-card { padding: 34px 34px 28px; }
.viz-title { font-size: 17px; font-weight: 700; color: var(--navy-900); }
.viz-sub { font-size: 13.5px; color: var(--ink-400); margin-top: 4px; margin-bottom: 22px; }
.viz-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-600);
  margin-bottom: 14px;
}
.viz-legend .key { display: inline-flex; align-items: center; gap: 8px; }
.viz-legend .sw { width: 10px; height: 10px; border-radius: 50%; }

/* 矩阵散点 tooltip */
.viz-tip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  background: var(--navy-900);
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(10, 31, 56, 0.35);
  max-width: 260px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
}
.viz-tip.show { opacity: 1; transform: translateY(0); }
.viz-tip b { color: var(--gold-200); }

/* 图表配套表格（table-view twin） */
.viz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.viz-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-400);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.viz-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-600); vertical-align: top; }
.viz-table td:first-child { color: var(--ink-900); font-weight: 600; white-space: nowrap; }
.viz-table tr:last-child td { border-bottom: none; }
.viz-table .num { font-variant-numeric: tabular-nums; }

.table-scroll { overflow-x: auto; }

/* ---------- 路线图时间轴 ---------- */

.roadmap { position: relative; margin-top: 8px; }
.roadmap::before {
  content: "";
  position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--phase1), var(--phase2) 45%, var(--phase3));
  border-radius: 1px;
}
.rm-item { position: relative; padding: 0 0 44px 64px; }
.rm-item:last-child { padding-bottom: 0; }
.rm-node {
  position: absolute;
  left: 8px; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.rm-item.p1 .rm-node { background: var(--phase1); }
.rm-item.p2 .rm-node { background: var(--phase2); }
.rm-item.p3 .rm-node { background: var(--phase3); }
.rm-phase { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 6px; }
.rm-item.p1 .rm-phase { color: var(--phase1); }
.rm-item.p2 .rm-phase { color: var(--phase2); }
.rm-item.p3 .rm-phase { color: var(--phase3); }
.rm-title { font-size: 21px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.rm-desc { font-size: 15px; color: var(--ink-600); max-width: 720px; }
.rm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rm-tags span {
  font-size: 13px;
  color: var(--ink-600);
  background: #f4f1ea;
  border: 1px solid var(--line-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- 一期速赢 Agent 详解卡 ---------- */

.win-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.win-card { padding: 30px 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.win-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--phase1);
}
.win-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--gold-100);
  color: var(--gold-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.win-icon svg { width: 24px; height: 24px; }
.win-name { font-size: 18.5px; font-weight: 700; color: var(--navy-900); }
.win-for { font-size: 12.5px; color: var(--gold-600); letter-spacing: 0.05em; margin: 4px 0 14px; font-weight: 600; }
.win-desc { font-size: 14.5px; color: var(--ink-600); flex: 1; }
.win-facts { margin-top: 20px; border-top: 1px solid var(--line-soft); padding-top: 16px; display: grid; gap: 8px; }
.win-facts .f { display: flex; justify-content: space-between; font-size: 13.5px; }
.win-facts .f .k { color: var(--ink-400); }
.win-facts .f .v { color: var(--ink-900); font-weight: 600; text-align: right; }

/* ---------- 流程总览横向图 ---------- */

.flowline { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; margin-top: 12px; }
.fl-step { position: relative; padding: 0 10px; text-align: center; }
.fl-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px; top: 26px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--gold-400);
  border-right: 2px solid var(--gold-400);
  transform: rotate(45deg) scale(0.7);
  opacity: 0.7;
}
.fl-ico {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--navy-100);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fl-ico svg { width: 26px; height: 26px; }
.fl-name { font-size: 14px; font-weight: 700; color: var(--navy-900); line-height: 1.4; }
.fl-en { font-size: 10.5px; color: var(--ink-400); letter-spacing: 0.12em; margin-top: 3px; font-family: var(--serif-en); }

/* ---------- 引用论据 / 脚注 ---------- */

.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ev-card { padding: 26px 26px 22px; }
.ev-num {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.15;
}
.ev-num .unit { font-size: 0.5em; font-weight: 500; color: var(--gold-600); }
.ev-claim { font-size: 14px; color: var(--ink-600); margin-top: 10px; }
.ev-src { font-size: 12px; color: var(--ink-400); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.ev-src a { color: var(--ink-400); text-decoration: none; border-bottom: 1px dotted var(--ink-400); }
.ev-src a:hover { color: var(--gold-600); border-color: var(--gold-600); }

/* ---------- 合作模式 ---------- */

.coop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.coop-card { padding: 34px 30px; display: flex; flex-direction: column; }
.coop-card.hl { border-color: var(--gold-400); box-shadow: 0 2px 4px rgba(165,123,35,0.08), 0 12px 36px rgba(165,123,35,0.14); position: relative; }
.coop-badge {
  position: absolute;
  top: -12px; left: 30px;
  background: var(--gold-600);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
}
.coop-phase { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold-600); margin-bottom: 8px; }
.coop-title { font-size: 21px; font-weight: 700; color: var(--navy-900); margin-bottom: 14px; }
.coop-desc { font-size: 14.5px; color: var(--ink-600); margin-bottom: 20px; }
.coop-list { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.coop-list li {
  font-size: 14px;
  color: var(--ink-600);
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px dashed var(--line-soft);
}
.coop-list li:last-child { border-bottom: none; }
.coop-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 14px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--gold-600);
  border-bottom: 2px solid var(--gold-600);
  transform: rotate(-45deg);
}
.coop-note { font-size: 13px; color: var(--ink-400); border-top: 1px solid var(--line-soft); padding-top: 16px; }

/* ---------- 附录：技术路径 ---------- */

.tech-rows { display: flex; flex-direction: column; gap: 14px; }
.tech-row { padding: 22px 26px; display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.tech-row .tn { font-size: 15.5px; font-weight: 700; color: var(--navy-900); padding-top: 2px; }
.tech-row .tn small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-400); margin-top: 4px; }
.tech-row .td { font-size: 14px; color: var(--ink-600); }
.tech-row .td code {
  font-size: 12.5px;
  background: #f4f1ea;
  border: 1px solid var(--line-soft);
  padding: 1px 7px;
  border-radius: 4px;
  color: var(--navy-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- 承诺条 / 降门槛双栏 ---------- */

.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lever-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ---------- CTA / 页脚 ---------- */

.cta {
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(176, 141, 63, 0.2), transparent 60%),
    var(--navy-950);
  color: #fff;
  text-align: center;
  padding: 96px 0;
}
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.4; }
.cta p { margin: 18px auto 0; max-width: 560px; color: #b9c6d8; font-size: 16px; }
.cta .gold { color: var(--gold-400); }

footer {
  background: var(--navy-950);
  color: #6e8098;
  font-size: 12.5px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- 滚动入场动画（尊重减弱动效偏好） ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .map-grid { grid-template-columns: 1fr; }
  .win-grid { grid-template-columns: 1fr; }
  .coop-grid { grid-template-columns: 1fr; }
  .evidence { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat { padding: 22px 18px 0 0; }
  .hero-stats .stat:nth-child(odd) { padding-left: 0; border-left: none; }
  .flowline { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .fl-step:nth-child(4)::after { display: none; }
  .tech-row { grid-template-columns: 1fr; gap: 8px; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .lever-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  section.block { padding: 72px 0; }
  .wrap { padding: 0 20px; }
  .evidence { grid-template-columns: 1fr; }
  .flowline { grid-template-columns: repeat(2, 1fr); }
  .fl-step:nth-child(even)::after { display: none; }
  .hero { padding: 132px 0 72px; }
  .hero-meta { gap: 20px; }
  .seg-sub, .seg-pains, .seg-agents { margin-left: 0; }
  .navlinks { display: none; }
  .rm-item { padding-left: 52px; }
  .promise-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- 打印 / PDF（置于文件末尾，覆盖窄视口的响应式规则） ---------- */

@media print {
  .topnav { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  section.block { padding: 40px 0; }
  .hero { padding: 60px 0 40px; }
  .card, .win-card, .seg-card, .coop-card, .ev-card, .tech-row, .rm-item { break-inside: avoid; }
  .hero, .cta, .topnav, footer, .block.dark {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .viz-tip { display: none; }
  .map-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .win-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .coop-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .evidence { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .promise-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .lever-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stats .stat { padding: 22px 18px 0 0; }
  .hero-stats .stat + .stat { padding-left: 18px; border-left: 1px solid rgba(255,255,255,0.1); }
  .flowline { grid-template-columns: repeat(8, 1fr); row-gap: 0; }
  .fl-step:nth-child(even)::after, .fl-step:nth-child(4)::after { display: block; }
  .fl-step:last-child::after { display: none; }
  .seg-card { padding: 20px 20px 18px; }
  .seg-pains, .seg-agents { margin-left: 0; }
  .seg-sub { margin-left: 0; }
  .navlinks { display: none; }
}
