@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

/* ===== 全局重置与色彩系统 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --dark: #121212;
  --surface: #1a1a1a;
  --surface2: #222222;
  --border: #2e2e2e;
  --border-bright: #444444;
  --text: #e8e0d8;
  --text-dim: #a09890;
  --text-muted: #666660;
  --accent: #d4956a;
  --accent2: #8b6f4e;
  --accent-glow: #d4956a40;
  --gold: #c9a96e;
  --radius: 18px;
  --radius-sm: 8px;
  --nav-h: 60px;
  --font-serif: 'EB Garamond', 'Crimson Text', 'Georgia', 'Times New Roman', serif;
  color-scheme: dark;
}

html {
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: smooth;
}

body.dark-body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-serif);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover, a:focus {
  color: var(--gold);
  text-shadow: 0 0 10px var(--accent-glow);
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

ul, menu {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
h5 { font-size: 0.95rem; font-weight: 600; color: var(--gold); letter-spacing: 0.05em; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== 点阵底纹 ===== */
.dot-bg {
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* ===== 导航（底部固定条） ===== */
.nav-details {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-details summary {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  height: var(--nav-h);
  padding: 0 1rem;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu li {
  flex-shrink: 0;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 0.9rem;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s, text-shadow 0.2s;
  min-height: 44px;
}

.nav-menu li a:hover,
.nav-menu li a[aria-current="page"] {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* 移动端导航展开 */
@media (max-width: 767px) {
  .nav-details {
    bottom: 0;
  }

  .nav-details summary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    cursor: pointer;
    list-style: none;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
  }

  .nav-details summary::-webkit-details-marker { display: none; }

  .nav-details summary .nav-brand-link {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.06em;
  }

  .nav-details[open] .nav-menu {
    flex-wrap: wrap;
    height: auto;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
    gap: 4px;
  }

  .nav-details[open] .nav-menu li a {
    height: auto;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
  }
}

/* 品牌名在导航居中——桌面端插入中间锚点 */
.nav-brand {
  display: none;
}

/* ===== 页面底部预留导航高度 ===== */
.page-home,
.page-category,
.page-entry,
.page-tag,
.page-about,
.page-privacy,
.page-data,
.page-default {
  padding-bottom: calc(var(--nav-h) + 1px);
}

/* ===== Hero 区（首页） ===== */
.hero-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 2rem 6rem;
  gap: 3rem;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-aside {
  flex: 1 1 48%;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.hero-figure {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-figure img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.hero-placeholder {
  background-image: radial-gradient(circle, var(--border-bright) 1px, transparent 1px);
  background-size: 20px 20px;
}

.hero-placeholder .dot-grid {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-text {
  flex: 1 1 46%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  border: 1px solid var(--accent2);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.hero-text .subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.2rem;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 0 20px var(--accent-glow);
  text-shadow: none;
}

@media (max-width: 767px) {
  .hero-section {
    flex-direction: column;
    min-height: 100vh;
    padding: 3rem 1.2rem 5rem;
    gap: 2rem;
  }
  .hero-aside {
    max-width: 100%;
  }
  .hero-figure {
    aspect-ratio: 4/3;
  }
  .hero-text {
    text-align: center;
  }
}

/* ===== 首页主体 ===== */
.home-main {
  padding: 0 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cats-section {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.cats-section h2 {
  margin-bottom: 0.4rem;
}

.cats-figure {
  margin-top: 2rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.cat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: var(--dark);
  transition: border-color 0.2s, transform 0.2s;
}

.cat-card:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
}

.cat-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.cat-card h3 a {
  color: var(--text);
}

.cat-card h3 a:hover {
  color: var(--accent);
}

.cat-card .subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sub-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  transition: color 0.2s, border-color 0.2s;
}

.sub-link:hover {
  color: var(--accent);
  border-color: var(--accent2);
  text-shadow: none;
}

.content-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
}

.content-aside {
  order: 2;
}

.content-body {
  order: 1;
}

@media (max-width: 767px) {
  .home-main { padding: 0 1rem 1rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .content-section { grid-template-columns: 1fr; }
  .content-aside { order: 2; }
}

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

/* ===== 通用侧边栏 ===== */
.aside-links,
.entry-sidebar ul,
.cat-aside ul,
.cat-meta-aside ul,
.about-aside ul,
.about-sidebar ul,
.privacy-aside ul,
.privacy-sidebar ul,
.tag-aside ul,
.tag-sidebar ul,
.data-aside ul,
.data-sidebar ul,
.default-aside ul,
.default-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0.6rem;
}

.aside-links li a,
.entry-sidebar ul li a,
.cat-aside ul li a,
.cat-meta-aside ul li a,
.about-aside ul li a,
.about-sidebar ul li a,
.privacy-aside ul li a,
.privacy-sidebar ul li a,
.tag-aside ul li a,
.tag-sidebar ul li a,
.data-aside ul li a,
.data-sidebar ul li a,
.default-aside ul li a,
.default-sidebar ul li a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s;
  min-height: 40px;
}

.aside-links li a:hover,
.entry-sidebar ul li a:hover,
.cat-aside ul li a:hover {
  color: var(--accent);
  border-color: var(--accent2);
  text-shadow: none;
}

.related-list {
  margin-bottom: 1.5rem;
}

.related-list li a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s;
  min-height: 40px;
}

.related-list li a:hover {
  color: var(--accent);
  border-color: var(--accent2);
  text-shadow: none;
}

/* ===== 分类页 ===== */
.cat-hero-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 3rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.cat-hero-fig {
  flex: 1 1 60%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--dark);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cat-hero-fig h1 {
  margin-bottom: 0.6rem;
}

.cat-aside {
  flex: 0 0 220px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
}

.cat-content-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-meta-aside {
  padding-top: 1rem;
}

.cat-content-body {
  min-width: 0;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--dark);
}

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

.breadcrumb span {
  color: var(--accent);
}

/* 子页 dl 列表 */
.entry-dl {
  margin-top: 0.8rem;
}

.entry-dl dt {
  margin-top: 0.8rem;
}

.entry-dl dt a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  border-left: 2px solid var(--accent2);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color 0.2s, background 0.2s;
  min-height: 40px;
}

.entry-dl dt a:hover {
  color: var(--accent);
  background: var(--surface2);
  text-shadow: none;
}

.entry-dl dd {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 10px 0;
  line-height: 1.4;
}

/* Entry 卡片网格 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.entry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  transition: border-color 0.2s, transform 0.2s;
}

.entry-card:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
}

.entry-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}

.entry-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: filter 0.3s;
}

.entry-card:hover .entry-thumb-wrap img {
  filter: brightness(1);
}

.entry-info {
  padding: 1.2rem;
}

.entry-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.entry-info h3 a {
  color: var(--text);
}

.entry-info h3 a:hover {
  color: var(--accent);
}

.entry-info .subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.entry-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .cat-content-section { grid-template-columns: 1fr; }
  .cat-hero-section { flex-direction: column; }
  .cat-aside { flex: 1 1 100%; }
}

@media (max-width: 767px) {
  .cat-hero-section { padding: 2rem 1rem 1.5rem; }
  .cat-content-section { padding: 1rem; gap: 1.5rem; }
  .entry-grid { grid-template-columns: 1fr; }
}

/* ===== 条目详情页 ===== */
.entry-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.entry-header-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.entry-hero-figure {
  flex: 1 1 46%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--dark);
}

