/* ============================================================
   中策大数据 · 行业专题页设计系统（base）
   所有配色/字体变量由 palette(pN.css) 与 archetype(tN.css) 提供
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin: .35em 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--on-accent); }

:root {
  --wrap: 1180px;
  --gap: clamp(18px, 2.4vw, 32px);
  --r: 4px;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --on-accent: #fff;
  --dur: .55s;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.wrap-wide { max-width: 1400px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 10px 18px; z-index: 99; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- 头部 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; font-size: 15px; flex: none; }
.brand img { width: 26px; height: 26px; }
.brand small { font-weight: 500; color: var(--ink-2); letter-spacing: .06em; font-size: 11px; }

.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

.head-cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 9px 16px; border: 1px solid var(--accent); color: var(--accent);
  transition: background .25s, color .25s;
}
.head-cta:hover { background: var(--accent); color: var(--on-accent); }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); background: none; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.burger span { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }

/* ---------- 通用文字 ---------- */
.kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.display { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.16; letter-spacing: -.02em; font-weight: 700; }
.display em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(15px, 1.35vw, 17.5px); line-height: 1.85; color: var(--ink-2); max-width: 62ch; }
.small { font-size: 13px; color: var(--ink-2); }
.mono { font-family: var(--font-mono); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; padding: 13px 24px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 70%, transparent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- 少量工具类（用于替代模板里的内联 style，便于统一维护） ---------- */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 14px; }
.foot-brand { margin-bottom: 12px; }
.foot-logo {
  width: 24px; height: 24px; flex: none;
  background: url(/Public/industry/img/logo.svg) center / contain no-repeat;
}
.foot-desc { max-width: 34ch; }
.card--wide { grid-column: span 2; }
.ind-filter {
  width: 100%; max-width: 420px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 20px;
  border-radius: 10px;
}
.ind-filter:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cta .btn-row { margin-top: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 4vw, 56px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; }
.hero-note { margin-top: 22px; font-size: 12.5px; color: var(--ink-2); font-family: var(--font-mono); letter-spacing: .04em; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 18px 0 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .5; }

/* ---------- 数据带 ---------- */
.statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(20px, 2.4vw, 30px) clamp(14px, 2vw, 26px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; font-size: .48em; font-weight: 600; margin-left: 4px; color: var(--accent); }
.stat span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); letter-spacing: .02em; }

/* ---------- 区块 ---------- */
.sec { padding: clamp(44px, 6vw, 82px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: clamp(12px, 3vw, 40px); align-items: start; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); padding-top: 8px; }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.015em; }
.sec-head .sub { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; max-width: 62ch; }
.prose { max-width: 74ch; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 22px 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--accent); color: var(--ink-2); font-size: 15px; }

/* ---------- 卡片组 ---------- */
.cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 2vw, 26px); transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.card .tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .08em; display: block; margin-bottom: 10px; }
.card b { font-variant-numeric: tabular-nums; }

/* ---------- 细分行业列表 ---------- */
.subs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.sub-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.sub-row:hover { background: var(--bg2); padding-left: 12px; }
.sub-row .n { font-weight: 600; font-size: 15.5px; }
.sub-row .n small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.sub-row .c { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.sub-row .c b { color: var(--accent); font-weight: 600; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.tbl th, table.tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); text-transform: uppercase; background: var(--bg2); font-family: var(--font-mono); }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td:first-child { font-weight: 600; white-space: nowrap; }
table.tbl tbody tr:hover { background: var(--bg2); }

/* ---------- 时间轴 ---------- */
.timeline { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.tl-item { position: relative; padding: 0 0 26px 30px; border-left: 1px solid var(--line-2); margin: 0; }
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl-item::before { content: ""; position: absolute; left: -4.5px; top: 8px; width: 8px; height: 8px; background: var(--bg); border: 1.5px solid var(--accent); border-radius: 50%; }
.tl-item b { display: block; font-size: 15px; }
.tl-item span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.tl-item.hot::before { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---------- 关键词 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.chips li { margin: 0; font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line-2); color: var(--ink-2); background: transparent; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: 16px; align-items: baseline; padding: 16px 0; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); font-size: 18px; color: var(--accent); transition: transform .25s; font-weight: 400; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; max-width: 76ch; }
.faq .q-idx { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); flex: none; padding-top: 2px; }

/* ---------- 相关行业 ---------- */
.rel { display: flex; flex-wrap: wrap; gap: 10px; }
.rel a { font-size: 13.5px; padding: 9px 15px; border: 1px solid var(--line-2); transition: .22s; }
.rel a:hover { border-color: var(--accent); color: var(--accent); background: var(--bg2); }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line); background: var(--bg2); }
.cta-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(38px, 5vw, 66px) 0; }
.cta h2 { font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -.015em; }
.cta p { margin: 12px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 56ch; }

/* ---------- 页脚 ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: 13px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { font-size: 12.5px; letter-spacing: .1em; color: var(--ink); margin-bottom: 12px; font-family: var(--font-mono); text-transform: uppercase; }
.foot-grid a { display: block; padding: 3px 0; }
.foot-note { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) ease, transform var(--dur) cubic-bezier(.2,.7,.2,1); }
.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: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; gap: 8px; }
  .sec-idx { padding-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-in { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .head-cta { display: none; }
  .card--wide { grid-column: span 1; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .sub-row { grid-template-columns: 1fr; gap: 4px; }
  .card--wide { grid-column: span 1; }
}
@media print {
  .site-head, .cta, .hero-art, .burger { display: none; }
  body { background: #fff; color: #000; }
}
