@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

/* ===== CSS变量 ===== */
:root {
  --clr-green: #87ff71;
  --clr-cyan: #01cdfe;
  --clr-dark: #192617;
  --clr-dark-mid: #1e2f1b;
  --clr-dark-light: #243320;
  --clr-purple: #b967ff;
  --clr-pink: #ff71ce;
  --clr-text: #c8f5c0;
  --clr-text-dim: #7aad72;
  --clr-border: rgba(135, 255, 113, 0.2);
  --clr-border-cyan: rgba(1, 205, 254, 0.3);
  --font-mono: 'JetBrains Mono', 'Courier New', 'Lucida Console', monospace;
  --radius-card: 28px;
  --shadow-glow-green: 0 0 12px rgba(135, 255, 113, 0.4), 0 0 24px rgba(135, 255, 113, 0.15);
  --shadow-glow-cyan: 0 0 12px rgba(1, 205, 254, 0.4), 0 0 24px rgba(1, 205, 254, 0.15);
  --transition-fast: 0.18s ease;
  --transition-mid: 0.3s ease;
}

/* ===== 重置与基础 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--clr-dark);
  color: var(--clr-text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 扫描线效果 ===== */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

.site-wrapper {
  position: relative;
  z-index: 1;
}

/* ===== 顶部装饰渐变 ===== */
.site-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-purple), var(--clr-cyan), var(--clr-green), var(--clr-pink));
  z-index: 1000;
}

/* ===== 页眉 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(25, 38, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}

.brand-bar {
  padding: 12px 32px;
  border-bottom: 1px solid var(--clr-border);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--clr-green);
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-mark-text {
  font-size: 24px;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  animation: glitch-pulse 4s infinite;
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
}

/* ===== 导航 ===== */
.main-nav {
  padding: 0 32px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav-list li {
  display: flex;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 400;
  color: var(--clr-text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.nav-current {
  color: var(--clr-cyan);
  border-bottom-color: var(--clr-cyan);
  text-shadow: var(--shadow-glow-cyan);
}

/* ===== 页脚（极简：仅 p + small）===== */
.site-footer {
  background: var(--clr-dark);
  border-top: 1px solid var(--clr-border);
  padding: 32px;
  text-align: center;
}

.footer-brand {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 13px;
  color: var(--clr-text-dim);
  margin-bottom: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  display: block;
  font-size: 12px;
  color: var(--clr-text-dim);
}

.footer-link {
  color: var(--clr-cyan);
  text-decoration: none;
}

.footer-link:hover {
  text-shadow: var(--shadow-glow-cyan);
}

/* ===== 眉题小标签 ===== */
.eyebrow-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--clr-cyan);
  text-shadow: var(--shadow-glow-cyan);
  text-transform: none;
  margin-bottom: 8px;
}

/* ===== 通用 article heading ===== */
.section-heading {
  font-size: 22px;
  font-weight: 500;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  min-height: 48px;
  background: transparent;
  border: 1px solid var(--clr-green);
  color: var(--clr-green);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  box-shadow: 0 0 8px rgba(135, 255, 113, 0.2);
}

.btn-primary:hover {
  background: rgba(135, 255, 113, 0.12);
  box-shadow: var(--shadow-glow-green);
  color: #fff;
}

/* ===== 标签 ===== */
.article-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--clr-cyan);
  border-radius: 4px;
  font-size: 11px;
  color: var(--clr-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-shadow: var(--shadow-glow-cyan);
}

/* ===== HOME：Hero ===== */
.hero-section {
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 60px 32px;
  gap: 48px;
  background: linear-gradient(135deg, rgba(25,38,23,1) 0%, rgba(30,47,27,1) 50%, rgba(10,20,30,1) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(135,255,113,0.04), transparent);
  pointer-events: none;
}

/* 网格背景 */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background-image:
    linear-gradient(rgba(1,205,254,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,205,254,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(300px) rotateX(40deg);
  transform-origin: bottom center;
  pointer-events: none;
}

.hero-figure {
  flex: 0 0 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(135,255,113,0.08), rgba(1,205,254,0.08));
  border-radius: var(--radius-card);
}

.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: rgba(185,103,255,0.2);
  border: 1px solid var(--clr-purple);
  border-radius: 4px;
  font-size: 11px;
  color: var(--clr-purple);
  letter-spacing: 0.1em;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--clr-cyan);
  text-shadow: var(--shadow-glow-cyan);
}

.hero-h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 500;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.hero-sub {
  font-size: 15px;
  color: var(--clr-text-dim);
  max-width: 420px;
  line-height: 1.7;
}

