@charset "utf-8";
/* ==========================================================================
   商红科技 BENCOM · 文章详细页（行业论坛/新闻详情）
   按 Figma 设计稿 "文章页面 / Frame 1" 1:1 还原中间主体区
   画布 1920px｜内容栅格 1600px（左右留白 160）
   三栏：导读 200 + 间距 60 + 正文 860 + 间距 40 + 咨询卡 440
   本文件只作用于 #c-common-info.ad-page，不影响站点头部与尾部
   ========================================================================== */

#c-common-info.ad-page {
  --ad-ink: #1b1a1a;
  --ad-text: #2c2c2c;
  --ad-blue: #1d5fe0;
  --ad-muted: #8c857f;
  --ad-soft: #9aa5b5;
  --ad-line: #ede6e0;
  --ad-cream: #fdf3ef;
  background: #fff !important;
  padding: 0 !important;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans CN",
    "Microsoft YaHei UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 容器：1920 画布下内容宽 1600，左右各 160 */
#c-common-info.ad-page .ad-wrap {
  width: 100%;
  max-width: 1648px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ==========================================================================
   1. HERO：面包屑 + 大标题 + 作者信息 + 主图
   ========================================================================== */
#c-common-info.ad-page .ad-hero {
  background: var(--ad-cream);
  padding: 52px 0 128px;
  box-sizing: border-box;
}

#c-common-info.ad-page .ad-hero-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
}

#c-common-info.ad-page .ad-hero-copy {
  width: 720px;
  max-width: 100%;
  flex: 0 0 auto;
  padding-top: 8px;
}

/* 面包屑 */
#c-common-info.ad-page .ad-crumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  height: 20px;
  line-height: 20px;
  font-size: 14px;
  color: var(--ad-muted);
  background: none !important;
  padding: 0 !important;
  white-space: nowrap;
}
#c-common-info.ad-page .ad-crumb a {
  color: var(--ad-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  transition: color 0.2s;
}
#c-common-info.ad-page .ad-crumb a:hover { color: var(--ad-blue); }
#c-common-info.ad-page .ad-crumb .c-separator {
  margin: 0 6px;
  color: #c9c1ba;
  font-size: 14px;
}
#c-common-info.ad-page .ad-crumb .c-current {
  color: var(--ad-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 350px;
}

/* 主标题 48 / 72 */
#c-common-info.ad-page .ad-title {
  margin: 42px 0 0 !important;
  padding: 0 !important;
  font-size: 48px !important;
  line-height: 72px !important;
  font-weight: 700 !important;
  color: #333 !important;
  letter-spacing: 0;
  max-width: 720px;
}

/* 作者信息条 */
#c-common-info.ad-page .ad-meta {
  display: flex;
  align-items: center;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  font-size: 14px;
  color: var(--ad-text);
}
#c-common-info.ad-page .ad-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e54300;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
  letter-spacing: 0;
  margin-right: 20px;
}
#c-common-info.ad-page .ad-meta-txt {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
#c-common-info.ad-page .ad-author {
  margin: 0 !important;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: var(--ad-ink);
}
#c-common-info.ad-page .ad-read {
  margin: 0 !important;
  font-size: 14px;
  line-height: 18px;
  color: #6b6560;
}
#c-common-info.ad-page .ad-meta-div {
  flex: 0 0 auto;
  width: 1px;
  height: 44px;
  background: #d9cfc8;
  margin: 0 31px 0 69px;
}
#c-common-info.ad-page .ad-date {
  margin: 0 !important;
  font-size: 15px;
  line-height: 20px;
  color: #494340;
}

/* 主图卡 880 x 420 */
#c-common-info.ad-page .ad-hero-media {
  flex: 0 0 880px;
  width: 880px;
  aspect-ratio: 880 / 420;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
#c-common-info.ad-page .ad-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  /* 线上文章封面尺寸不固定（方图/横幅都有），contain 保证不变形、不裁掉主体 */
  object-fit: contain;
  object-position: center;
}

