/* ============================================================
   智慧互动 · GEO 白皮书在线阅读页
   浅色米白底 + 白卡片 + 品牌蓝强调
   所有变量加 wp- 前缀，避免与站点 common.css 冲突
   ============================================================ */

/* ---------- 1. 变量与基础 ---------- */
.wp-page {
  --wp-bg: #F7F8FA;
  --wp-surface: #FFFFFF;
  --wp-surface-2: #FBFCFD;
  --wp-ink: #14202E;
  --wp-ink-2: #3D4A5C;
  --wp-ink-3: #5C6878;
  --wp-line: #E4E8EF;
  --wp-line-soft: #EFF2F6;
  --wp-primary: #0052CC;
  --wp-primary-2: #0A6FD0;
  --wp-primary-soft: #EEF4FF;
  --wp-radius: 16px;
  --wp-radius-sm: 10px;
  --wp-shadow: 0 1px 2px rgba(20, 32, 46, .04), 0 12px 32px rgba(20, 32, 46, .05);
  --wp-prose: 44rem;

  background: var(--wp-bg);
  color: var(--wp-ink);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

.wp-page img { max-width: 100%; height: auto; }

.wp-container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* 阅读进度条 */
.wp-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--wp-primary), #3B8BE8);
  z-index: 1200;
  transition: width .12s linear;
}

/* ---------- 2. 封面 ---------- */
.wp-hero {
  padding: calc(var(--header-height, 72px) + 52px) 0 64px;
  background:
    radial-gradient(120% 100% at 82% 0%, rgba(0, 82, 204, .07) 0%, rgba(0, 82, 204, 0) 62%),
    var(--wp-bg);
  border-bottom: 1px solid var(--wp-line);
}

.wp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 56px;
  align-items: center;
}

.wp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--wp-primary-soft);
  color: var(--wp-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.wp-hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--wp-ink);
}

.wp-hero__sub {
  margin: 0 0 24px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--wp-ink-2);
  max-width: 46em;
}

.wp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--wp-ink-3);
}

.wp-meta li { display: flex; gap: 8px; }
.wp-meta strong { color: var(--wp-ink-2); font-weight: 600; }

.wp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.wp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.wp-btn--primary {
  background: var(--wp-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 82, 204, .22);
}
.wp-btn--primary:hover,
.wp-btn--primary:focus-visible { background: #0046AE; }

.wp-btn--ghost {
  background: var(--wp-surface);
  border-color: var(--wp-line);
  color: var(--wp-ink-2);
}
.wp-btn--ghost:hover,
.wp-btn--ghost:focus-visible { border-color: #C3D4EC; color: var(--wp-primary); }

.wp-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* 封面缩略图 */
.wp-hero__cover {
  position: relative;
  padding: 10px;
  background: var(--wp-surface);
  border: 1px solid var(--wp-line);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(20, 32, 46, .12);
  transform: rotate(-1.5deg);
}

.wp-hero__cover img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.wp-hero__cover figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--wp-ink-3);
  text-align: center;
  transform: rotate(0deg);
}

/* ---------- 3. 摘要卡片 ---------- */
.wp-abstract {
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
  background: var(--wp-surface);
  border: 1px solid var(--wp-line);
  border-radius: var(--wp-radius);
  box-shadow: var(--wp-shadow);
  padding: 40px 44px;
}

.wp-abstract h2 {
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: .01em;
}

.wp-abstract p {
  margin: 0 0 16px;
  color: var(--wp-ink-2);
  font-size: 15.5px;
  line-height: 1.9;
  max-width: var(--wp-prose);
}
.wp-abstract p:last-child { margin-bottom: 0; }

.wp-keywords {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--wp-line);
  font-size: 13.5px;
  color: var(--wp-ink-3);
}
.wp-keywords span {
  display: inline-block;
  margin: 0 8px 6px 0;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--wp-primary-soft);
  color: #2A5FA8;
}

/* ---------- 4. 主体布局 ---------- */
.wp-body {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding: 56px 0 96px;
}

