/* ====================================================
   智慧互动 文章详情页专用样式
   article.css — 复用 style.css 设计系统
   ==================================================== */

/* ===================================================
   面包屑导航（Hero 内用）
   =================================================== */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .85rem;
}

.breadcrumb__link {
  color: #333;
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb__link:hover { color: #000; }

.breadcrumb__sep {
  color: #999;
  font-size: .8rem;
}

.breadcrumb__current {
  color: #000;
  font-weight: 500;
}

/* ===== 文章 Hero 微调 ===== */
.page-hero--article {
  padding: 44px 0 40px;
}

.page-hero--article .page-hero__title {
  font-size: 2rem;
  line-height: 1.35;
  max-width: 800px;
}

.page-hero--article .page-hero__desc {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 825px;
  margin-top: 12px;
}

/* 文章Hero元信息（旧） */
.article-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.article-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(255,255,255,.2);
  color: #fff;
  letter-spacing: .02em;
}

.article-cat-badge--hot {
  background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

.article-hero-date,
.article-hero-reading {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}

.article-hero-reading::before {
  content: '·';
  margin-right: 8px;
}

/* ===== 文章元信息行（标题下方：时间 · 作者 · 阅读时长）===== */
.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}

.article-meta-row span {
    color: #333;
}



.article-meta-item svg {
  opacity: .6;
  flex-shrink: 0;
}

.article-meta-sep {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  padding: 0 4px;
  user-select: none;
}

@media (max-width: 480px) {
  .article-meta-sep--mobile-hide,
  .article-meta-item--views { display: none; }
}

/* ===== 文章布局容器 ===== */
.article-layout {
  padding: 0 0 64px;
  background: #fff;
}

.article-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ===== 正文主栏 ===== */
.article-body {
  min-width: 0;
}

/* ===== 目录 (TOC) ===== */
.article-toc {
  background: #f8faff;
  border: 1px solid #e8ecf4;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1d23;
  margin: 0 0 12px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.toc-list li {
  counter-increment: toc-counter;
}

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-size: .88rem;
  color: #4a5568;
  text-decoration: none;
  transition: color .2s;
}

.toc-list a::before {
  content: counter(toc-counter);
  font-size: .7rem;
  font-weight: 700;
  color: #0052CC;
  background: #e8f0fe;
  border-radius: 3px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toc-list a:hover {
  color: #0052CC;
}

/* ===== 文章章节 ===== */
.article-section {
  margin-bottom: 40px;
}

.article-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1d23;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8ecf4;
}

.article-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1d23;
  margin: 28px 0 12px;
}

.article-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 20px 0 8px;
}

.article-section p {
  font-size: .98rem;
  line-height: 1.85;
  color: #4a5568;
  margin: 0 0 16px;
}

.article-section p strong {
  color: #1a1d23;
}

.article-section code {
  font-size: .85rem;
  background: #f0f4ff;
  color: #0052CC;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
}

/* ===== 引用块 ===== */
.article-quote {
  border-left: 4px solid #0052CC;
  background: #f8faff;
  border-radius: 0 8px 8px 0;
  padding: 18px 24px;
  margin: 24px 0;
}

.article-quote p {
  font-size: 1.02rem;
  font-style: italic;
  color: #2d3748;
  margin: 0 0 8px;
}

.article-quote cite {
  font-size: .82rem;
  color: #718096;
  font-style: normal;
}

.article-quote cite::before {
  content: '— ';
}

/* ===== 高亮卡片 ===== */
.article-highlight {
  background: #f0f7ff;
  border: 1px solid #cce0ff;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}

.article-highlight h4 {
  margin: 0 0 8px;
  color: #0052CC;
}

.article-highlight p {
  margin: 0;
  font-size: .92rem;
}

.article-highlight--cta {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
  border-color: #0052CC;
  text-align: center;
  padding: 28px 24px;
}

.article-highlight--cta .btn {
  margin-top: 12px;
}

/* ===== 数据卡片 ===== */
.article-data-card {
  background: #f8faff;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}

.article-data-card h4 {
  margin: 0 0 16px;
  color: #1a1d23;
}

.data-source {
  font-size: .75rem;
  color: #a0aec0;
  margin: 12px 0 0;
}

/* 数据条 */
.data-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-bar-label {
  width: 100px;
  font-size: .82rem;
  color: #4a5568;
  flex-shrink: 0;
}

.data-bar-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.data-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0052CC, #00C6FF);
  border-radius: 4px;
}

.data-bar-val {
  font-size: .82rem;
  font-weight: 600;
  color: #0052CC;
  min-width: 36px;
  text-align: right;
}

/* ===== 表格 ===== */
.article-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 600px;
}

