/* AIPO Whitepaper - 抽自 ai-visibility-whitepaper.html 内联 style；配色与字体已对齐主站 */

  :root {
    --aipo-bg: #FAF8F4;
    --aipo-card: #ffffff;
    --aipo-text: #1A1A1A;
    --aipo-muted: #4B4F58;
    --aipo-border: #E8E6E1;
    --aipo-primary: #991B2D;
    --aipo-primary-dark: #6E1320;
    --aipo-primary-soft: #FCEFEF;
    --aipo-accent: #00a88f;
    --aipo-warning: #fff7ed;
    --aipo-warning-border: #fed7aa;
    --aipo-code: #0f172a;
    --aipo-radius: 18px;
    --aipo-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: var(--aipo-text);
    background: var(--aipo-bg);
    line-height: 1.75;
  }

  a {
    color: var(--aipo-primary);
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  .whitepaper-page {
    width: 100%;
    overflow-x: hidden;
  }

  .whitepaper-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px 24px 56px;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--aipo-primary-soft);
    color: var(--aipo-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .whitepaper-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .subtitle {
    margin: 22px 0 0;
    color: var(--aipo-muted);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
  }

  .hero-summary {
    max-width: 880px;
    margin: 28px 0 0;
    color: var(--aipo-muted);
    font-size: 18px;
  }

  .hero-cta,
  .chapter-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
  }

  .btn-primary {
    color: #fff;
    background: var(--aipo-primary);
    box-shadow: 0 10px 25px rgba(153, 27, 45, 0.22);
  }

  .btn-primary:hover {
    color: #fff;
    background: var(--aipo-primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
  }

  .btn-secondary {
    color: var(--aipo-primary);
    background: #fff;
    border: 1px solid var(--aipo-border);
  }

  .btn-secondary:hover {
    text-decoration: none;
    border-color: var(--aipo-primary);
  }

  .whitepaper-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.whitepaper-content {
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}






.sticky-toc ol {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sticky-toc li {
  margin: 0;
}

.sticky-toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--aipo-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.sticky-toc a:hover {
  background: var(--aipo-primary-soft);
  color: var(--aipo-primary);
  text-decoration: none;
}

.sticky-toc a.active {
  background: var(--aipo-primary);
  color: #fff;
}






@media (max-width: 1080px) {
  .whitepaper-layout {
    display: block;
    max-width: 980px;
    padding: 0 20px 72px;
  }

  .whitepaper-sidebar {
    margin-bottom: 24px;
  }

  .sticky-toc {
    position: static;
    max-height: none;
  }

  .sticky-toc ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

  .whitepaper-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px 96px;
  }

  .chapter {
    margin: 42px 0;
    padding: 48px;
    border: 1px solid var(--aipo-border);
    border-radius: var(--aipo-radius);
    background: var(--aipo-card);
    box-shadow: var(--aipo-shadow);
  }

  .chapter-label {
    margin: 0 0 12px;
    color: var(--aipo-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .chapter h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.22;
    letter-spacing: -0.03em;
  }

  .chapter h3 {
    margin: 34px 0 14px;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.02em;
  }

  .chapter h4 {
    margin: 26px 0 10px;
    font-size: 19px;
    line-height: 1.45;
  }

  .chapter p {
    margin: 14px 0;
    color: var(--aipo-text);
    font-size: 17px;
  }

  .chapter ul,
  .chapter ol {
    margin: 18px 0;
    padding-left: 24px;
  }

  .chapter li {
    margin: 8px 0;
    font-size: 17px;
  }

  blockquote {
    margin: 28px 0;
    padding: 22px 26px;
    border-left: 5px solid var(--aipo-primary);
    border-radius: 12px;
    background: var(--aipo-primary-soft);
    color: var(--aipo-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.55;
  }

  .key-message {
    margin: 34px 0;
    padding: 26px;
    border: 1px solid rgba(0, 168, 143, 0.22);
    border-radius: 16px;
    background: #effcf9;
  }

  .key-message h3 {
    margin-top: 0;
    color: #047864;
    font-size: 20px;
  }

  .key-message p {
    margin-bottom: 0;
  }

  .comparison-table,
  .image-placeholder {
    margin: 32px 0;
  }

  table {
    width: 100%;
    margin: 20px 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--aipo-border);
    border-radius: 14px;
    background: #fff;
  }

  th,
  td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--aipo-border);
    border-right: 1px solid var(--aipo-border);
    text-align: left;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.6;
  }

  th:last-child,
  td:last-child {
    border-right: 0;
  }

  tr:last-child td {
    border-bottom: 0;
  }

  th {
    background: var(--aipo-primary-soft);
    color: var(--aipo-text);
    font-weight: 800;
  }

  .image-placeholder {
    padding: 24px;
    border: 1px dashed rgba(153, 27, 45, 0.45);
    border-radius: 16px;
    background: var(--aipo-primary-soft);
  }

  .image-placeholder p {
    margin: 6px 0;
    color: var(--aipo-muted);
    font-size: 15px;
  }

  .chapter-cta {
    margin: 36px 0 12px;
    padding: 24px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid var(--aipo-border);
  }

  .chapter-cta p {
    width: 100%;
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
  }

  .back-to-toc {
    margin-top: 34px !important;
    padding-top: 22px;
    border-top: 1px solid var(--aipo-border);
    font-size: 15px !important;
    font-weight: 700;
  }

  @media (max-width: 820px) {
    .whitepaper-hero {
      padding: 56px 20px 34px;
    }

  


    .chapter {
      padding: 30px 22px;
      margin: 28px 0;
    }

    .chapter h2 {
      font-size: 30px;
    }

    .chapter h3 {
      font-size: 22px;
    }

    table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }

    th,
    td {
      min-width: 160px;
    }
  }
  
  
  
  /* =========================
   Floating TOC 悬浮目录
========================= */

