@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

/* =====================
   CSS 自定义属性
   ===================== */
:root {
  --c-green: #87ff71;
  --c-blue: #01cdfe;
  --c-dark: #192617;
  --c-purple: #b967ff;
  --c-pink: #ff71ce;
  --c-bg: #0d1a0d;
  --c-bg2: #111e11;
  --c-bg3: #0a1220;
  --c-surface: #16221a;
  --c-surface2: #1e2e22;
  --c-border: rgba(135,255,113,0.18);
  --c-text: #d4f5c8;
  --c-text-dim: #7aab6e;
  --c-text-muted: #4a6844;
  --c-accent: var(--c-green);
  --c-accent2: var(--c-blue);
  --font-sans: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;
  --radius-card: 18px;
  --radius-sm: 8px;
  --shadow-neon-green: 0 0 12px rgba(135,255,113,0.5), 0 0 32px rgba(135,255,113,0.2);
  --shadow-neon-blue: 0 0 12px rgba(1,205,254,0.5), 0 0 32px rgba(1,205,254,0.2);
  --transition: 0.22s ease;
  --nav-h: 64px;
  --topbar-h: 36px;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  background: var(--c-bg);
  color: var(--c-text);
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #0d1a0d 0%, #0a1220 50%, #1a0d2e 100%);
  overflow-x: hidden;
}

/* Retro scan lines overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-blue); }
ol, ul { list-style: none; }

/* =====================
   顶部公告条
   ===================== */
.vp-topbar {
  background: linear-gradient(90deg, var(--c-purple) 0%, var(--c-blue) 50%, var(--c-pink) 100%);
  text-align: center;
  padding: 0 1rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vp-topbar__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
  white-space: nowrap;
  animation: scroll-text 22s linear infinite;
}

@keyframes scroll-text {
  0%   { transform: translateX(60px); }
  100% { transform: translateX(-60px); }
}

/* =====================
   头部导航
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13,26,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.site-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-green), var(--c-blue));
  color: var(--c-dark);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-neon-green);
  transition: box-shadow var(--transition);
}
.site-logo:hover .site-logo__mark {
  box-shadow: var(--shadow-neon-blue);
}

.site-nav {
  flex: 1;
  overflow-x: auto;
}
.site-nav ol {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav ol li a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-dim);
  white-space: nowrap;
  min-height: 40px;
  transition: color var(--transition), background var(--transition), text-shadow var(--transition);
  letter-spacing: 0.02em;
}
.site-nav ol li a:hover,
.site-nav ol li a[aria-current="page"] {
  color: var(--c-green);
  background: rgba(135,255,113,0.08);
  text-shadow: 0 0 8px rgba(135,255,113,0.6);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-green);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* =====================
   Hero 首页
   ===================== */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d1a0d 0%, #0a1220 40%, #1a0d2e 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-green), var(--c-blue), var(--c-purple));
  box-shadow: 0 0 20px rgba(1,205,254,0.5);
}

/* Retro grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(135,255,113,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135,255,113,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(400px) rotateX(30deg) translateY(20%);
  transform-origin: bottom;
  opacity: 0.6;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
.hero__text { flex: 1; }
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: var(--shadow-neon-blue);
}
.hero__h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-green);
  text-shadow: var(--shadow-neon-green);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--c-text-dim);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__media {
  flex-shrink: 0;
  width: 220px;
}
.hero__deco {
  flex-shrink: 0;
  width: 200px;
  height: 160px;
  position: relative;
}
.hero__grid-bg {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(1,205,254,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,205,254,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid rgba(1,205,254,0.2);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-neon-blue);
}

.hero__slash {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--c-bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
}

/* =====================
   斜切分割线
   ===================== */
.slash-divider {
  height: 48px;
  background: linear-gradient(135deg, rgba(135,255,113,0.08) 0%, rgba(1,205,254,0.08) 100%);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 100%);
  margin: 2rem 0;
}
.slash-divider--alt {
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgba(185,103,255,0.08) 0%, rgba(255,113,206,0.08) 100%);
}