/* ==========================================================================
   2. 主体三栏
   ========================================================================== */
#c-common-info.ad-page .ad-main {
  background: #fff;
  padding: 52px 0 0;
}

#c-common-info.ad-page .ad-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 280px;
  column-gap: 40px;
  align-items: start;
}

/* --- 2.1 左侧导读卡 200 --- */
#c-common-info.ad-page .ad-toc {
  position: sticky;
  top: var(--ad-sticky-top, 96px);
  align-self: start;
  /* 不要在这里加 transition：位置由 JS 逐帧跟随导航的缓动曲线，叠加会造成慢半拍 */
}
#c-common-info.ad-page .ad-toc-card {
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
}
#c-common-info.ad-page .ad-progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  line-height: 16px;
}
#c-common-info.ad-page .ad-progress-label { color: #838c99; }
#c-common-info.ad-page .ad-progress-val {
  color: var(--ad-ink);
  font-variant-numeric: tabular-nums;
}
#c-common-info.ad-page .ad-progress-track {
  height: 5px;
  border-radius: 3px;
  background: #edeff2;
  margin-top: 8px;
  overflow: hidden;
}
#c-common-info.ad-page .ad-progress-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--ad-blue);
  transition: width 0.2s linear;
}
#c-common-info.ad-page .ad-toc-sep {
  height: 1px;
  background: #f0f1f3;
  margin: 13px 0;
}
#c-common-info.ad-page .ad-toc-title {
  margin: 0 0 12px !important;
  font-size: 13px;
  line-height: 17px;
  font-weight: 700;
  color: var(--ad-ink);
}
#c-common-info.ad-page .ad-share {
  display: flex;
  gap: 10px;
  margin-top: 30px;   /* 给悬浮气泡留出空间 */
}
#c-common-info.ad-page .ad-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
#c-common-info.ad-page .ad-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
#c-common-info.ad-page .ad-share-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
#c-common-info.ad-page .ad-share-ico {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
}
#c-common-info.ad-page .ad-share-wechat { background: #07c160; }
#c-common-info.ad-page .ad-share-weibo { background: #e6162d; }
#c-common-info.ad-page .ad-share-qq { background: #12b7f5; }

#c-common-info.ad-page .ad-toc-sep + .ad-toc-title { margin-bottom: 14px !important; }

#c-common-info.ad-page .ad-toc-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
#c-common-info.ad-page .ad-toc-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  bottom: 12px;
  width: 2px;
  background: #e4e7ec;
  border-radius: 1px;
}
#c-common-info.ad-page .ad-toc-list li {
  list-style: none;
  margin: 0 !important;
  padding: 0 0 0 0 !important;
  position: relative;
}
#c-common-info.ad-page .ad-toc-list li + li { margin-top: 14px !important; }
#c-common-info.ad-page .ad-toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  line-height: 19px;
  color: #3a3531;
  transition: color 0.2s;
}
#c-common-info.ad-page .ad-toc-list a i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3d7de;
  margin: 5px 0 0 1px;
  position: relative;
  z-index: 1;
  transition: background 0.2s, width 0.2s, height 0.2s, margin 0.2s;
}
#c-common-info.ad-page .ad-toc-list a:hover { color: var(--ad-blue); }
#c-common-info.ad-page .ad-toc-list a:hover i { background: var(--ad-blue); }
#c-common-info.ad-page .ad-toc-list li.is-active a {
  color: var(--ad-blue);
  font-weight: 700;
}
#c-common-info.ad-page .ad-toc-list li.is-active a i {
  width: 10px;
  height: 10px;
  background: var(--ad-blue);
  margin: 4px 0 0 0;
}