/* 悬浮目录按钮 */
.floating-toc-toggle {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 999px;
  background: var(--aipo-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(153, 27, 45, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-toc-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(153, 27, 45, 0.34);
}

/* 背景遮罩 */
.floating-toc-mask {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
}

/* 目录面板 */
.floating-toc-panel {
  position: fixed;
  right: 28px;
  bottom: 110px;
  z-index: 1002;
  width: min(420px, calc(100vw - 40px));
  max-height: min(680px, calc(100vh - 150px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--aipo-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

/* hidden 状态必须保留 */
.floating-toc-panel[hidden],
.floating-toc-mask[hidden] {
  display: none;
}

/* 面板头部 */
.floating-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--aipo-border);
}


.floating-toc-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--aipo-border);
  border-radius: 999px;
  background: #fff;
  color: var(--aipo-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.floating-toc-close:hover {
  color: var(--aipo-primary);
  border-color: var(--aipo-primary);
}

/* 目录列表 */
.floating-toc-nav {
  padding: 12px;
  overflow-y: auto;
}

.floating-toc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.floating-toc-nav li {
  margin: 0;
}

.floating-toc-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--aipo-muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.floating-toc-nav a:hover {
  background: var(--aipo-primary-soft);
  color: var(--aipo-primary);
  text-decoration: none;
}

.floating-toc-nav a.active {
  background: var(--aipo-primary);
  color: #fff;
}

/* 底部 CTA */
.floating-toc-cta {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--aipo-border);
}

.floating-toc-cta .btn {
  width: 100%;
}

/* 打开动画 */
.floating-toc-panel {
  animation: tocIn 0.18s ease-out;
}

@keyframes tocIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 移动端 */
@media (max-width: 720px) {
  .floating-toc-toggle {
    right: 18px;
    bottom: 18px;
    width: 60px;
    height: 60px;
    font-size: 15px;
  }

  .floating-toc-panel {
    right: 12px;
    left: 12px;
    bottom: 88px;
    width: auto;
    max-height: calc(100vh - 120px);
    border-radius: 20px;
  }
}