/* ==========================================================================
   KY-Cloud 快云 (ky-cloud.mom) - 文章内页与知识库专用样式表
   零外部依赖 · 极速加载 · 排版舒适 · SEO 内容优先
   ========================================================================== */

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

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

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

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

.breadcrumb a:hover {
  color: #38bdf8;
}

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

.breadcrumb-current {
  color: #e2e8f0;
  font-weight: 500;
}

/* 主文章容器 */
.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 42px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.article-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.article-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

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

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

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

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

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 40px 0 18px 0;
  padding-left: 14px;
  border-left: 4px solid #6366f1;
  line-height: 1.3;
}

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

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
  color: #cbd5e1;
}

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

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

.article-content a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

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

/* 警示与高亮框 */
.callout-box {
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid #6366f1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 26px 0;
  color: #e2e8f0;
  font-size: 0.96rem;
}

.callout-box.tip {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10b981;
}

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

/* 评测数据对比表格 */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

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

.comparison-table th {
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  color: #ffffff;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
}

.comparison-table td {
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
}

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

.comparison-table tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* 内置 CTA 转化横幅 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(30, 41, 69, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-box-text h4 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 6px;
}

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

/* 标签组 */
.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.article-tags-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-tag-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
}

.article-tag-item:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

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

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

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.widget-post-item a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.45;
  display: block;
  transition: color 0.2s;
}

.widget-post-item a:hover {
  color: #38bdf8;
}

.widget-post-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-main {
    padding: 28px 20px;
  }
  .article-title {
    font-size: 1.75rem;
  }
}