/* --- 2.2 中间正文 860 --- */
#c-common-info.ad-page .c-left.ad-article {
  margin-left: 20px;
  width: auto !important;
  min-width: 0;
  float: none !important;
  padding: 0 !important;
  box-sizing: border-box;
}
#c-common-info.ad-page .ad-article .c-text-box {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box;
}
#c-common-info.ad-page .ad-article .c-text-box .c-text {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  color: var(--ad-text) !important;
  font-size: 16px !important;
  line-height: 30px !important;
  box-sizing: border-box;
}

/* 正文排版：16 / 30，颜色 #2c2c2c，段间距 22 */
#c-common-info.ad-page .c-left .c-text-box .c-text > p,
#c-common-info.ad-page .c-left .c-text-box .c-text > div > p {
  font-size: 16px !important;
  line-height: 30px !important;
  color: var(--ad-text) !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text li,
#c-common-info.ad-page .c-left .c-text-box .c-text li p {
  font-size: 16px !important;
  line-height: 30px !important;
  color: var(--ad-text) !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text ul,
#c-common-info.ad-page .c-left .c-text-box .c-text ol {
  margin: 22px 0 !important;
  padding-left: 26px !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text li { margin-bottom: 8px !important; }

/* 标题：h2 28/40，h3 20/32 */
#c-common-info.ad-page .c-left .c-text-box .c-text > h2,
#c-common-info.ad-page .c-left .c-text-box .c-text > h2.c-rh {
  font-size: 26px !important;
  line-height: 40px !important;
  font-weight: 700 !important;
  color: var(--ad-ink) !important;
  margin: 48px 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  background: none !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text > h3 {
  font-size: 20px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
  color: var(--ad-ink) !important;
  margin: 36px 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text > .c-text > h2:first-child,
#c-common-info.ad-page .c-left .c-text-box .c-text > h2:first-child { margin-top: 0 !important; }

/* 表格：满宽、1px 网格、表头底色 #eef5fb */
#c-common-info.ad-page .c-left .c-text-box .c-text table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #e0e0e0 !important;
  margin: 22px 0 26px !important;
  table-layout: fixed;
  background: #fff;
}
#c-common-info.ad-page .c-left .c-text-box .c-text table th,
#c-common-info.ad-page .c-left .c-text-box .c-text table td {
  border: 1px solid #e0e0e0 !important;
  padding: 13px 16px !important;
  font-size: 15px !important;
  line-height: 20px !important;
  color: var(--ad-text) !important;
  text-align: left !important;
  vertical-align: middle;
  word-break: break-word;
}
#c-common-info.ad-page .c-left .c-text-box .c-text table th {
  background: #eef5fb !important;
  color: var(--ad-ink) !important;
  font-weight: 700 !important;
  line-height: 20px !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text table thead tr { background: #eef5fb !important; }
#c-common-info.ad-page .c-left .c-text-box .c-text table tbody tr:nth-child(even) { background: #fff !important; }

/* 行内元素 */
#c-common-info.ad-page .c-left .c-text-box .c-text a {
  color: #2563eb !important;
  text-decoration: none !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text a:hover { text-decoration: underline !important; }
#c-common-info.ad-page .c-left .c-text-box .c-text strong,
#c-common-info.ad-page .c-left .c-text-box .c-text b {
  font-weight: 700;
  color: inherit;
}
#c-common-info.ad-page .c-left .c-text-box .c-text code {
  background: #f5f7fa !important;
  color: #2563eb !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 0.9em !important;
  font-family: "SF Mono", "Fira Code", "JetBrains Mono", Monaco, Consolas, monospace !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text img { max-width: 100%; height: auto; }
#c-common-info.ad-page .c-left .c-text-box .c-text blockquote {
  margin: 24px 0 !important;
  padding: 16px 20px !important;
  background: #f5f7fa !important;
  border-left: 4px solid var(--ad-blue) !important;
  border-radius: 0 6px 6px 0 !important;
  color: #4b5563 !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text blockquote p {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 30px !important;
  color: inherit !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text hr {
  border: 0 !important;
  border-top: 1px solid #e0e0e0 !important;
  margin: 32px 0 !important;
}
#c-common-info.ad-page .c-left .c-text-box .c-text p:last-child { margin-bottom: 0 !important; }

