@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ============================================================
   CSS 变量 & 重置
   ============================================================ */
:root {
  --c-primary: #56228b;
  --c-primary-light: #7a3dbf;
  --c-primary-dark: #3d1866;
  --c-accent: #8b4513;
  --c-accent-light: #b8621e;
  --c-ink: #1f1726;
  --c-ink-soft: #2e2040;
  --c-surface: #241830;
  --c-surface2: #2d1f3f;
  --c-surface3: #3a2850;
  --c-text: #e8dff5;
  --c-text-muted: #b09dc8;
  --c-border: rgba(86,34,139,0.35);
  --c-border-accent: rgba(139,69,19,0.4);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --font-mono: 'Share Tech Mono', 'Fira Code', 'Courier New', monospace;
  --font-body: 'Fira Code', 'Share Tech Mono', monospace;
  --shadow-soft: 0 4px 24px rgba(31,23,38,0.55);
  --shadow-glow: 0 0 32px rgba(86,34,139,0.3);
  --footer-h: 64px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--c-ink);
  color: var(--c-text);
  overflow-x: hidden;
  padding-bottom: calc(var(--footer-h) + 16px);
}

a { color: var(--c-primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent-light); }
a:focus-visible { outline: 2px solid var(--c-accent-light); outline-offset: 3px; border-radius: 4px; }

img { display: block; max-width: 100%; height: auto; border-radius: var(--r-md); }
ul, ol { padding-left: 1.4em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   遮罩菜单
   ============================================================ */
.overlay-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,8,25,0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.overlay-menu.is-open { opacity: 1; pointer-events: all; }

.overlay-menu__close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: var(--c-text); font-size: 28px;
  cursor: pointer; padding: 10px; min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background var(--transition), color var(--transition);
}
.overlay-menu__close:hover { background: var(--c-surface3); color: var(--c-accent-light); }

.overlay-menu__nav dl {
  list-style: none; text-align: center;
}
.overlay-menu__nav dt {
  margin-bottom: 4px;
}
.overlay-menu__nav dt a {
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 22px);
  color: var(--c-text);
  letter-spacing: 0.04em;
  padding: 10px 20px;
  display: block;
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
  min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.overlay-menu__nav dt a:hover { color: var(--c-accent-light); background: rgba(139,69,19,0.12); }
.overlay-menu__nav dd {
  font-size: 12px; color: var(--c-text-muted);
  margin-bottom: 16px; padding: 0 20px;
}

.overlay-menu__brand {
  position: absolute; bottom: 32px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--c-text-muted); letter-spacing: 0.1em;
}

/* ============================================================
   底部固定导航条
   ============================================================ */
.site-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20,12,32,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
}

.site-footer__bar {
  height: var(--footer-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  max-width: 1400px; margin: 0 auto;
}

.footer-logo {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-primary-dark);
  border: 1px solid var(--c-border);
  transition: background var(--transition);
}
.footer-logo:hover { background: var(--c-primary); }
.footer-logo__text {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--c-text); line-height: 1;
}
.footer-logo__img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; }

.footer-nav { flex: 1; overflow: hidden; }
.footer-nav dl {
  display: flex; gap: 4px; align-items: center; overflow-x: auto;
  scrollbar-width: none;
}
.footer-nav dl::-webkit-scrollbar { display: none; }
.footer-nav dt { flex-shrink: 0; }
.footer-nav dt a {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--c-text-muted); padding: 10px 10px;
  display: block; min-height: 44px; display: flex; align-items: center;
  white-space: nowrap; border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
}
.footer-nav dt a:hover { color: var(--c-primary-light); background: rgba(86,34,139,0.15); }
.footer-nav dd { display: none; }

.footer-copy {
  flex-shrink: 0; font-size: 11px; color: var(--c-text-muted);
  white-space: nowrap;
}

/* 页脚展开区（桌面显示，移动端折叠） */
.site-footer__cols {
  display: none;
  max-width: 1400px; margin: 0 auto;
  padding: 24px 16px 8px;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 32px;
  border-top: 1px solid var(--c-border);
}

.footer-col h4 {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--c-accent-light); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 10px;
}
.footer-col p { font-size: 13px; color: var(--c-text-muted); line-height: 1.6; }
.footer-col dl { list-style: none; }
.footer-col dt { margin-bottom: 4px; }
.footer-col dt a {
  font-size: 13px; color: var(--c-text-muted); min-height: 40px;
  display: flex; align-items: center;
  transition: color var(--transition);
}
.footer-col dt a:hover { color: var(--c-primary-light); }
.footer-col dd { font-size: 11px; color: rgba(176,157,200,0.6); margin-bottom: 8px; }

