@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --bg: #c8e0f4;
  --bg-light: #d8eaf8;
  --bg-dark: #b8d0e8;
  --accent: #f5e0e8;
  --accent-dark: #e8c8d8;
  --ink: #171f26;
  --ink-muted: #3a4a58;
  --ink-faint: #6a7f90;
  --white: #ffffff;
  --shadow-light: rgba(255,255,255,0.85);
  --shadow-dark: rgba(0,0,0,0.12);
  --neu-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  --neu-shadow-sm: -3px -3px 8px var(--shadow-light), 3px 3px 8px var(--shadow-dark);
  --neu-inset: inset -3px -3px 8px var(--shadow-light), inset 3px 3px 8px var(--shadow-dark);
  --radius: 16px;
  --radius-sm: 12px;
  --nav-h: 68px;
  --font-main: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;
  --transition: 150ms ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-muted); }
ul, ol, menu { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ===== 导航 ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 2px 12px var(--shadow-dark);
}

.nav-brand-wrap {
  cursor: default;
  display: block;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  height: var(--nav-h);
  max-width: 1400px;
  margin: 0 auto;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-menu li a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: box-shadow var(--transition), color var(--transition), background var(--transition);
  min-height: 40px;
  white-space: nowrap;
}
.nav-menu li a:hover {
  color: var(--ink);
  box-shadow: var(--neu-shadow-sm);
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
}

.nav-brand {
  flex-shrink: 0;
  text-align: center;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-shadow-sm);
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  transition: box-shadow var(--transition);
  white-space: nowrap;
}
.brand-link:hover { box-shadow: var(--neu-shadow); color: var(--ink); }
.brand-logo-img { width: 28px; height: 28px; border-radius: 6px; }
.brand-name { letter-spacing: -0.02em; }

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-search-input {
  width: 140px;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--bg-dark), var(--bg-light));
  box-shadow: var(--neu-inset);
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  transition: box-shadow var(--transition), width var(--transition);
  min-height: 40px;
}
.nav-search-input:focus {
  width: 180px;
  box-shadow: inset -2px -2px 6px var(--shadow-light), inset 2px 2px 6px var(--shadow-dark), 0 0 0 2px var(--accent-dark);
}

.nav-mobile-menu {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-top: 1px solid var(--bg-dark);
  background: var(--bg);
}
.nav-mobile-menu li a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-muted);
  box-shadow: var(--neu-shadow-sm);
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  min-height: 40px;
  transition: box-shadow var(--transition);
}
.nav-mobile-menu li a:hover { box-shadow: var(--neu-shadow); color: var(--ink); }

/* ===== 通用按钮 ===== */
.neu-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: var(--neu-shadow);
  border: none;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.neu-btn-primary:hover { box-shadow: -3px -3px 10px var(--shadow-light), 3px 3px 10px var(--shadow-dark); color: var(--ink); }
.neu-btn-primary:active { box-shadow: var(--neu-inset); transform: scale(0.98); }

.neu-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-muted);
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  box-shadow: var(--neu-shadow);
  border: none;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.neu-btn-secondary:hover { color: var(--ink); box-shadow: -3px -3px 10px var(--shadow-light), 3px 3px 10px var(--shadow-dark); }
.neu-btn-secondary:active { box-shadow: var(--neu-inset); transform: scale(0.98); }

.neu-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  box-shadow: var(--neu-shadow-sm);
  border: none;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 40px;
  text-decoration: none;
  white-space: nowrap;
}
.neu-btn-sm:hover { box-shadow: var(--neu-shadow); color: var(--ink); }
.neu-btn-sm:active { box-shadow: var(--neu-inset); transform: scale(0.97); }

/* ===== 通用输入框 ===== */
.neu-input {
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--bg-dark), var(--bg-light));
  box-shadow: var(--neu-inset);
  color: var(--ink);
  padding: 0.6rem 1rem;
  outline: none;
  transition: box-shadow var(--transition);
  min-height: 44px;
}
.neu-input:focus {
  box-shadow: inset -2px -2px 6px var(--shadow-light), inset 2px 2px 6px var(--shadow-dark), 0 0 0 2px var(--accent-dark);
}
.neu-input::placeholder { color: var(--ink-faint); }