/* 上一篇/下一篇 */
#c-common-info.ad-page .ad-pn {
  width: auto !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 48px;
  padding: 20px 24px !important;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  font-size: 14px;
  line-height: 24px;
}
#c-common-info.ad-page .ad-pn p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 24px !important;
  max-width: 100%;
}
#c-common-info.ad-page .ad-pn a {
  color: #4b5563 !important;
  text-decoration: none !important;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
#c-common-info.ad-page .ad-pn a:hover { color: var(--ad-blue) !important; }
#c-common-info.ad-page .ad-pn .c-pnBox__previous { flex: 1 1 60%; min-width: 260px; }
#c-common-info.ad-page .ad-pn .c-pnBox__next { flex: 1 1 30%; min-width: 200px; }
#c-common-info.ad-page .ad-pn .c-pnBox__back { flex: 0 0 auto; margin-left: auto; }
#c-common-info.ad-page .ad-pn .c-pnBox__back a {
  color: var(--ad-blue) !important;
  border: 1px solid #d8dee9;
  border-radius: 999px;
  padding: 4px 16px;
  background: #fff;
}

/* --- 2.3 右侧咨询卡 280（蓝渐变外壳 + 内嵌白卡 + 联系 pill + CTA，无表单） --- */
#c-common-info.ad-page .ad-form {
  position: sticky;
  top: var(--ad-sticky-top, 96px);
  align-self: start;
  margin-top: 21px;
  max-height: calc(100vh - var(--ad-sticky-top, 96px) - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d7deea transparent;
}
#c-common-info.ad-page .ad-form::-webkit-scrollbar { width: 4px; }
#c-common-info.ad-page .ad-form::-webkit-scrollbar-thumb {
  background: #d7deea;
  border-radius: 2px;
}
#c-common-info.ad-page .ad-form::-webkit-scrollbar-track { background: transparent; }

/* 外壳：渐变蓝，四周留 8px 蓝边，内部是白色圆角面板 */
#c-common-info.ad-page .ad-form-card {
  background: linear-gradient(135deg, #1d5fe0 0%, #2f7bf2 52%, #3f8bfd 100%);
  border-radius: 16px;
  padding: 0 7px 7px;
  box-shadow: 0 12px 30px rgba(29, 95, 224, 0.18);
  overflow: hidden;
}

/* 头部：图标 + 标题 + 副标题 */
#c-common-info.ad-page .ad-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 7px 13px;
  box-sizing: border-box;
}
#c-common-info.ad-page .ad-form-ico {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
#c-common-info.ad-page .ad-form-ico svg { width: 23px; height: 23px; }
#c-common-info.ad-page .ad-form-headtext {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
#c-common-info.ad-page .ad-form-title {
  margin: 0 !important;
  font-size: 21px !important;
  line-height: 24px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.5px;
}
#c-common-info.ad-page .ad-form-sub {
  margin: 0 !important;
  font-size: 11.5px !important;
  line-height: 15px !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

/* 内嵌白卡 */
#c-common-info.ad-page .ad-form-body {
  background: #fff;
  border-radius: 13px;
  padding: 9px;
  box-shadow: 0 4px 14px rgba(13, 42, 110, 0.1);
}

/* 联系号码 pill */
#c-common-info.ad-page .ad-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 33px;
  padding: 0 11px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: #f5f8fd;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
#c-common-info.ad-page .ad-contact:hover {
  background: #e9f1ff;
  box-shadow: 0 2px 8px rgba(29, 95, 224, 0.1);
}
#c-common-info.ad-page .ad-contact-ico {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: var(--ad-blue);
}
#c-common-info.ad-page .ad-contact-ico svg { width: 16px; height: 16px; }
#c-common-info.ad-page .ad-contact-txt {
  font-size: 12px;
  line-height: 16px;
  color: #8a93a3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#c-common-info.ad-page .ad-contact-txt b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ad-ink);
  letter-spacing: 0.2px;
}

