/* ===== 字体引入 ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS 自定义属性 ===== */
:root {
  --c-primary: #eb879c;
  --c-primary-light: #f0a0b3;
  --c-primary-dark: #d4607a;
  --c-secondary: #ffb6c1;
  --c-secondary-light: #ffd6de;
  --c-bg: #26171a;
  --c-bg-card: #321e22;
  --c-bg-card2: #3a2228;
  --c-bg-overlay: #1e1215;
  --c-text: #f5e8eb;
  --c-text-muted: #c8a8b0;
  --c-text-faint: #8a6570;
  --c-border: #4a2d33;
  --c-border-light: #5a3840;
  --radius: 0px;
  --radius-sm: 0px;
  --radius-lg: 0px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3), 0 1px 2px rgba(235,135,156,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 2px 6px rgba(235,135,156,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5), 0 4px 12px rgba(235,135,156,0.15);
  --shadow-glow: 0 0 20px rgba(235,135,156,0.25);
  --bn-height: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--bn-height);
}

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

a:hover {
  color: var(--c-primary-light);
}

a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

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

ol, ul {
  list-style: none;
}

/* ===== 点阵底纹 ===== */
.dot-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(235,135,156,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}

/* ===== 页面包裹 ===== */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Hero - 首页 ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-left: 3px solid var(--c-primary);
  padding-left: 0.75rem;
}

.hero-h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.hero-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(235,135,156,0.35);
}

.hero-deco {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  position: relative;
}

.hero-deco-circle {
  position: absolute;
  border-radius: 50%;
}

.hero-deco-circle.c1 {
  width: 200px;
  height: 200px;
  top: 10px;
  left: 10px;
  background: radial-gradient(circle at 35% 35%, rgba(235,135,156,0.25), rgba(38,23,26,0.1));
  border: 1px solid rgba(235,135,156,0.2);
  box-shadow: 0 0 40px rgba(235,135,156,0.15);
}

.hero-deco-circle.c2 {
  width: 120px;
  height: 120px;
  bottom: 20px;
  right: 10px;
  background: radial-gradient(circle at 60% 40%, rgba(255,182,193,0.2), transparent);
  border: 1px solid rgba(255,182,193,0.15);
}

.hero-deco-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(235,135,156,0.3) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* ===== Topic Hero ===== */
.topic-hero {
  position: relative;
  padding: 4rem 0 2.5rem;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.topic-hero-inner {
  flex: 1;
}

.topic-eyebrow,
.tag-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--c-primary);
  padding-left: 0.75rem;
}

.topic-hero h1,
.tag-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.topic-sub,
.tag-sub {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.topic-hero-deco {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  position: relative;
}

.thd-circle {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,135,156,0.2), transparent);
  border: 1px solid rgba(235,135,156,0.15);
}

.thd-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(235,135,156,0.35) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.6;
}

/* ===== Tag Hero ===== */
.tag-hero {
  padding: 3.5rem 0 2rem;
}

.tag-hero-inner {
  max-width: 640px;
}

/* ===== About Hero ===== */
.about-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 4rem 0 2.5rem;
}

.about-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.about-avatar-placeholder {
  font-size: 2rem;
  font-weight: 700;
  color: #26171a;
}

.about-hero-text h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}

.about-tagline {
  color: var(--c-text-muted);
  font-size: 1rem;
}

/* ===== Privacy Header ===== */
.privacy-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 0;
}

.privacy-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.75rem;
}

/* ===== 内容区域布局 ===== */
.content-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0 3rem;
}

.home-content-section,
.about-content-section,
.privacy-content-section {
  padding-top: 1rem;
}

/* ===== 侧边栏（左侧） ===== */
.sidebar {
  flex-shrink: 0;
  width: 220px;
  position: sticky;
  top: 1rem;
}

.sidebar-inner {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

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

.sidebar-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 1rem 0 0.5rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  display: block;
  padding: 0.5rem 0.6rem;
  color: var(--c-text-muted);
  font-size: 0.88rem;
  border-left: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}

