@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* ===== 基础变量 ===== */
:root {
  --mint: #b4fde1;
  --baby-blue: #add8e6;
  --ink: #172620;
  --mint-dark: #7de8c0;
  --blue-dark: #7bbcd0;
  --bg: #f0fdf8;
  --bg2: #e8f8f2;
  --white: #ffffff;
  --text: #1a2e28;
  --text-muted: #4a6e62;
  --radius: 18px;
  --radius-sm: 10px;
  --border: 3px solid var(--ink);
  --shadow-clay: 4px 4px 0px var(--ink), inset -2px -2px 6px rgba(23,38,32,0.12);
  --shadow-card: 3px 3px 0px var(--ink), inset -1px -1px 4px rgba(23,38,32,0.08);
  --shadow-hover: 6px 6px 0px var(--ink), inset -2px -2px 8px rgba(23,38,32,0.15);
  --transition: 200ms cubic-bezier(0.34, 1.56);
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-head: 'Nunito', 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
hr {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 0.75rem 0 1.2rem;
  opacity: 0.25;
}

/* ===== 导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mint);
  border-bottom: var(--border);
  box-shadow: 0 3px 0 var(--ink);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  gap: 1rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.nav-links.nav-right { justify-content: flex-end; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translateY(-1px);
}
.brand-center {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
  padding: 0.3rem 0.8rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.brand-logo {
  max-height: 40px;
  width: auto;
  border-radius: 8px;
}

/* ===== 锚点条 ===== */
.anchor-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--baby-blue);
  border-bottom: 2px solid var(--ink);
}
.anchor-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-bar-inner::-webkit-scrollbar { display: none; }
.anchor-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  border-right: 1px solid rgba(23,38,32,0.2);
  transition: background var(--transition);
}
.anchor-item:hover { background: rgba(255,255,255,0.5); }

/* ===== Hero (首页) ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--mint) 0%, var(--baby-blue) 100%);
  border-bottom: var(--border);
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(8rem, 20vw, 18rem);
  color: rgba(23,38,32,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 1rem;
}
.hero-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  border: var(--border);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--ink);
  color: var(--mint);
  box-shadow: var(--shadow-clay);
}
.btn-primary:hover { box-shadow: var(--shadow-hover); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover { box-shadow: var(--shadow-hover); }
.hero-image {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.hero-bubble {
  background: var(--white);
  border: var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-clay);
  padding: 1rem 1.5rem;
  animation: clay-float 3s ease-in-out infinite;
}
.hero-bubble.bubble-2 { animation-delay: 0.8s; margin-left: 2rem; }
.hero-bubble.bubble-3 { animation-delay: 1.6s; margin-left: 1rem; }
.bubble-inner { display: flex; align-items: center; gap: 0.75rem; }
.bubble-icon { font-size: 1.8rem; }
.bubble-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}
@keyframes clay-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== main 布局 ===== */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
.page-home main,
.page-tag main {
  grid-template-columns: 1fr 280px;
}

/* ===== 区块通用 ===== */
.content-section {
  margin-bottom: 2.5rem;
}
.section-header { margin-bottom: 0; }
.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

/* ===== 话题卡片网格 ===== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.topic-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--ink);
}
.topic-block:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-hover);
}
.topic-block > strong {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  display: block;
}
.topic-desc { font-size: 0.88rem; opacity: 0.8; }
.card-count {
  display: inline-block;
  background: var(--ink);
  color: var(--mint);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.25rem;
  align-self: flex-start;
}

/* ===== 文章卡片网格 ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.article-card {
  background: var(--baby-blue);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: stagger-in 0.4s cubic-bezier(0.34, 1.56) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-inner { padding: 1.1rem 1.25rem; }
.card-parent {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--mint);
  border-radius: 100px;
  padding: 0.1rem 0.55rem;
  margin-bottom: 0.4rem;
}
.card-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { text-decoration: underline; }
.card-desc { font-size: 0.86rem; opacity: 0.8; margin-bottom: 0.5rem; }
.card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== 子页列表（子页块，a > strong + span） ===== */
.child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.child-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: stagger-in 0.4s cubic-bezier(0.34, 1.56) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.child-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.child-card > strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  display: block;
}
.child-desc { font-size: 0.85rem; opacity: 0.75; }