/* 渐变 CTA（链接） */
#c-common-info.ad-page .ad-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  margin: 8px 0 0;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #1d5fe0 0%, #3f8bfd 100%);
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(29, 95, 224, 0.26);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
#c-common-info.ad-page .ad-submit i {
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s;
}
#c-common-info.ad-page .ad-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 9px 22px rgba(29, 95, 224, 0.32);
}
#c-common-info.ad-page .ad-submit:hover i { transform: translateX(3px); }

/* --- 相关样板卡 --- */
#c-common-info.ad-page .ad-samples {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 14px 14px 10px;
  box-shadow: 0 8px 22px rgba(29, 46, 80, 0.05);
}
#c-common-info.ad-page .ad-samples-title {
  position: relative;
  margin: 0 0 12px !important;
  padding-bottom: 8px;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
  color: var(--ad-ink) !important;
}
#c-common-info.ad-page .ad-samples-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ad-blue);
}
#c-common-info.ad-page .ad-samples-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
#c-common-info.ad-page .ad-samples-list li {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
#c-common-info.ad-page .ad-samples-list li + li { margin-top: 10px !important; }
#c-common-info.ad-page .ad-samples-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  margin: -4px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
#c-common-info.ad-page .ad-samples-list a:hover { background: #f6f9ff; }
#c-common-info.ad-page .ad-sample-thumb {
  flex: 0 0 auto;
  width: 66px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f5f9;
}
#c-common-info.ad-page .ad-sample-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
#c-common-info.ad-page .ad-samples-list a:hover .ad-sample-thumb img { transform: scale(1.06); }
#c-common-info.ad-page .ad-sample-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
#c-common-info.ad-page .ad-sample-txt b {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--ad-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#c-common-info.ad-page .ad-sample-txt em {
  font-style: normal;
  font-size: 11px;
  line-height: 15px;
  color: #8a93a3;
}

/* ==========================================================================
   3. 相关推荐
   ========================================================================== */
#c-common-info.ad-page .ad-related {
  padding-top: 71px;
  padding-bottom: 78px;
}
#c-common-info.ad-page .ad-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#c-common-info.ad-page .ad-related-title {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 40px !important;
  font-weight: 700 !important;
  color: var(--ad-ink) !important;
  letter-spacing: 0.5px;
}
#c-common-info.ad-page .ad-related-more {
  font-size: 14px;
  line-height: 18px;
  color: var(--ad-blue);
  text-decoration: none;
  white-space: nowrap;
}
#c-common-info.ad-page .ad-related-more:hover { opacity: 0.8; }
#c-common-info.ad-page .ad-related-rule {
  height: 1px;
  background: var(--ad-line);
  margin: 12px 0 24px;
}
#c-common-info.ad-page .ad-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
#c-common-info.ad-page .ad-rel-card {
  position: relative;
  display: block;
  height: 200px;
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
#c-common-info.ad-page .ad-rel-card:hover {
  border-color: #d7e2f6;
  box-shadow: 0 10px 26px rgba(29, 95, 224, 0.09);
  transform: translateY(-2px);
}
#c-common-info.ad-page .ad-rel-date {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  color: var(--ad-muted) !important;
}
#c-common-info.ad-page .ad-rel-ttl {
  margin: 6px 0 0 !important;
  max-width: 198px;
  font-size: 16px !important;
  line-height: 21px !important;
  font-weight: 700 !important;
  color: var(--ad-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#c-common-info.ad-page .ad-rel-thumb {
  position: absolute;
  right: 20px;
  top: 52px;
  width: 128px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
#c-common-info.ad-page .ad-rel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
#c-common-info.ad-page .ad-rel-link {
  position: absolute;
  left: 20px;
  bottom: 20px;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 17px !important;
  color: var(--ad-blue) !important;
}
#c-common-info.ad-page .ad-rel-card:hover .ad-rel-link { color: #1750c4 !important; }

