/* ============================================
   XBSGEO - 文章资讯页面样式
   深蓝+金色 | 玻璃态 | 科技感
   ============================================ */

/* --- Articles Page Layout --- */
.articles-page {
  min-height: 100vh;
  background: var(--bg-dark);
}

/* --- Articles Hero Banner --- */
.articles-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 35, 126, 0.4) 0%, var(--bg-dark) 100%);
}

.articles-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.articles-hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.articles-hero h1 .gold-text {
  color: var(--accent-gold);
}

.articles-hero p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Category Filter --- */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.category-btn {
  padding: 10px 24px;
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 24px;
  background: rgba(26, 35, 126, 0.2);
  color: var(--text-light);
  font-size: 14px;
  font-family: var(--font-cn);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.category-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 168, 67, 0.08);
}

.category-btn.active {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(240, 215, 140, 0.1));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
}

/* --- Articles Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  padding: 16px 0 48px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

.article-card .card-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  align-self: flex-start;
  background: rgba(212, 168, 67, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.article-card .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.5;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.article-card:hover .card-title {
  color: var(--accent-gold-light);
}

.article-card .card-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  font-size: 13px;
  color: rgba(176, 190, 197, 0.7);
}

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

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

.article-card .card-read-more {
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.article-card:hover .card-read-more {
  color: var(--accent-gold-light);
  letter-spacing: 0.03em;
}

/* --- Empty State --- */
.articles-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.articles-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.articles-empty p {
  font-size: 16px;
  line-height: 1.8;
}

/* --- Pagination --- */
.articles-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 0 64px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(26, 35, 126, 0.2);
  color: var(--text-light);
  font-size: 14px;
  font-family: var(--font-en);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  padding: 0 4px;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 168, 67, 0.08);
}

.page-btn.active {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(240, 215, 140, 0.1));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-info {
  color: var(--text-light);
  font-size: 13px;
  margin: 0 8px;
}

/* --- Article Detail View --- */
.article-detail {
  display: none;
  min-height: 100vh;
  background: var(--bg-dark);
}

.article-detail.visible {
  display: block;
}

.article-detail-header {
  padding: 140px 0 48px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(26, 35, 126, 0.5) 0%, var(--bg-dark) 100%);
}

.article-detail-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 24px;
  background: rgba(26, 35, 126, 0.3);
  color: var(--accent-gold);
  font-size: 14px;
  font-family: var(--font-cn);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.article-back-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 168, 67, 0.1);
}

.article-detail-header .detail-category {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  background: rgba(212, 168, 67, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.article-detail-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 24px;
  letter-spacing: 0.02em;
}

.article-detail-header .detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: rgba(176, 190, 197, 0.7);
}

.article-detail-header .detail-meta .meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.4);
}

/* --- Article Content --- */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

.article-content strong {
  color: var(--accent-gold);
  font-weight: 600;
}

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

.article-content li {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(212, 168, 67, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

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

.article-content a:hover {
  color: var(--accent-gold-light);
}

/* --- Article Footer CTA --- */
.article-cta {
  max-width: 780px;
  margin: 0 auto 80px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(12px);
}

.article-cta h3 {
  color: var(--accent-gold);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-cta p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.article-cta .btn {
  display: inline-block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .articles-hero {
    padding: 120px 0 40px;
  }

  .articles-hero h1 {
    font-size: 32px;
  }

  .articles-hero p {
    font-size: 15px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-card {
    padding: 20px;
  }

  .article-card .card-title {
    font-size: 17px;
  }

  .category-filter {
    gap: 8px;
    padding: 20px 0;
  }

  .category-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .article-detail-header {
    padding: 120px 0 32px;
  }

  .article-detail-header h1 {
    font-size: 24px;
  }

  .article-detail-header .detail-meta {
    flex-direction: column;
    gap: 8px;
  }

  .article-detail-header .detail-meta .meta-divider {
    display: none;
  }

  .article-content h2 {
    font-size: 20px;
  }

  .article-content p {
    font-size: 15px;
  }

  .articles-pagination {
    gap: 4px;
  }

  .page-btn {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .articles-hero h1 {
    font-size: 26px;
  }

  .article-card .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