/* ===== 通用卡片 ===== */
.neu-card {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  box-shadow: var(--neu-shadow);
  border-radius: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}
.neu-card:hover {
  box-shadow: -8px -8px 20px var(--shadow-light), 8px 8px 20px var(--shadow-dark);
  transform: translateY(-2px);
}
.neu-card-sm {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  box-shadow: var(--neu-shadow-sm);
  border-radius: 0;
  transition: box-shadow var(--transition);
}
.neu-card-sm:hover { box-shadow: var(--neu-shadow); }

.neu-list-item {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  box-shadow: var(--neu-shadow-sm);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.neu-list-item:hover {
  box-shadow: var(--neu-shadow);
  transform: translateX(4px);
}

.neu-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: var(--neu-shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 32px;
}
.neu-tag:hover { box-shadow: var(--neu-shadow); transform: scale(1.04); color: var(--ink); }

.neu-aside-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-muted);
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  box-shadow: var(--neu-shadow-sm);
  transition: box-shadow var(--transition), color var(--transition), transform var(--transition);
  min-height: 44px;
}
.neu-aside-link:hover {
  box-shadow: var(--neu-shadow);
  color: var(--ink);
  transform: translateX(3px);
}

/* ===== 布局包装 ===== */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== 首页 Hero ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 6rem 4rem 4rem;
  overflow: hidden;
}
.hero-deco-text {
  position: absolute;
  bottom: -0.1em;
  right: -0.05em;
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 700;
  color: var(--bg-dark);
  opacity: 0.45;
  letter-spacing: -0.05em;
  pointer-events: none;
  line-height: 1;
  font-family: var(--font-mono);
  user-select: none;
}
.hero-left {
  flex: 0 0 45%;
  display: flex;
  justify-content: center;
}
.hero-img-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  box-shadow: var(--neu-shadow);
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--accent), var(--bg-dark));
}
.hero-right {
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 420px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== main/wrap/section/article 四层嵌套（结构契约）===== */
main {
  padding: 3rem 0 4rem;
}

/* ===== 首页各区块 ===== */
.home-content-section,
.cat-intro-section,
.tag-intro-section,
.privacy-main-section,
.about-main-section,
.entry-main-section {
  margin-bottom: 3rem;
}

.home-content-article,
.cat-intro-article,
.tag-intro-article,
.privacy-article,
.about-article,
.entry-article {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  box-shadow: var(--neu-shadow);
}

.categories-section,
.recent-section,
.tags-section,
.child-cards-section,
.tag-entries-section,
.about-stats-section {
  margin-bottom: 3rem;
}

.categories-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.categories-section h2,
.categories-section p.subtitle {
  grid-column: 1 / -1;
}

/* ===== h2 + p.subtitle 组合 ===== */
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
p.subtitle {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ===== 分类卡片 ===== */
.cat-card {
  padding: 1.5rem;
  display: flex;
}
.cat-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}
.cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.cat-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.cat-card-title a { color: var(--ink); text-decoration: none; }
.cat-card-title a:hover { color: var(--ink-muted); }
.cat-card-desc { color: var(--ink-muted); font-size: 0.95rem; }
.cat-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.cat-count { font-size: 0.82rem; color: var(--ink-faint); font-weight: 600; }
.cat-link { }

/* ===== 最新收录列表 ===== */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.entry-item { }
.entry-item-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  flex-wrap: wrap;
}
.entry-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: var(--ink);
  white-space: nowrap;
}
.entry-item-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.entry-item-title:hover { color: var(--ink-muted); text-decoration: underline; }
.entry-item-date {
  font-size: 0.8rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.entry-item-date time { font-family: var(--font-mono); }

/* ===== 标签云 ===== */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ===== 分类 Hero ===== */
.cat-hero {
  position: relative;
  background: linear-gradient(145deg, var(--bg-dark), var(--bg));
  padding: 5rem 4rem 3rem;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-dark);
}
.cat-hero-deco {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--bg);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.cat-hero-inner { max-width: 700px; }
.cat-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 0.5rem;
  color: var(--ink);
}
.cat-hero-desc { color: var(--ink-muted); font-size: 1rem; max-width: 560px; }

