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

/* ===== CSS 变量 ===== */
:root {
  --green: #87ff71;
  --cyan: #01cdfe;
  --dark: #192617;
  --dark2: #0e1a0d;
  --dark3: #1e3118;
  --pink: #ff71ce;
  --purple: #b967ff;
  --text: #e8f5e5;
  --text-dim: #9ab89a;
  --sidenav-w: 220px;
  --radius: 18px;
  --font: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font);
  background: var(--dark2);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green);
}

/* ===== 扫描线纹理 ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ===== 布局骨架 ===== */
.page-wrapper {
  display: flex;
  min-height: 100vh;
}

.content-shift {
  flex: 1;
  margin-left: var(--sidenav-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ===== 侧边导航 ===== */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidenav-w);
  height: 100vh;
  background: linear-gradient(180deg, #0a1409 0%, var(--dark2) 100%);
  border-right: 1px solid rgba(135, 255, 113, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  padding-bottom: 2rem;
}

.sidenav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(135, 255, 113, 0.12);
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.brand-icon-text {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: var(--dark2);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(135, 255, 113, 0.4);
}

.sidenav-links {
  padding: 1rem 0;
  list-style: none;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(135, 255, 113, 0.45);
  padding: 0.75rem 1.25rem 0.4rem;
  text-transform: uppercase;
}

.sidenav-links dd {
  margin: 0;
}

.sidenav-links dd a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  min-height: 40px;
  text-decoration: none;
}

.sidenav-links dd a::before {
  content: '›';
  color: var(--green);
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.sidenav-links dd a:hover {
  color: var(--green);
  border-left-color: var(--green);
  background: rgba(135, 255, 113, 0.05);
  text-shadow: 0 0 8px rgba(135, 255, 113, 0.4);
}

.sidenav-links dd a:hover::before {
  opacity: 1;
}

/* ===== main + aside 布局 ===== */
main {
  display: flex;
  gap: 2rem;
  padding: 2rem 2.5rem;
  max-width: 1400px;
  width: 100%;
  align-self: center;
  flex: 1;
}

main > div {
  flex: 1;
  min-width: 0;
}

main > div > article {
  margin-bottom: 3rem;
}

aside.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}

.sidebar h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sidebar hr {
  border: none;
  border-top: 1px solid rgba(135, 255, 113, 0.2);
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.sidebar ul li a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  min-height: 40px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sidebar ul li a:hover {
  color: var(--cyan);
}

.sidebar-banner {
  background: linear-gradient(135deg, rgba(135,255,113,0.08), rgba(1,205,254,0.08));
  border: 1px solid rgba(135,255,113,0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.sidebar-banner p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.sidebar-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: var(--dark2);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.sidebar-btn:hover {
  opacity: 0.85;
  color: var(--dark2);
}

/* ===== hr 装饰线 ===== */
hr {
  border: none;
  border-top: 1px solid rgba(135, 255, 113, 0.25);
  margin: 0.75rem 0 1.5rem;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(135,255,113,0.08);
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

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

/* ===== 首页 Hero ===== */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0533 0%, #0d1f2d 30%, var(--dark2) 60%, #0f2010 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,113,206,0.08) 0%, rgba(1,205,254,0.08) 50%, rgba(135,255,113,0.06) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(135,255,113,0.03) 60px,
      rgba(135,255,113,0.03) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(1,205,254,0.03) 60px,
      rgba(1,205,254,0.03) 61px
    );
  pointer-events: none;
}

.hero-bg-text {
  position: absolute;
  right: -0.1em;
  bottom: -0.15em;
  font-size: clamp(8rem, 18vw, 20rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(135,255,113,0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero-media {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(1,205,254,0.3), 0 0 80px rgba(135,255,113,0.15);
}

.hero-placeholder {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ff71ce22, #01cdfe22, #b967ff22);
  border: 1px solid rgba(1,205,254,0.2);
  box-shadow: 0 0 40px rgba(1,205,254,0.15);
  position: relative;
  overflow: hidden;
}

.hero-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(135,255,113,0.03) 20px,
    rgba(135,255,113,0.03) 40px
  );
}

.hero-text {
  flex: 0 0 50%;
  padding: 3rem 3rem 3rem 1rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(1,205,254,0.6);
}

.hero-h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 400px;
  line-height: 1.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: var(--dark2);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  min-height: 48px;
  transition: all var(--transition);
  box-shadow: 0 0 20px rgba(135,255,113,0.3);
}

.hero-btn:hover {
  box-shadow: 0 0 30px rgba(135,255,113,0.5), 0 0 60px rgba(1,205,254,0.2);
  transform: translateY(-2px);
  color: var(--dark2);
}

/* ===== 频道/内页 hero ===== */
.channel-hero,
.inner-hero,
.tag-hero {
  position: relative;
  padding: 4rem 2.5rem 3rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1f2d 0%, var(--dark2) 60%, #0f2010 100%);
  border-bottom: 1px solid rgba(135,255,113,0.12);
}

.channel-hero::before,
.inner-hero::before,
.tag-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(185,103,255,0.06), rgba(1,205,254,0.04));
  pointer-events: none;
}

.channel-hero-bg,
.inner-hero-bg,
.tag-hero-bg {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(135,255,113,0.07);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  line-height: 1;
}

.channel-hero h1,
.inner-hero h1,
.tag-h1,
.tag-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 20px rgba(135,255,113,0.4);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.eyebrow-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.channel-desc,
.inner-desc,
.tag-desc {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 640px;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}

.page-date {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(135,255,113,0.5);
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}

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

.child-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(135deg, rgba(14,26,13,0.9), rgba(30,49,24,0.7));
  border: 1px solid rgba(135,255,113,0.12);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--green);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.child-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(135,255,113,0.03), rgba(1,205,254,0.03));
  opacity: 0;
  transition: opacity var(--transition);
}

