@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ============================
   CSS 变量 & 重置
   ============================ */
:root {
  --neon-green: #69ff69;
  --neon-cyan: #00ffff;
  --bg-dark: #172617;
  --bg-card: rgba(25, 40, 25, 0.85);
  --bg-card-hover: rgba(35, 55, 35, 0.95);
  --text-main: #e8ffe8;
  --text-muted: #8abf8a;
  --text-dim: #5a8a5a;
  --border-glow: rgba(105, 255, 105, 0.3);
  --border-cyan: rgba(0, 255, 255, 0.3);
  --chrome-light: rgba(255,255,255,0.12);
  --chrome-mid: rgba(105,255,105,0.08);
  --radius-card: 18px;
  --radius-btn: 30px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-card: 0 4px 24px rgba(105,255,105,0.12), 0 1px 4px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(105,255,105,0.4);
  --shadow-cyan: 0 0 20px rgba(0,255,255,0.4);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --header-h: 64px;
  --anchor-h: 44px;
  --sidebar-w: 220px;
  --content-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(105,255,105,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 80%, rgba(0,255,255,0.06) 0%, transparent 60%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

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

ul, ol { list-style: none; }

/* ============================
   站点包装
   ============================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================
   顶部导航
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(23,38,23,0.98) 0%, rgba(23,38,23,0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 2px 20px rgba(105,255,105,0.1);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  gap: 1rem;
}

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--neon-green);
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(105,255,105,0.6);
  white-space: nowrap;
  line-height: 1.2;
}
.brand-name:hover { color: var(--neon-cyan); text-shadow: 0 0 12px rgba(0,255,255,0.6); }

.brand-logo {
  height: 28px;
  width: auto;
  border-radius: 6px;
}

.header-nav-left,
.header-nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.header-nav-right { justify-content: flex-end; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--neon-green);
  background: rgba(105,255,105,0.08);
}

/* 二级粘性锚点条 */
.header-sub.sticky-anchor {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--anchor-h);
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(105,255,105,0.1);
}
.header-sub.sticky-anchor::-webkit-scrollbar { display: none; }

.anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  min-height: 36px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.anchor-link:hover,
.anchor-link.active {
  color: var(--neon-cyan);
  border-color: var(--border-cyan);
  background: rgba(0,255,255,0.06);
  text-shadow: 0 0 8px rgba(0,255,255,0.5);
}

/* ============================
   Hero（首页）
   ============================ */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(23,38,23,0.9) 0%, rgba(0,30,30,0.8) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glow);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 50%, rgba(105,255,105,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-deco {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.bubble {
  display: block;
  border-radius: 50%;
  position: absolute;
}
.bubble.b1 {
  width: 120px; height: 120px;
  background: radial-gradient(circle at 35% 35%, rgba(105,255,105,0.3), rgba(105,255,105,0.05));
  border: 1px solid rgba(105,255,105,0.4);
  top: -60px; left: 0;
  animation: float1 6s ease-in-out infinite;
}
.bubble.b2 {
  width: 80px; height: 80px;
  background: radial-gradient(circle at 35% 35%, rgba(0,255,255,0.3), rgba(0,255,255,0.05));
  border: 1px solid rgba(0,255,255,0.4);
  top: 20px; left: 90px;
  animation: float2 8s ease-in-out infinite;
}
.bubble.b3 {
  width: 50px; height: 50px;
  background: radial-gradient(circle at 35% 35%, rgba(105,255,105,0.2), transparent);
  border: 1px solid rgba(105,255,105,0.3);
  top: -20px; left: 150px;
  animation: float1 5s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

.hero-text {
  text-align: right;
  max-width: 600px;
}

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(105,255,105,0.6), 0 0 40px rgba(105,255,105,0.3);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ============================
   页面布局（侧边栏在左）
   ============================ */
.page-layout {
  display: flex;
  gap: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  flex: 1;
  align-items: flex-start;
}

/* 侧边栏在内容左侧 */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + var(--anchor-h) + 1rem);
  padding: 1.5rem 1rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-card);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-cyan);
}

.sidebar-list li { margin-bottom: 0.35rem; }
.sidebar-list a {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 8px;
  min-height: 36px;
  display: flex;
  align-items: center;
  transition: all var(--transition);
}
.sidebar-list a:hover {
  color: var(--neon-green);
  background: rgba(105,255,105,0.08);
  padding-left: 0.85rem;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 0 2rem 1.5rem;
}

/* ============================
   正文容器：main > section > article
   ============================ */
.content-section {
  margin-bottom: 2.5rem;
}