/* 侧边目录 */
.wp-toc {
  grid-column: 1;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

/* body 是滚动容器导致 sticky 失效，JS 会接管为 fixed */
.wp-toc.is-fixed {
  position: fixed;
  z-index: 30;
  max-height: calc(100vh - 116px);
  padding: 0 4px 0 0;
}

.wp-toc__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wp-ink-3);
}

.wp-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--wp-line);
}

.wp-toc li { margin: 0; }

.wp-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--wp-ink-3);
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}
.wp-toc a:hover { color: var(--wp-ink); }
.wp-toc a.is-active {
  color: var(--wp-primary);
  font-weight: 600;
  border-left-color: var(--wp-primary);
}

.wp-toc__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--wp-line);
  font-size: 12.5px;
  color: var(--wp-ink-3);
}

/* 正文卡片列 */
.wp-main {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.wp-card {
  background: var(--wp-surface);
  border: 1px solid var(--wp-line);
  border-radius: var(--wp-radius);
  box-shadow: var(--wp-shadow);
  padding: 44px 46px;
}

/* 章节标题 */
.wp-chapter__num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--wp-primary);
}

.wp-card h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.42;
  letter-spacing: -.005em;
}

.wp-card h3 {
  margin: 34px 0 12px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--wp-ink);
}

.wp-card h4 {
  margin: 24px 0 10px;
  font-size: 15.5px;
  color: var(--wp-ink-2);
}

.wp-card p {
  margin: 0 0 16px;
  color: var(--wp-ink-2);
  font-size: 15.5px;
  line-height: 1.92;
  max-width: var(--wp-prose);
}

.wp-lead {
  font-size: 16.5px !important;
  color: var(--wp-ink) !important;
  line-height: 1.9 !important;
}

/* 列表 */
.wp-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  max-width: var(--wp-prose);
}

.wp-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--wp-ink-2);
}
.wp-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B9CDE8;
}

.wp-list--num { counter-reset: wpnum; }
.wp-list--num li { padding-left: 30px; }
.wp-list--num li::before { display: none; }
.wp-list--num li::after {
  counter-increment: wpnum;
  content: counter(wpnum);
  position: absolute;
  left: 0;
  top: .16em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wp-primary-soft);
  color: var(--wp-primary);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* 强调块 */
.wp-note {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--wp-primary);
  border-radius: 0 10px 10px 0;
  background: var(--wp-primary-soft);
  max-width: var(--wp-prose);
}
.wp-note p { margin: 0; font-size: 14.5px; color: #2A4B7C; }
.wp-note strong { color: #17376B; }

/* 结论卡（用于核心结论） */
.wp-point {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--wp-line-soft);
}
.wp-point:last-child { border-bottom: 1px solid var(--wp-line-soft); }
.wp-point__idx {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--wp-primary-soft);
  color: var(--wp-primary);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}
.wp-point h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--wp-ink); }
.wp-point p { margin: 0; font-size: 14.5px; line-height: 1.8; }

/* ---------- 5. 表格 ---------- */
.wp-table-wrap {
  margin: 22px 0 26px;
  border: 1px solid var(--wp-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--wp-surface);
}

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

.wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.wp-table thead th {
  padding: 12px 16px;
  background: #F2F6FC;
  color: #23405F;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--wp-line);
}

.wp-table tbody td {
  padding: 12px 16px;
  color: var(--wp-ink-2);
  line-height: 1.7;
  vertical-align: top;
  border-bottom: 1px solid var(--wp-line-soft);
}

.wp-table tbody tr:last-child td { border-bottom: 0; }
.wp-table tbody tr:nth-child(even) { background: var(--wp-surface-2); }
.wp-table strong { color: var(--wp-ink); font-weight: 600; }
.wp-table em { font-style: normal; color: var(--wp-primary); font-weight: 600; }

.wp-table-cap {
  padding: 10px 16px;
  background: var(--wp-surface-2);
  border-top: 1px solid var(--wp-line-soft);
  font-size: 12.5px;
  color: var(--wp-ink-3);
}

