@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --c-bg: #0d0d0d;
  --c-bg2: #111118;
  --c-bg3: #16161e;
  --c-primary: #8000ff;
  --c-secondary: #ff00ff;
  --c-accent: #00ffcc;
  --c-text: #e0d8f0;
  --c-text-muted: #9988bb;
  --c-border: #2a1a4a;
  --c-border-bright: #5000aa;
  --c-card-bg: #120d20;
  --c-glow-purple: rgba(128,0,255,0.35);
  --c-glow-pink: rgba(255,0,255,0.35);
  --font-mono: 'Courier New', 'Lucida Console', monospace;
  --font-serif: 'Cormorant Infant', 'Georgia', serif;
  --font-script: 'Great Vibes', cursive;
  --radius-card: 28px;
  --nav-h: 60px;
  --announce-h: 36px;
  --transition: 0.25s ease;
}

/* ===== 重置 ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary); text-shadow: 0 0 8px var(--c-primary); }
ul { list-style: none; }
button, summary { cursor: pointer; }

/* ===== 扫描线叠加层 ===== */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  animation: scanlines-drift 12s linear infinite;
}
@keyframes scanlines-drift {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* ===== 公告条 ===== */
.announce-bar {
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-primary));
  background-size: 200% 100%;
  animation: gradient-shift 6s linear infinite;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 200;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.announce-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0 1rem;
}

/* ===== 顶部导航 ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  border-bottom: 1px solid var(--c-border-bright);
  box-shadow: 0 2px 24px var(--c-glow-purple);
  backdrop-filter: blur(8px);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-primary);
  border-radius: 6px;
  color: var(--c-primary);
  text-shadow: 0 0 10px var(--c-primary);
  font-size: 1.25rem;
  transition: box-shadow var(--transition);
}
.nav-brand:hover {
  box-shadow: 0 0 16px var(--c-primary);
  color: var(--c-primary);
}
.nav-logo-mark { width: 32px; height: 32px; object-fit: contain; }
.nav-icon { font-size: 1.25rem; line-height: 1; }

/* 平铺文字导航（桌面） */
.nav-flat-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  overflow: hidden;
}
.nav-flat-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  padding: 0.5rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition), background var(--transition);
}
.nav-flat-link:hover {
  color: var(--c-secondary);
  background: rgba(255,0,255,0.07);
  text-shadow: 0 0 8px var(--c-secondary);
}

/* details/summary 汉堡菜单（移动端） */
.nav-details { display: none; }
.nav-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--c-border-bright);
  border-radius: 6px;
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-height: 40px;
  background: transparent;
  transition: border-color var(--transition);
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle:hover { border-color: var(--c-secondary); }
.hamburger-lines { display: flex; flex-direction: column; gap: 4px; }
.hamburger-lines i { display: block; width: 18px; height: 2px; background: var(--c-secondary); border-radius: 2px; }
.nav-toggle-text { font-size: 0.72rem; }
.nav-menu {
  position: absolute;
  top: calc(var(--announce-h) + var(--nav-h));
  left: 0;
  right: 0;
  background: rgba(13,13,13,0.98);
  border-bottom: 2px solid var(--c-primary);
  padding: 0.75rem 0;
  z-index: 99;
  box-shadow: 0 8px 32px var(--c-glow-purple);
}
.nav-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-text);
  min-height: 48px;
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.nav-menu li a:hover {
  color: var(--c-secondary);
  background: rgba(255,0,255,0.06);
  border-left-color: var(--c-secondary);
}

/* ===== 二级粘性锚点条 ===== */
.sticky-anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(18,13,32,0.97);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(4px);
}
.anchor-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-bar-inner::-webkit-scrollbar { display: none; }
.anchor-back, .anchor-link, .anchor-sep, .anchor-current {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.anchor-back { color: var(--c-accent); }
.anchor-back:hover { color: var(--c-secondary); }
.anchor-link { color: var(--c-text-muted); }
.anchor-link:hover { color: var(--c-secondary); }
.anchor-sep { color: var(--c-border-bright); font-size: 0.85rem; }
.anchor-current { color: var(--c-primary); }

/* ===== 全局容器 ===== */
main { min-height: 60vh; }
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.content-section { padding: 4rem 0; }
.section-header { margin-bottom: 2rem; }
.section-header small.eyebrow + h2,
.section-header small.eyebrow + h3 { margin-top: 0.4rem; }
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--c-text);
}

