/* ============================================================
   MAXLAKER 洞察文章 · 精致排版层
   在 guide.css 之上叠加，仅作用于 /insights/* 文章页，
   不影响产品文档页。核心思路：
   —— 更克制的字号层级（38/23/15.5px）与更大的行高（1.9）
   —— 更轻的视觉重量：发丝线、微阴影、渐变点缀替代粗边线
   —— 编辑式细节：平衡换行、进度条、目录滚动高亮、菱形列表项
   ============================================================ */

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(180deg, #eaf6ff 0%, #ffffff 480px);
  line-height: 1.85;
}

/* 防止页头光球溢出产生横向滚动（clip 不破坏 sticky） */
html,
body {
  overflow-x: clip;
}

::selection {
  background: rgba(0, 168, 255, 0.18);
  color: #0b3a5c;
}

/* —— 阅读进度条 —— */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0;
  background: var(--gradient-strong);
  z-index: 40;
  pointer-events: none;
}

/* ===== 顶栏 ===== */
.topbar {
  box-shadow: 0 1px 0 rgba(0, 168, 255, 0.05);
}
.topbar-inner {
  max-width: 1080px;
  padding: 14px 24px;
}
.topbar img {
  height: 33px;
}
.topbar a.back {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 17px;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.topbar a.back:hover {
  background: #fff;
  border-color: var(--border-strong);
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.1);
}

/* ===== 页头 ===== */
.page-head {
  max-width: 1080px;
  padding: 60px 24px 0;
  position: relative;
}
.page-head::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -90px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(72, 202, 228, 0.1));
  filter: blur(64px);
  pointer-events: none;
}
.page-head .hero {
  position: relative;
  align-items: flex-start;
  gap: 26px;
}
.hero .mark {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 119, 182, 0.22);
}
.hero .mark svg {
  width: 40px;
  height: 40px;
}
.hero h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  text-wrap: balance;
}
.hero .badges {
  margin-top: 14px;
  gap: 8px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.14);
}
.badge.ghost {
  background: rgba(0, 168, 255, 0.07);
  box-shadow: none;
}

/* 页头下的渐隐发丝线 */
.page-head::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 40px;
  background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.32), transparent);
}

/* ===== 导语 ===== */
.lead {
  margin: 34px 0 0;
  font-size: 19px;
  line-height: 1.85;
  font-weight: 400;
  color: #31536c;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #00a8ff, #48cae4) 1;
  padding: 6px 0 6px 22px;
  text-wrap: pretty;
}

/* ===== 双栏布局 ===== */
.doc-layout {
  max-width: 1080px;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 52px;
  padding: 34px 24px 80px;
}

/* ===== 目录 ===== */
.toc {
  top: 92px;
  border-radius: 16px;
  padding: 18px 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(0, 119, 182, 0.07);
}
.toc .toc-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0 12px 12px;
}
.toc a {
  font-size: 13.5px;
  padding: 6.5px 12px;
  margin: 1px 0;
  border-radius: 9px;
  border-left: 2px solid transparent;
}
.toc a.active {
  font-weight: 600;
  border-left-color: var(--blue-400);
}

/* ===== 正文 ===== */
.doc {
  min-width: 0;
}
.doc p,
.doc li {
  font-size: 15.5px;
  line-height: 1.9;
  color: #2e4a61;
}
.doc p {
  margin-bottom: 18px;
  text-wrap: pretty;
}
.doc strong {
  color: var(--text);
  font-weight: 700;
}
.doc li strong {
  color: var(--text);
}

/* 章节标题：更大字级 + 发丝分隔线 */
section {
  margin-bottom: 58px;
  scroll-margin-top: 100px;
}
section h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.4;
  gap: 13px;
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  text-wrap: balance;
}
section h2 .no {
  width: 34px;
  height: 34px;
  font-size: 12.5px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 119, 182, 0.18);
}

/* 列表：渐变菱形标记 */
.doc ul,
.doc ol {
  padding-left: 2px;
  margin-bottom: 18px;
}
.doc ul {
  list-style: none;
}
.doc ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
}
.doc ul li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, #00a8ff, #48cae4);
  transform: rotate(45deg);
  box-shadow: 0 1px 5px rgba(0, 168, 255, 0.35);
}

/* 步骤列表 */
.steps li {
  padding: 15px 0 15px 54px;
}
.steps li::before {
  width: 34px;
  height: 34px;
  top: 12px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: 0 6px 16px rgba(0, 119, 182, 0.2);
}

/* ===== 表格 ===== */
table {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 119, 182, 0.06);
  font-size: 14px;
}
th,
td {
  padding: 13px 16px;
}
th {
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ===== 页脚提示 ===== */
.footer-note {
  max-width: 1080px;
  margin: 0 auto 80px;
  border-radius: 18px;
  padding: 24px 28px;
  font-size: 13.5px;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.06), rgba(72, 202, 228, 0.08));
  border: 1px solid var(--border-strong);
}
.footer-note a.btn {
  padding: 9px 24px;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0, 168, 255, 0.25);
  transition: filter 0.15s, transform 0.15s;
}
.footer-note a.btn:hover {
  transform: translateY(-1px);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    display: none;
  }
  .page-head {
    padding-top: 44px;
  }
}
@media (max-width: 640px) {
  .page-head::before {
    width: 260px;
    height: 260px;
    top: -80px;
    right: -120px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .lead {
    font-size: 17px;
  }
  .doc p,
  .doc li {
    font-size: 15px;
  }
  section h2 {
    font-size: 20px;
  }
  .page-head::after {
    margin-top: 28px;
  }
}