/* ==========================================================================
   4. 底部评估 CTA
   ========================================================================== */
#c-common-info.ad-page .ad-cta {
  background: linear-gradient(90deg, #f4f5f7 0%, #f9fafb 55%, #eef0f4 100%);
}
#c-common-info.ad-page .ad-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 70px;
  padding-bottom: 80px;
}
#c-common-info.ad-page .ad-cta-copy { min-width: 0; }
#c-common-info.ad-page .ad-cta-h {
  margin: 0 !important;
  font-size: 34px !important;
  line-height: 45px !important;
  font-weight: 700 !important;
  color: #14171c !important;
  letter-spacing: 0.5px;
}
#c-common-info.ad-page .ad-cta-h span { color: #1d6fe0; }
#c-common-info.ad-page .ad-cta-sub {
  margin: 17px 0 0 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  color: #5a6472 !important;
}
#c-common-info.ad-page .ad-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 260px;
  height: 64px;
  border-radius: 8px;
  background: var(--ad-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}
#c-common-info.ad-page .ad-cta-btn:hover {
  background: #1750c4;
  transform: translateY(-1px);
}
#c-common-info.ad-page .ad-cta-btn i {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  opacity: 0.9;
}

/* 轻提示 */
#c-common-info.ad-page .ad-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  z-index: 9999;
  padding: 12px 22px;
  border-radius: 8px;
  background: rgba(20, 23, 28, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
#c-common-info.ad-page .ad-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 桌面中等宽度：给右侧悬浮咨询挂件（fixed 82px）留出安全边距，避免压住窄版咨询卡 */
@media (min-width: 901px) and (max-width: 1720px) {
  #c-common-info.ad-page .ad-wrap {
    padding-left: 32px;
    padding-right: 100px;
  }
}

/* 分享按钮（海报）：沿用 36px 圆，蓝色底 + 链接图标 */
#c-common-info.ad-page .ad-share-poster {
  background: #12b7f5;
  color: #fff;
}
#c-common-info.ad-page .ad-share-poster svg {
  width: 18px;
  height: 18px;
}

/* 分享按钮悬浮气泡提示 */
#c-common-info.ad-page .ad-share-btn {
  position: relative;
}
#c-common-info.ad-page .ad-share-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 30;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(24, 28, 36, 0.92);
  color: #fff;
  font-size: 11.5px;
  line-height: 15px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
#c-common-info.ad-page .ad-share-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1px);
  z-index: 30;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: rgba(24, 28, 36, 0.92);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
#c-common-info.ad-page .ad-share > :first-child::after {
  left: 0;
  transform: translate(0, 4px);
}
#c-common-info.ad-page .ad-share > :first-child::before {
  left: 13px;
}
#c-common-info.ad-page .ad-share > :last-child::after {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}
#c-common-info.ad-page .ad-share > :last-child::before {
  left: auto;
  right: 13px;
  transform: none;
}
#c-common-info.ad-page .ad-share > :first-child:hover::after,
#c-common-info.ad-page .ad-share > :first-child:focus-visible::after,
#c-common-info.ad-page .ad-share > :last-child:hover::after,
#c-common-info.ad-page .ad-share > :last-child:focus-visible::after {
  transform: translate(0, 0);
}
#c-common-info.ad-page .ad-share-btn:hover::after,
#c-common-info.ad-page .ad-share-btn:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
#c-common-info.ad-page .ad-share-btn:hover::before,
#c-common-info.ad-page .ad-share-btn:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

