/* ==========================================================
   智云课程模块 v3 — 蓝色主题（与全站 #0059d6 主色统一）
   保留 PDF 风排版（CHAPTER 大字 / 大序号 / 横向阶段条），
   调色板整体改为蓝色系。变量名沿用历史命名以兼容既有引用。
   ========================================================== */
:root {
  --ink: #1c2b48;
  --ink2: #314163;
  --ink3: #5b6c8a;
  --ink4: #92a0b8;
  --paper: #f3f7fd;
  --paper2: #e8f0fc;
  --paper3: #d8e6f8;
  --paper4: #c8dbf2;
  --white: #ffffff;
  --brd: #d6e2f4;
  --brd2: #b9cce9;
  --brown: #0059d6;        /* 主色：站点蓝 */
  --brown-dark: #003ea3;   /* 深蓝 */
  --brown-darker: #00245a; /* 最深蓝 */
  --gold: #4f8ff0;         /* 浅中蓝（原金色位） */
  --gold-dark: #2e6fd6;
  --gold-light: #e6f0fd;   /* 浅蓝底 */
  --green: #1ca8a0;        /* 冷调青（保留为科技点缀） */
  --teal: #0e7fb8;         /* 深天蓝（保留为科技点缀） */
  --radius: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: "JetBrains Mono", "Consolas", "Menlo", monospace;
}

body[data-page="courses"] { background: var(--paper); }
body[data-page="courses"] .site-header { background: rgba(243, 247, 253, 0.96); border-bottom: 1px solid var(--brd); }
body[data-page="courses"] .site-nav a { color: var(--ink2); }
body[data-page="courses"] .site-nav a.active { color: var(--brown-dark); }
body[data-page="courses"] .site-nav a:hover { color: var(--brown); }

/* ====================== 顶部封面 ====================== */
.cp-cover {
  background: linear-gradient(180deg, #e8f0fc 0%, var(--paper) 100%);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--brd);
}
.cp-cover::before, .cp-cover::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cp-cover::before { top: 60px; width: 80px; }
.cp-cover::after  { bottom: 36px; width: 200px; }
.cp-cover h1 {
  font-family: "Microsoft YaHei", "PingFang SC", serif;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 88px);
  color: var(--brown-darker);
  letter-spacing: 0.06em;
  margin: 0 0 18px;
  line-height: 1.1;
}
.cp-cover-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink3);
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* ====================== 通用容器 ====================== */
.cp-section-title {
  font-family: "Microsoft YaHei", "PingFang SC", serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--brown-darker);
  text-align: center;
  margin: 0 0 50px;
  letter-spacing: 0.08em;
  position: relative;
  line-height: 1.2;
}
.cp-section-title span {
  color: var(--brown);
  position: relative;
  display: inline-block;
  padding: 0 18px;
}
.cp-section-title span::before, .cp-section-title span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.cp-section-title span::before { right: 100%; }
.cp-section-title span::after  { left: 100%; }

/* ====================== 目录 ====================== */
.cp-toc {
  padding: 80px 0 60px;
  background: var(--paper);
}
.cp-toc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.cp-toc-card {
  background: var(--white);
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  position: relative;
}
.cp-toc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(91, 58, 28, 0.12);
  border-color: var(--brown);
}
.cp-toc-card .toc-num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--paper3);
  line-height: 1;
  letter-spacing: 0.04em;
}
.cp-toc-card .toc-icon {
  height: 140px;
  display: grid;
  place-items: center;
  font-size: 56px;
  color: var(--brown);
  background: linear-gradient(180deg, var(--paper2), var(--paper));
  border-bottom: 1px solid var(--brd);
}
.cp-toc-card .toc-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-toc-card .toc-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink4);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.cp-toc-card .toc-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--brown-darker);
  line-height: 1.4;
}
.cp-toc-card .toc-meta {
  font-size: 12.5px;
  color: var(--ink3);
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--brd);
  line-height: 1.6;
}