.content-section h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--neon-green);
  text-shadow: 0 0 12px rgba(105,255,105,0.4);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-cyan);
  text-shadow: 0 0 8px rgba(0,255,255,0.3);
}

.content-section h2 > span {
  display: inline;
}

.content-section h3 > span {
  display: inline;
}

.prose-section h2 { margin-top: 1.5rem; }
.prose-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neon-green);
  margin: 1.25rem 0 0.5rem;
}
.prose-section p { margin-bottom: 1rem; color: var(--text-main); }
.prose-section ul, .prose-section ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.prose-section ul { list-style: disc; }
.prose-section ol { list-style: decimal; }
.prose-section li { margin-bottom: 0.4rem; }
.prose-section a { color: var(--neon-cyan); text-decoration: underline; }

.page-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.page-hero-bar {
  padding: 1.5rem 0 0.5rem;
}

/* ============================
   按钮
   ============================ */
.neon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  min-height: 44px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.neon-btn--primary {
  background: linear-gradient(135deg, var(--neon-green) 0%, #00e068 100%);
  color: #0a1a0a;
  box-shadow: 0 0 16px rgba(105,255,105,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.neon-btn--primary:hover {
  background: linear-gradient(135deg, #88ff88 0%, var(--neon-green) 100%);
  box-shadow: 0 0 28px rgba(105,255,105,0.7), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-2px);
  color: #0a1a0a;
}

.neon-btn--ghost {
  background: transparent;
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.2);
}
.neon-btn--ghost:hover {
  background: rgba(0,255,255,0.1);
  box-shadow: 0 0 24px rgba(0,255,255,0.4);
  transform: translateY(-2px);
  color: var(--neon-cyan);
}

.neon-btn--sm {
  padding: 0.4rem 1rem;
  min-height: 36px;
  font-size: 0.8rem;
  background: linear-gradient(135deg, var(--neon-green), #00e068);
  color: #0a1a0a;
  box-shadow: 0 0 10px rgba(105,255,105,0.35);
}
.neon-btn--sm:hover {
  box-shadow: 0 0 18px rgba(105,255,105,0.55);
  transform: translateY(-1px);
  color: #0a1a0a;
}

/* ============================
   玻璃卡片
   ============================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(105,255,105,0.2), 0 2px 8px rgba(0,0,0,0.4);
  border-color: rgba(105,255,105,0.5);
}

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

.cat-card {
  padding: 1.25rem;
}

.cat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-green);
  line-height: 1.3;
}

.cat-link-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  min-height: 34px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0,255,255,0.1);
  color: var(--neon-cyan);
  border: 1px solid var(--border-cyan);
  border-radius: 20px;
  transition: all var(--transition);
}
.cat-link-btn:hover {
  background: rgba(0,255,255,0.2);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.3);
}

.cat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.cat-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-child-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid rgba(105,255,105,0.2);
  border-radius: 12px;
  background: rgba(105,255,105,0.04);
  min-height: 28px;
  transition: all var(--transition);
}
.cat-child-link:hover {
  color: var(--neon-green);
  border-color: var(--border-glow);
  background: rgba(105,255,105,0.1);
}

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

.entry-card {
  display: flex;
  flex-direction: column;
}

.entry-thumb-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}
.entry-thumb-wrap img,
.entry-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 0;
}
.entry-card:hover .entry-thumb { transform: scale(1.06); }

.entry-card-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.entry-card-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}
.entry-card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.entry-card-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================
   相关推荐卡片
   ============================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
}
.related-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.related-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.related-body h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* ============================
   标签气泡
   ============================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-bubble {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  min-height: 32px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-cyan);
  background: rgba(0,255,255,0.08);
  border: 1px solid var(--border-cyan);
  border-radius: 50px;
  transition: all var(--transition);
}
.tag-bubble:hover {
  background: rgba(0,255,255,0.18);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.35);
  transform: translateY(-1px);
}

/* ============================
   面包屑
   ============================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--neon-green); }
.breadcrumb span { color: var(--text-dim); }

/* ============================
   词条页面
   ============================ */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
}
.entry-date {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(105,255,105,0.07);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(105,255,105,0.15);
}
.entry-intro {
  font-size: 1rem;
  color: var(--text-muted);
}
.entry-hero-wrap {
  margin: 1rem 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-glow);
}
.entry-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0;
}

/* ============================
   标签页 Hero
   ============================ */
.tag-hero {
  padding: 1.5rem 0 0.5rem;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bg-dark);
  background: var(--neon-cyan);
  border-radius: 20px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

/* ============================
   关于页
   ============================ */
