/* ==========================================================================
   GieGie Cloud (giegie.homes) - 深度文章与知识库样式表 (article.css)
   阅读体验优先 | 语义化排版 | 内部锚点与呼吁行动卡
   ========================================================================== */

.article-page {
  padding: 50px 0 90px;
  position: relative;
  z-index: 1;
}

/* 面包屑导航 */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

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

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

/* 文章头部 */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.article-category {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.article-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

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

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

/* 文章布局 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.article-layout.full-width {
  grid-template-columns: 1fr;
}

/* 文章主体内容 */
.article-content {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.article-content p {
  margin-bottom: 20px;
  color: #cbd5e1;
}

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

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

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

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

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

/* 引用与高亮卡片 */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 26px 0;
  font-size: 15px;
  line-height: 1.7;
}

.callout-info {
  background: rgba(0, 245, 255, 0.06);
  border-left: 4px solid var(--primary);
  color: #e2e8f0;
}

.callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--success);
  color: #e2e8f0;
}

.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--gold);
  color: #e2e8f0;
}

/* 表格样式 */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: left;
}

.article-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* 代码块 */
.code-block {
  background: #06090e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #38bdf8;
  overflow-x: auto;
  margin: 24px 0;
  line-height: 1.6;
}

/* 文章内置行动呼吁卡 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(20, 28, 50, 0.9) 0%, rgba(13, 18, 31, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.article-cta-box h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.article-cta-box p {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 22px;
}

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

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

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 12px;
  font-size: 14px;
}

.sidebar-links a {
  color: var(--text-secondary);
  display: block;
  line-height: 1.5;
}

.sidebar-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* 知识库主页列表 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.3s ease;
  height: 100%;
}

.article-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.article-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.article-card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-main);
}

.article-card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.article-card-footer .read-more {
  color: var(--primary);
  font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .article-title {
    font-size: 28px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