.article-table thead {
  background: #f0f4ff;
}

.article-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: #1a1d23;
  border-bottom: 2px solid #cce0ff;
}

.article-table td {
  padding: 11px 14px;
  color: #4a5568;
  border-bottom: 1px solid #e8ecf4;
}

.article-table tbody tr:hover {
  background: #f8faff;
}

.tag-ok { color: #0052CC; font-weight: 600; }
.tag-warn { color: #e67e22; font-weight: 600; }
.tag-low { color: #e74c3c; font-weight: 600; }

/* ===== 列表（带对勾） ===== */
.article-list-check {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}

.article-list-check li {
  padding: 6px 0 6px 28px;
  font-size: .93rem;
  color: #4a5568;
  line-height: 1.7;
  position: relative;
}

.article-list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0052CC;
  font-weight: 700;
}

/* 有序列表 */
.article-list-num {
  padding-left: 24px;
  margin: 12px 0 20px;
}

.article-list-num li {
  font-size: .93rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 10px;
}

.article-list-num li strong {
  color: #1a1d23;
}

/* ===== 步骤组件 ===== */
.article-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.article-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052CC, #00C6FF);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #1a1d23;
}

.step-content p {
  margin: 0;
  font-size: .9rem;
  color: #718096;
  line-height: 1.6;
}

/* ===== 配图占位区 ===== */
.article-image-placeholder {
  background: #f8faff;
  border: 2px dashed #cce0ff;
  border-radius: 10px;
  padding: 32px 24px;
  margin: 24px 0;
  text-align: center;
}

.aip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.aip-node {
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
}

.aip-node small {
  display: block;
  font-weight: 400;
  font-size: .75rem;
  margin-top: 4px;
  opacity: .7;
}

.aip-node--seo {
  background: #e8f0fe;
  color: #0052CC;
}

.aip-node--center {
  background: #f0f4ff;
  border: 2px solid #0052CC;
  color: #1a1d23;
}

.aip-node--geo {
  background: linear-gradient(135deg, #0052CC, #0077e6);
  color: #fff;
}

.aip-arrow {
  font-size: 1.5rem;
  color: #a0aec0;
  font-weight: 700;
}

.aip-caption {
  font-size: .8rem;
  color: #a0aec0;
  margin: 16px 0 0;
}

/* ===== 文章底部标签 ===== */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e8ecf4;
}

.article-tags-label {
  font-size: .82rem;
  color: #718096;
  font-weight: 500;
}

.article-tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: .78rem;
  color: #0052CC;
  background: #e8f0fe;
  border-radius: 20px;
  text-decoration: none;
  transition: all .2s;
}

.article-tag:hover {
  background: #0052CC;
  color: #fff;
}

/* ===== 分享 ===== */
.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.article-share-label {
  font-size: .82rem;
  color: #718096;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #4a5568;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.share-btn:hover {
  border-color: #0052CC;
  color: #0052CC;
  background: #f0f7ff;
}

/* ===================================================
   侧边栏 GEO 专题 Banner 占位卡
   =================================================== */
.sidebar-topic-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  height: 160px;
  background: #001a4d;
}

.sidebar-topic-banner__bg {
  position: absolute;
  inset: 0;
  line-height: 0;
  pointer-events: none;
}

.sidebar-topic-banner__bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-topic-banner__body {
  position: relative;
  z-index: 2;
  padding: 20px 20px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

.sidebar-topic-banner__label {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: .62rem;
  font-weight: 700;
  color: #00C6FF;
  background: rgba(0,198,255,.15);
  border: 1px solid rgba(0,198,255,.3);
  border-radius: 3px;
  padding: 2px 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-topic-banner__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.sidebar-topic-banner__desc {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  margin: 0 0 12px;
}

.sidebar-topic-banner__btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: .76rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,198,255,.2);
  border: 1px solid rgba(0,198,255,.5);
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  width: fit-content;
}

.sidebar-topic-banner__btn:hover {
  background: rgba(0,198,255,.35);
  border-color: #00C6FF;
}