.sidebar-link strong {
  font-weight: 500;
  color: inherit;
}

.sidebar-link:hover {
  color: var(--c-text);
  border-left-color: var(--c-primary);
  background: rgba(235,135,156,0.06);
  padding-left: 0.9rem;
}

.sidebar-tags {
  margin-top: 0.5rem;
}

.sidebar-parent {
  margin-bottom: 1rem;
}

.sidebar-parent-link {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  transition: color var(--transition);
}

.sidebar-parent-link:hover {
  color: var(--c-primary);
}

.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: rgba(235,135,156,0.1);
  border: 1px solid rgba(235,135,156,0.25);
  color: var(--c-primary);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0.2rem 0.15rem;
  transition: all var(--transition);
}

.tag-pill:hover {
  background: rgba(235,135,156,0.2);
  color: var(--c-primary-light);
  transform: translateY(-1px);
}

/* ===== 正文容器 ===== */
.content-body {
  flex: 1;
  min-width: 0;
}

/* ===== 日期 ===== */
.page-date {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--c-text-faint);
  margin-bottom: 0.75rem;
  margin-right: 1rem;
}

.mod-date {
  margin-left: 0;
}

/* ===== H1 ===== */
.content-body h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 1.5rem;
}

/* ===== 文章正文 ===== */
.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 2rem 0 0.875rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--c-primary);
  line-height: 1.4;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text-muted);
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.article-content a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--c-primary-light);
}

.article-content strong {
  color: var(--c-text);
  font-weight: 600;
}

.article-content blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 0.75rem 1rem;
  background: rgba(235,135,156,0.06);
  margin: 1.25rem 0;
  color: var(--c-text-muted);
  font-style: italic;
}

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

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

.article-content th {
  background: var(--c-bg-card2);
  color: var(--c-primary);
  font-weight: 600;
}

.article-content td {
  background: var(--c-bg-card);
}

/* ===== 文章 Hero 图 ===== */
.article-hero-img-wrap {
  margin-bottom: 1.5rem;
}

.article-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* ===== Article Meta ===== */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.breadcrumb-link {
  color: var(--c-text-muted);
  font-size: 0.82rem;
}

.breadcrumb-link:hover {
  color: var(--c-primary);
}

.breadcrumb-sep {
  color: var(--c-text-faint);
  font-size: 0.82rem;
}

/* ===== 文章底部按钮 ===== */
.article-footer-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

.btn-back {
  display: inline-block;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
  transition: all var(--transition);
}

.btn-back:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
  background: rgba(235,135,156,0.06);
}

.btn-secondary {
  display: inline-block;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
  transition: all var(--transition);
  margin-right: 0.75rem;
  margin-top: 1rem;
  min-height: 44px;
}

.btn-secondary:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
}

/* ===== section 标题 ===== */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title span {
  position: relative;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--c-border), transparent);
  margin-left: 0.5rem;
}

/* ===== 首页专区 ===== */
.home-article-content {
  margin-bottom: 2.5rem;
}

.topics-grid-section,
.recent-articles-section {
  margin-bottom: 2.5rem;
}

/* ===== Topic 卡片网格（子页列表：并列 <a> 直接子元素 strong） ===== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.topic-card {
  display: block;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  padding: 1.25rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--c-primary);
  transition: height var(--transition);
}

.topic-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.topic-card:hover::before {
  height: 100%;
}

.tc-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.tc-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.tc-count {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--c-primary);
  background: rgba(235,135,156,0.1);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(235,135,156,0.2);
}

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

.article-card {
  display: block;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  padding: 1.25rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ac-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.ac-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.card-date {
  display: block;
  font-size: 0.75rem;
  color: var(--c-text-faint);
}

/* ===== 子页卡片（children-grid）===== */
.children-section {
  margin-top: 2.5rem;
}

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