/* ===== 子页卡片 ===== */
.child-cards-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.child-cards-section h2,
.child-cards-section p.subtitle {
  display: block;
}
.child-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  position: relative;
}
.child-card-num {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--bg-dark);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
  align-self: flex-start;
  margin-top: 0.1rem;
}
.child-card-img-wrap {
  flex-shrink: 0;
  width: 90px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--neu-shadow-sm);
}
.child-card-img { width: 100%; height: 100%; object-fit: cover; }
.child-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.child-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.child-card-title a { color: var(--ink); text-decoration: none; }
.child-card-title a:hover { color: var(--ink-muted); text-decoration: underline; }
.child-card-desc { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.55; }
.child-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.child-card-foot time { font-size: 0.8rem; color: var(--ink-faint); font-family: var(--font-mono); }

/* ===== tag 页 ===== */
.tag-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-dark), var(--accent));
  padding: 5rem 4rem 3rem;
  overflow: hidden;
}
.tag-hero-deco {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 700;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.2);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.tag-hero-inner { max-width: 700px; }
.tag-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 0.5rem;
  color: var(--ink);
}
.tag-hero-desc { color: var(--ink-muted); font-size: 1rem; }

.tag-entries-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tag-entries-section h2,
.tag-entries-section p.subtitle { display: block; }

.tag-entry-item { }
.tag-entry-item > div,
.tag-entry-item {
  display: flex;
  gap: 1rem;
}
.tag-entry-num {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--bg-dark);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  align-self: flex-start;
  margin-top: 0.15rem;
}
.tag-entry-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem 0.85rem 0;
}
.tag-entry-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.tag-entry-title:hover { color: var(--ink-muted); text-decoration: underline; }
.tag-entry-desc { font-size: 0.88rem; color: var(--ink-muted); }
.tag-entry-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.tag-entry-meta time { font-size: 0.78rem; color: var(--ink-faint); font-family: var(--font-mono); }
.tag-entry-cat {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-decoration: none;
  font-weight: 600;
}
.tag-entry-cat:hover { color: var(--ink-muted); }

/* ===== entry 页 ===== */
.entry-wrap {
  display: flex;
  flex-direction: column;
}
.entry-hero-banner {
  max-height: 380px;
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow-dark);
}
.entry-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.entry-header {
  margin-bottom: 1.5rem;
}
.entry-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.entry-date {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.entry-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.entry-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.entry-lead {
  font-size: 1rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.entry-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-muted);
}
.entry-footer-block {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== about 页 ===== */
.about-hero {
  position: relative;
  padding: 5rem 4rem 3rem;
  background: linear-gradient(135deg, var(--bg), var(--accent));
  overflow: hidden;
}
.about-hero-deco {
  position: absolute;
  right: 1rem;
  bottom: -0.1em;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.25);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.about-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.about-hero-lead { color: var(--ink-muted); font-size: 1rem; max-width: 600px; }
.about-wrap { max-width: 900px; }
.about-stats-section { }
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.82rem; color: var(--ink-faint); font-weight: 600; }

/* ===== privacy 页 ===== */
.privacy-hero {
  padding: 4rem 4rem 2.5rem;
  background: linear-gradient(145deg, var(--bg-dark), var(--bg));
  box-shadow: 0 4px 20px var(--shadow-dark);
}
.privacy-hero-inner { max-width: 800px; }
.privacy-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 0.5rem;
  color: var(--ink);
}
.privacy-wrap { max-width: 800px; }

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ===== 侧边栏（content-aside / home-aside）===== */
.home-aside {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  box-shadow: var(--neu-shadow);
  padding: 2rem;
  margin: 0 auto 3rem;
  max-width: 900px;
  border-radius: var(--radius);
}

.content-aside {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark));
  box-shadow: var(--neu-shadow);
  padding: 2rem;
  margin: 0 auto 3rem;
  max-width: 900px;
  border-radius: var(--radius);
}

.aside-inner { display: flex; flex-direction: column; gap: 1rem; }
.aside-title { font-size: 1.15rem; margin: 0; }
.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.aside-link { }
.aside-sub-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 0.5rem 0 0.4rem;
}
.aside-tags { }
.aside-tags-cloud {
  margin-top: 0.25rem;
}

