@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Varela+Round&display=swap');

/* ===== 基础变量 ===== */
:root {
  --c-primary: #56228b;
  --c-primary-light: #7c40b8;
  --c-primary-pale: #f0eaf8;
  --c-secondary: #8b4513;
  --c-secondary-light: #b5622a;
  --c-secondary-pale: #faf0e6;
  --c-ink: #1f1726;
  --c-ink-soft: #3d2d4a;
  --c-muted: #7a6b85;
  --c-border: #ddd4e8;
  --c-bg: #fdf9ff;
  --c-bg-warm: #fdf8f4;
  --c-bg-card: #ffffff;
  --c-surface: #f7f2fc;
  --c-earth: #c4a882;
  --r-card: 18px;
  --r-large: 24px;
  --r-pill: 999px;
  --shadow-soft: 0 4px 20px rgba(86,34,139,0.10), 0 1px 4px rgba(86,34,139,0.06);
  --shadow-card: 0 8px 32px rgba(86,34,139,0.12), 0 2px 8px rgba(139,69,19,0.06);
  --shadow-hover: 0 12px 40px rgba(86,34,139,0.18), 0 4px 12px rgba(139,69,19,0.10);
  --font-body: 'Nunito Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Varela Round', 'Nunito Sans', 'PingFang SC', sans-serif;
  --max-w: 1160px;
  --aside-w: 240px;
  --gap: 1.5rem;
}

/* ===== 重置 ===== */
*, *::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.72;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-light); }
img { display: block; max-width: 100%; height: auto; }
ul, menu { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, button { font-size: 1rem; }

/* ===== 工具 ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== 站点包裹 ===== */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; }

/* ===== 站头：品牌行 ===== */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(86,34,139,0.07);
}
.brand-row {
  background: linear-gradient(135deg, var(--c-primary) 0%, #3d1566 100%);
  padding: 0.7rem 0;
}
.brand-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-mark { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 搜索框 */
.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
  max-width: 280px;
  flex-shrink: 1;
}
.header-search input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 0.45rem 1rem;
  width: 180px;
  font-size: 0.9rem;
  min-height: 40px;
}
.header-search input::placeholder { color: rgba(255,255,255,0.65); }
.header-search button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  min-height: 40px;
  min-width: 60px;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-search button:hover { background: rgba(255,255,255,0.32); }

/* ===== 导航：药丸胶囊按钮组 ===== */
.main-nav {
  background: var(--c-bg);
  padding: 0.55rem 0;
}