/* ============================================================
   汉堡按钮
   ============================================================ */
.hamburger {
  position: fixed; bottom: calc(var(--footer-h) + 16px); right: 18px;
  z-index: 150; width: 48px; height: 48px;
  background: var(--c-primary);
  border: none; border-radius: 50%;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  box-shadow: var(--shadow-glow);
  transition: background var(--transition), transform var(--transition);
}
.hamburger:hover { background: var(--c-primary-light); transform: scale(1.08); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--c-text-muted);
  margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary-light); }
.breadcrumb span[aria-hidden] { color: var(--c-border); }

/* ============================================================
   徽章 / 标签
   ============================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(86,34,139,0.3);
  border: 1px solid var(--c-border);
  color: var(--c-primary-light);
  white-space: nowrap;
}
.badge--alt { background: rgba(139,69,19,0.25); border-color: var(--c-border-accent); color: var(--c-accent-light); }
.badge--float {
  animation: floatBadge 3s ease-in-out infinite;
}
.badge--float:nth-child(2) { animation-delay: 0.8s; }
.badge--float.badge--sm { font-size: 10px; padding: 4px 10px; animation-delay: 1.6s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.tag-bubble {
  display: inline-flex; align-items: center;
  padding: 6px 14px; margin: 4px 4px 4px 0;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.tag-bubble:hover, .tag-bubble--active {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-light);
  color: var(--c-primary-light);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 2px; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; min-height: 44px;
  border-radius: var(--r-md); font-family: var(--font-mono);
  font-size: 14px; font-weight: 600; letter-spacing: 0.05em;
  cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--c-primary); color: var(--c-text);
  border-color: var(--c-primary);
  box-shadow: 0 4px 18px rgba(86,34,139,0.4);
}
.btn--primary:hover {
  background: var(--c-primary-light); border-color: var(--c-primary-light);
  color: var(--c-text); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(86,34,139,0.55);
}
.btn--outline {
  background: transparent; color: var(--c-text);
  border-color: var(--c-border);
}
.btn--outline:hover {
  background: var(--c-surface2); border-color: var(--c-primary-light);
  color: var(--c-primary-light);
}

/* ============================================================
   首页 Hero
   ============================================================ */
.main-home { overflow: hidden; }

.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  padding: 40px 20px 80px;
}

.hero__media {
  position: relative; flex-shrink: 0;
  height: 45vh; min-height: 280px;
  margin-bottom: 32px;
}

.hero__collage {
  position: relative; width: 100%; height: 100%;
}

