/**
 * 尔湾云 (erwancloud.lol) 官方专栏文章统一排版系统
 * 蒸汽波与彩虹光谱视觉风格
 */

.article-page {
  padding-top: 130px;
  padding-bottom: 100px;
  position: relative;
  z-index: 5;
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

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

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

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

.article-h1 {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.article-badge {
  background: rgba(255, 113, 206, 0.15);
  border: 1px solid rgba(255, 113, 206, 0.4);
  color: var(--color-accent-pink);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* 目录 (TOC) */
.article-toc {
  background: rgba(18, 7, 39, 0.65);
  border: 1px solid rgba(1, 205, 254, 0.3);
  border-radius: 14px;
  padding: 22px 28px;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
}

.article-toc h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--color-accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc ul {
  list-style: none;
  padding-left: 0;
}

.article-toc li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.article-toc li a {
  color: var(--color-text-muted);
}

.article-toc li a:hover {
  color: var(--color-accent-pink);
  padding-left: 4px;
}

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

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

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.article-content h2::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-pink), var(--color-accent-cyan));
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent-cyan);
  margin-top: 36px;
  margin-bottom: 16px;
}

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

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

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

.article-content blockquote {
  border-left: 4px solid var(--color-accent-pink);
  padding: 16px 22px;
  margin: 28px 0;
  background: rgba(255, 113, 206, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--color-text-muted);
  font-style: italic;
}

/* 技术数据表格 */
.article-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: rgba(18, 7, 39, 0.5);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-table th {
  background: rgba(255, 113, 206, 0.15);
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 113, 206, 0.3);
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
}

.article-table tr:hover td {
  background: rgba(1, 205, 254, 0.05);
}

/* 文章底部 CTA 卡片 */
.article-footer-cta {
  margin-top: 60px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(32, 11, 62, 0.8) 0%, rgba(14, 5, 30, 0.9) 100%);
  border: 1px solid rgba(1, 205, 254, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(1, 205, 254, 0.2);
  text-align: center;
}

.article-footer-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #ffffff;
}

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