/* =====================
   按钮
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-green), #4dde3a);
  color: var(--c-dark);
  box-shadow: var(--shadow-neon-green);
}
.btn--primary:hover {
  box-shadow: 0 0 24px rgba(135,255,113,0.8), 0 0 48px rgba(135,255,113,0.3);
  transform: translateY(-1px);
  color: var(--c-dark);
}
.btn--outline {
  border-color: var(--c-blue);
  color: var(--c-blue);
  background: transparent;
  box-shadow: inset 0 0 0 0 var(--c-blue);
}
.btn--outline:hover {
  background: rgba(1,205,254,0.1);
  box-shadow: var(--shadow-neon-blue);
  color: var(--c-blue);
}

/* =====================
   主内容布局 (page-main)
   ===================== */
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* page-section: aside 在左，内容在右 */
.page-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* 侧边栏（左侧） */
.page-aside {
  flex-shrink: 0;
  width: 220px;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.aside-inner {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}
.aside-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--c-blue);
  letter-spacing: 0.12em;
  margin: 1rem 0 0.5rem;
  text-shadow: 0 0 6px rgba(1,205,254,0.4);
}
.aside-title:first-child { margin-top: 0; }
.aside-title span { display: inline; }
.aside-links { display: flex; flex-direction: column; gap: 0.3rem; }
.aside-links li a {
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--c-text-dim);
  transition: color var(--transition), background var(--transition);
  min-height: 32px;
  line-height: 1.6;
}
.aside-links li a:hover {
  color: var(--c-green);
  background: rgba(135,255,113,0.07);
}
.aside-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }

/* 正文区 */
.page-content-wrap {
  flex: 1;
  min-width: 0;
}

/* =====================
   首页专属
   ===================== */
.home-main { padding-top: 1rem; }
.home-content-section { align-items: flex-start; }
.home-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}
.home-prose p { margin-bottom: 1em; }
.home-prose a { color: var(--c-blue); }
.home-prose a:hover { color: var(--c-green); }

.home-sections,
.home-stories {
  margin-top: 0;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-green);
  text-shadow: var(--shadow-neon-green);
  letter-spacing: -0.01em;
}
.section-title span { display: inline; }
.section-sub {
  font-size: 0.88rem;
  color: var(--c-text-muted);
}

/* =====================
   卡片
   ===================== */
.card-grid {
  display: grid;
  gap: 1.25rem;
}
.card-grid--sections { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid--stories  { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid--children { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card-grid > li { display: flex; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  flex: 1;
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-green), var(--c-blue));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(135,255,113,0.35);
  box-shadow: 0 8px 32px rgba(135,255,113,0.12);
}
.card:hover::after { opacity: 1; }

.card__fig { overflow: hidden; height: 160px; }
.card__fig img { width: 100%; height: 100%; object-fit: cover; }

.card__body {
  flex: 1;
  padding: 1.2rem 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-blue);
  letter-spacing: 0.08em;
}
.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}
.card__title span { display: inline; }
.card__desc {
  font-size: 0.86rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  flex: 1;
}
.card__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-text-muted);
}
.card__link {
  display: inline-flex;
  align-items: center;
  margin: 0 1.2rem 1.2rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--c-green);
  border: 1px solid rgba(135,255,113,0.3);
  background: rgba(135,255,113,0.04);
  transition: all var(--transition);
  min-height: 40px;
  text-align: center;
  justify-content: center;
}
.card__link:hover {
  background: rgba(135,255,113,0.12);
  border-color: var(--c-green);
  color: var(--c-green);
  box-shadow: var(--shadow-neon-green);
}
.card--child { flex-direction: column; }

/* =====================
   Section 页面
   ===================== */
.section-hero, .tag-hero, .about-banner {
  position: relative;
  background: linear-gradient(135deg, #0a1a0a 0%, #0a1220 100%);
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}
.section-hero::before, .tag-hero::before, .about-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(1,205,254,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,205,254,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.section-hero__inner,
.tag-hero__inner,
.about-banner__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}
.section-hero__eyebrow,
.tag-hero__eyebrow,
.about-banner__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-blue);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-shadow: var(--shadow-neon-blue);
}
.section-hero__h1,
.tag-hero__h1,
.about-banner__h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--c-green);
  text-shadow: var(--shadow-neon-green);
  margin-bottom: 0.6rem;
}
.section-hero__desc,
.tag-hero__desc {
  font-size: 0.96rem;
  color: var(--c-text-dim);
  max-width: 560px;
}
.section-hero__slash,
.tag-hero__slash,
.about-banner__slash {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 40px;
  background: var(--c-bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
}

.section-prose,
.tag-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 1.5rem;
}
.section-prose p, .tag-prose p { margin-bottom: 1em; }
.section-prose a, .tag-prose a { color: var(--c-blue); }
.section-prose h2, .tag-prose h2 {
  font-size: 1.3rem;
  color: var(--c-green);
  margin: 1.5em 0 0.6em;
  text-shadow: 0 0 8px rgba(135,255,113,0.3);
}
.section-prose h3, .tag-prose h3 {
  font-size: 1.1rem;
  color: var(--c-blue);
  margin: 1.2em 0 0.5em;
}