/* ===== 侧边栏 ===== */
.article-sidebar {
  position: sticky;
  top: 88px;
  margin-top: -200px;   /* 向上拉，与文章标题对齐 */
}

.sidebar-card {
  background: #f8faff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1d23;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8ecf4;
}

/* 作者卡片 */
.sidebar-author {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sidebar-author-avatar {
  flex-shrink: 0;
}

.sidebar-author-name {
  font-size: .9rem;
  font-weight: 700;
  color: #1a1d23;
  margin: 0 0 4px;
}

.sidebar-author-bio {
  font-size: .78rem;
  color: #718096;
  line-height: 1.5;
  margin: 0;
}

/* 相关文章 */
.sidebar-articles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-articles li {
  border-bottom: 1px solid #e8ecf4;
}

.sidebar-articles li:last-child {
  border-bottom: none;
}

.sidebar-article-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0;
  text-decoration: none;
  transition: opacity .2s;
}

.sidebar-article-link:hover {
  opacity: .8;
}

.sidebar-article-tag {
  display: inline-block;
  width: fit-content;
  font-size: .65rem;
  font-weight: 600;
  color: #0052CC;
  background: #e8f0fe;
  border-radius: 3px;
  padding: 1px 6px;
}

.sidebar-article-title {
  font-size: .84rem;
  color: #2d3748;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 服务推荐卡 */
.sidebar-card--service {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
  border: 1px solid #cce0ff;
}

.sidebar-service-desc {
  font-size: .82rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* 关键词 */
.sidebar-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-kw {
  display: inline-block;
  padding: 3px 12px;
  font-size: .73rem;
  color: #4a5568;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  transition: all .2s;
}

.sidebar-kw:hover {
  border-color: #0052CC;
  color: #0052CC;
  background: #f0f7ff;
}

/* ===== 延伸阅读 ===== */
.article-related {
  background: #f8faff;
  border-top: 1px solid #e8ecf4;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8ecf4;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(0,82,204,.1);
  transform: translateY(-2px);
}

.related-card-link {
  display: block;
  text-decoration: none;
}

.related-card-img {
  height: 140px;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card-img svg {
  width: 100%;
  height: 100%;
}

.related-card-body {
  padding: 14px 18px 16px;
}

.related-card-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  color: #0052CC;
  background: #e8f0fe;
  border-radius: 3px;
  padding: 1px 7px;
  margin-bottom: 8px;
}

.related-card-title {
  font-size: .9rem;
  font-weight: 600;
  color: #1a1d23;
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-date {
  font-size: .75rem;
  color: #a0aec0;
}

/* ====================================
   响应式
   ==================================== */

/* 平板：主栏+侧边栏间距缩小 */
@media (max-width: 980px) {
  .article-container {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }

  .article-sidebar {
    margin-top: -100px;
  }

  .page-hero--article .page-hero__title {
    font-size: 1.6rem;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 平板竖屏：侧边栏换行到下方 */
@media (max-width: 768px) {
  .article-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-sidebar {
    position: static;
    margin-top: 0;
  }

  .page-hero--article {
    padding: 36px 0 28px;
  }

  .article-toc {
    padding: 16px 18px;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .related-card-img {
    height: 120px;
  }

  .aip-inner {
    flex-direction: column;
    gap: 8px;
  }

  .aip-arrow {
    transform: rotate(90deg);
  }
}

/* 手机：单列 */
@media (max-width: 600px) {
  .article-layout {
    padding: 24px 0 40px;
  }

  .page-hero--article {
    padding: 40px 0 32px;
  }

  .page-hero--article .page-hero__title {
    font-size: 1.35rem;
  }

  .page-hero--article .page-hero__desc {
    font-size: .92rem;
  }

  .article-hero-meta {
    gap: 10px;
  }

  .article-hero-date,
  .article-hero-reading {
    font-size: .75rem;
  }

  .article-section h2 {
    font-size: 1.25rem;
  }

  .article-section h3 {
    font-size: 1.05rem;
  }

  .article-section p {
    font-size: .92rem;
  }

  .article-toc {
    padding: 14px 16px;
  }

  .toc-list a {
    font-size: .82rem;
  }

  .article-table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
  }

  .data-bar-label {
    width: 70px;
    font-size: .75rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .related-card-img {
    height: 160px;
  }
}