/* ====================== 简介 + 数据条 ====================== */
.cp-intro {
  padding: 70px 0 60px;
  background: var(--white);
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
}
.cp-intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.cp-intro-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--brown-darker);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  position: relative;
  padding-left: 18px;
}
.cp-intro-text h2::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  background: var(--brown);
  border-radius: 2px;
}
.cp-intro-text p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink2);
  margin: 0 0 16px;
}
.cp-intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.cp-stat {
  background: var(--paper);
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  transition: all 0.25s var(--ease);
}
.cp-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(91, 58, 28, .08); }
.cp-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 8px;
}
.cp-stat span {
  font-size: 13px;
  color: var(--ink3);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ====================== 课程详情列表 ====================== */
.cp-detail-list {
  padding: 60px 0 100px;
  background: var(--paper);
}

/* —— Chapter 章节头 —— */
.cp-chapter {
  margin: 0 0 80px;
  position: relative;
}
.cp-chapter-head {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.cp-chapter-head .cp-chap-no {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brown);
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  padding: 0 50px;
}
.cp-chapter-head .cp-chap-no::before,
.cp-chapter-head .cp-chap-no::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.cp-chapter-head .cp-chap-no::before { right: 100%; }
.cp-chapter-head .cp-chap-no::after  { left: 100%; }
.cp-chapter-head .cp-chap-bg {
  font-family: "Microsoft YaHei", "PingFang SC", serif;
  font-weight: 900;
  font-size: clamp(110px, 16vw, 200px);
  color: var(--paper2);
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 0;
  user-select: none;
  position: relative;
}
.cp-chapter-head .cp-chap-title {
  margin-top: -50px;
  position: relative;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--brown-darker);
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.cp-chapter-head .cp-chap-sub {
  font-size: 14.5px;
  color: var(--ink3);
  margin: 18px auto 0;
  max-width: 36em;
  line-height: 1.85;
}

/* —— 章节卡片（每个 chapter 一个白卡） —— */
.cp-section {
  background: var(--white);
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  padding: 40px 48px;
  margin-bottom: 28px;
  position: relative;
}
.cp-section + .cp-section { margin-top: 22px; }
.cp-section-title-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--brd);
  position: relative;
}
.cp-section-title-bar::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 60px;
  height: 2px;
  background: var(--brown);
}
.cp-section-title-bar .ic {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--brown);
  color: var(--gold-light);
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
  font-weight: 700;
}
.cp-section-title-bar h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--brown-darker);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* —— 3 列分类卡（关系型数据库 / Linux / Hadoop） —— */
.cp-cat-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cp-cat-card {
  background: var(--paper);
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  padding: 24px 22px 26px;
  position: relative;
}
.cp-cat-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--brown-darker);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.cp-cat-card h4::before {
  content: "▎";
  color: var(--brown);
  font-size: 18px;
}
.cp-cat-card .cp-cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cp-cat-card .cp-cat-list li {
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.9;
  padding: 6px 0;
  border-bottom: 1px dashed var(--brd);
}
.cp-cat-card .cp-cat-list li:last-child { border-bottom: 0; }
.cp-cat-card .cp-cat-list strong {
  display: block;
  color: var(--brown-darker);
  font-size: 14.5px;
  margin-bottom: 2px;
  font-weight: 700;
}
.cp-cat-card .cp-cat-list small {
  display: block;
  color: var(--ink3);
  font-size: 12.5px;
  line-height: 1.6;
  margin-top: 2px;
}

/* —— 4 列分类卡（Hadoop） —— */
.cp-cat-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cp-cat-4 .cp-cat-card { padding: 22px 20px 24px; }
.cp-cat-4 .cp-cat-card h4 { font-size: 16px; margin-bottom: 12px; }
.cp-cat-4 .cp-cat-card .cp-cat-list li { font-size: 13px; padding: 5px 0; }