.child-list-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.child-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

/* =====================
   Story 文章页
   ===================== */
.story-main { padding-top: 2rem; }
.story-section { gap: 2.5rem; align-items: flex-start; }
.story-aside { width: 210px; }

.story-content-wrap { flex: 1; min-width: 0; }
.story-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}
.breadcrumb {
  color: var(--c-text-muted);
  transition: color var(--transition);
}
.breadcrumb:hover { color: var(--c-blue); }
.breadcrumb-sep { color: var(--c-text-muted); }
.story-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-blue);
  letter-spacing: 0.06em;
}
.story-updated {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}
.story-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--c-green);
  text-shadow: var(--shadow-neon-green);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.story-hero-fig {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.story-hero-fig figcaption {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--c-surface);
}
.story-hero-img { width: 100%; }

.story-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}
.story-content p { margin-bottom: 1.1em; }
.story-content h2 {
  font-size: 1.3rem;
  color: var(--c-green);
  margin: 1.8em 0 0.6em;
  text-shadow: 0 0 8px rgba(135,255,113,0.3);
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(135,255,113,0.15);
}
.story-content h3 {
  font-size: 1.1rem;
  color: var(--c-blue);
  margin: 1.4em 0 0.5em;
}
.story-content a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }
.story-content a:hover { color: var(--c-green); }
.story-content ul, .story-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1em;
}
.story-content ul { list-style: disc; }
.story-content ol { list-style: decimal; }
.story-content li { margin-bottom: 0.4em; }
.story-content strong { color: var(--c-green); font-weight: 600; }
.story-content em { color: var(--c-blue); font-style: normal; }
.story-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(135,255,113,0.08);
  color: var(--c-green);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.story-content blockquote {
  border-left: 3px solid var(--c-blue);
  padding-left: 1rem;
  color: var(--c-text-dim);
  margin: 1.2em 0;
  font-style: italic;
}

.story-footer-nav {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.back-link {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
  display: block;
}
.back-link:hover { color: var(--c-blue); }

/* =====================
   Tag 标签页
   ===================== */
.tag-main { padding-top: 1rem; }
.tag-section { gap: 2.5rem; }
.no-results {
  padding: 2rem;
  color: var(--c-text-muted);
  font-style: italic;
}

/* =====================
   About 页
   ===================== */
.about-main { padding-top: 1rem; }
.about-section { gap: 2.5rem; }
.about-content-wrap { flex: 1; }
.about-h1.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.about-deco {
  width: 100%;
  height: 80px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.about-deco__grid {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(185,103,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,103,255,0.1) 1px, transparent 1px);
  background-size: 25px 25px;
  border: 1px solid rgba(185,103,255,0.2);
  border-radius: var(--radius-sm);
}
.about-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}
.about-content p { margin-bottom: 1em; }
.about-content h2 {
  font-size: 1.3rem;
  color: var(--c-green);
  margin: 1.8em 0 0.6em;
  text-shadow: 0 0 8px rgba(135,255,113,0.3);
}
.about-content h3 {
  font-size: 1.1rem;
  color: var(--c-blue);
  margin: 1.4em 0 0.5em;
}
.about-content a { color: var(--c-blue); }
.about-content strong { color: var(--c-green); font-weight: 600; }

/* =====================
   Privacy 隐私页
   ===================== */
.privacy-main { padding-top: 2rem; }
.privacy-section { gap: 2.5rem; align-items: flex-start; }
.privacy-content-wrap { flex: 1; min-width: 0; }
.privacy-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}
.privacy-h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-green);
  text-shadow: var(--shadow-neon-green);
  margin-bottom: 0.5rem;
}
.privacy-date {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
}
.privacy-deco {
  height: 40px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
}
.privacy-scanlines {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(1,205,254,0.08) 0px,
    rgba(1,205,254,0.08) 2px,
    transparent 2px,
    transparent 20px
  );
  border-radius: 4px;
}
.privacy-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}
.privacy-content p { margin-bottom: 1em; }
.privacy-content h2 {
  font-size: 1.2rem;
  color: var(--c-green);
  margin: 1.6em 0 0.5em;
  text-shadow: 0 0 6px rgba(135,255,113,0.25);
}
.privacy-content h3 {
  font-size: 1.05rem;
  color: var(--c-blue);
  margin: 1.3em 0 0.4em;
}
.privacy-content a { color: var(--c-blue); }
.privacy-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.privacy-content li { margin-bottom: 0.3em; }
.privacy-notice {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(1,205,254,0.06);
  border: 1px solid rgba(1,205,254,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--c-text-dim);
}
.privacy-notice a { color: var(--c-blue); }