/* mobile details toggle */
.nav-details { position: relative; }
.nav-toggle {
  display: none;
  list-style: none;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  min-height: 40px;
  user-select: none;
}
.nav-toggle::-webkit-details-marker { display: none; }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 0;
}
.nav-menu li a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  border: 1.5px solid var(--c-border);
  background: var(--c-bg-card);
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 40px;
  line-height: 1.3;
  display: flex;
  align-items: center;
}
.nav-menu li a:hover,
.nav-menu li a[aria-current="page"] {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.nav-menu--desktop { display: flex; }

/* ===== HERO（首页） ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--c-primary-pale) 0%, var(--c-secondary-pale) 100%);
  overflow: hidden;
  padding: 3rem 0 2.5rem;
}
.hero-blob {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-blob svg { width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.2rem;
  text-transform: none;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--c-ink-soft);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.hero-tag {
  background: rgba(86,34,139,0.10);
  color: var(--c-primary);
  border: 1px solid rgba(86,34,139,0.2);
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== 分类 HERO ===== */
.cat-hero {
  background: linear-gradient(135deg, var(--c-primary-pale) 0%, var(--c-secondary-pale) 100%);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--c-border);
}
.cat-hero-inner { max-width: 800px; }
.cat-badge, .about-badge, .privacy-badge {
  display: inline-block;
  background: var(--c-secondary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.9rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.9rem;
}
.cat-h1, .about-h1, .privacy-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.cat-desc-text {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* 关于 HERO */
.about-hero {
  background: linear-gradient(160deg, #f5eeff 0%, #fff7f0 100%);
  padding: 2.8rem 0 2.2rem;
  border-bottom: 1px solid var(--c-border);
}
.about-hero-inner { max-width: 680px; }
.about-lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* 隐私 HERO */
.privacy-hero {
  background: var(--c-surface);
  padding: 2rem 0 1.6rem;
  border-bottom: 1px solid var(--c-border);
}
.privacy-date { font-size: 0.9rem; color: var(--c-muted); margin-top: 0.6rem; }

/* ===== 正文布局：aside 在左 ===== */
.content-with-aside {
  display: grid;
  grid-template-columns: var(--aside-w) 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0;
}
.page-aside {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.aside-block {
  background: var(--c-bg-card);
  border-radius: var(--r-card);
  padding: 1.25rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-border);
}
.aside-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0.15rem;
}
.aside-block .subtitle {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-bottom: 0.85rem;
}
.aside-cat-list { display: flex; flex-direction: column; gap: 0.35rem; }
.aside-cat-list li a {
  display: block;
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: all 0.18s;
  border-left: 2px solid transparent;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.aside-cat-list li a:hover {
  background: var(--c-primary-pale);
  border-left-color: var(--c-primary);
  color: var(--c-primary);
}
.aside-text { font-size: 0.85rem; color: var(--c-muted); line-height: 1.6; margin-bottom: 0.7rem; }
.aside-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.aside-siblings { margin-top: 0; }
.sibling-links { display: flex; flex-direction: column; gap: 0.4rem; }
.sibling-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border-left: 2px solid var(--c-border);
  transition: all 0.18s;
  min-height: 40px;
  justify-content: center;
}
.sibling-link strong { font-size: 0.85rem; color: var(--c-ink-soft); font-weight: 500; }
.sibling-link:hover { border-left-color: var(--c-primary); background: var(--c-primary-pale); }
.sibling-link:hover strong { color: var(--c-primary); }
.sibling-date { font-size: 0.75rem; color: var(--c-muted); }
.related-cat-links { display: flex; flex-direction: column; gap: 0.5rem; }
.related-cat-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  transition: all 0.18s;
  min-height: 40px;
  justify-content: center;
}
.related-cat-link strong { font-size: 0.85rem; color: var(--c-primary); font-weight: 600; }
.related-cat-link span { font-size: 0.78rem; color: var(--c-muted); }
.related-cat-link:hover { border-color: var(--c-primary); background: var(--c-primary-pale); }

/* ===== 正文内容 ===== */
.content-main { min-width: 0; }
.page-content-body { margin-bottom: 2.5rem; }
.page-content-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 2rem 0 0.5rem;
  line-height: 1.4;
}
.page-content-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-ink);
  margin: 1.5rem 0 0.4rem;
}
.page-content-body p {
  margin-bottom: 1.1rem;
  line-height: 1.8;
  color: var(--c-ink-soft);
}
.page-content-body ul, .page-content-body ol {
  margin: 0.8rem 0 1.1rem 1.4rem;
  color: var(--c-ink-soft);
}
.page-content-body li { margin-bottom: 0.4rem; line-height: 1.7; }
.page-content-body a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.page-content-body a:hover { color: var(--c-primary-light); }
.page-content-body blockquote {
  border-left: 4px solid var(--c-primary);
  padding: 0.8rem 1.2rem;
  background: var(--c-primary-pale);
  border-radius: 0 12px 12px 0;
  margin: 1.2rem 0;
  color: var(--c-ink-soft);
  font-style: italic;
}
.page-content-body img {
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  margin: 1.2rem 0;
}
.page-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.92rem;
}
.page-content-body th {
  background: var(--c-primary-pale);
  color: var(--c-primary);
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 2px solid var(--c-border);
}
.page-content-body td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-ink-soft);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--c-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--c-border); }

/* ===== 文章头部 ===== */
.article-header { margin-bottom: 1.5rem; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.article-date {
  display: inline-block;
  background: var(--c-primary-pale);
  color: var(--c-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: var(--r-pill);
}
.article-updated { font-size: 0.82rem; color: var(--c-muted); }
.article-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.35;
  margin-bottom: 0.7rem;
}
.article-lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 680px;
}
.article-hero-img-wrap {
  margin-bottom: 1.8rem;
  border-radius: var(--r-large);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.article-hero-img { width: 100%; height: auto; display: block; }
.article-body { margin-bottom: 2.5rem; }

/* ===== 关于：价值观 ===== */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.value-item {
  background: var(--c-bg-card);
  border-radius: var(--r-card);
  padding: 1.5rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.value-icon {
  font-size: 1.6rem;
  color: var(--c-primary);
  line-height: 1;
}
.value-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ink);
}
.value-desc {
  font-size: 0.87rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ===== 隐私：正文样式增强 ===== */
.privacy-body { max-width: 720px; }
.privacy-body h2 { font-size: 1.2rem; margin-top: 2rem; }

/* ===== Section 标题通用 ===== */
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.3rem;
}
.section-title + .subtitle {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}

