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

/* ===== 基础变量 ===== */
:root {
  --c-bg: #0d0d0d;
  --c-bg2: #111118;
  --c-bg3: #1a0a2e;
  --c-primary: #8000ff;
  --c-accent: #ff00ff;
  --c-primary-dim: rgba(128,0,255,0.15);
  --c-accent-dim: rgba(255,0,255,0.12);
  --c-text: #e0d8f0;
  --c-text-dim: #9988bb;
  --c-border: rgba(128,0,255,0.35);
  --c-border-accent: rgba(255,0,255,0.3);
  --r-card: 28px;
  --r-sm: 8px;
  --shadow-card: 0 4px 32px rgba(128,0,255,0.18), 0 1px 4px rgba(0,0,0,0.7);
  --shadow-hover: 0 8px 48px rgba(255,0,255,0.22), 0 2px 8px rgba(0,0,0,0.8);
  --glow-primary: 0 0 10px #8000ff, 0 0 30px rgba(128,0,255,0.4);
  --glow-accent: 0 0 10px #ff00ff, 0 0 30px rgba(255,0,255,0.4);
  --font-display: 'Orbitron', 'Exo 2', monospace;
  --font-body: 'Exo 2', monospace, sans-serif;
  --nav-h: 100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s, text-shadow .2s; }
a:hover { color: #fff; text-shadow: var(--glow-accent); }
ol, ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== 扫描线叠层 ===== */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.12) 2px,
    rgba(0,0,0,0.12) 4px
  );
  opacity: .45;
}

/* ===== HUD网格点阵 ===== */
.hud-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(128,0,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .6;
}

/* ===== 故障动效 ===== */
@keyframes glitch-skew {
  0%,100% { transform: skewX(0); }
  20% { transform: skewX(-2deg); }
  40% { transform: skewX(1.5deg); }
  60% { transform: skewX(-1deg); }
  80% { transform: skewX(2deg); }
}
@keyframes glitch-shift {
  0%,100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  10% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 1px); }
  20% { clip-path: inset(40% 0 30% 0); transform: translate(3px, -1px); }
  30% { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 2px); }
  40% { clip-path: inset(20% 0 50% 0); transform: translate(2px, -2px); }
  50% { clip-path: inset(0 0 100% 0); transform: translate(0); }
}
@keyframes neon-pulse {
  0%,100% { text-shadow: var(--glow-primary); }
  50% { text-shadow: 0 0 20px #8000ff, 0 0 60px rgba(128,0,255,0.6); }
}
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes carousel-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,13,0.96);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(128,0,255,0.2);
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(128,0,255,0.15);
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-primary);
  text-shadow: var(--glow-primary);
  letter-spacing: .08em;
  animation: neon-pulse 3s ease-in-out infinite;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(128,0,255,0.08);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.header-search input {
  background: transparent;
  border: none;
  color: var(--c-text);
  padding: 8px 14px;
  width: 200px;
  outline: none;
}
.header-search input::placeholder { color: var(--c-text-dim); }
.header-search button {
  background: var(--c-primary);
  border: none;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1.1rem;
  min-height: 40px;
  transition: background .2s;
}
.header-search button:hover { background: var(--c-accent); }

.main-nav { padding: 0 24px; }
.main-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.main-nav ol li a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--c-text-dim);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s, text-shadow .2s;
}
.main-nav ol li a:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  text-shadow: var(--glow-accent);
}