.about-hero {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0 0.5rem;
}
.about-icon {
  font-size: 2rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0,255,255,0.6);
}
.about-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.about-cat-item {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
}
.about-cat-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 0.4rem;
}
.about-cat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.about-cat-item:hover h3 { color: var(--neon-cyan); }

/* ============================
   隐私页
   ============================ */
.privacy-hero {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0 0.5rem;
}
.privacy-icon {
  font-size: 2rem;
}
.update-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.privacy-prose { max-width: 720px; }
.privacy-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.privacy-link-card {
  display: block;
  padding: 1.1rem;
  text-decoration: none;
}
.privacy-link-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 0.3rem;
}
.privacy-link-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.privacy-link-card:hover h3 { color: var(--neon-cyan); }

/* ============================
   表格（栏目页子页列表）
   ============================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-card);
}

.entry-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.9rem;
}

.entry-table thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0,255,255,0.06);
  border-bottom: 1px solid var(--border-cyan);
  white-space: nowrap;
}

.entry-table tbody tr {
  border-bottom: 1px solid rgba(105,255,105,0.08);
  transition: background var(--transition);
}
.entry-table tbody tr:last-child { border-bottom: none; }
.entry-table tbody tr:hover { background: rgba(105,255,105,0.05); }

.entry-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.table-thumb-cell {
  width: 80px;
}
.table-thumb-cell img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.table-entry-link {
  font-weight: 600;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.25rem;
}
.table-entry-link:hover { color: var(--neon-green); }

.table-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.table-date-cell {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================
   页脚
   ============================ */
.site-footer {
  border-top: 1px solid var(--border-glow);
  background: linear-gradient(180deg, rgba(23,38,23,0.95) 0%, rgba(10,20,10,1) 100%);
  margin-top: auto;
}

/* 大 CTA 块 */
.footer-cta {
  background: linear-gradient(135deg, rgba(105,255,105,0.1) 0%, rgba(0,255,255,0.08) 100%);
  border-bottom: 1px solid var(--border-glow);
  padding: 2.5rem 1.5rem;
}

.footer-cta-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-cta-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* 导航区 */
.footer-nav-section {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(105,255,105,0.08);
}

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

.footer-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.footer-nav dt {
  display: inline;
}

.footer-nav dt a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  min-height: 40px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
}
.footer-nav dt a:hover,
.footer-nav dt a[aria-current] {
  color: var(--neon-green);
  background: rgba(105,255,105,0.08);
}

/* 底栏 */
.footer-bottom {
  padding: 1rem 1.5rem;
}

.footer-bottom-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 0.3rem 0.6rem;
  min-height: 36px;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--neon-green); }

/* ============================
   动效（prefers-reduced-motion）
   ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================
   响应式
   ============================ */
@media (max-width: 900px) {
  .page-layout {
    flex-direction: column;
    padding: 0 1rem;
  }
  .sidebar {
    width: 100%;
    position: static;
    padding: 1rem 0 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .sidebar-block {
    flex: 1;
    min-width: 200px;
  }
  .main-content {
    padding: 1rem 0 2rem;
  }
  .hero-inner {
    padding: 3rem 1rem;
  }
  .hero-deco { display: none; }
}

@media (max-width: 600px) {
  :root {
    --header-h: 56px;
    --sidebar-w: 100%;
  }

  .header-top {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .header-nav-left,
  .header-nav-right {
    gap: 0;
  }

  .nav-link {
    padding: 0.5rem 0.4rem;
    font-size: 0.75rem;
  }

  .brand-name {
    font-size: 0.72rem;
    letter-spacing: 0;
  }

  .header-sub.sticky-anchor {
    padding: 0 0.75rem;
  }

  .anchor-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }

  .hero-section { min-height: auto; }
  .hero-inner {
    padding: 2.5rem 1rem;
    justify-content: flex-start;
  }
  .hero-text { text-align: left; max-width: 100%; }
  .hero-actions { justify-content: flex-start; }

  .page-layout { padding: 0 0.75rem; }

  .sidebar {
    flex-direction: column;
  }
  .sidebar-block {
    min-width: unset;
  }

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

  .about-cats-grid,
  .privacy-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .footer-nav dl {
    gap: 0.1rem;
  }

  .entry-table thead th:first-child,
  .table-thumb-cell { display: none; }
}

@media (max-width: 380px) {
  .nav-link { padding: 0.5rem 0.3rem; font-size: 0.68rem; }
  .brand-name { font-size: 0.65rem; }
  .hero-h1 { font-size: 1.3rem; }
}