/* ===== HOME：Topics ===== */
.topics-section {
  padding: 64px 32px;
  border-bottom: 1px solid var(--clr-border);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

/* 子页并列 a 块（结构抽签要求：a > strong 不在 li 里）*/
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--clr-dark-mid);
  border: 1px solid var(--clr-border);
  border-bottom: 3px solid var(--clr-green);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--clr-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--clr-green), var(--clr-cyan));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.topic-card:hover {
  border-color: var(--clr-cyan);
  border-bottom-color: var(--clr-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-3px);
}

.topic-card:hover::before {
  opacity: 1;
}

.topic-card strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--clr-green);
  line-height: 1.4;
}

.topic-card span {
  font-size: 13px;
  color: var(--clr-text-dim);
  line-height: 1.6;
}

/* ===== HOME：内容 + 侧边 ===== */
.content-section {
  display: flex;
  gap: 40px;
  padding: 64px 32px;
  border-bottom: 1px solid var(--clr-border);
  align-items: flex-start;
}

.content-aside {
  flex: 0 0 280px;
  background: var(--clr-dark-mid);
  border: 1px solid var(--clr-border-cyan);
  border-radius: var(--radius-card);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.aside-heading {
  font-size: 16px;
  font-weight: 500;
  color: var(--clr-cyan);
  margin-bottom: 12px;
}

.aside-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  min-height: 40px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--clr-green);
  text-decoration: none;
  border-bottom: 1px solid var(--clr-green);
  transition: text-shadow var(--transition-fast);
}

.aside-link:hover {
  text-shadow: var(--shadow-glow-green);
}

.content-figure {
  flex: 1;
  min-width: 0;
}

/* ===== HOME：Recent Articles ===== */
.recent-section {
  padding: 64px 32px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--clr-dark-mid);
  border: 1px solid var(--clr-border);
  border-bottom: 3px solid var(--clr-cyan);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--clr-text);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.article-card:hover {
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.article-card strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-green);
  line-height: 1.4;
}

.card-desc {
  font-size: 13px;
  color: var(--clr-text-dim);
  line-height: 1.6;
}

.card-date {
  font-size: 11px;
  color: var(--clr-purple);
  letter-spacing: 0.06em;
}

/* ===== TOPIC：Hero ===== */
.topic-hero-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(25,38,23,1), rgba(10,20,30,1));
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}

.topic-figure {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-glyph {
  font-size: 72px;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  animation: glitch-pulse 3s infinite;
}

.topic-hero-text {
  flex: 1;
}

.topic-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--clr-purple);
  border-radius: 4px;
  font-size: 11px;
  color: var(--clr-purple);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.topic-h1 {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 500;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  margin-bottom: 12px;
  line-height: 1.4;
}

.topic-desc {
  font-size: 15px;
  color: var(--clr-text-dim);
  max-width: 600px;
}

/* ===== TOPIC：内容 + 侧边 ===== */
.topic-content-section {
  display: flex;
  gap: 40px;
  padding: 48px 32px;
  align-items: flex-start;
  border-bottom: 1px solid var(--clr-border);
}

.topic-content-body {
  flex: 1;
  min-width: 0;
}

.topic-sidebar {
  flex: 0 0 260px;
  background: var(--clr-dark-mid);
  border: 1px solid var(--clr-border-cyan);
  border-radius: var(--radius-card);
  padding: 24px;
  position: sticky;
  top: 100px;
}

/* ===== TOPIC：子页列表 ===== */
.children-section {
  padding: 48px 32px;
}

.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

/* 子页并列 a 块（结构抽签：a > strong，不在 li 里）*/
.child-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--clr-dark-mid);
  border: 1px solid var(--clr-border);
  border-bottom: 3px solid var(--clr-green);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--clr-text);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.child-card:hover {
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-2px);
}

.child-card strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-green);
  line-height: 1.4;
}

.child-desc {
  font-size: 13px;
  color: var(--clr-text-dim);
}

.child-card time {
  font-size: 11px;
  color: var(--clr-purple);
}

/* ===== ARTICLE ===== */
.article-header-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 48px 32px 32px;
  border-bottom: 1px solid var(--clr-border);
  background: linear-gradient(135deg, rgba(25,38,23,1), rgba(15,25,20,1));
}

.article-hero-fig {
  flex: 0 0 40%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

.article-hero-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-card);
}

.article-meta-aside {
  flex: 1;
  min-width: 0;
}