/* 海报弹层 */
#c-common-info.ad-page .ad-poster-mask {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
#c-common-info.ad-page .ad-poster-mask.is-on {
  opacity: 1;
  visibility: visible;
}
#c-common-info.ad-page .ad-poster-box {
  position: relative;
  width: min(400px, 90vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
  overflow: auto;
}
#c-common-info.ad-page .ad-poster-mask.is-on .ad-poster-box {
  transform: none;
}
#c-common-info.ad-page .ad-poster-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #f5f7fa;
}
#c-common-info.ad-page .ad-poster-box.is-loading .ad-poster-img {
  min-height: 320px;
  animation: ad-poster-pulse 1.1s ease-in-out infinite;
}
@keyframes ad-poster-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
#c-common-info.ad-page .ad-poster-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
#c-common-info.ad-page .ad-poster-close:hover { background: rgba(17, 24, 39, 0.8); }
#c-common-info.ad-page .ad-poster-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 10px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1d5fe0 0%, #3f8bfd 100%);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(29, 95, 224, 0.26);
}
#c-common-info.ad-page .ad-poster-dl:hover { filter: brightness(1.06); }
#c-common-info.ad-page .ad-poster-tip {
  margin: 8px 0 2px !important;
  font-size: 12px !important;
  line-height: 16px !important;
  color: #8a93a3 !important;
  text-align: center;
}

/* 文末「生成分享海报」入口（仅 ≤1200 显示，桌面用左侧目录里的按钮） */
#c-common-info.ad-page .ad-pn-share {
  display: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d8e4f8;
  border-radius: 999px;
  background: #f4f8ff;
  color: var(--ad-blue);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
#c-common-info.ad-page .ad-pn-share svg { width: 15px; height: 15px; }
#c-common-info.ad-page .ad-pn-share:hover { background: #e8f1ff; border-color: #b9cdf5; }
@media (max-width: 1200px) {
  #c-common-info.ad-page .ad-pn-share { display: inline-flex; }
}

/* ==========================================================================
   5. 响应式
   ========================================================================== */
@media (max-width: 1720px) {
  #c-common-info.ad-page .ad-hero-media { flex: 1 1 auto; width: auto; max-width: 880px; }
  #c-common-info.ad-page .ad-hero-copy { width: 640px; }
  #c-common-info.ad-page .ad-title { font-size: 42px !important; line-height: 64px !important; }
}

@media (max-width: 1440px) {
  #c-common-info.ad-page .ad-grid { grid-template-columns: 200px minmax(0, 1fr) 272px; column-gap: 32px; }
  #c-common-info.ad-page .c-left.ad-article { margin-left: 0; }
  #c-common-info.ad-page .ad-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  #c-common-info.ad-page .ad-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  #c-common-info.ad-page .ad-toc { display: none; }
  #c-common-info.ad-page .ad-hero-grid { flex-direction: column; gap: 32px; }
  #c-common-info.ad-page .ad-hero-copy { width: 100%; }
  #c-common-info.ad-page .ad-hero-media { width: 100%; max-width: 100%; height: auto; }
  #c-common-info.ad-page .ad-hero { padding: 40px 0 56px; }
  #c-common-info.ad-page .ad-title { font-size: 38px !important; line-height: 56px !important; margin-top: 24px !important; }
  #c-common-info.ad-page .ad-main { padding-top: 40px; }
}

@media (max-width: 900px) {
  #c-common-info.ad-page .ad-grid { grid-template-columns: minmax(0, 1fr); }
  #c-common-info.ad-page .ad-form {
    position: static;
    margin-top: 40px;
    max-height: none;
    overflow: visible;
  }
  #c-common-info.ad-page .ad-samples { padding: 16px 16px 10px; }
  #c-common-info.ad-page .ad-sample-thumb { width: 92px; height: 66px; }
  #c-common-info.ad-page .ad-sample-txt b { font-size: 14.5px; line-height: 20px; }
  #c-common-info.ad-page .ad-samples-list li + li { margin-top: 12px !important; }
  #c-common-info.ad-page .ad-toc { position: static; }
  #c-common-info.ad-page .ad-related { padding-top: 48px; padding-bottom: 48px; }
  #c-common-info.ad-page .ad-related-title { font-size: 24px !important; line-height: 32px !important; }
  #c-common-info.ad-page .ad-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 44px;
    padding-bottom: 44px;
  }
  #c-common-info.ad-page .ad-cta-h { font-size: 26px !important; line-height: 36px !important; }
  #c-common-info.ad-page .ad-cta-btn { width: 100%; max-width: 320px; }
}