/* ===== 相关推荐卡片（entry aside）===== */
.rel-cards-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rel-card {
  border-radius: var(--radius-sm);
}
.rel-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  text-decoration: none;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.rel-card-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.rel-card-date { font-size: 0.78rem; color: var(--ink-faint); font-family: var(--font-mono); white-space: nowrap; }
.rel-card-link:hover .rel-card-title { color: var(--ink-muted); }

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(145deg, var(--bg-dark), var(--bg));
  box-shadow: -4px 0 20px var(--shadow-dark);
  padding: 3rem 2rem 1.5rem;
}
.footer-form-block {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.footer-form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}
.footer-subscribe-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-email-input {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}
.footer-subscribe-btn { }

.footer-cols {
  display: flex;
  justify-content: center;
  gap: 4rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
}
.footer-dl { }
.footer-dl dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.footer-dl dd { margin: 0; margin-bottom: 0.35rem; }
.footer-dl dd a {
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}
.footer-dl dd a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--bg-dark);
  padding-top: 1rem;
  text-align: center;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ===== 正文内容样式 ===== */
.page-content {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.page-content h2,
.page-content h3 { color: var(--ink); margin: 1.5em 0 0.5em; }
.page-content p { margin: 0 0 1em; }
.page-content a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--ink-muted); }
.page-content ul, .page-content ol { padding-left: 1.5em; margin: 0 0 1em; }
.page-content li { margin-bottom: 0.4em; }

/* ===== Scroll Reveal 动效 ===== */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-section.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-section, .hero-img-wrap { transition: none !important; }
}

/* ===== 桌面：aside 移到右侧 ===== */
@media (min-width: 1024px) {
  .home-aside,
  .content-aside {
    position: relative;
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius);
  }

  /* entry 页双栏 */
  .entry-wrap,
  body:has(.entry-aside) main {
    /* handled via body layout below */
  }

  body {
    /* aside 浮动右侧通过 body 布局控制不同页面太复杂，这里用全局 flex 容器 */
  }

  main + .content-aside,
  main + .home-aside {
    position: absolute;
    right: 2rem;
    top: auto;
    width: 260px;
  }

  /* 用 CSS grid 做侧边栏布局 */
  .layout-with-aside {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
  }
}

/* ===== 响应式布局 ===== */
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 7rem 2rem 3rem;
    gap: 2.5rem;
  }
  .hero-right { text-align: left; align-items: flex-start; }
  .hero-left { flex: none; width: 100%; max-width: 360px; }
  .hero-img-wrap { max-width: 100%; }
  .hero-actions { justify-content: flex-start; }
  .hero-deco-text { font-size: clamp(5rem, 22vw, 10rem); }

  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .cat-hero, .tag-hero, .about-hero, .privacy-hero { padding: 4rem 2rem 2rem; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  .nav-inner { padding: 0 1rem; gap: 0.5rem; }
  .nav-left .nav-menu-left { display: none; }
  .nav-right .nav-menu-right { display: none; }
  .nav-search-input { width: 110px; }
  .nav-search-input:focus { width: 130px; }

  .nav-mobile-menu { display: flex; }

  .wrap { padding: 0 1rem; }

  main { padding: 2rem 0 3rem; }

  .home-content-article,
  .cat-intro-article,
  .tag-intro-article,
  .privacy-article,
  .about-article,
  .entry-article { padding: 1.25rem; }

  .cat-card { padding: 1.25rem; }
  .child-card { flex-wrap: wrap; gap: 0.75rem; }
  .child-card-img-wrap { display: none; }

  .footer-cols { gap: 2rem; }

  .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .hero-section { padding: 5rem 1.25rem 2.5rem; }

  .cat-hero, .tag-hero, .about-hero, .privacy-hero { padding: 3rem 1.25rem 1.75rem; }

  .home-aside, .content-aside { padding: 1.25rem; margin: 0 1rem 2rem; border-radius: var(--radius-sm); }

  .entry-hero-banner { max-height: 220px; }
  .entry-hero-img { height: 220px; }
}

@media (max-width: 400px) {
  body { font-size: 16px; }
  h2 { font-size: 1.25rem; }
}