.breadcrumb {
  font-size: 12px;
  color: var(--clr-text-dim);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--clr-cyan);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-shadow: var(--shadow-glow-cyan);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--clr-text-dim);
}

.article-h1 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-lead {
  font-size: 15px;
  color: var(--clr-text-dim);
  margin-bottom: 16px;
  line-height: 1.7;
}

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

.date-pub,
.date-mod {
  font-size: 12px;
  color: var(--clr-purple);
  letter-spacing: 0.04em;
}

/* ===== ARTICLE：正文 + 侧边 ===== */
.article-body-section {
  display: flex;
  gap: 40px;
  padding: 48px 32px;
  align-items: flex-start;
}

.article-content-wrap {
  flex: 1;
  min-width: 0;
}

.article-sidebar {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

/* ===== 侧边栏通用 ===== */
.sidebar-block {
  background: var(--clr-dark-mid);
  border: 1px solid var(--clr-border-cyan);
  border-radius: var(--radius-card);
  padding: 20px;
}

.sidebar-heading {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-cyan);
  margin-bottom: 12px;
}

.sidebar-heading {
  margin-top: 8px;
}

.sidebar-note {
  font-size: 13px;
  color: var(--clr-text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.sidebar-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--clr-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(135,255,113,0.4);
  transition: text-shadow var(--transition-fast);
}

.sidebar-cta:hover {
  text-shadow: var(--shadow-glow-green);
}

.sidebar-safety {
  border-color: rgba(255,113,206,0.3);
}

/* 侧边栏内导航 dl（结构抽签：footer nav > dl > dt/dd > a）*/
.sidebar-dl {
  list-style: none;
}

.sidebar-dl dt,
.sidebar-dl dd {
  margin: 0;
  padding: 0;
}

.sidebar-dl dt {
  margin-bottom: 4px;
}

.sidebar-dl a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--clr-text-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(135,255,113,0.08);
  transition: color var(--transition-fast);
}

.sidebar-dl a:hover {
  color: var(--clr-green);
}

.sidebar-dl dt a {
  color: var(--clr-cyan);
  font-weight: 500;
}

/* ===== 正文内容样式 ===== */
.prose-content {
  max-width: 720px;
  line-height: 1.8;
}

.page-content-wrap {
  max-width: 720px;
  line-height: 1.8;
}

.prose-content h2,
.page-content-wrap h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--clr-green);
  text-shadow: 0 0 8px rgba(135,255,113,0.3);
  margin: 36px 0 14px;
  letter-spacing: 0.04em;
}

.prose-content h3,
.page-content-wrap h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--clr-cyan);
  margin: 28px 0 10px;
}

.prose-content p,
.page-content-wrap p {
  font-size: 16px;
  color: var(--clr-text);
  margin-bottom: 16px;
}

.prose-content ul,
.page-content-wrap ul,
.prose-content ol,
.page-content-wrap ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose-content li,
.page-content-wrap li {
  font-size: 16px;
  color: var(--clr-text);
  margin-bottom: 8px;
}

.prose-content a,
.page-content-wrap a {
  color: var(--clr-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-content a:hover,
.page-content-wrap a:hover {
  text-shadow: var(--shadow-glow-cyan);
}

.prose-content strong,
.page-content-wrap strong {
  color: var(--clr-green);
  font-weight: 500;
}

.prose-content blockquote,
.page-content-wrap blockquote {
  border-left: 3px solid var(--clr-cyan);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--clr-text-dim);
  font-style: italic;
}

.prose-content code,
.page-content-wrap code {
  background: rgba(135,255,113,0.08);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  color: var(--clr-green);
}

.prose-content hr,
.page-content-wrap hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 32px 0;
}

/* ===== ABOUT ===== */
.about-intro-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 32px;
  background: linear-gradient(135deg, rgba(25,38,23,1), rgba(10,20,30,1));
  border-bottom: 1px solid var(--clr-border);
}

.about-figure {
  flex: 0 0 160px;
  text-align: center;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 24px;
  background: var(--clr-dark-mid);
}

.about-glyph {
  font-size: 64px;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  animation: glitch-pulse 3s infinite;
}

.about-figcaption {
  font-size: 11px;
  color: var(--clr-text-dim);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.about-meta {
  flex: 1;
}

.about-h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  margin-bottom: 12px;
}

.about-desc {
  font-size: 15px;
  color: var(--clr-text-dim);
}

.about-content-section {
  display: flex;
  gap: 40px;
  padding: 48px 32px;
  align-items: flex-start;
}