/* ===== 正文 prose ===== */
.prose-wrap {
  max-width: 720px;
}
.prose-wrap h2,
.prose-wrap h3 {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--ink);
  margin: 1.6rem 0 0.5rem;
}
.prose-wrap h2 { font-size: 1.2rem; }
.prose-wrap h3 { font-size: 1.05rem; }
.prose-wrap p { margin-bottom: 1rem; }
.prose-wrap ul, .prose-wrap ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-wrap li { margin-bottom: 0.4rem; }
.prose-wrap a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.prose-wrap a:hover { opacity: 0.75; }
.prose-wrap blockquote {
  border-left: 4px solid var(--mint-dark);
  background: var(--mint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-style: italic;
}
.prose-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.prose-wrap th, .prose-wrap td {
  border: 2px solid var(--ink);
  padding: 0.5rem 0.75rem;
}
.prose-wrap th {
  background: var(--mint);
  font-family: var(--font-head);
  font-weight: 800;
}

/* ===== 侧边栏 ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.25rem;
}
.sidebar-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar-link {
  display: block;
  padding: 0.45rem 0.7rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--transition);
}
.sidebar-link:hover { background: var(--mint); }
.sidebar-note { font-size: 0.86rem; color: var(--text-muted); }
.parent-link {
  display: inline-block;
  background: var(--baby-blue);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  transition: box-shadow var(--transition);
}
.parent-link:hover { box-shadow: var(--shadow-card); }
.related-links { display: flex; flex-direction: column; gap: 0.4rem; }
.related-link {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.7rem;
  background: var(--bg2);
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.87rem;
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition);
}
.related-link strong { font-weight: 700; }
.related-link:hover { background: var(--mint); border-color: var(--ink); }
.sib-links { display: flex; flex-direction: column; gap: 0.3rem; }
.sib-link {
  display: block;
  padding: 0.4rem 0.7rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--transition);
}
.sib-link:hover { background: var(--baby-blue); }

/* ===== 标签页 ===== */
.tag-hero {
  background: linear-gradient(120deg, var(--baby-blue) 0%, var(--mint) 100%);
  border-bottom: var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}
.tag-hero-label {
  display: inline-block;
  background: var(--ink);
  color: var(--mint);
  border-radius: 100px;
  padding: 0.2rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.tag-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.tag-hero-desc { font-size: 1rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.tag-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  min-height: 36px;
  background: var(--baby-blue);
  border: 2px solid var(--ink);
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tag-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ===== 话题英雄 ===== */
.topic-hero {
  position: relative;
  background: linear-gradient(135deg, var(--baby-blue) 0%, var(--mint) 100%);
  border-bottom: var(--border);
  padding: 3.5rem 1.5rem 2.5rem;
  overflow: hidden;
}
.topic-hero-bg {
  position: absolute;
  right: 2%;
  bottom: -0.1em;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 12rem);
  color: rgba(23,38,32,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.topic-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.topic-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: var(--ink);
  margin: 0.5rem 0;
}
.topic-hero-desc { font-size: 1rem; color: var(--text-muted); max-width: 560px; }

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.breadcrumb a { font-weight: 600; color: var(--ink); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb em { font-style: normal; font-weight: 700; color: var(--ink); }

/* ===== 文章页 ===== */
.article-wrap {
  min-width: 0;
}
.article-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ink);
  margin: 0.5rem 0 0.6rem;
  line-height: 1.3;
}
.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.article-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}
.article-prose { max-width: 680px; }
.sib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.sib-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background: var(--baby-blue);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sib-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.sib-card > strong { font-family: var(--font-head); font-weight: 800; font-size: 0.92rem; }
.sib-card > span { font-size: 0.82rem; opacity: 0.8; }

/* ===== 关于页 ===== */
.about-banner {
  position: relative;
  background: linear-gradient(120deg, var(--mint) 0%, var(--baby-blue) 100%);
  border-bottom: var(--border);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  overflow: hidden;
}
.about-banner-deco {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(6rem, 18vw, 14rem);
  color: rgba(23,38,32,0.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.about-banner-inner { position: relative; }
.about-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.about-sub { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; }
.about-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-clay);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.about-avatar {
  font-size: 2.5rem;
  flex-shrink: 0;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-body { flex: 1; font-size: 1rem; }
.about-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.about-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-nav-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.about-nav-card > strong { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; }
.about-nav-card > span { font-size: 0.82rem; opacity: 0.8; }

/* ===== 隐私页 ===== */
.privacy-wrap { min-width: 0; }
.privacy-h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.privacy-date { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.privacy-lead { font-size: 1rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.5rem; }
.privacy-prose { max-width: 680px; }
.privacy-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.privacy-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.3rem;
  min-height: 44px;
  background: var(--baby-blue);
  border: var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.privacy-link-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ===== 页脚 ===== */
.site-footer {
  margin-top: 3rem;
  border-top: var(--border);
  background: var(--ink);
  color: var(--mint);
}
.footer-top {
  background: var(--mint);
  border-bottom: var(--border);
  padding: 2rem 1.5rem;
}
.footer-subscribe {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-subscribe h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.footer-subscribe hr { border-color: var(--ink); opacity: 0.2; }
.footer-subscribe address {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-subscribe address p { font-size: 0.9rem; color: var(--text-muted); }
.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.3rem;
  min-height: 44px;
  background: var(--ink);
  color: var(--mint);
  border: var(--border);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.footer-contact-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.footer-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer-logo .brand-text { color: var(--mint); background: transparent; border-color: var(--mint); box-shadow: none; }
.footer-logo .brand-logo { max-height: 36px; }
.footer-desc {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--baby-blue);
  line-height: 1.6;
}
.footer-brand { color: var(--mint); }
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-links li a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0;
  min-height: 40px;
  font-size: 0.9rem;
  color: var(--baby-blue);
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--mint); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(180,253,225,0.15);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(180,253,225,0.6);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===== 动效 ===== */
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.stagger-item { animation: stagger-in 0.4s cubic-bezier(0.34, 1.56) both; }

/* ===== 工具 ===== */
.empty-note { font-size: 0.9rem; color: var(--text-muted); padding: 1rem 0; }

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    height: auto;
    padding: 0.5rem 1rem;
    gap: 0.3rem;
    align-items: stretch;
  }
  .brand-center { justify-content: center; order: -1; padding: 0.4rem 0; }
  .nav-links { justify-content: center; flex: none; }
  .nav-links.nav-right { justify-content: center; }
  .nav-link { font-size: 0.78rem; padding: 0.4rem 0.55rem; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1rem;
  }
  .hero-image { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
  .hero-bubble { padding: 0.7rem 1rem; }
  .hero-bubble.bubble-2, .hero-bubble.bubble-3 { margin-left: 0; }
  .hero-h1 { font-size: 1.7rem; }

  main {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
  }
  .sidebar { position: static; }

  .topic-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .child-grid { grid-template-columns: 1fr; }
  .sib-grid { grid-template-columns: 1fr; }
  .about-nav-grid { grid-template-columns: 1fr; }

  .footer-body { grid-template-columns: 1fr; }
  .about-card { flex-direction: column; }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .topic-grid { grid-template-columns: 1fr; }
  .hero-section { min-height: auto; }
  .hero-h1 { font-size: 1.45rem; }
  .topic-h1 { font-size: 1.45rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .footer-subscribe address { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

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