/* ==========================================================================
   IPLCSub (iplcsub.sbs) - 文章专栏与深度技术评测专用样式
   0 外部库依赖 · 极速秒开 · 结构化阅读体验
   ========================================================================== */

.article-page-wrap {
  padding: 40px 0 80px;
}

/* 面包屑导航 */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .separator {
  color: var(--text-dim);
}

.breadcrumbs .current {
  color: var(--text-main);
  font-weight: 500;
}

/* 主内容布局：左侧正文 + 右侧边栏 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 42px 48px;
  box-shadow: var(--shadow-card);
}

.article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 28px;
  margin-bottom: 34px;
}

.article-header .category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.article-page-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 16px;
}

.article-meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-dim);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 正文排版 */
.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: #e2e8f0;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  font-size: 23px;
  font-weight: 800;
  color: #ffffff;
  margin: 38px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  position: relative;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 2px;
  background: var(--primary);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-hover);
  margin: 26px 0 12px;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-content li {
  line-height: 1.7;
}

.article-content strong {
  color: #ffffff;
  font-weight: 700;
}

.article-content blockquote {
  background: rgba(13, 21, 46, 0.7);
  border-left: 4px solid var(--primary);
  padding: 16px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 26px 0;
  font-size: 15px;
  color: var(--text-muted);
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: #38bdf8;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 14px;
}

.article-content th, .article-content td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content th {
  background: rgba(0, 242, 254, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.article-content tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* 站内交叉跳转与关键词高亮链接 */
.internal-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.internal-link:hover {
  color: #ffffff;
  background: rgba(0, 242, 254, 0.15);
  border-radius: 2px;
}

/* 文章内部高转化 CTA 盒子 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(16, 29, 60, 0.85) 0%, rgba(10, 16, 35, 0.95) 100%);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
}

.article-cta-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.article-cta-box p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 20px;
}

/* 右侧边栏 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-links a {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.widget-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.widget-links a::before {
  content: '▸';
  color: var(--primary);
}

.promo-widget {
  background: linear-gradient(135deg, rgba(16, 29, 60, 0.9) 0%, rgba(13, 21, 46, 0.95) 100%);
  border: 1px solid var(--primary);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
  text-align: center;
}

.promo-widget .promo-price {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--primary);
  margin: 10px 0 16px;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .article-main {
    padding: 30px 24px;
  }
}