/* ===== Hero（首页） ===== */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-bg3) 0%, var(--c-bg) 60%);
  border-bottom: 1px solid var(--c-border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-media {
  position: relative;
}
.hero-img, .hero-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--r-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}
.hero-placeholder {
  background: linear-gradient(135deg, var(--c-bg3), #0d0025);
  min-height: 280px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.eyebrow-label {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--c-accent);
  text-shadow: var(--glow-accent);
  border: 1px solid var(--c-border-accent);
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--c-accent-dim);
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow-primary);
  line-height: 1.25;
  animation: neon-pulse 4s ease-in-out infinite;
}
.hero-desc {
  font-size: 1rem;
  color: var(--c-text-dim);
  max-width: 420px;
  line-height: 1.7;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  min-height: 44px;
  background: linear-gradient(135deg, var(--c-primary), #5500cc);
  color: #fff;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  box-shadow: var(--glow-primary);
  transition: box-shadow .2s, transform .2s;
}
.btn-primary:hover {
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
  color: #fff;
  text-shadow: none;
}

/* ===== 内容区布局 ===== */
.content-section, .cat-body, .entry-body-section,
.tag-body-section, .about-body-section, .privacy-body-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}
.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.main-content { min-width: 0; }

/* ===== Prose ===== */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 40px;
}
.prose h2, .prose h3 {
  font-family: var(--font-display);
  color: var(--c-primary);
  text-shadow: var(--glow-primary);
  margin: 2em 0 .6em;
}
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.1rem; color: var(--c-accent); text-shadow: var(--glow-accent); }
.prose p { margin-bottom: 1.2em; }
.prose a { color: var(--c-accent); }
.prose ul, .prose ol { margin: 1em 0 1em 1.5em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: #fff; }

/* ===== H2 + .subtitle 模式 ===== */
h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-primary);
  text-shadow: var(--glow-primary);
  letter-spacing: .06em;
  margin-bottom: .3em;
}
.subtitle, p.subtitle, p.subhead, p.desc, p.lead {
  font-size: .88rem;
  color: var(--c-text-dim);
  margin-bottom: 1.2em;
  line-height: 1.6;
}

/* ===== 分类卡片（首页） ===== */
.cat-grid { margin-bottom: 48px; }
.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  color: var(--c-text);
  transition: box-shadow .25s, border-color .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-primary-dim), transparent);
  opacity: 0;
  transition: opacity .25s;
  border-radius: var(--r-card);
}
.cat-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-accent);
  transform: translateY(-4px);
  color: var(--c-text);
}
.cat-card:hover::before { opacity: 1; }
.cat-card strong {
  font-family: var(--font-display);
  font-size: .95rem;
  color: #fff;
  display: block;
}
.cat-card-desc {
  font-size: .82rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}
.cat-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 8px;
}

/* ===== 条目卡片（栏目页） ===== */
.entries-zone { margin-bottom: 48px; }
.entry-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.entry-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  color: var(--c-text);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.entry-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-accent);
  transform: translateY(-3px);
  color: var(--c-text);
}
.entry-card strong {
  font-family: var(--font-display);
  font-size: .88rem;
  color: #fff;
  display: block;
}
.entry-card-desc {
  font-size: .8rem;
  color: var(--c-text-dim);
}
.entry-date {
  font-size: .75rem;
  color: var(--c-primary);
  font-family: var(--font-display);
}
.entry-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 6px;
}

/* ===== Stagger 动效 ===== */
.stagger-item {
  opacity: 0;
  animation: stagger-in .5s ease forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 100ms);
}

/* ===== 标签 ===== */
.tag-cloud, .other-tags { margin-bottom: 40px; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  min-height: 36px;
  background: var(--c-primary-dim);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--c-accent);
  letter-spacing: .05em;
  transition: background .2s, box-shadow .2s;
}
.tag-pill:hover {
  background: rgba(255,0,255,0.15);
  box-shadow: var(--glow-accent);
  color: #fff;
  text-shadow: none;
}