.child-card:hover {
  border-color: rgba(135,255,113,0.35);
  border-bottom-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(1,205,254,0.15), 0 0 0 1px rgba(135,255,113,0.1);
  color: var(--text);
}

.child-card:hover::before {
  opacity: 1;
}

.child-card strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.4;
  display: block;
}

.child-card:hover strong {
  text-shadow: 0 0 8px rgba(135,255,113,0.4);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  display: block;
}

.card-date {
  font-size: 0.75rem;
  color: rgba(1,205,254,0.6);
  letter-spacing: 0.05em;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 0.25rem;
}

/* ===== 正文 prose ===== */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
  margin: 2rem 0 0.25rem;
  text-shadow: 0 0 12px rgba(135,255,113,0.25);
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 1.5rem 0 0.25rem;
}

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

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

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

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

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(1,205,254,0.3);
}

.prose a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.prose blockquote {
  border-left: 3px solid var(--green);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(135,255,113,0.04);
  border-radius: 0 8px 8px 0;
  color: var(--text-dim);
}

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

.prose code {
  background: rgba(135,255,113,0.08);
  color: var(--green);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===== article 标题通用 ===== */
.content-section h2,
.channel-section h2,
.latest-section h2,
.children-section h2,
.related-section h2,
.tag-list-section h2,
.about-links-section h2,
.privacy-nav-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  text-shadow: 0 0 10px rgba(135,255,113,0.25);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

/* ===== 文章页 ===== */
.article-header-section {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(135,255,113,0.1);
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meta-date {
  font-size: 0.8rem;
  color: rgba(1,205,254,0.6);
  letter-spacing: 0.05em;
}

.article-h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 20px rgba(135,255,113,0.3);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.article-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.article-hero-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(1,205,254,0.2);
}

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

.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(135,255,113,0.04);
  border: 1px solid rgba(135,255,113,0.1);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: none;
  min-height: 40px;
  transition: all var(--transition);
}

.related-list li a:hover {
  color: var(--green);
  border-color: rgba(135,255,113,0.25);
  background: rgba(135,255,113,0.07);
}

/* ===== 关于页 ===== */
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(180deg, var(--dark2) 0%, #06100505 100%);
  border-top: 1px solid rgba(135,255,113,0.12);
  padding: 3rem 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-brand-row {
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.footer-brand-big {
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col dl dt {
  font-size: 0.75rem;
  color: rgba(135,255,113,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-col dl dd {
  margin: 0 0 0.35rem;
}

.footer-col dl dd a,
.footer-col ul li a {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition);
  display: block;
  padding: 0.15rem 0;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.footer-col dl dd a:hover,
.footer-col ul li a:hover {
  color: var(--green);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.25rem;
}

.footer-col address {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(135,255,113,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--green);
}

/* ===== 格子背景（视网膜） ===== */
.channel-hero::after,
.inner-hero::after,
.tag-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(135,255,113,0.03) 100%
    );
  pointer-events: none;
}

/* ===== 动效：Scroll Reveal ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .stagger.is-visible > *:nth-child(1)  { transition-delay: 0s; }
  .stagger.is-visible > *:nth-child(2)  { transition-delay: 0.07s; }
  .stagger.is-visible > *:nth-child(3)  { transition-delay: 0.14s; }
  .stagger.is-visible > *:nth-child(4)  { transition-delay: 0.21s; }
  .stagger.is-visible > *:nth-child(5)  { transition-delay: 0.28s; }
  .stagger.is-visible > *:nth-child(6)  { transition-delay: 0.35s; }
  .stagger.is-visible > * { opacity: 1; transform: none; }

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

  .hero-h1::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: var(--pink);
    animation: glitch 5s infinite steps(1);
    opacity: 0.25;
  }

  .hero-h1 {
    position: relative;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    flex-direction: column;
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-media,
  .hero-text {
    flex: none;
    width: 100%;
    padding: 2rem;
  }
}

@media (max-width: 860px) {
  :root {
    --sidenav-w: 0px;
  }

  .sidenav {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(135,255,113,0.15);
    overflow: visible;
  }

  .sidenav-brand {
    border-bottom: none;
    padding: 0.5rem;
  }

  .sidenav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    flex: 1;
  }

  .nav-label {
    display: none;
  }

  .sidenav-links dd a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    min-height: 44px;
  }

  .sidenav-links dd a:hover {
    border-left: none;
    border-bottom-color: var(--green);
    background: none;
  }

  .content-shift {
    margin-left: 0;
  }

  main {
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
  }

  aside.sidebar {
    width: 100%;
    position: static;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .channel-hero,
  .inner-hero,
  .tag-hero {
    padding: 3rem 1.25rem 2rem;
  }

  .hero-bg-text {
    font-size: 6rem;
  }
}

@media (max-width: 540px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-brand-big {
    font-size: 2rem;
  }

  .hero-h1 {
    font-size: 1.6rem;
  }

  main {
    padding: 1rem;
  }

  .channel-hero,
  .inner-hero,
  .tag-hero {
    padding: 2rem 1rem 1.5rem;
  }

  .breadcrumb {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  .site-footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ===== 无障碍：焦点样式 ===== */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
