/* ========================================================
   云海互联 (oceancloud.homes) 文章内页 原生纯净 CSS
   极致排版 / SEO优化 / 零框架依赖 / 秒开阅读体验
   ======================================================== */

.article-page {
  padding: 50px 0 90px 0;
}

.article-container {
  max-width: 880px;
  margin: 0 auto;
}

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

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

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

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

/* 文章头部 */
.article-header {
  margin-bottom: 35px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.article-tag-wrap {
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(216, 180, 254, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(216, 180, 254, 0.35);
}

.article-main-title {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

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

/* 快速注册 CTA 悬浮/嵌入条 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta-box .cta-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.article-cta-box .cta-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 45px 0 20px 0;
  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: 1.3em;
  background: var(--primary);
  border-radius: 3px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 32px 0 16px 0;
}

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

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

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

.article-content a:hover {
  color: #7dd3fc;
}

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

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

/* 提示卡片 Callout */
.callout {
  background: rgba(15, 23, 42, 0.7);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

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

/* 文章中的数据对比表格 */
.content-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

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

.content-table th, .content-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.content-table th {
  background: rgba(15, 27, 52, 0.9);
  color: var(--primary);
  font-weight: 700;
}

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

/* 代码与配置块 */
.code-box {
  background: #090e1a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin: 24px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: #38bdf8;
  overflow-x: auto;
  line-height: 1.6;
}

/* 底部相关推荐与返回 */
.article-footer-nav {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.related-box {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.related-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
}

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

.related-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.related-list li a:hover {
  background: rgba(0, 242, 254, 0.08);
  color: var(--primary);
  transform: translateX(4px);
}