/* —— 8 阶段横向条（Python） —— */
.cp-stages-8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.cp-stage {
  background: var(--white);
  border: 1px solid var(--brd);
  border-top: 3px solid var(--brown);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 18px 12px 16px;
  position: relative;
  transition: all 0.2s var(--ease);
}
.cp-stage:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(91, 58, 28, .08); }
.cp-stage:nth-child(2n) { border-top-color: var(--gold-dark); }
.cp-stage:nth-child(3n) { border-top-color: var(--green); }
.cp-stage:nth-child(4n) { border-top-color: var(--teal); }
.cp-stage .cp-stage-no {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--paper3);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.cp-stage:nth-child(2n) .cp-stage-no { color: var(--gold-light); }
.cp-stage:nth-child(3n) .cp-stage-no { color: var(--green); opacity: 0.5; }
.cp-stage:nth-child(4n) .cp-stage-no { color: var(--teal); opacity: 0.5; }
.cp-stage .cp-stage-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--brown-darker);
  line-height: 1.5;
  margin-bottom: 10px;
  min-height: 42px;
}
.cp-stage .cp-stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.7;
}
.cp-stage .cp-stage-list li {
  padding: 2px 0;
  position: relative;
  padding-left: 10px;
}
.cp-stage .cp-stage-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--brown);
  font-weight: 800;
}

/* —— 6 模块横向条（帆软） —— */
.cp-modules-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 18px;
  position: relative;
}
.cp-mod-6 {
  background: var(--white);
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  padding: 22px 16px 18px;
  text-align: center;
  position: relative;
  transition: all 0.2s var(--ease);
}
.cp-mod-6:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(91, 58, 28, .1); }
.cp-mod-6 .cp-mod-6-no {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--paper3);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  line-height: 1;
}
.cp-mod-6 .cp-mod-6-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--brown-darker);
  margin-bottom: 14px;
  line-height: 1.4;
}
.cp-mod-6 .cp-mod-6-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.7;
  text-align: left;
}
.cp-mod-6 .cp-mod-6-list li {
  padding: 4px 0;
  position: relative;
  padding-left: 10px;
  border-top: 1px dashed var(--brd);
}
.cp-mod-6 .cp-mod-6-list li:first-child { border-top: 0; }
.cp-mod-6 .cp-mod-6-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--brown);
  font-weight: 800;
}

/* —— 4 阶段竖向条（实时计算） —— */
.cp-pipe-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
  position: relative;
}
.cp-pipe {
  background: var(--white);
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
  transition: all 0.2s var(--ease);
}
.cp-pipe:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(91, 58, 28, .12); }
.cp-pipe .cp-pipe-head {
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  color: #fff;
  padding: 18px 16px 16px;
  text-align: center;
  position: relative;
}
.cp-pipe .cp-pipe-head::after {
  content: "";
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--brown-dark);
}
.cp-pipe:last-child .cp-pipe-head::after { display: none; }
.cp-pipe .cp-pipe-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 4px;
}
.cp-pipe .cp-pipe-sub {
  font-size: 11.5px;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.cp-pipe .cp-pipe-body {
  padding: 16px 16px 18px;
  background: var(--white);
}
.cp-pipe .cp-pipe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.7;
}
.cp-pipe .cp-pipe-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--brd);
}
.cp-pipe .cp-pipe-list li:last-child { border-bottom: 0; }
.cp-pipe .cp-pipe-list strong { color: var(--brown-darker); display: block; font-size: 13px; }
.cp-pipe .cp-pipe-list small { color: var(--ink3); font-size: 11.5px; display: block; margin-top: 2px; }
.cp-pipe .cp-pipe-foot {
  padding: 10px 16px;
  font-size: 11.5px;
  color: var(--ink4);
  background: var(--paper2);
  border-top: 1px solid var(--brd);
  display: flex;
  justify-content: space-between;
  line-height: 1.5;
}
.cp-pipe .cp-pipe-foot b { color: var(--brown-darker); font-size: 13px; font-weight: 800; }