.entry-hero-figure.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.entry-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.entry-header-aside {
  flex: 1 1 50%;
}

.entry-header-aside h1 {
  margin: 0.8rem 0 0.6rem;
}

.entry-header-aside .subtitle {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-item {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-item time {
  color: var(--accent);
}

.entry-body-section {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  padding: 2.5rem 0;
}

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

.entry-sidebar {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
  align-self: start;
  position: sticky;
  top: 1rem;
}

.entry-sidebar h4 {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .entry-body-section { grid-template-columns: 1fr; }
  .entry-sidebar { position: static; }
}

@media (max-width: 767px) {
  .entry-main { padding: 0 1rem; }
  .entry-header-section { flex-direction: column; gap: 1.5rem; padding: 2rem 0 1.5rem; }
  .entry-hero-figure { flex: none; width: 100%; }
}

/* ===== 标签页 ===== */
.tag-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tag-header-section {
  display: flex;
  gap: 2rem;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.tag-hero-fig {
  flex: 1 1 65%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--dark);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tag-aside {
  flex: 0 0 220px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
}

.tag-content-section {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  padding: 2rem 0;
}

.tag-content-body {
  min-width: 0;
}

.tag-sidebar {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
  align-self: start;
}

@media (max-width: 900px) {
  .tag-content-section { grid-template-columns: 1fr; }
  .tag-header-section { flex-direction: column; }
}

@media (max-width: 767px) {
  .tag-main { padding: 0 1rem; }
  .tag-header-section { padding: 2rem 0 1.5rem; }
}

/* ===== 关于页 ===== */
.about-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-intro-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.about-figure {
  flex: 1 1 60%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--dark);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.about-logo {
  max-height: 80px;
  width: auto;
  filter: brightness(0.9);
}

.about-aside {
  flex: 0 0 220px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
}

.about-content-section {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  padding: 2rem 0;
}

.about-sidebar {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
  align-self: start;
}

@media (max-width: 900px) {
  .about-content-section { grid-template-columns: 1fr; }
  .about-intro-section { flex-direction: column; }
}

@media (max-width: 767px) {
  .about-main { padding: 0 1rem; }
}

/* ===== 隐私页 ===== */
.privacy-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.privacy-header-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.privacy-fig {
  flex: 1 1 65%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  background: var(--dark);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.privacy-aside {
  flex: 0 0 200px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
}

.privacy-content-section {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  padding: 2rem 0;
}

.privacy-sidebar {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
  align-self: start;
}

@media (max-width: 900px) {
  .privacy-content-section { grid-template-columns: 1fr; }
  .privacy-header-section { flex-direction: column; }
}

@media (max-width: 767px) {
  .privacy-main { padding: 0 1rem; }
}

/* ===== 数据页 / 默认页 ===== */
.data-main,
.default-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.data-header-section,
.default-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.data-fig,
.default-fig {
  flex: 1 1 65%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  background: var(--dark);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.data-aside,
.default-aside {
  flex: 0 0 200px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
}

.data-content-section,
.default-content-section {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  padding: 2rem 0;
}

.data-sidebar,
.default-sidebar {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark);
  align-self: start;
}

@media (max-width: 900px) {
  .data-content-section,
  .default-content-section { grid-template-columns: 1fr; }
  .data-header-section,
  .default-section { flex-direction: column; }
}

@media (max-width: 767px) {
  .data-main,
  .default-main { padding: 0 1rem; }
}

/* ===== 正文样式 ===== */
.content-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 72ch;
}

.content-prose h2,
.content-prose h3,
.content-prose h4 {
  margin: 2rem 0 0.8rem;
}

.content-prose p {
  margin-bottom: 1.2rem;
}

.content-prose ul,
.content-prose ol {
  margin: 0 0 1.2rem 1.5rem;
}

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

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

.content-prose strong, .content-prose b {
  color: var(--gold);
  font-weight: 700;
}

.content-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1.2rem;
  background: var(--dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text-dim);
  font-style: italic;
}

.content-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.content-prose th,
.content-prose td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}

.content-prose th {
  background: var(--surface);
  color: var(--gold);
  font-weight: 700;
}

.content-prose tr:nth-child(even) td {
  background: var(--surface);
}

.content-prose code {
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--accent);
}

.content-prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* ===== h2 + .subtitle 样式 ===== */
.subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

h2 + .subtitle {
  margin-top: 0.4rem;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.footer-col h5 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col ul li a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-col ul li a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent2);
  text-shadow: none;
}

/* 订阅表单 */
.subscribe-form {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  min-height: 42px;
  transition: border-color 0.2s;
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.subscribe-form button {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 42px;
  min-width: 60px;
  transition: background 0.2s, color 0.2s;
}

.subscribe-form button:hover {
  background: var(--accent);
  color: var(--black);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.2rem 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: var(--accent);
  text-shadow: none;
}

@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 1.5rem;
    gap: 1.5rem;
  }
  .subscribe-form {
    flex-direction: column;
  }
}

/* ===== 滚动揭示动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 交错动效（JS 配合 stagger-delay） ===== */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal[data-delay] { transition-delay: 0s; }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

/* ===== 选中高亮 ===== */
::selection {
  background: var(--accent);
  color: var(--black);
}

/* ===== focus 可见 ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