/* ===== 侧边栏 ===== */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.aside-block {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.aside-block h2 {
  font-size: .85rem;
  margin-bottom: .2em;
}
.aside-links li { margin-bottom: 6px; }
.aside-links a {
  display: block;
  padding: 6px 10px;
  min-height: 40px;
  line-height: 28px;
  font-size: .85rem;
  color: var(--c-text-dim);
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.aside-links a:hover {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
  text-shadow: none;
}
.aside-text {
  font-size: .82rem;
  color: var(--c-text-dim);
  margin-bottom: 10px;
}
.aside-more {
  font-size: .8rem;
  font-family: var(--font-display);
  color: var(--c-primary);
  letter-spacing: .06em;
}

/* ===== 面包屑 ===== */
.breadcrumb { margin-bottom: 16px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.breadcrumb ol li {
  display: flex;
  align-items: center;
  font-size: .8rem;
  color: var(--c-text-dim);
}
.breadcrumb ol li::after { content: '›'; margin-left: 8px; color: var(--c-border); }
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li a { color: var(--c-primary); font-size: .8rem; }

/* ===== 栏目Hero ===== */
.cat-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}
.cat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cat-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.cat-hero-placeholder {
  background: linear-gradient(135deg, var(--c-bg3), var(--c-bg));
}
.cat-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 40px 24px 36px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(to top, rgba(13,13,13,.9) 60%, transparent);
}
.cat-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow-primary);
  margin-bottom: 10px;
}
.cat-desc {
  font-size: .95rem;
  color: var(--c-text-dim);
  max-width: 600px;
}

/* ===== 条目页 ===== */
.entry-header-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  border-bottom: 1px solid var(--c-border);
}
.entry-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.meta-date {
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--c-primary);
  letter-spacing: .05em;
}
.meta-cat a {
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--c-accent);
  border: 1px solid var(--c-border-accent);
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--c-accent-dim);
}
.entry-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.entry-lead {
  font-size: 1rem;
  color: var(--c-text-dim);
  max-width: 700px;
  margin-bottom: 20px;
}
.entry-hero { margin-top: 16px; }
.entry-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--r-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}
.entry-prose { max-width: 720px; }

/* ===== 图集 ===== */
.entry-gallery { margin-bottom: 40px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.gallery-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--c-border); }
.gallery-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery-img:hover { transform: scale(1.04); }

/* ===== 相关条目 ===== */
.related-entries { margin-bottom: 40px; }
.rel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.rel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  color: var(--c-text);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.rel-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-accent);
  transform: translateY(-3px);
  color: var(--c-text);
}
.rel-card strong {
  font-family: var(--font-display);
  font-size: .85rem;
  color: #fff;
}
.rel-card span { font-size: .8rem; color: var(--c-text-dim); }

/* ===== 标签页 ===== */
.tag-header-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  border-bottom: 1px solid var(--c-border);
}
.tag-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--c-accent);
  border: 1px solid var(--c-border-accent);
  padding: 3px 12px;
  border-radius: 14px;
  background: var(--c-accent-dim);
  margin-bottom: 10px;
}
.tag-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow-accent);
  margin-bottom: 10px;
}
.tag-desc { font-size: .95rem; color: var(--c-text-dim); max-width: 600px; }
.tag-entries { margin-bottom: 40px; }
.tag-entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.tag-entry-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  color: var(--c-text);
  transition: box-shadow .2s, border-color .2s;
}
.tag-entry-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-accent);
  color: var(--c-text);
}
.tag-entry-item strong {
  font-family: var(--font-display);
  font-size: .9rem;
  color: #fff;
}
.tag-entry-desc { font-size: .82rem; color: var(--c-text-dim); }
.tag-entry-item time { font-size: .75rem; color: var(--c-primary); }
.no-entry { color: var(--c-text-dim); font-size: .9rem; padding: 20px 0; }

/* ===== About / Privacy ===== */
.about-header-section, .privacy-header-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  border-bottom: 1px solid var(--c-border);
}
.about-h1, .privacy-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow-primary);
  margin-bottom: 10px;
}
.about-meta, .privacy-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.about-lead, .privacy-lead {
  font-size: 1rem;
  color: var(--c-text-dim);
  max-width: 700px;
}
.about-prose, .privacy-prose { max-width: 720px; }
.about-nav-block { margin-bottom: 40px; }
.about-cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.about-cat-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  color: var(--c-text);
  transition: box-shadow .2s, border-color .2s;
}
.about-cat-link:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-accent);
  color: var(--c-text);
}
.about-cat-link strong {
  font-family: var(--font-display);
  font-size: .88rem;
  color: #fff;
}
.about-cat-link span { font-size: .8rem; color: var(--c-text-dim); }