/* —— 6 步流程（AI+RPA、车辆监控） —— */
.cp-flow-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.cp-flow-6 .cp-flow-step {
  background: var(--white);
  border: 1px solid var(--brd);
  border-top: 4px solid var(--brown);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 18px 12px 16px;
  position: relative;
  text-align: center;
  transition: all 0.2s var(--ease);
}
.cp-flow-6 .cp-flow-step:nth-child(2n) { border-top-color: var(--gold-dark); }
.cp-flow-6 .cp-flow-step:nth-child(3n) { border-top-color: var(--green); }
.cp-flow-6 .cp-flow-step:nth-child(4n) { border-top-color: var(--teal); }
.cp-flow-6 .cp-flow-step:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(91, 58, 28, .1); }
.cp-flow-6 .cp-flow-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--brown-darker);
  line-height: 1.4;
  margin-bottom: 10px;
}
.cp-flow-6 .cp-flow-detail {
  font-size: 12px;
  color: var(--ink3);
  background: var(--paper2);
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-block;
  line-height: 1.5;
}

/* —— 5 步卡（数据仓库 AI 运营） —— */
.cp-step-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.cp-step-5 .cp-step {
  background: var(--white);
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  padding: 22px 16px 18px;
  text-align: center;
  position: relative;
  transition: all 0.2s var(--ease);
}
.cp-step-5 .cp-step:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(91, 58, 28, .1); }
.cp-step-5 .cp-step-no {
  position: absolute;
  top: 8px; right: 14px;
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 700;
  color: var(--paper3);
  line-height: 1;
  letter-spacing: 0.04em;
}
.cp-step-5 .cp-step-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--brown-darker);
  line-height: 1.5;
  margin: 18px 0 10px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-step-5 .cp-step-desc {
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 12px;
}
.cp-step-5 .cp-step-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brown-dark);
  background: var(--gold-light);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* —— 4 大块（FastAPI / 大模型基础） —— */
.cp-block-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.cp-block-4 .cp-blk {
  background: var(--white);
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  padding: 22px 18px 22px;
  position: relative;
  transition: all 0.2s var(--ease);
}
.cp-block-4 .cp-blk:hover { border-color: var(--brown); box-shadow: 0 6px 16px rgba(91, 58, 28, .08); }
.cp-block-4 .cp-blk-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--brown-darker);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--brd);
  line-height: 1.5;
}
.cp-block-4 .cp-blk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cp-block-4 .cp-blk-list li {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.85;
  padding: 5px 0;
  display: flex;
  gap: 8px;
}
.cp-block-4 .cp-blk-list li b {
  color: var(--brown-dark);
  font-size: 12.5px;
  font-weight: 700;
  min-width: 30px;
  font-family: var(--mono);
}

/* —— 4 大块（FastAPI 3 大块） —— */
.cp-block-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.cp-block-3 .cp-blk { background: var(--white); border: 1px solid var(--brd); border-radius: var(--r-sm); padding: 22px 18px 22px; }
.cp-block-3 .cp-blk-head { font-size: 17px; font-weight: 800; color: var(--brown-darker); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--brd); display: flex; align-items: center; gap: 8px; }
.cp-block-3 .cp-blk-head::before { content: "▎"; color: var(--brown); font-size: 18px; }
.cp-block-3 .cp-blk-list { list-style: none; margin: 0; padding: 0; }
.cp-block-3 .cp-blk-list li { font-size: 13px; color: var(--ink2); line-height: 1.85; padding: 8px 0; border-bottom: 1px dashed var(--brd); }
.cp-block-3 .cp-blk-list li:last-child { border-bottom: 0; }
.cp-block-3 .cp-blk-list li b { color: var(--brown-dark); display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.cp-block-3 .cp-blk-list li small { color: var(--ink3); font-size: 12px; display: block; line-height: 1.6; }

/* —— 卡片式主体描述（知识地图/课程简介） —— */
.cp-card-block {
  background: var(--white);
  border: 1px solid var(--brd);
  border-left: 4px solid var(--brown);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 18px;
  color: var(--ink2);
  font-size: 14.5px;
  line-height: 2;
}
.cp-card-block strong { color: var(--brown-darker); font-weight: 700; }

/* —— 引用框（核心目标/核心价值） —— */
.cp-quote {
  background: var(--paper2);
  border: 1px solid var(--brd);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  margin-top: 18px;
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.9;
  position: relative;
}
.cp-quote::before { content: "“"; position: absolute; top: 6px; left: 8px; font-size: 32px; color: var(--gold); opacity: 0.5; font-family: serif; }
.cp-quote strong { color: var(--brown-darker); }

/* —— 核心技术栈（数据仓库 AI 运营底部） —— */
.cp-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
  padding: 16px 22px;
  background: var(--paper2);
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--ink2);
}
.cp-stack b { color: var(--brown-darker); font-weight: 800; }
.cp-stack .tag { display: inline-block; padding: 3px 10px; background: var(--white); border: 1px solid var(--brd); border-radius: 100px; font-family: var(--mono); font-size: 12px; color: var(--brown-dark); }