.about-content-body {
  flex: 1;
  min-width: 0;
}

.about-sidebar {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

/* ===== PRIVACY ===== */
.privacy-header-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(25,38,23,1), rgba(10,20,30,1));
  border-bottom: 1px solid var(--clr-border);
}

.privacy-figure {
  flex: 0 0 80px;
  text-align: center;
}

.privacy-glyph {
  font-size: 48px;
  color: var(--clr-cyan);
  text-shadow: var(--shadow-glow-cyan);
}

.privacy-meta {
  flex: 1;
}

.privacy-h1 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  color: var(--clr-green);
  text-shadow: var(--shadow-glow-green);
  margin-bottom: 10px;
}

.privacy-desc {
  font-size: 15px;
  color: var(--clr-text-dim);
  margin-bottom: 10px;
}

.privacy-content-section {
  display: flex;
  gap: 40px;
  padding: 48px 32px;
  align-items: flex-start;
}

.privacy-content-body {
  flex: 1;
  min-width: 0;
}

.privacy-sidebar {
  flex: 0 0 240px;
  background: var(--clr-dark-mid);
  border: 1px solid var(--clr-border-cyan);
  border-radius: var(--radius-card);
  padding: 24px;
  position: sticky;
  top: 100px;
}

/* ===== 空提示 ===== */
.empty-tip {
  color: var(--clr-text-dim);
  font-size: 14px;
  padding: 20px;
}

/* ===== 动画 ===== */
@keyframes glitch-pulse {
  0%, 100% {
    text-shadow: 0 0 12px rgba(135,255,113,0.5), 0 0 24px rgba(135,255,113,0.2);
    filter: none;
  }
  48% {
    text-shadow: 0 0 12px rgba(135,255,113,0.5), 0 0 24px rgba(135,255,113,0.2);
    filter: none;
  }
  50% {
    text-shadow: -2px 0 rgba(1,205,254,0.7), 2px 0 rgba(185,103,255,0.7);
    filter: hue-rotate(10deg);
  }
  52% {
    text-shadow: 0 0 12px rgba(135,255,113,0.5), 0 0 24px rgba(135,255,113,0.2);
    filter: none;
  }
}

/* Scroll Reveal */
.topic-card,
.article-card,
.child-card {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.5s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topic-card:nth-child(1) { animation-delay: 0.05s; }
.topic-card:nth-child(2) { animation-delay: 0.1s; }
.topic-card:nth-child(3) { animation-delay: 0.15s; }
.topic-card:nth-child(4) { animation-delay: 0.2s; }

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.2s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.3s; }

.child-card:nth-child(1) { animation-delay: 0.05s; }
.child-card:nth-child(2) { animation-delay: 0.1s; }
.child-card:nth-child(3) { animation-delay: 0.15s; }
.child-card:nth-child(4) { animation-delay: 0.2s; }
.child-card:nth-child(5) { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .topic-card,
  .article-card,
  .child-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .brand-mark-text,
  .topic-glyph,
  .about-glyph {
    animation: none;
  }
  * {
    transition: none !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-section,
  .topic-content-section,
  .about-content-section,
  .privacy-content-section {
    flex-direction: column;
  }

  .content-aside,
  .topic-sidebar,
  .about-sidebar,
  .privacy-sidebar,
  .article-sidebar {
    position: static;
    flex: none;
    width: 100%;
  }

  .article-body-section {
    flex-direction: column;
  }

  .article-header-section {
    flex-direction: column;
  }

  .article-hero-fig {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .brand-bar {
    padding: 12px 16px;
  }

  .main-nav {
    padding: 0 16px;
  }

  .nav-link {
    padding: 10px 10px;
    font-size: 12px;
  }

  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 40px 16px;
    gap: 28px;
  }

  .hero-figure {
    flex: none;
    width: 100%;
  }

  .hero-text {
    align-items: flex-start;
    text-align: left;
  }

  .hero-sub {
    max-width: 100%;
  }

  .topics-section,
  .recent-section,
  .content-section,
  .children-section,
  .topic-hero-section,
  .topic-content-section,
  .article-header-section,
  .article-body-section,
  .about-intro-section,
  .about-content-section,
  .privacy-header-section,
  .privacy-content-section {
    padding: 36px 16px;
  }

  .topic-grid,
  .article-grid,
  .children-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 24px 16px;
  }

  .topic-hero-section {
    flex-direction: column;
  }

  .about-intro-section {
    flex-direction: column;
  }

  .privacy-header-section {
    flex-direction: column;
  }
}