/* ===== 眉题 small ===== */
small.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary);
  text-shadow: 0 0 8px var(--c-primary);
  margin-bottom: 0.3rem;
}

/* ===== Glitch 文字效果 ===== */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glitch-text::before {
  color: var(--c-secondary);
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch-1 3.5s infinite steps(1);
  opacity: 0.7;
}
.glitch-text::after {
  color: var(--c-accent);
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  animation: glitch-2 4.2s infinite steps(1);
  opacity: 0.6;
}
@keyframes glitch-1 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px) skewX(-4deg); }
  94% { transform: translate(3px, -1px) skewX(3deg); }
  96% { transform: translate(-2px, 2px); }
}
@keyframes glitch-2 {
  0%, 88%, 100% { transform: translate(0); }
  90% { transform: translate(4px, -2px) skewX(5deg); }
  93% { transform: translate(-3px, 1px) skewX(-3deg); }
  96% { transform: translate(2px, -1px); }
}

/* ===== Hero 首页 ===== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  max-width: 700px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(1.5) hue-rotate(10deg);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.92) 40%, rgba(128,0,255,0.15) 80%, rgba(255,0,255,0.08) 100%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(128,0,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,0,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.glitch-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--c-primary);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--c-primary);
  text-shadow: 0 0 8px var(--c-primary);
  box-shadow: 0 0 12px var(--c-glow-purple);
  margin-bottom: 1rem;
  width: fit-content;
}
.hero-h1 {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: #fff;
  text-shadow: 0 0 30px var(--c-primary), 0 0 60px var(--c-glow-purple);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-float-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.float-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--c-secondary);
  border-radius: 20px;
  color: var(--c-secondary);
  text-shadow: 0 0 6px var(--c-secondary);
  background: rgba(255,0,255,0.05);
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border-radius: 6px;
  box-shadow: 0 0 20px var(--c-glow-purple);
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
}
.btn-primary:hover {
  box-shadow: 0 0 32px var(--c-primary);
  transform: translateY(-1px);
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--c-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--c-secondary);
  border-radius: 6px;
  box-shadow: 0 0 12px var(--c-glow-pink);
  transition: box-shadow var(--transition), background var(--transition), transform var(--transition);
  min-height: 44px;
}
.btn-secondary:hover {
  background: rgba(255,0,255,0.08);
  box-shadow: 0 0 24px var(--c-secondary);
  transform: translateY(-1px);
  color: var(--c-secondary);
}

/* ===== 布局：侧边栏在左，主内容在右 ===== */
.section-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 44px + 1rem);
}
.sidebar-widget {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-widget h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--c-text);
  margin-bottom: 0.75rem;
}
.sidebar-links li { margin-bottom: 0.4rem; }
.sidebar-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-text-muted);
  display: block;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  min-height: 32px;
  display: flex;
  align-items: center;
}
.sidebar-links a:hover {
  color: var(--c-secondary);
  border-bottom-color: var(--c-secondary);
}

