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

/* =====================
   CSS自定义属性
   ===================== */
:root {
  --c-red: #ff0000;
  --c-pink: #ff006e;
  --c-dark: #1a1a2e;
  --c-dark2: #0f0f1e;
  --c-dark3: #16213e;
  --c-light: #e8e8f0;
  --c-muted: #8888aa;
  --c-border: rgba(255, 0, 110, 0.4);
  --c-border-red: rgba(255, 0, 0, 0.4);
  --c-card-bg: rgba(26, 26, 46, 0.85);
  --c-glow-pink: 0 0 8px #ff006e, 0 0 20px rgba(255, 0, 110, 0.4);
  --c-glow-red: 0 0 8px #ff0000, 0 0 20px rgba(255, 0, 0, 0.3);
  --radius: 28px;
  --radius-sm: 8px;
  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;
  --max-w: 1200px;
  --header-h: 64px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--c-dark2);
  color: var(--c-light);
  font-family: var(--font-body);
  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-pink);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
  color: var(--c-red);
  text-shadow: var(--c-glow-red);
}

a:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 2px;
  border-radius: 3px;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =====================
   CRT 扫描线纹理
   ===================== */
.crt-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 4px
  );
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

/* =====================
   Glitch 效果
   ===================== */
@keyframes glitch-skew {
  0%   { transform: skewX(0deg); }
  10%  { transform: skewX(-2deg); }
  20%  { transform: skewX(1deg); }
  30%  { transform: skewX(0deg); }
  100% { transform: skewX(0deg); }
}

@keyframes glitch-1 {
  0%   { clip-path: inset(0 0 95% 0); transform: translate(-3px, 0); }
  20%  { clip-path: inset(40% 0 50% 0); transform: translate(3px, 0); }
  40%  { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 0); }
  60%  { clip-path: inset(20% 0 70% 0); transform: translate(2px, 0); }
  80%  { clip-path: inset(60% 0 30% 0); transform: translate(-1px, 0); }
  100% { clip-path: inset(0 0 95% 0); transform: translate(0, 0); }
}

@keyframes glitch-2 {
  0%   { clip-path: inset(95% 0 0 0); transform: translate(3px, 0); }
  20%  { clip-path: inset(50% 0 40% 0); transform: translate(-3px, 0); }
  40%  { clip-path: inset(5% 0 80% 0); transform: translate(2px, 0); }
  60%  { clip-path: inset(70% 0 20% 0); transform: translate(-2px, 0); }
  80%  { clip-path: inset(30% 0 60% 0); transform: translate(1px, 0); }
  100% { clip-path: inset(95% 0 0 0); transform: translate(0, 0); }
}

.glitch {
  position: relative;
  animation: glitch-skew 4s infinite linear;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--c-pink);
  animation: glitch-1 3s infinite steps(1);
  opacity: 0.7;
}

.glitch::after {
  color: var(--c-red);
  animation: glitch-2 2.5s infinite steps(1);
  opacity: 0.6;
}

/* =====================
   Scroll Reveal
   ===================== */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-item.is-visible {
  animation: reveal-up 0.5s var(--transition) forwards;
}

.reveal-item:nth-child(2) { animation-delay: 0.08s; }
.reveal-item:nth-child(3) { animation-delay: 0.16s; }
.reveal-item:nth-child(4) { animation-delay: 0.24s; }
.reveal-item:nth-child(5) { animation-delay: 0.32s; }
.reveal-item:nth-child(6) { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-item.is-visible,
  .glitch,
  .glitch::before,
  .glitch::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =====================
   容器
   ===================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =====================
   Header / 导航
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: var(--c-glow-pink);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-light);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), text-shadow var(--transition);
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--c-pink);
  border-color: var(--c-border);
  text-shadow: var(--c-glow-pink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: transparent;
  gap: 5px;
  padding: 8px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-pink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(4px, -4px); }

/* =====================
   Hero — 首页
   ===================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--c-dark2);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

.hero-body {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 5rem 1.25rem 7rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-pink);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: var(--c-glow-pink);
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow: var(--c-glow-red);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-slash {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--c-dark2);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 4;
}

/* =====================
   Page Banner (非首页)
   ===================== */