/* ====================== CTA ====================== */
.cp-cta {
  padding: 80px 0 100px;
  background: var(--white);
  border-top: 1px solid var(--brd);
}
.cp-cta-inner {
  background: linear-gradient(135deg, var(--paper2) 0%, var(--paper) 100%);
  border: 1px solid var(--brd);
  border-radius: var(--radius);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cp-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 30% 20%, rgba(79, 143, 240, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 60% at 70% 80%, rgba(0, 89, 214, 0.1), transparent 70%);
  pointer-events: none;
}
.cp-cta-inner > * { position: relative; z-index: 1; }
.cp-cta-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--brown-darker);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.cp-cta-inner h2 em { color: var(--brown); font-style: normal; }
.cp-cta-inner p {
  font-size: 16px;
  color: var(--ink3);
  max-width: 32em;
  margin: 0 auto 32px;
  line-height: 1.85;
}
.cp-cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--brown);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.05em;
  transition: all 0.25s var(--ease);
  box-shadow: 0 8px 24px rgba(91, 58, 28, 0.2);
}
.cp-cta-btn:hover { background: var(--brown-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(91, 58, 28, 0.3); }

/* ====================== 浮动按钮 ====================== */
.floater { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.floater a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brown); color: #fff; font-size: 22px; box-shadow: 0 10px 26px rgba(91, 58, 28, .35); transition: transform 0.2s var(--ease); text-decoration: none; }
.floater a:hover { transform: scale(1.08); }
.floater a.gold { background: var(--gold); box-shadow: 0 10px 26px rgba(184, 146, 74, .35); }
.floater a.to-top { background: rgba(58, 36, 24, 0.82); width: 44px; height: 44px; font-size: 18px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.floater a.to-top.show { opacity: 1; pointer-events: auto; }

/* ====================== 响应式 ====================== */
@media (max-width: 1100px) {
  .cp-toc-grid { grid-template-columns: repeat(3, 1fr); }
  .cp-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .cp-stages-8 { grid-template-columns: repeat(4, 1fr); }
  .cp-modules-6 { grid-template-columns: repeat(3, 1fr); }
  .cp-flow-6 { grid-template-columns: repeat(3, 1fr); }
  .cp-step-5 { grid-template-columns: repeat(3, 1fr); }
  .cp-cat-3 { grid-template-columns: 1fr 1fr; }
  .cp-cat-4 { grid-template-columns: 1fr 1fr; }
  .cp-block-3, .cp-block-4 { grid-template-columns: 1fr 1fr; }
  .cp-pipe-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cp-cover { padding: 70px 0 50px; }
  .cp-toc-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-section { padding: 28px 22px; }
  .cp-section-title-bar h3 { font-size: 19px; }
  .cp-cat-3, .cp-cat-4, .cp-block-3, .cp-block-4, .cp-step-5, .cp-flow-6, .cp-pipe-4 { grid-template-columns: 1fr; }
  .cp-stages-8 { grid-template-columns: repeat(2, 1fr); }
  .cp-modules-6 { grid-template-columns: repeat(2, 1fr); }
  .cp-chapter { margin-bottom: 60px; }
  .cp-chapter-head .cp-chap-title { margin-top: -36px; }
  .floater { right: 14px; bottom: 14px; }
  .floater a { width: 46px; height: 46px; font-size: 19px; }
  .cp-cta-inner { padding: 50px 24px; }
}
