/* ============================================================
   HITULCD · 文章页组件样式（配合 blogshow.html 使用）
   只负责 CMS 自动生成的部分：内嵌产品卡 / 目录 / 表格 / 摘要块 / 文末询价条
   页面基础排版仍由 blogshow.html 内联 <style> 控制
   ============================================================ */

/* ---------- 默认单栏：隐藏右侧栏，正文铺满 1360 ---------- */
/* 想恢复右侧栏，把下面两行删掉即可（同时删掉 .hit-layout 那行） */
.hit-main .hit-layout {
  display: block;
  margin-top: 46px;
}

.hit-main .hit-sidebar {
  display: none;
}

/* 右侧栏隐藏后，桌面也保留一个折叠目录，不占高度 */
.hit-main .hit-toc-mobile {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfd;
}

.hit-main .hit-toc-mobile summary {
  color: #5a6c79;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  cursor: pointer;
}

.hit-main .hit-toc-mobile .ap-toc {
  padding-top: 12px;
}

/* 正文在 1360 通栏下的字号（模板内联样式是 16px，偏小） */
.hit-main .hit-content {
  font-size: 18px;
  line-height: 1.85;
  color: #344451;
}

/* ---------- 目录（dr_aigen_toc 输出）---------- */
.ap-toc-label,
.hit-toc-mobile .ap-toc-label {
  display: none;
}

.hit-main .ap-toc-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  counter-reset: none;
}

.hit-main .ap-toc-list li {
  margin: 0 0 8px;
  padding-left: 0;
}

.hit-main .ap-toc-list a {
  display: block;
  padding: 3px 0;
  color: #5d6f7d;
  font-size: 13.5px;
  line-height: 1.5;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color .18s ease, border-color .18s ease;
}

.hit-main .ap-toc-list a:hover,
.hit-main .ap-toc-list a.is-active {
  color: var(--brand);
  border-left-color: var(--accent);
  text-decoration: none;
}

/* ---------- 表格横向滚动容器（dr_aigen_article_body 自动加）---------- */
.hit-main .ap-table-scroll {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.hit-main .ap-table-scroll table {
  margin: 0;
  min-width: 560px;
}

/* ---------- 正文内嵌「Related product」卡片 ---------- */
.hit-main .ap-relprod {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  margin: 34px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 40, 52, .045);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hit-main .ap-relprod:hover {
  border-color: #d3dde4;
  box-shadow: 0 14px 34px rgba(20, 40, 52, .08);
}

.hit-main .ap-relprod-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 176px;
  background: var(--soft);
  border-radius: 10px;
  overflow: hidden;
}

.hit-main .ap-relprod-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
}

.hit-main .ap-relprod-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hit-main .ap-relprod-label {
  margin: 0 0 8px;
  color: #8a96a1;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hit-main .ap-relprod-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -.01em;
}

.hit-main .hit-content .ap-relprod-title a {
  color: var(--ink);
  text-decoration: none;
}

.hit-main .hit-content .ap-relprod-title a:hover {
  color: var(--brand);
  text-decoration: none;
}

.hit-main .ap-relprod-spec {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.hit-main .hit-content a.ap-relprod-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hit-main .hit-content a.ap-relprod-link:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

.hit-main .ap-relprod-arrow {
  margin-left: 6px;
  transition: transform .18s ease;
}

.hit-main .ap-relprod:hover .ap-relprod-arrow {
  transform: translateX(3px);
}

/* 无产品图：整行布局 */
.hit-main .ap-relprod-nomedia {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Key takeaways 摘要块 ---------- */
.hit-main .ap-takeaways {
  margin: 30px 0;
  padding: 22px 26px;
  border: 1px solid #e4ecef;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: #f5f8fa;
}

.hit-main .ap-takeaways h3 {
  margin: 0 0 12px;
  color: #203642;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hit-main .ap-takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.hit-main .ap-takeaways li {
  margin: 6px 0;
  color: #3f5462;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 文末询价条 ---------- */
.hit-main .hit-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 46px 0 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(120deg, #f3f7f8 0%, #f8fafb 60%, #edf3f5 100%);
}

.hit-main .hit-cta-text b {
  display: block;
  margin-bottom: 6px;
  color: #1a2c37;
  font-size: 17px;
}

.hit-main .hit-cta-text p {
  margin: 0;
  color: #5d6f7d;
  font-size: 14.5px;
  line-height: 1.65;
}

.hit-main .hit-cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.hit-main .hit-cta-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hit-main .hit-cta-btn:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}

.hit-main .hit-cta-btn.ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid #d7e2e7;
}

.hit-main .hit-cta-btn.ghost:hover {
  background: #f3f8f9;
  color: var(--brand-dark);
  text-decoration: none;
}

/* ---------- 移动端 ---------- */
@media (max-width: 1024px) {
  .hit-main .ap-relprod {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    margin: 28px 0;
  }
  .hit-main .ap-relprod-media {
    height: 170px;
  }
  .hit-main .ap-relprod-title {
    font-size: 17px;
  }
  .hit-main .hit-cta-band {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
  }
  .hit-main .hit-cta-actions {
    flex-direction: column;
  }
  .hit-main .hit-cta-btn {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hit-main .hit-content {
    font-size: 16.5px;
  }
  .hit-main .ap-takeaways {
    padding: 18px 20px;
  }
}

/* 站内全局 CSS 把 ul/ol 的 list-style 清空了，正文里要恢复 */
.hit-main .hit-content ul {
  list-style: disc;
}

.hit-main .hit-content ol {
  list-style: decimal;
}

.hit-main .ap-takeaways ul {
  list-style: disc;
}