/* ===== 分类栏目卡片网格 ===== */
.cat-section { margin-bottom: 3rem; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.cat-block {
  display: block;
  background: var(--c-bg-card);
  border-radius: var(--r-large);
  box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--c-border);
  text-decoration: none;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  overflow: hidden;
}
.cat-block:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--c-primary);
}
.cat-block-inner {
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}
.cat-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.35;
}
.cat-desc {
  font-size: 0.87rem;
  color: var(--c-muted);
  line-height: 1.6;
}
.cat-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}
.mini-link {
  display: inline-block;
  background: var(--c-primary-pale);
  color: var(--c-primary);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s;
}
.mini-link:hover { background: var(--c-primary); color: #fff; }
.cat-arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.1rem;
  color: var(--c-border);
  transition: color 0.18s;
}
.cat-block:hover .cat-arrow { color: var(--c-primary); }

/* ===== 文章卡片网格（首页） ===== */
.articles-section { margin-bottom: 3rem; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-border);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.22s, transform 0.22s;
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card-img-wrap { overflow: hidden; }
.card-img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform 0.35s; }
.article-card:hover .card-img { transform: scale(1.04); }
.card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.card-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-secondary);
  background: var(--c-secondary-pale);
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
}
.card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.45;
}
.card-desc {
  font-size: 0.84rem;
  color: var(--c-muted);
  line-height: 1.6;
}
.article-card:hover .card-title { color: var(--c-primary); }

/* ===== 子页列表（分类页：一组并列 a 块） ===== */
.children-section { margin-bottom: 2.5rem; }
.child-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.child-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--c-bg-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-border);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  padding: 0;
}
.child-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-primary);
  transform: translateX(3px);
}
.child-card .card-img-wrap { flex-shrink: 0; width: 120px; }
.child-card .card-img { width: 120px; height: 90px; object-fit: cover; border-radius: 0; }
.child-card .card-body { padding: 1rem 1.1rem 1rem 0; flex: 1; }
.child-card:not(:has(.card-img-wrap)) .card-body { padding: 1rem 1.1rem; }
.child-card .card-title { color: var(--c-ink); }
.child-card:hover .card-title { color: var(--c-primary); }
.empty-tip { color: var(--c-muted); font-size: 0.9rem; text-align: center; padding: 2rem; }

/* ===== 相关文章（文章页） ===== */
.related-section { margin-bottom: 2.5rem; }
.sibling-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.sibling-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--c-bg-card);
  border-radius: var(--r-card);
  padding: 1.1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-border);
  text-decoration: none;
  transition: all 0.2s;
}
.sibling-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-primary);
  transform: translateY(-2px);
}
.sibling-card .card-title { font-size: 0.93rem; }

/* ===== 页脚 ===== */
.site-footer { background: var(--c-ink); margin-top: auto; }
.footer-cta {
  background: linear-gradient(135deg, var(--c-primary) 0%, #3d1566 100%);
  padding: 2.5rem 0;
}
.footer-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-cta-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0.75rem 2rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.footer-cta-btn:hover {
  background: var(--c-primary-pale);
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}
.footer-bottom {
  background: #180e20;
  padding: 1rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s;
}
.footer-links a:hover { color: #fff; }

/* ===== Scroll Reveal 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal-item.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== 移动端响应 ===== */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .content-with-aside {
    grid-template-columns: 1fr;
  }
  .page-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  :root { --gap: 1rem; }
  html { font-size: 16px; }
  .nav-toggle { display: flex; align-items: center; }
  .nav-menu--desktop { display: none; }
  .nav-details[open] .nav-menu:not(.nav-menu--desktop) {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-top: none;
    border-radius: 0 0 var(--r-card) var(--r-card);
    padding: 0.8rem 1.25rem;
    box-shadow: var(--shadow-card);
    z-index: 200;
  }
  .nav-details[open] .nav-menu:not(.nav-menu--desktop) li a {
    min-height: 44px;
    font-size: 0.95rem;
    border-radius: 10px;
    padding: 0.6rem 1rem;
  }
  .nav-menu:not(.nav-menu--desktop):not(.nav-details[open] .nav-menu) { display: none; }
  .hero-section { min-height: 45vh; padding: 2.5rem 0 2rem; }
  .hero-h1 { font-size: 1.55rem; }
  .header-search { max-width: 150px; }
  .header-search input[type="search"] { width: 90px; padding: 0.45rem 0.6rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .sibling-card-grid { grid-template-columns: 1fr; }
  .page-aside { grid-template-columns: 1fr; }
  .content-with-aside { padding: 1.5rem 0; }
  .footer-cta .container { flex-direction: column; align-items: flex-start; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .child-card { flex-direction: column; }
  .child-card .card-img-wrap { width: 100%; }
  .child-card .card-img { width: 100%; height: 160px; }
  .child-card .card-body { padding: 0.8rem 1rem; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 0.95rem; }
  .header-search { display: none; }
}