.hero__frame {
  position: absolute; border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero__frame--a {
  top: 0; left: 0; width: 65%; height: 85%;
  border-radius: var(--r-xl) var(--r-md) var(--r-xl) var(--r-md);
  z-index: 2;
}
.hero__frame--b {
  bottom: 0; right: 0; width: 50%; height: 75%;
  border-radius: var(--r-md) var(--r-xl) var(--r-md) var(--r-xl);
  z-index: 3;
}
.hero__frame--empty {
  background: var(--c-surface3);
  border: 1px solid var(--c-border);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(40px);
  pointer-events: none; z-index: 1;
}
.hero__blob--1 {
  width: 200px; height: 200px; top: -40px; right: -30px;
  background: radial-gradient(circle, rgba(86,34,139,0.4), transparent 70%);
  animation: blobPulse 5s ease-in-out infinite;
}
.hero__blob--2 {
  width: 150px; height: 150px; bottom: 20px; left: -20px;
  background: radial-gradient(circle, rgba(139,69,19,0.3), transparent 70%);
  animation: blobPulse 7s ease-in-out infinite reverse;
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

.hero__badges {
  position: absolute; top: 12px; right: 8px; z-index: 10;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}

.hero__side { position: relative; z-index: 5; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--c-accent-light); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 12px;
}
.hero__h1 {
  font-family: var(--font-mono); font-size: clamp(22px, 5vw, 40px);
  font-weight: 700; line-height: 1.25;
  color: var(--c-text); margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.hero__desc { font-size: 15px; color: var(--c-text-muted); margin-bottom: 28px; max-width: 480px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   通用内容区（侧边栏 + 正文）
   ============================================================ */
.content-section {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

.content-aside {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  padding: 24px;
}
.content-aside h3 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--c-accent-light); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.aside-divider {
  height: 1px; background: var(--c-border); margin: 20px 0;
}
.aside-link {
  display: flex; align-items: center; min-height: 40px;
  padding: 8px 0; font-size: 13px; color: var(--c-text-muted);
  border-bottom: 1px solid rgba(86,34,139,0.15);
  transition: color var(--transition), padding-left var(--transition);
}
.aside-link:hover, .aside-link--active {
  color: var(--c-primary-light); padding-left: 6px;
}
.aside-link:last-child { border-bottom: none; }

.info-dl dt {
  font-size: 11px; color: var(--c-accent-light); letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 12px;
}
.info-dl dd { font-size: 13px; color: var(--c-text-muted); margin-top: 2px; }

.content-body { min-width: 0; }
.content-body h2 {
  font-family: var(--font-mono); font-size: clamp(18px, 3vw, 26px);
  color: var(--c-text); margin-bottom: 8px; letter-spacing: -0.01em;
}
.content-body h2 + .subtitle { margin-bottom: 24px; }

/* ============================================================
   副标题样式
   ============================================================ */
p.subtitle, .subtitle {
  font-size: 14px; color: var(--c-text-muted); line-height: 1.65;
  font-family: var(--font-mono);
}

/* ============================================================
   正文 prose
   ============================================================ */
.prose {
  font-size: 16px; line-height: 1.8; color: var(--c-text);
}
.prose h2 { font-size: 22px; color: var(--c-text); margin: 28px 0 12px; font-family: var(--font-mono); }
.prose h3 { font-size: 18px; color: var(--c-primary-light); margin: 22px 0 10px; font-family: var(--font-mono); }
.prose p { margin-bottom: 16px; }
.prose a { color: var(--c-primary-light); border-bottom: 1px solid rgba(122,61,191,0.4); }
.prose a:hover { color: var(--c-accent-light); border-bottom-color: var(--c-accent-light); }
.prose ul, .prose ol { margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--c-text); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 12px 20px; margin: 20px 0;
  background: var(--c-surface2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-text-muted);
}
.prose code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--c-surface2); padding: 2px 6px;
  border-radius: 4px; color: var(--c-accent-light);
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--c-border); font-size: 14px; }
.prose th { background: var(--c-surface2); color: var(--c-primary-light); font-family: var(--font-mono); }

/* ============================================================
   子页列表 (dl > dt > a + dd)
   ============================================================ */
.child-list-wrap { margin-top: 40px; }
.child-list-wrap h2 { margin-bottom: 8px; }

.child-list {
  margin-top: 20px; list-style: none;
}
.child-list dt {
  margin-bottom: 0;
}
.child-list dt a {
  display: flex; align-items: center; min-height: 44px;
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
  color: var(--c-text); padding: 12px 16px 8px;
  transition: color var(--transition);
}
.child-list dt a:hover { color: var(--c-accent-light); }
.child-list dd {
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 12px;
}
.child-list__desc { font-size: 13px; color: var(--c-text-muted); margin-bottom: 4px; }
.child-list__date { font-family: var(--font-mono); font-size: 11px; color: var(--c-accent-light); }

/* ============================================================
   首页分类板块
   ============================================================ */
.feat-section {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}
.feat-section h2 { font-family: var(--font-mono); font-size: clamp(20px, 3vw, 28px); margin-bottom: 8px; }
.feat-section h2 + .subtitle { margin-bottom: 28px; }

.feat-section__deco {
  position: absolute; top: 0; right: -40px; width: 280px; height: 280px;
  pointer-events: none; overflow: visible;
}
.blob-svg { width: 100%; height: 100%; }

.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feat-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: var(--c-surface);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--c-primary);
}
.feat-card--even { border-color: var(--c-border-accent); }
.feat-card--even:hover { border-color: var(--c-accent-light); box-shadow: 0 0 32px rgba(139,69,19,0.3); }

.feat-card__inner {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; color: var(--c-text);
}
.feat-card__num {
  font-family: var(--font-mono); font-size: 28px; font-weight: 700;
  color: rgba(86,34,139,0.4); flex-shrink: 0; width: 48px;
  line-height: 1;
}
.feat-card--even .feat-card__num { color: rgba(139,69,19,0.35); }
.feat-card__text h3 { font-family: var(--font-mono); font-size: 16px; margin-bottom: 4px; }
.feat-card__text .subtitle { font-size: 13px; }
.feat-card__badge {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; padding: 5px 12px;
  border-radius: 999px; font-size: 11px; font-family: var(--font-mono);
  background: rgba(86,34,139,0.2); border: 1px solid var(--c-border);
  color: var(--c-primary-light);
}

/* ============================================================
   首页最新内容卡片
   ============================================================ */
.latest-section {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 20px;
}
.latest-section h2 { font-family: var(--font-mono); font-size: clamp(20px, 3vw, 28px); margin-bottom: 8px; }
.latest-section h2 + .subtitle { margin-bottom: 28px; }