.child-card {
  display: block;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  padding: 1.25rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.child-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cc-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cc-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* ===== Topic Intro ===== */
.topic-intro-content,
.tag-intro-content {
  margin-bottom: 1.5rem;
}

/* ===== About 专属 ===== */
.about-content-wrap {
  margin-bottom: 1.5rem;
}

.about-links-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== Privacy 专属 ===== */
.prose-privacy {
  max-width: 720px;
}

.privacy-footer-row {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
footer {
  margin-top: 3rem;
  border-top: 1px solid var(--c-border);
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
}

footer > section {
  min-width: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}

.footer-desc {
  font-size: 0.83rem;
  color: var(--c-text-faint);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 0.875rem;
}

footer nav ol {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

footer nav ol li a {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  transition: color var(--transition);
  padding: 0.1rem 0;
  display: inline-block;
}

footer nav ol li a:hover {
  color: var(--c-primary);
}

.footer-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.copyright {
  font-size: 0.78rem;
  color: var(--c-text-faint);
  margin-bottom: 0.4rem;
}

.footer-legal {
  font-size: 0.78rem;
  color: var(--c-text-faint);
}

.footer-legal a {
  color: var(--c-text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--c-primary);
}

/* ===== 底部固定导航条 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--bn-height);
  background: var(--c-bg-overlay);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bottom-nav > ol {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-text-faint);
  font-size: 0.7rem;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  min-width: 44px;
  transition: color var(--transition);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--c-primary);
}

.bn-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.bn-label {
  line-height: 1;
}

.bn-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bn-brand-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  transform: translateY(-8px);
}

.bn-brand-btn:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(235,135,156,0.4);
}

.bn-brand-btn:focus-visible {
  outline: 2px solid var(--c-secondary);
  outline-offset: 2px;
}

.brand-text-icon {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ===== 全屏菜单 ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26,15,18,0.97);
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--c-border);
}

.fm-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
}

.fm-close {
  width: 44px;
  height: 44px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.fm-close:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.fm-search {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--c-border);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.7rem 1rem;
  min-height: 44px;
  outline: none;
  transition: border-color var(--transition);
}

.search-input::placeholder {
  color: var(--c-text-faint);
}

.search-input:focus {
  border-color: var(--c-primary);
}

.search-btn {
  background: var(--c-primary);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--transition);
}

.search-btn:hover {
  background: var(--c-primary-dark);
}

.fm-nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fm-nav-list li a {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--c-text-muted);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(74,45,51,0.5);
  transition: all var(--transition);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.fm-nav-list li a:hover,
.fm-nav-list li a[aria-current="page"] {
  color: var(--c-primary);
  padding-left: 1.5rem;
}

/* ===== Scroll Reveal 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 280ms ease, transform 280ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-cta,
  .topic-card,
  .article-card,
  .child-card,
  .sidebar-link,
  .bn-brand-btn,
  .fm-close,
  .fullscreen-menu {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    grid-column: span 2;
  }

  .sidebar {
    width: 180px;
  }

  .hero-deco {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 680px) {
  .content-section {
    flex-direction: column;
  }

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

  .sidebar-inner {
    padding: 1rem;
  }

  .hero-section {
    min-height: auto;
    padding: 3.5rem 0 2rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-deco {
    width: 120px;
    height: 120px;
    align-self: flex-end;
    margin-top: -3rem;
  }

  .topics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .articles-grid,
  .children-grid {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-copy {
    grid-column: span 1;
  }

  .about-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.5rem 0 1.5rem;
  }

  .topic-hero {
    padding: 2.5rem 0 1.5rem;
  }

  .topic-hero-deco {
    display: none;
  }
}

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

  .page-wrap {
    padding: 0 0.875rem;
  }

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

/* ===== h2/h3 > span 装饰 ===== */
h2 > span,
h3 > span {
  display: inline;
}

.sidebar-title > span,
.sidebar-subtitle > span,
.footer-heading > span,
.section-title > span {
  display: inline;
}
