:root {
  --primary: #7B68EE;
  --primary-dark: #5A4ACF;
  --secondary: #4CAF50;
  --accent: #FFD700;
  --dark: #2D2D2D;
  --light: #F8F9FA;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: #080c14;
  color: #f8f9fa;
  overflow-x: hidden;
}

.header-scrolled {
  background: rgba(8, 12, 20, 0.95) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.page-hero-articles {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 25%, rgba(123, 104, 238, 0.16) 0%, transparent 30%),
    radial-gradient(circle at 80% 75%, rgba(76, 175, 80, 0.12) 0%, transparent 30%),
    linear-gradient(145deg, #080c14 0%, #10182a 100%);
  overflow: hidden;
}

.page-hero-articles::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(123, 104, 238, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}

.hero-articles-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover,
.filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(123, 104, 238, 0.3);
}

.article-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(123, 104, 238, 0.16);
  border-color: rgba(123, 104, 238, 0.25);
}

.article-card:hover .article-thumb img {
  transform: scale(1.08);
}

.article-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.55);
  color: var(--accent);
  backdrop-filter: blur(4px);
}

.article-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.4;
  transition: color 0.2s ease;
}

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

.article-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.pagination a:hover,
.pagination a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
}

.section-title-articles {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  position: relative;
}

.section-title-articles::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}