.card-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: staggerIn 0.5s ease both;
  animation-delay: var(--stagger-delay, 0s);
}
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card__link { display: flex; flex-direction: column; height: 100%; color: var(--c-text); padding: 18px; }
.card__title { font-family: var(--font-mono); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.card__desc { font-size: 13px; color: var(--c-text-muted); flex: 1; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px;
  border-top: 2px solid var(--c-primary);
}
.card__date { font-family: var(--font-mono); font-size: 11px; color: var(--c-accent-light); }
.card__arrow { font-size: 16px; color: var(--c-primary-light); transition: transform var(--transition); }
.card:hover .card__arrow { transform: translateX(4px); }

/* ============================================================
   内页 Hero（section/tag/about/privacy 通用）
   ============================================================ */
.main-inner { overflow: hidden; }

.page-hero-section {
  display: flex; flex-direction: column;
  padding: 32px 20px 0;
  max-width: 1200px; margin: 0 auto;
  position: relative;
  gap: 24px;
}
.page-hero-figure {
  position: relative; height: 160px;
  border-radius: var(--r-xl);
  overflow: visible;
}
.page-hero-blob {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(86,34,139,0.3), rgba(139,69,19,0.2));
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
}
.page-hero-blob--tag { background: linear-gradient(135deg, rgba(139,69,19,0.25), rgba(86,34,139,0.2)); }
.page-hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-xl); }

.page-hero-aside h1 {
  font-family: var(--font-mono); font-size: clamp(20px, 4vw, 32px);
  color: var(--c-text); margin-bottom: 10px; letter-spacing: -0.01em;
}
.page-hero-aside .subtitle { margin-bottom: 16px; }
.section-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   文章（story）页
   ============================================================ */
.main-story { overflow: hidden; }

.story-header-section {
  display: flex; flex-direction: column;
  padding: 32px 20px 0;
  max-width: 1200px; margin: 0 auto;
  gap: 24px;
}
.story-hero-figure {
  position: relative; height: 220px;
  border-radius: var(--r-xl); overflow: hidden;
}
.story-hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.story-hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--c-primary-dark), rgba(139,69,19,0.3));
  border-radius: inherit;
}
.story-hero-blob {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, rgba(31,23,38,0.7));
  border-radius: inherit;
}
.story-meta-aside h1 {
  font-family: var(--font-mono); font-size: clamp(20px, 4vw, 30px);
  color: var(--c-text); margin-bottom: 10px;
}
.story-dates {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 14px;
}
.date-label { font-size: 11px; color: var(--c-text-muted); font-family: var(--font-mono); }
.story-dates time { font-family: var(--font-mono); font-size: 12px; color: var(--c-accent-light); }

.story-body-section {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 20px;
  display: grid; grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}
.story-body-figure { display: none; }
.story-inline-img { width: 100%; border-radius: var(--r-md); margin-bottom: 8px; }
.story-figcaption { font-size: 12px; color: var(--c-text-muted); text-align: center; }

.story-content { min-width: 0; }
.story-content h2 { font-family: var(--font-mono); font-size: clamp(18px, 3vw, 26px); margin-bottom: 8px; }

.related-card {
  border-radius: var(--r-sm); border: 1px solid var(--c-border);
  background: var(--c-surface); padding: 12px; margin-bottom: 10px;
  transition: border-color var(--transition);
}
.related-card:hover { border-color: var(--c-primary); }
.related-card a { color: var(--c-text); }
.related-card h4 { font-size: 13px; font-family: var(--font-mono); margin-bottom: 4px; }
.related-card p { font-size: 12px; color: var(--c-text-muted); }

/* ============================================================
   About 页
   ============================================================ */
.about-header-section {
  display: flex; flex-direction: column;
  padding: 32px 20px 0;
  max-width: 1200px; margin: 0 auto;
  gap: 24px;
}
.about-figure {
  position: relative; height: 180px;
  border-radius: var(--r-xl); overflow: visible;
}
.about-blob {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(86,34,139,0.35), rgba(139,69,19,0.25));
  border-radius: var(--r-xl); border: 1px solid var(--c-border);
}
.about-svg { position: absolute; top: -20px; right: -20px; width: 160px; height: 160px; }
.about-intro-aside h1 {
  font-family: var(--font-mono); font-size: clamp(20px, 4vw, 32px);
  margin-bottom: 10px;
}
.about-date { font-family: var(--font-mono); font-size: 12px; color: var(--c-accent-light); display: block; margin-top: 12px; }

