/* ==========================================================================
   IPLCSub (iplcsub.mom) - 文章专栏与深度技术评测专用样式表
   零重型库 · 极致排版 · 高可读性 SEO 强化
   ========================================================================== */

.article-page-wrap {
  position: relative;
  z-index: 10;
  padding: 50px 0 90px;
}

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

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

.breadcrumbs a:hover {
  color: #ffa940;
}

.breadcrumbs .separator {
  color: var(--text-dim);
  font-size: 11px;
}

.breadcrumbs .current {
  color: #ffa940;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文章头部 */
.article-header-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.article-title-main {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.28;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

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

.info-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 文章正文容器与排版 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
}

.article-content {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.85;
}

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

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 45px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 140, 66, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #ff8c42, #ff5722);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 32px 0 14px;
}

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

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

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

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

/* 警示与高亮引言块 */
.callout-box {
  background: rgba(15, 23, 42, 0.85);
  border-left: 4px solid #ff8c42;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #e2e8f0;
}

.callout-box.tip {
  border-left-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

.callout-box.warning {
  border-left-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

.callout-box strong {
  color: #ffa940;
  display: block;
  margin-bottom: 4px;
}

.callout-box.tip strong { color: var(--accent-green); }
.callout-box.warning strong { color: var(--accent-amber); }

/* 文章内嵌表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
}

.article-table th {
  background: rgba(255, 140, 66, 0.12);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.article-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.article-table tr:hover td {
  background: rgba(255, 140, 66, 0.04);
}

/* 文章正文内嵌的 CTA 转换横幅 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(30, 20, 10, 0.95) 0%, rgba(15, 12, 10, 0.95) 100%);
  border: 1px solid rgba(255, 140, 66, 0.45);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 140, 66, 0.2);
}

.article-cta-title {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.article-cta-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
}

/* 标签云与文章底部导航 */
.article-footer-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-label {
  font-size: 13px;
  color: var(--text-dim);
}

.article-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.pn-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.pn-card:hover {
  border-color: #ff8c42;
  box-shadow: 0 8px 24px -4px rgba(255, 140, 66, 0.25);
  background: var(--bg-card-hover);
}

.pn-direction {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: block;
}

.pn-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.45;
}

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

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.sidebar-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;
}

.sidebar-article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-article-link {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
  transition: var(--transition);
}

.sidebar-article-link:hover {
  color: #ffa940;
  transform: translateX(3px);
}

.sidebar-cta-btn {
  width: 100%;
  margin-top: 14px;
}

/* 移动端适配 */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-prev-next {
    grid-template-columns: 1fr;
  }
}