/* ===== 页脚 ===== */
footer {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  margin-top: 64px;
  position: relative;
  z-index: 1;
}
.footer-brand {
  padding: 48px 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(128,0,255,0.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.logo-mark-sm {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  text-shadow: var(--glow-primary);
  letter-spacing: .08em;
}
.footer-desc {
  font-size: .85rem;
  color: var(--c-text-dim);
  max-width: 420px;
  margin-bottom: 24px;
}
.footer-subscribe h3 {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--c-accent);
  margin-bottom: 10px;
  letter-spacing: .06em;
}
.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 380px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(128,0,255,0.06);
}
.subscribe-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: var(--c-text);
  outline: none;
  font-size: .88rem;
}
.subscribe-form input::placeholder { color: var(--c-text-dim); }
.subscribe-form button {
  background: var(--c-primary);
  border: none;
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .06em;
  min-height: 42px;
  transition: background .2s;
}
.subscribe-form button:hover { background: var(--c-accent); }

.footer-links {
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(128,0,255,0.1);
}
.footer-links h3 {
  font-family: var(--font-display);
  font-size: .8rem;
  color: var(--c-text-dim);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 16px;
}
.footer-nav-list li a {
  display: block;
  padding: 6px 16px 6px 0;
  min-height: 40px;
  line-height: 28px;
  font-size: .85rem;
  color: var(--c-text-dim);
  transition: color .2s;
}
.footer-nav-list li a:hover { color: var(--c-accent); text-shadow: none; }
.footer-link {
  font-size: .82rem;
  color: var(--c-text-dim);
}
.footer-link:hover { color: var(--c-accent); text-shadow: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.copyright {
  font-family: var(--font-display);
  font-size: .72rem;
  color: var(--c-text-dim);
  letter-spacing: .05em;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: .78rem;
  color: var(--c-text-dim);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-bottom-links a:hover { color: var(--c-accent); text-shadow: none; }

/* ===== 大尺寸布局调整 ===== */
@media (max-width: 1024px) {
  .content-with-aside {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }
}

/* ===== 平板断点 ===== */
@media (max-width: 768px) {
  .content-with-aside {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 16px;
    gap: 28px;
  }
  .hero-media { order: -1; }
  .hero-section { min-height: auto; }
  .cat-cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .entry-cards-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  footer { margin-top: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== 移动断点 ===== */
@media (max-width: 480px) {
  :root { --nav-h: 110px; }
  .brand-row { padding: 10px 14px; }
  .brand-name { font-size: .95rem; }
  .header-search input { width: 130px; }
  .main-nav { padding: 0 10px; }
  .main-nav ol li a { padding: 10px 10px; font-size: .72rem; }
  .hero-inner { padding: 28px 14px; }
  .hero-h1 { font-size: 1.4rem; }
  .content-section, .cat-body, .entry-body-section,
  .tag-body-section, .about-body-section, .privacy-body-section {
    padding: 28px 14px;
  }
  .cat-hero-overlay { padding: 28px 14px 24px; }
  .entry-header-section, .tag-header-section,
  .about-header-section, .privacy-header-section {
    padding: 28px 14px 18px;
  }
  .cat-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .entry-cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rel-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .about-cat-list { grid-template-columns: 1fr; }
  .footer-brand { padding: 28px 14px 20px; }
  .footer-links { padding: 20px 14px; }
  .footer-bottom { padding: 14px; }
  .subscribe-form { max-width: 100%; }
  h2 { font-size: 1rem; }
}

/* ===== 极小屏 ===== */
@media (max-width: 375px) {
  .cat-cards { grid-template-columns: 1fr; }
  .entry-cards-grid { grid-template-columns: 1fr; }
  .rel-cards { grid-template-columns: 1fr; }
  .header-search { display: none; }
}