.page-banner,
.article-banner {
  position: relative;
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark2) 100%);
  padding: 4rem 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}

.page-banner::after,
.article-banner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--c-dark2);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

.page-banner-title,
.article-banner-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  position: relative;
  z-index: 3;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

.page-banner-desc {
  color: var(--c-muted);
  font-size: 1.05rem;
  position: relative;
  z-index: 3;
  margin-top: 0.75rem;
  max-width: 680px;
}

.tag-eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 3;
}

/* =====================
   面包屑
   ===================== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--c-muted);
  position: relative;
  z-index: 3;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--c-muted);
}

.breadcrumb a:hover {
  color: var(--c-pink);
}

.breadcrumb span {
  margin: 0 0.35rem;
}

/* =====================
   按钮
   ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 2rem;
  min-height: 44px;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 0 16px rgba(255, 0, 110, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 0, 110, 0.8);
  color: #fff;
  text-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-pink);
  background: transparent;
  border: 2px solid var(--c-pink);
  border-radius: var(--radius);
  padding: 0.75rem 2rem;
  min-height: 44px;
  text-decoration: none;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-ghost:hover {
  color: #fff;
  background: var(--c-pink);
  box-shadow: var(--c-glow-pink);
  transform: translateY(-2px);
  text-shadow: none;
}

/* =====================
   主体内容布局
   ===================== */
.section-content {
  padding: 3rem 0 4rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.content-main {
  min-width: 0;
}

/* =====================
   卡片 (首页分区)
   ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
  );
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.card:hover {
  border-color: var(--c-pink);
  transform: translateY(-4px);
}

.card-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.card-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: var(--c-glow-pink);
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-title a {
  color: #fff;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--c-pink);
  text-shadow: var(--c-glow-pink);
}

.card-date {
  font-size: 0.8rem;
  color: var(--c-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-cta {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-pink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.card-cta:hover {
  color: var(--c-red);
  border-color: var(--c-red);
  text-shadow: var(--c-glow-red);
}

/* =====================
   栏目卡片
   ===================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.cat-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border-red);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.cat-card:hover {
  border-color: var(--c-red);
  transform: translateY(-3px);
}

.cat-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cat-card-title a {
  color: #fff;
  text-decoration: none;
}

.cat-card-title a:hover {
  color: var(--c-red);
  text-shadow: var(--c-glow-red);
}

.cat-card-desc {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* =====================
   Sections 标题块
   ===================== */
.section-categories,
.section-articles {
  padding: 3rem 0;
}

.section-categories {
  background: var(--c-dark);
}

.section-articles {
  background: var(--c-dark2);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: var(--c-glow-red);
}

hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0.75rem 0 1.5rem;
}

/* =====================
   文章列表
   ===================== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0;
}

.list-article {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.list-article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px
  );
  pointer-events: none;
  border-radius: inherit;
}

.list-article:hover {
  border-color: var(--c-pink);
  transform: translateX(4px);
}

.article-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-border);
  line-height: 1;
  min-width: 2.5rem;
  user-select: none;
  flex-shrink: 0;
}

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

.article-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.article-title a {
  color: #fff;
  text-decoration: none;
}

.article-title a:hover {
  color: var(--c-pink);
  text-shadow: var(--c-glow-pink);
}

.article-desc {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.link-more {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-pink);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition), text-shadow var(--transition);
}

.link-more:hover {
  color: var(--c-red);
  text-shadow: var(--c-glow-red);
}

/* =====================
   正文内容
   ===================== */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-light);
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.prose h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-light);
  margin: 1.5rem 0 0.35rem;
}

.prose h2 + hr,
.prose h3 + hr {
  margin-top: 0;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--c-pink);
  font-weight: 600;
}

.prose a {
  color: var(--c-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--c-red);
  text-shadow: var(--c-glow-red);
}

.prose blockquote {
  border-left: 3px solid var(--c-pink);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(255, 0, 110, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-muted);
}

.prose code {
  font-family: 'Courier New', monospace;
  background: rgba(255, 0, 110, 0.12);
  color: var(--c-pink);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* =====================
   Aside / 侧栏
   ===================== */
.content-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.aside-box {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.aside-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
  );
  pointer-events: none;
  border-radius: inherit;
}

.aside-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: var(--c-glow-pink);
  position: relative;
  z-index: 1;
}