/* ---------- 6. 可视化组件（纯 CSS，无外部图） ---------- */

/* 三代技术时间轴 */
.wp-timeline {
  display: grid;
  gap: 0;
  margin: 24px 0;
  max-width: var(--wp-prose);
}
.wp-timeline__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--wp-line-soft);
}
.wp-timeline__item:last-child { border-bottom: 0; }
.wp-timeline__era {
  font-size: 13px;
  font-weight: 700;
  color: var(--wp-primary);
  padding-top: 2px;
}
.wp-timeline__body h3,
.wp-timeline__body h4 { margin: 0 0 6px; font-size: 15.5px; color: var(--wp-ink); line-height: 1.5; }
.wp-timeline__body p { margin: 0; font-size: 14px; line-height: 1.8; }

/* 三层次卡片 */
.wp-layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.wp-layer {
  padding: 20px;
  border: 1px solid var(--wp-line);
  border-radius: 12px;
  background: var(--wp-surface-2);
}
.wp-layer__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #D6E2F4;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--wp-primary);
  letter-spacing: .04em;
}
.wp-layer h4 { margin: 0 0 8px; font-size: 15px; }
.wp-layer p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.75; color: var(--wp-ink-2); }
.wp-layer p:last-child { margin-bottom: 0; }
.wp-layer b { color: var(--wp-ink-3); font-weight: 600; }

/* 指标条 */
.wp-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.wp-metric {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--wp-primary-soft);
  border: 1px solid #DCE8F8;
}
.wp-metric__v { font-size: 22px; font-weight: 700; color: var(--wp-primary); line-height: 1.3; }
.wp-metric__k { font-size: 12.5px; color: #40618C; margin-top: 2px; }

/* 流程步骤 */
.wp-steps {
  display: grid;
  gap: 0;
  margin: 22px 0;
  counter-reset: wpstep;
  max-width: var(--wp-prose);
}
.wp-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--wp-line);
}
.wp-step:last-child { border-bottom: 0; }
.wp-step__n {
  counter-increment: wpstep;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wp-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}
.wp-step__n::before { content: counter(wpstep, decimal-leading-zero); }
.wp-step h4 { margin: 0 0 4px; font-size: 15.5px; }
.wp-step p { margin: 0; font-size: 14.5px; }

/* 两栏对照 */
.wp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}
.wp-compare__col {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--wp-line);
  background: var(--wp-surface-2);
}
.wp-compare__col--hi {
  border-color: #C9DAF2;
  background: var(--wp-primary-soft);
}
.wp-compare__col h4 { margin: 0 0 8px; font-size: 14.5px; }
.wp-compare__col ul { margin: 0; padding-left: 18px; }
.wp-compare__col li { font-size: 13.5px; line-height: 1.8; color: var(--wp-ink-2); }