/* ============================================================
   Privacy 页
   ============================================================ */
.privacy-header-section {
  display: flex; flex-direction: column;
  padding: 32px 20px 0;
  max-width: 1200px; margin: 0 auto;
  gap: 24px;
}
.privacy-figure { position: relative; height: 120px; border-radius: var(--r-lg); }
.privacy-blob {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(86,34,139,0.2), rgba(139,69,19,0.15));
  border-radius: var(--r-lg); border: 1px solid var(--c-border);
}
.privacy-intro-aside h1 {
  font-family: var(--font-mono); font-size: clamp(20px, 4vw, 30px);
  margin-bottom: 10px;
}
.content-deco-figure { display: none; }
.privacy-deco-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-primary); margin: 12px;
}

/* ============================================================
   Tag deco
   ============================================================ */
.page-hero-section--tag .tag-deco-svg {
  position: absolute; top: -15px; right: 10px;
  width: 120px; height: 120px; pointer-events: none;
}

/* ============================================================
   Subscribe form
   ============================================================ */
.subscribe-form { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.subscribe-form__input {
  flex: 1; min-width: 180px; min-height: 44px;
  background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); padding: 8px 14px;
  font-family: var(--font-mono); font-size: 13px; color: var(--c-text);
  transition: border-color var(--transition);
}
.subscribe-form__input::placeholder { color: var(--c-text-muted); }
.subscribe-form__input:focus { outline: none; border-color: var(--c-primary-light); }
.subscribe-form__btn {
  min-height: 44px; padding: 8px 18px;
  background: var(--c-primary); border: none; border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--c-text); cursor: pointer;
  transition: background var(--transition);
}
.subscribe-form__btn:hover { background: var(--c-primary-light); }
.footer-notice { font-size: 11px; color: rgba(176,157,200,0.5); }

/* ============================================================
   Decorative figures（inline SVG）
   ============================================================ */
.inline-blob { width: 80px; height: 80px; pointer-events: none; }
.content-section > .content-deco-figure {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 20px;
}

/* ============================================================
   About/content section figure (交错)
   ============================================================ */
.content-section > figure {
  display: none;
}

/* ============================================================
   时间
   ============================================================ */
time { font-family: var(--font-mono); font-size: 12px; color: var(--c-accent-light); }

/* ============================================================
   减少动效（无障碍）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   桌面断点 ≥768px
   ============================================================ */
@media (min-width: 768px) {
  .hero {
    flex-direction: row; align-items: center;
    padding: 60px 40px 80px;
    gap: 48px;
  }
  .hero__media {
    flex: 1; height: 70vh; margin-bottom: 0;
  }
  .hero__side { flex: 1; }
  .hero__badges { top: 20px; right: 16px; }

  .content-section {
    grid-template-columns: 260px 1fr;
    align-items: start;
    padding: 48px 40px;
  }
  .content-section > figure { display: block; }

  .feat-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }

  .page-hero-section {
    flex-direction: row; align-items: stretch;
    padding: 40px 40px 0; gap: 32px;
  }
  .page-hero-figure { flex: 0 0 280px; height: auto; }
  .page-hero-aside { flex: 1; display: flex; flex-direction: column; justify-content: center; }

  .story-header-section {
    flex-direction: row; align-items: stretch;
    padding: 40px 40px 0; gap: 32px;
  }
  .story-hero-figure { flex: 0 0 320px; height: auto; }
  .story-meta-aside { flex: 1; }

  .story-body-section {
    grid-template-columns: 1fr 260px;
    padding: 48px 40px;
  }
  .story-body-figure { display: block; order: 2; }
  .content-aside--story { order: 2; }
  .story-content { order: 1; }

  .about-header-section {
    flex-direction: row; padding: 40px 40px 0; gap: 32px;
  }
  .about-figure { flex: 0 0 240px; height: auto; }
  .about-intro-aside { flex: 1; }

  .privacy-header-section {
    flex-direction: row; padding: 40px 40px 0; gap: 32px;
  }
  .privacy-figure { flex: 0 0 200px; height: auto; }
  .privacy-intro-aside { flex: 1; }

  .site-footer__cols { display: grid; }
  .latest-section, .feat-section { padding: 48px 40px; }

  .site-footer__bar { padding: 0 40px; }
}

@media (min-width: 1024px) {
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .content-section { max-width: 1200px; }
}

/* ============================================================
   横向溢出防护
   ============================================================ */
.site-wrapper { max-width: 100vw; overflow-x: hidden; }
.main-home, .main-inner, .main-story, .main-privacy { max-width: 100vw; overflow-x: hidden; }