.aside-nav-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aside-nav-list li a {
  font-size: 0.9rem;
  color: var(--c-light);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition), padding-left var(--transition);
}

.aside-nav-list li a:hover {
  color: var(--c-pink);
  padding-left: 0.4rem;
  text-shadow: var(--c-glow-pink);
}

.aside-parent-link {
  font-size: 0.9rem;
  color: var(--c-light);
  position: relative;
  z-index: 1;
}

/* =====================
   标签
   ===================== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-pink);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 30px;
}

.tag:hover {
  color: #fff;
  background: var(--c-pink);
  border-color: var(--c-pink);
  text-shadow: none;
}

/* =====================
   文章日期
   ===================== */
.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  position: relative;
  z-index: 3;
}

.pub-date,
.mod-date {
  font-size: 0.85rem;
  color: var(--c-muted);
  font-family: var(--font-head);
  letter-spacing: 0.03em;
}

.pub-date::before { content: '发布 · '; }
.mod-date::before { content: '更新 · '; }

/* =====================
   文章 Hero 图
   ===================== */
.article-hero-figure {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.content-figure-placeholder {
  display: none;
}

/* =====================
   内嵌 figure / aside（结构抽签要求）
   ===================== */
.section-intro,
.about-brand-block,
.privacy-badge,
.tag-desc-prose {
  padding: 0;
}

.intro-figure,
.about-figure,
.privacy-figure,
.tag-intro-figure,
.content-figure,
.article-section,
.article-bottom-aside,
.about-section,
.about-links-aside,
.privacy-section,
.privacy-aside,
.tag-articles-section,
.tag-nav-aside,
.content-bottom-aside {
  margin-bottom: 2rem;
}

.about-brand-block {
  background: linear-gradient(135deg, var(--c-dark), var(--c-dark3));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.about-brand-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
  );
  pointer-events: none;
}

.about-brand-name {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: var(--c-glow-red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-pink);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: var(--c-glow-pink);
}

.privacy-updated {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-top: 0.5rem;
  position: relative;
  z-index: 3;
}

.related-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.related-list li a {
  font-size: 0.9rem;
  color: var(--c-light);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition), padding-left var(--transition);
}

.related-list li a:hover {
  color: var(--c-pink);
  padding-left: 0.4rem;
}

.article-list-section {
  margin-top: 2.5rem;
}

.empty-tip {
  color: var(--c-muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* =====================
   首页 intro section
   ===================== */
.section-content .container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.section-intro {
  min-width: 0;
}

.section-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

/* 覆盖首页用 content-layout 的场景 */
.page-home .section-content .container {
  display: grid;
  grid-template-columns: 1fr 280px;
}

/* =====================
   页脚
   ===================== */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer-nav {
  max-width: var(--max-w);
  margin: 0 auto 1.5rem;
}

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  align-items: baseline;
}

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

.footer-dl dt a,
.footer-dl dd a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.1rem;
  transition: color var(--transition), text-shadow var(--transition);
}

.footer-dl dt a {
  color: var(--c-pink);
  text-shadow: var(--c-glow-pink);
}

.footer-dl dd a:hover,
.footer-dl dt a:hover {
  color: var(--c-red);
  text-shadow: var(--c-glow-red);
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.footer-copy a {
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy a:hover {
  color: var(--c-pink);
}

/* =====================
   响应式
   ===================== */
@media (max-width: 900px) {
  .content-layout,
  .section-content .container {
    grid-template-columns: 1fr;
  }

  .content-aside,
  .section-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  .prose {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    overflow-y: auto;
    z-index: 99;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    min-height: 48px;
    border-bottom: 1px solid var(--c-border);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-body {
    padding: 3.5rem 1.25rem 5rem;
  }

  .hero-h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .list-article {
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-num {
    font-size: 1.2rem;
  }

  .footer-dl {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .content-aside {
    display: flex;
    flex-direction: column;
  }

  .page-banner,
  .article-banner {
    padding: 3rem 0 2.5rem;
  }

  .section-categories,
  .section-articles {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .page-banner-title,
  .article-banner-title {
    font-size: 1.6rem;
  }

  .about-brand-name {
    font-size: 1.8rem;
  }
}
