:root {
  --bg: #0a0e17;
  --bg-card: #12182a;
  --bg-card-hover: #161f35;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf7;
  --text-muted: #8b95a8;
  --accent: #6c5ce7;
  --accent-2: #00cec9;
  --accent-glow: rgba(108, 92, 231, 0.35);
  --gradient: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #55efc4;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  top: -150px;
  right: -100px;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 206, 201, 0.15);
  bottom: 10%;
  left: -120px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.2);
  border: 1px solid rgba(108, 92, 231, 0.4);
  color: #a29bfe;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 800px;
}

.hero-summary {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 206, 201, 0.12);
  border: 1px solid rgba(0, 206, 201, 0.25);
  color: #81ecec;
  font-size: 0.8rem;
}

.tag-sm {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0;
}

.link-more {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.link-more:hover {
  color: var(--accent-2);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.news-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.3);
}

.news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.week-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.date-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.news-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.news-card h3 a {
  color: var(--text);
}

.news-card h3 a:hover {
  color: var(--accent-2);
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 500;
}

.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.1rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.list-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.list-item h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.list-item h2 a {
  color: var(--text);
}

.list-item h2 a:hover {
  color: var(--accent-2);
}

.list-item p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.article-page {
  padding: 2rem 0 4rem;
}

.article-container {
  max-width: 760px;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--accent-2);
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: 0.5rem 0 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-summary {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: #dfe6e9;
}

.prose p {
  margin: 0 0 1rem;
  color: #c8d0dc;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: #c8d0dc;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(108, 92, 231, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote p {
  margin: 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.update-guide {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.update-guide h2 {
  margin-top: 0;
  font-family: var(--font-display);
}

.update-guide ol {
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.update-guide li {
  margin-bottom: 0.75rem;
}

.update-guide code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #81ecec;
}

.empty {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.8rem !important;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}