/* ---------- 7. 底部 CTA ---------- */
.wp-cta {
  margin: 0 0 0;
  padding: 48px 44px;
  border-radius: var(--wp-radius);
  background: linear-gradient(135deg, #06327F 0%, #0052CC 58%, #0A6FD0 100%);
  color: #fff;
  box-shadow: 0 24px 48px rgba(0, 45, 120, .18);
}
.wp-cta h2 { margin: 0 0 10px; font-size: 24px; color: #fff; }
.wp-cta p { margin: 0 0 22px; font-size: 15px; color: rgba(255, 255, 255, .84); max-width: 44em; }
.wp-cta .wp-btn--primary { background: #fff; color: var(--wp-primary); box-shadow: none; }
.wp-cta .wp-btn--primary:hover { background: #F0F5FF; }
.wp-cta .wp-btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); color: #fff; }
.wp-cta .wp-btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- 8. 参考文献 / 附录 ---------- */
.wp-refs { margin: 0; padding: 0; list-style: none; counter-reset: wpref; max-width: var(--wp-prose); }
.wp-refs li {
  counter-increment: wpref;
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--wp-line-soft);
  font-size: 14px;
  line-height: 1.8;
  color: var(--wp-ink-2);
}
.wp-refs li::before {
  content: "[" counter(wpref) "]";
  position: absolute;
  left: 0;
  color: var(--wp-primary);
  font-weight: 600;
  font-size: 13px;
}

.wp-terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.wp-terms li {
  padding: 10px 0;
  border-bottom: 1px solid var(--wp-line-soft);
  font-size: 14px;
  color: var(--wp-ink-2);
}
.wp-terms strong { color: var(--wp-primary); font-weight: 600; margin-right: 6px; }

.wp-fineprint {
  font-size: 13px;
  line-height: 1.85;
  color: var(--wp-ink-3);
  max-width: var(--wp-prose);
}
.wp-fineprint p { font-size: 13px; color: var(--wp-ink-3); }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .wp-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .wp-hero { padding-top: calc(var(--header-height, 72px) + 44px); }
  .wp-hero__cover { max-width: 200px; transform: none; }
  .wp-body { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
  .wp-main { grid-column: auto; }

  .wp-toc {
    position: static;
    max-height: none;
    order: -1;
    background: var(--wp-surface);
    border: 1px solid var(--wp-line);
    border-radius: var(--wp-radius);
    box-shadow: var(--wp-shadow);
    padding: 0;
    overflow: hidden;
  }
  .wp-toc__title {
    margin: 0;
    padding: 16px 20px;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--wp-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .wp-toc__title::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 2px solid var(--wp-ink-3);
    border-bottom: 2px solid var(--wp-ink-3);
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  .wp-toc.is-open .wp-toc__title::after { transform: rotate(-135deg); }
  .wp-toc ol {
    display: none;
    border-left: 0;
    padding: 0 8px 12px;
  }
  .wp-toc.is-open ol { display: block; }
  .wp-toc a { padding: 9px 12px; border-left: 0; border-radius: 8px; }
  .wp-toc a.is-active { background: var(--wp-primary-soft); }
  .wp-toc__foot { display: none; }
}

@media (max-width: 720px) {
  .wp-page { font-size: 15.5px; }
  .wp-container { width: min(1180px, 100% - 32px); }
  .wp-hero { padding: calc(var(--header-height, 60px) + 38px) 0 48px; }
  .wp-hero__sub { font-size: 16px; }
  .wp-abstract { padding: 28px 22px; margin-top: -24px; border-radius: 14px; }
  .wp-card { padding: 28px 22px; border-radius: 14px; }
  .wp-card p { font-size: 15px; line-height: 1.9; }
  .wp-layers { grid-template-columns: 1fr; }
  .wp-compare { grid-template-columns: 1fr; }
  .wp-timeline__item { grid-template-columns: 1fr; gap: 6px; }
  .wp-cta { padding: 32px 22px; }
  .wp-cta h2 { font-size: 20px; }
  .wp-actions { flex-direction: column; }
  .wp-actions .wp-btn { width: 100%; }
  .wp-metric__v { font-size: 19px; }

  /* 表格可横滑提示：右侧渐隐，暗示还有内容 */
  .wp-table-wrap { position: relative; }
  .wp-table-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 40px;
    width: 26px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .96));
    pointer-events: none;
    border-radius: 0 12px 0 0;
  }
  .wp-table-cap { font-size: 12px; }
}

/* ---------- 10. 打印 ---------- */
@media print {
  .wp-progress, .wp-toc, .wp-actions, .wp-cta { display: none !important; }
  .wp-page { background: #fff; }
  .wp-body { grid-template-columns: 1fr; padding: 0; }
  .wp-card { box-shadow: none; border: 0; padding: 0 0 24px; break-inside: avoid; }
  .wp-hero { padding: 0 0 24px; }
}

/* ---------- 11. 无障碍 ---------- */
.wp-page a:focus-visible,
.wp-page button:focus-visible {
  outline: 2px solid var(--wp-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.wp-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .wp-page *, .wp-page *::before, .wp-page *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
  .wp-progress { transition: none; }
}