@media (max-width: 640px) {
  #c-common-info.ad-page .ad-wrap { padding: 0 16px; }
  #c-common-info.ad-page .ad-hero { padding: 28px 0 40px; }
  #c-common-info.ad-page .ad-title { font-size: 26px !important; line-height: 40px !important; margin-top: 18px !important; }
  #c-common-info.ad-page .ad-avatar { width: 44px; height: 44px; line-height: 44px; font-size: 20px; margin-right: 12px; }
  #c-common-info.ad-page .ad-author { font-size: 16px; line-height: 22px; }
  #c-common-info.ad-page .ad-meta-div { display: none; }
  #c-common-info.ad-page .ad-date { margin-left: 12px !important; font-size: 13px; }
  #c-common-info.ad-page .ad-hero-media { height: auto; border-radius: 14px; }
  #c-common-info.ad-page .c-left .c-text-box .c-text > p,
  #c-common-info.ad-page .c-left .c-text-box .c-text > div > p { font-size: 16px !important; line-height: 28px !important; margin-bottom: 18px !important; }
  #c-common-info.ad-page .c-left .c-text-box .c-text > h2,
  #c-common-info.ad-page .c-left .c-text-box .c-text > h2.c-rh { font-size: 22px !important; line-height: 32px !important; margin: 32px 0 12px !important; }
  #c-common-info.ad-page .c-left .c-text-box .c-text > h3 { font-size: 18px !important; line-height: 28px !important; margin: 26px 0 10px !important; }
  #c-common-info.ad-page .c-left .c-text-box .c-text table th,
  #c-common-info.ad-page .c-left .c-text-box .c-text table td { padding: 9px 10px !important; font-size: 13px !important; line-height: 18px !important; }
  #c-common-info.ad-page .c-left .c-text-box .c-text table { table-layout: auto; }
  #c-common-info.ad-page .ad-related-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #c-common-info.ad-page .ad-rel-card { height: 176px; }
  #c-common-info.ad-page .ad-rel-thumb { width: 100px; height: 76px; }
  #c-common-info.ad-page .ad-rel-ttl { max-width: 180px; }
  #c-common-info.ad-page .ad-form-body { padding: 16px 16px 18px; }
  #c-common-info.ad-page .ad-pn { padding: 16px !important; }
  #c-common-info.ad-page .ad-pn .c-pnBox__previous,
  #c-common-info.ad-page .ad-pn .c-pnBox__next { flex: 1 1 100%; min-width: 0; }
}

/* ==========================================================================
   [2026-11-20] 文章目录：条目多时自适应
   1) 间距/字号/行高改为 CSS 变量，JS 按视口高度逐级收缩
   2) 缩到最小仍放不下时，卡片内部滚动（带细滚动条），不影响左侧吸附
   ========================================================================== */
#c-common-info.ad-page .ad-toc-list li + li { margin-top: var(--toc-gap, 14px) !important; }
#c-common-info.ad-page .ad-toc-list a { font-size: var(--toc-fs, 13px); line-height: var(--toc-lh, 19px); }
#c-common-info.ad-page .ad-toc-card {
  max-height: calc(100vh - 120px);
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
#c-common-info.ad-page .ad-toc-card::-webkit-scrollbar { width: 6px; }
#c-common-info.ad-page .ad-toc-card::-webkit-scrollbar-thumb { background: #d9dee6; border-radius: 3px; }
#c-common-info.ad-page .ad-toc-card::-webkit-scrollbar-track { background: transparent; }