/* ===== 卡片：主题卡片 ===== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.topic-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 3px solid var(--c-primary);
  position: relative;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--c-glow-purple);
  border-color: var(--c-primary);
}
.topic-card .card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: 0.75;
}
.topic-card .card-body { padding: 1.25rem; }
.topic-card h3 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 0.5rem; }
.topic-card h3 a { color: var(--c-text); }
.topic-card h3 a:hover { color: var(--c-secondary); }
.topic-card p { font-size: 0.78rem; color: var(--c-text-muted); margin-bottom: 0.75rem; line-height: 1.6; }

/* ===== 卡片：文章卡片 ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.article-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid var(--c-secondary);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px var(--c-glow-pink);
}
.article-card .card-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  opacity: 0.7;
}
.article-card .card-body { padding: 1rem; }
.article-card .card-meta { margin-bottom: 0.4rem; }
.article-card .card-meta time { font-size: 0.68rem; color: var(--c-primary); font-family: var(--font-mono); }
.article-card h3 { font-family: var(--font-serif); font-size: 0.95rem; margin-bottom: 0.4rem; }
.article-card h3 a { color: var(--c-text); }
.article-card h3 a:hover { color: var(--c-secondary); }
.article-card p { font-size: 0.75rem; color: var(--c-text-muted); line-height: 1.55; }

/* 子页列表（ul>li>article 结构） */
.sub-page-list { display: flex; flex-direction: column; gap: 1.25rem; }
.sub-page-list > li > article.sub-article-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid var(--c-primary);
}
.sub-article-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 4px 20px var(--c-glow-purple);
}
.sub-article-card .card-thumb {
  width: 140px;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  opacity: 0.7;
}
.sub-article-card .card-body { padding: 1.25rem 1.25rem 1.25rem 0; }
.sub-article-card .card-meta time { font-size: 0.68rem; color: var(--c-primary); font-family: var(--font-mono); display: block; margin-bottom: 0.4rem; }
.sub-article-card h3 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 0.5rem; }
.sub-article-card h3 a { color: var(--c-text); }
.sub-article-card h3 a:hover { color: var(--c-secondary); }
.sub-article-card p { font-size: 0.78rem; color: var(--c-text-muted); margin-bottom: 0.75rem; line-height: 1.6; }
.card-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-accent);
  letter-spacing: 0.06em;
}
.card-link:hover { color: var(--c-secondary); }

/* ===== 正文容器（main > section.wrap > div > article 结构） ===== */
.prose {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-text);
  max-width: 720px;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--c-border);
  text-shadow: 0 0 12px var(--c-glow-purple);
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--c-secondary);
  margin: 2rem 0 0.75rem;
}
.prose p { margin-bottom: 1.2rem; }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--c-secondary); border-bottom: 1px solid transparent; }
.prose a:hover { border-bottom-color: var(--c-secondary); }
.prose strong { color: var(--c-secondary); font-weight: 600; }
.prose em { color: var(--c-accent); font-style: italic; }
.prose blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 0.75rem 1.25rem;
  background: rgba(128,0,255,0.07);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: var(--c-text-muted);
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  background: rgba(128,0,255,0.12);
  color: var(--c-accent);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
}
.prose pre {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.prose img { border-radius: 12px; margin: 1.5rem 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.prose table th {
  background: rgba(128,0,255,0.15);
  color: var(--c-secondary);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--c-border);
  text-align: left;
}
.prose table td {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
}
.prose table tr:hover td { background: rgba(128,0,255,0.05); }

/* ===== 文章页 ===== */
.article-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 2.5rem;
}
.article-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.article-h1 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 0 20px var(--c-glow-purple);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.article-lead {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 640px;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.article-hero-wrap { margin: 1.5rem 0; }
.article-hero-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 16px; opacity: 0.8; }
.page-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-primary);
  display: block;
  margin-bottom: 0.5rem;
}
.update-note {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  margin-top: 0.5rem;
}
.update-date { color: var(--c-accent); }
.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.article-main-content { min-width: 0; }

/* ===== 专题Hero ===== */
.topic-hero {
  padding: 4rem 0 2rem;
}
.topic-hero-content { max-width: 100%; }
.topic-h1, .tag-h1 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  text-shadow: 0 0 24px var(--c-glow-purple);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.topic-hero-media { margin: 1.5rem 0; }
.topic-hero-img { width: 100%; max-height: 350px; object-fit: cover; border-radius: 16px; opacity: 0.75; }
.topic-badge { margin-bottom: 0.75rem; }
.topic-prose { max-width: 800px; }

/* ===== 标签页 ===== */
.tag-hero { padding: 4rem 0 2rem; }
.tag-header-block { max-width: 700px; }
.tag-desc { font-family: var(--font-mono); font-size: 0.9rem; color: var(--c-text-muted); margin: 0.75rem 0 1rem; line-height: 1.7; }
.tag-stats { margin-top: 0.5rem; }
.tag-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-accent); letter-spacing: 0.1em; }
.tag-intro { margin-bottom: 1.5rem; }
.tag-article-list { margin-top: 1rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border: 1px solid var(--c-border-bright);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-text-muted);
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  min-height: 36px;
}
.tag-pill:hover {
  border-color: var(--c-secondary);
  color: var(--c-secondary);
  box-shadow: 0 0 10px var(--c-glow-pink);
}

