/* ==========================================================================
   ImmTelecom (immtelecom.casa) - 知识专栏与文章阅读样式表
   Pure Native CSS - 优雅排版 · 极佳中文长文阅读体验
   ========================================================================== */

/* 文章页面头部小导航 */
.article-header-nav {
  padding-top: 110px;
  padding-bottom: 25px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb li a:hover {
  color: var(--cyan-primary);
}

.breadcrumb-separator {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: var(--cyan-light);
  font-weight: 500;
}

/* 文章主体布局 */
.article-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding-bottom: 90px;
}

.article-content-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 45px 48px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

/* 文章元信息 */
.article-meta-header {
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding-bottom: 28px;
  margin-bottom: 35px;
}

.article-main-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-top: 12px;
  margin-bottom: 18px;
}

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

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

/* 文章排版正文 */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e2e8f0;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 45px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--cyan-gradient);
  border-radius: 3px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cyan-light);
  margin-top: 32px;
  margin-bottom: 14px;
}

.article-body ul, 
.article-body ol {
  margin-bottom: 26px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

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

.article-body a {
  color: var(--cyan-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition);
}

.article-body a:hover {
  color: #ffffff;
}

/* 提示警示框 (Callout Box) */
.callout-box {
  background: rgba(14, 28, 56, 0.7);
  border-left: 4px solid var(--cyan-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 30px 0;
}

.callout-box.tip {
  border-left-color: var(--accent-emerald);
  background: rgba(6, 78, 59, 0.25);
}

.callout-box.warning {
  border-left-color: var(--accent-gold);
  background: rgba(120, 53, 15, 0.25);
}

.callout-title {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* 原生对比表格 */
.table-responsive {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.custom-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--cyan-primary);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  color: #cbd5e1;
}

.custom-table tr:hover td {
  background: rgba(56, 189, 248, 0.05);
}

/* 文章内置 CTA 卡片 */
.article-cta-card {
  background: linear-gradient(135deg, rgba(14, 28, 56, 0.95) 0%, rgba(3, 7, 18, 0.95) 100%);
  border: 1px solid var(--cyan-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.article-cta-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

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

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

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

.widget-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.related-posts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-posts-list li a {
  display: block;
  font-size: 0.88rem;
  color: #cbd5e1;
  text-decoration: none;
  line-height: 1.5;
  transition: var(--transition);
}

.related-posts-list li a:hover {
  color: var(--cyan-primary);
  padding-left: 4px;
}

.sidebar-cta-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(147, 51, 234, 0.12) 100%);
  border: 1px solid var(--cyan-primary);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
}

.sidebar-cta-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.sidebar-cta-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .article-container {
    grid-template-columns: 1fr;
  }
  .article-content-wrapper {
    padding: 30px 24px;
  }
  .article-main-title {
    font-size: 1.85rem;
  }
}