/* =====================
   标签徽章
   ===================== */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  border: 1px solid rgba(1,205,254,0.4);
  color: var(--c-blue);
  background: rgba(1,205,254,0.06);
  text-decoration: none;
  transition: all var(--transition);
  min-height: 30px;
}
.tag-badge:hover,
.tag-badge.active {
  background: rgba(1,205,254,0.15);
  border-color: var(--c-blue);
  color: var(--c-blue);
  box-shadow: var(--shadow-neon-blue);
}

/* =====================
   页脚
   ===================== */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--c-border);
  background: rgba(10,18,10,0.95);
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1;
  min-width: 180px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.footer-desc {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-nav ol {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-nav ol li a {
  font-size: 0.88rem;
  color: var(--c-text-dim);
  padding: 0.3rem 0;
  display: inline-block;
  min-height: 36px;
  line-height: 2;
  transition: color var(--transition);
}
.footer-nav ol li a:hover { color: var(--c-green); }

.footer-bottom {
  text-align: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.8rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--c-text-muted); }
.footer-bottom a:hover { color: var(--c-blue); }
.footer-sep { opacity: 0.4; }

/* =====================
   通用内容样式
   ===================== */
.page-content p { margin-bottom: 1em; }
.page-content h2 {
  font-size: 1.3rem;
  color: var(--c-green);
  margin: 1.8em 0 0.6em;
  text-shadow: 0 0 8px rgba(135,255,113,0.3);
}
.page-content h3 {
  font-size: 1.1rem;
  color: var(--c-blue);
  margin: 1.4em 0 0.5em;
}
.page-content a { color: var(--c-blue); }
.page-content strong { color: var(--c-green); font-weight: 600; }
.page-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.page-content li { margin-bottom: 0.4em; }
.page-h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--c-green);
  text-shadow: var(--shadow-neon-green);
  margin-bottom: 1.25rem;
}

/* =====================
   Glitch 动画（标题装饰）
   ===================== */
@keyframes glitch-shift {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
  20% { clip-path: inset(30% 0 50% 0); transform: translate(2px, 0); }
  40% { clip-path: inset(60% 0 20% 0); transform: translate(-1px, 0); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(1px, 0); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 0); }
}

/* =====================
   Responsive 移动端
   ===================== */
@media (max-width: 900px) {
  .page-section {
    flex-direction: column;
  }
  .page-aside {
    width: 100%;
    position: static;
  }
  .aside-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .aside-title { width: 100%; margin-top: 0; }
  .aside-links { flex-direction: row; flex-wrap: wrap; }
  .aside-links li a { padding: 0.3rem 0.6rem; }
  .aside-tags { flex-wrap: wrap; }

  .hero__inner {
    flex-direction: column;
    padding: 2.5rem 1.5rem 3.5rem;
  }
  .hero__media, .hero__deco { display: none; }

  .story-aside { width: 100%; }
  .privacy-section { flex-direction: column; }
  .about-section  { flex-direction: column; }
  .tag-section    { flex-direction: column; }
}

@media (max-width: 600px) {
  :root { font-size: 16px; }

  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: fixed;
    top: calc(var(--topbar-h) + var(--nav-h));
    left: 0; right: 0;
    background: rgba(13,26,13,0.98);
    backdrop-filter: blur(16px);
    z-index: 199;
    border-bottom: 1px solid var(--c-border);
    padding: 1rem;
  }
  .site-nav.is-open ol {
    flex-direction: column;
    gap: 0;
  }
  .site-nav.is-open ol li a {
    display: flex;
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 44px;
    border-radius: 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 0.95rem;
  }
  .nav-toggle { display: flex; }

  .card-grid--sections,
  .card-grid--stories,
  .card-grid--children {
    grid-template-columns: 1fr;
  }

  .hero__h1 { font-size: 1.8rem; }
  .section-hero, .tag-hero, .about-banner {
    padding: 2rem 1.25rem 3rem;
  }
  .site-footer__inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-nav ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }
  .footer-nav ol li a {
    padding: 0.4rem 0.6rem;
    min-height: 40px;
  }
  .page-main { padding: 1.5rem 1rem 2rem; }

  .vp-topbar__text { animation: none; font-size: 0.7rem; }
}

/* =====================
   prefers-reduced-motion
   ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .vp-topbar__text { animation: none; }
}