/* ===== About 页 ===== */
.about-hero { padding: 4rem 0 2rem; }
.about-header-block small.eyebrow { margin-bottom: 0.5rem; }
.about-h1 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 0 24px var(--c-glow-purple);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.stat-block {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--c-primary);
  text-shadow: 0 0 16px var(--c-primary);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-text-muted);
  letter-spacing: 0.08em;
}

/* ===== Privacy 页 ===== */
.privacy-hero { padding: 4rem 0 2rem; }
.privacy-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.privacy-prose { max-width: 760px; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border-bright);
  padding: 4rem 1.5rem 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 100%;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-primary));
}
.footer-brand .footer-logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 0.75rem; }
.footer-brand-name {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--c-primary);
  text-shadow: 0 0 12px var(--c-primary);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.78rem; color: var(--c-text-muted); line-height: 1.6; max-width: 260px; }
.footer-nav h4, .footer-legal h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--c-primary);
  text-shadow: 0 0 6px var(--c-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-nav ul li, .footer-legal ul li { margin-bottom: 0.4rem; }
.footer-nav ul li a, .footer-legal ul li a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-text-muted);
  min-height: 32px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-nav ul li a:hover, .footer-legal ul li a:hover { color: var(--c-secondary); }
.age-warning {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--c-secondary);
  margin-top: 0.75rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255,0,255,0.3);
  border-radius: 4px;
  display: inline-block;
}
.footer-bottom {
  grid-column: 1 / -1;
  padding: 1.5rem 0;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}
.footer-bottom-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-text-muted);
  min-height: 32px;
  display: flex;
  align-items: center;
}
.footer-bottom-links a:hover { color: var(--c-secondary); }

/* ===== 其他小组件 ===== */
.no-content { font-family: var(--font-mono); font-size: 0.82rem; color: var(--c-text-muted); padding: 2rem 0; }
.related-articles { padding: 3rem 0; border-top: 1px solid var(--c-border); }
.about-stats { border-top: 1px solid var(--c-border); padding-top: 3rem; }

/* ===== Scroll Reveal 动画 ===== */
.topic-card,
.article-card,
.sub-article-card,
.stat-block,
.sidebar-widget {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
}
.topic-card.revealed,
.article-card.revealed,
.sub-article-card.revealed,
.stat-block.revealed,
.sidebar-widget.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 移动端断点 ===== */
@media (max-width: 1024px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-flat-links { display: none; }
  .nav-details { display: block; margin-left: auto; }
  .section-layout { grid-template-columns: 180px 1fr; gap: 2rem; }
  .article-layout { grid-template-columns: 180px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .site-footer { grid-template-columns: 1fr 1fr; padding: 2.5rem 1rem 0; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .section-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .main-prose { order: 1; }
  .article-main-content { order: 1; }
  .hero-content { padding: 5rem 1rem 3rem; }
  .hero-section { min-height: 100vh; }
  .topic-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .sub-article-card { grid-template-columns: 1fr !important; }
  .sub-article-card .card-thumb { width: 100%; height: 180px; }
  .sub-article-card .card-body { padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-flat-links { display: none; }
  .nav-details { display: block; margin-left: auto; }
  .content-section { padding: 2.5rem 0; }
  .announce-text { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 1rem; }
  .hero-h1 { font-size: 2rem; }
  .hero-cta-group { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .site-footer { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .tag-cloud { gap: 0.5rem; }
  .anchor-bar-inner { gap: 0.75rem; }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  .scanlines { animation: none; }
  .announce-bar { animation: none; background: var(--c-primary); }
  .glitch-text::before,
  .glitch-text::after { animation: none; opacity: 0; }
  .topic-card, .article-card, .sub-article-card, .stat-block, .sidebar-widget {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
