:root {
  color-scheme: light;
  --bg: #05040f;
  --surface: #0d0b1f;
  --card: rgba(7, 10, 26, 0.75);
  --text: #e9e7ff;
  --muted: #b2b0d6;
  --primary: #b794f4;
  --primary-strong: #6d28d9;
  --accent: #38bdf8;
  --border: rgba(183, 148, 244, 0.25);
  --radius: 18px;
  --shadow: 0 25px 60px rgba(15, 5, 40, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(88, 80, 220, 0.45), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.35), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(244, 114, 182, 0.35), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 200, 120, 0.25), transparent 40%),
    radial-gradient(circle at top, #24134a 0%, #0a0917 50%, #03020a 100%);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.7) 0, transparent 60%),
    radial-gradient(1px 1px at 70% 40%, rgba(56, 189, 248, 0.7) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(183, 148, 244, 0.7) 0, transparent 60%),
    radial-gradient(2px 2px at 85% 70%, rgba(255, 255, 255, 0.6) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(244, 114, 182, 0.6) 0, transparent 60%),
    radial-gradient(2px 2px at 10% 60%, rgba(255, 200, 120, 0.5) 0, transparent 60%);
  opacity: 0.6;
  animation: twinkle 12s ease-in-out infinite;
}

body::after {
  animation-delay: -6s;
  opacity: 0.35;
}

@keyframes twinkle {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-10px); opacity: 0.75; }
}

.blast-overlay {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 120, 80, 0.35), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.35), transparent 35%),
    radial-gradient(circle at 30% 80%, rgba(183, 148, 244, 0.35), transparent 40%),
    conic-gradient(from 120deg, rgba(255, 160, 110, 0.2), rgba(56, 189, 248, 0.2), rgba(183, 148, 244, 0.25), rgba(255, 160, 110, 0.2));
  filter: blur(10px);
  animation: blastShift 18s ease-in-out infinite;
}

@keyframes blastShift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate3d(-2%, -3%, 0) scale(1.06); opacity: 0.7; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
}

.meteor-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  padding: 32px 6vw 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(183, 148, 244, 0.65), 0 0 30px rgba(56, 189, 248, 0.45);
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
}

.hero {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}


.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 16px;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.35), 0 0 40px rgba(183, 148, 244, 0.35);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #020617;
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.35), 0 0 22px rgba(183, 148, 244, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(10, 6, 30, 0.55), 0 0 30px rgba(183, 148, 244, 0.35);
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
}

.section {
  padding: 72px 6vw;
}

.section.alt {
  background: rgba(12, 11, 24, 0.6);
}

.section-title {
  max-width: 620px;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.section-title p {
  color: var(--muted);
}

.about-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card,
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(10, 5, 30, 0.45), 0 0 20px rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(10px);
}

.card h3,
.post-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.card p,
.post-card p {
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(183, 148, 244, 0.2);
  color: var(--primary);
  font-size: 12px;
  margin-bottom: 12px;
}

.meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topic {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(109, 40, 217, 0.08);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(10px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(109, 40, 217, 0.12);
  transition: all 0.2s ease;
}

.chip:hover {
  color: var(--text);
  border-color: rgba(183, 148, 244, 0.6);
}

.subscribe {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hcaptcha {
  transform: scale(0.95);
  transform-origin: left center;
  width: 100%;
}

.captcha-tip {
  font-size: 12px;
  color: var(--muted);
}

.subscribe input {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  min-width: 220px;
}

.footer {
  padding: 32px 6vw 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--muted);
}

.page-hero {
  padding: 40px 6vw 20px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
}

.post-list {
  padding: 32px 6vw 80px;
  display: grid;
  gap: 20px;
}

.post-item {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  display: grid;
  gap: 10px;
}

.post-item h2 {
  font-size: 22px;
}

.post-item .meta {
  margin-top: 0;
}

.article {
  padding: 32px 6vw 80px;
  max-width: 820px;
}

.article h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 10px;
}

.article h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.article p {
  color: var(--muted);
  margin-bottom: 16px;
}

.article {
  line-height: 1.9;
}

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

.article h2 {
  margin-top: 40px;
}

.article .meta {
  margin-bottom: 18px;
}

.article blockquote {
  margin: 28px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--primary);
  background: rgba(183, 148, 244, 0.12);
  color: var(--text);
}

.article blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  background: rgba(183, 148, 244, 0.08);
  color: var(--text);
}

.article-pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  line-height: 1.9;
  font-family: inherit;
  font-size: 16px;
  margin-top: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    right: 6vw;
    top: 72px;
    background: rgba(2, 6, 23, 0.95);
    padding: 16px;
    border-radius: 12px;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
