/* ==========================================================================
   WuXXNet 网络 (wuxxnet.sbs) - 文章详情页专属排版样式
   高可读性 · 纯原生 CSS · 响应式阅读优化
   ========================================================================== */

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

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

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

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

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

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

.article-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

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

.article-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

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

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

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

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

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

.article-content a:hover {
  color: #38bdf8;
}

.article-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin: 44px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--cyan));
  border-radius: 3px;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 32px 0 16px;
}

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

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

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

.article-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-content blockquote {
  background: rgba(6, 182, 212, 0.08);
  border-left: 4px solid var(--cyan);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-size: 1rem;
  color: #cbd5e1;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content th, .article-content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.article-content th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
}

.article-callout {
  background: linear-gradient(135deg, rgba(255, 117, 160, 0.12), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(255, 117, 160, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.article-callout-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.article-callout-body h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}

.article-callout-body p {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

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

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

.sidebar-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.sidebar-article-item a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.45;
  transition: color var(--transition-fast);
}

.sidebar-article-item a:hover {
  color: var(--cyan);
}

.sidebar-article-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.sidebar-promo-card {
  background: linear-gradient(180deg, rgba(255, 117, 160, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(255, 117, 160, 0.4);
  text-align: center;
}

.sidebar-promo-card h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.sidebar-promo-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* 文章聚合页面专属 */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

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