@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap');

/* ============================
   CSS 自定义属性
   ============================ */
:root {
  --ink: #1a1a2e;
  --red: #e94560;
  --parchment: #f5f0e8;
  --ink-light: #2a2a45;
  --ink-mid: #3a3a5c;
  --red-dark: #c73350;
  --red-light: #ff6080;
  --parchment-dark: #e8e0d0;
  --text-on-ink: #f5f0e8;
  --text-on-parchment: #1a1a2e;
  --font-sketch: 'Kalam', 'Patrick Hand', cursive;
  --font-body: 'Patrick Hand', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius-card: 18px;
  --transition-base: 0.3s ease;
  --shadow-card: 0 4px 24px rgba(26,26,46,0.4);
  --shadow-hover: 0 8px 40px rgba(233,69,96,0.3);
  --max-prose: 720px;
  --max-site: 1280px;
  --header-h: 120px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--ink);
  color: var(--text-on-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover, a:focus-visible {
  color: var(--red-light);
  text-decoration: underline;
}

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

ul {
  list-style: none;
}

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

/* ============================
   页头 — 两行结构
   header > nav > p > a
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(233, 69, 96, 0.25);
  width: 100%;
}

.header-announce {
  background: var(--red);
  text-align: center;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--parchment);
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.header-announce p {
  margin: 0;
}

.header-brand-row {
  padding: 14px 32px 8px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-sketch);
  font-size: 22px;
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: 0.04em;
}

.brand-link:hover .brand-name,
.brand-link:focus-visible .brand-name {
  color: var(--red);
  text-decoration: none;
}

.main-nav {
  padding: 0 32px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--parchment-dark);
  font-size: 14px;
  font-family: var(--font-body);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-base), background var(--transition-base);
  border-bottom: 2px solid transparent;
  min-height: 44px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--red-light);
  background: rgba(233, 69, 96, 0.08);
  text-decoration: none;
  border-bottom-color: var(--red);
}

.nav-links a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ============================
   内容区域通用
   ============================ */
.content-section {
  width: 100%;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 60px 32px;
}

/* ============================
   草图标题
   ============================ */
.sketch-heading {
  font-family: var(--font-sketch);
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.sketch-divider {
  border: none;
  border-top: 2px solid var(--red);
  width: 60px;
  margin: 12px 0 32px;
}

hr {
  border: none;
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  margin: 12px 0;
}

/* article 后紧跟 hr */
h2 + hr, h3 + hr {
  border-top-color: rgba(233, 69, 96, 0.4);
  margin-bottom: 20px;
}

/* ============================
   面包屑
   ============================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red-light);
}

.breadcrumb span {
  color: rgba(245, 240, 232, 0.5);
}

/* ============================
   首页 Hero — 满屏视差
   ============================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-figure {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(26, 26, 46, 0.6) 60%,
    rgba(233, 69, 96, 0.1) 100%
  );
}

.hero-aside {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-family: var(--font-body);
  border-left: 3px solid var(--red);
  padding-left: 12px;
}

.hero-h1 {
  font-family: var(--font-sketch);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--parchment);
  line-height: 1.2;
}

.hero-desc {
  font-size: 17px;
  color: rgba(245, 240, 232, 0.85);
  line-height: 1.7;
  max-width: 480px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--red);
  color: var(--parchment);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  width: fit-content;
  transition: background var(--transition-base), transform var(--transition-base);
  min-height: 48px;
}

.hero-cta:hover, .hero-cta:focus-visible {
  background: var(--red-dark);
  color: var(--parchment);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-clip-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--ink);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

/* ============================
   首页分区
   ============================ */
.section-deco {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  border: none;
}

.deco-num {
  font-family: var(--font-sketch);
  font-size: 72px;
  font-weight: 700;
  color: rgba(233, 69, 96, 0.12);
  line-height: 1;
  user-select: none;
  letter-spacing: -0.02em;
}

.topics-section {
  background: var(--ink);
}

.topics-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

/* ============================
   卡片网格 — 纯色块 圆角18px
   ============================ */
.topic-grid,
.article-grid,
.child-grid,
.related-grid {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}

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

.article-grid,
.child-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.topic-card,
.child-card,
.article-card,
.related-card {
  background: var(--ink-light);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-card:hover,
.child-card:hover,
.article-card:hover,
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-figure {
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16/9;
}

.card-figure .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.topic-card h3,
.child-card h3,
.article-card h3,
.related-card h3 {
  font-family: var(--font-sketch);
  font-size: 18px;
  font-weight: 700;
  color: var(--parchment);
  line-height: 1.3;
}

.topic-card h3 a,
.child-card h3 a,
.article-card h3 a,
.related-card h3 a {
  color: var(--parchment);
  text-decoration: none;
}

.topic-card h3 a:hover,
.child-card h3 a:hover,
.article-card h3 a:hover,
.related-card h3 a:hover {
  color: var(--red-light);
}

.topic-card p,
.child-card p,
.article-card p,
.related-card p {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.6;
  flex: 1;
}

.card-date {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.45);
  letter-spacing: 0.04em;
}

.card-link {
  font-size: 13px;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(233, 69, 96, 0.2);
}

.card-link:hover {
  color: var(--red-light);
  text-decoration: none;
}

/* ============================
   正文内容 + aside 交错布局
   main > article > figure/aside
   ============================ */
.content-prose-section,
.topic-content-section,
.article-body-section,
.about-body-section,
.privacy-body-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* figure 放左边正文，aside 放右边 */
.topic-prose-figure,
.article-content-figure,
.about-content-figure,
.privacy-content-figure {
  order: 1;
  margin: 0;
  min-width: 0;
}

.topic-sidebar,
.article-sidebar,
.about-sidebar,
.privacy-sidebar {
  order: 2;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--ink-light);
  border-radius: var(--radius-card);
  padding: 24px;
  border-left: 3px solid rgba(233, 69, 96, 0.4);
}

.topic-sidebar h3,
.article-sidebar h3,
.about-sidebar h3,
.privacy-sidebar h3 {
  font-family: var(--font-sketch);
  font-size: 16px;
  color: var(--parchment);
  margin-bottom: 4px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 16px;
}

.sidebar-list li a {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.75);
  text-decoration: none;
  padding: 4px 0;
  display: block;
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.sidebar-list li a:hover {
  color: var(--red-light);
  padding-left: 6px;
  text-decoration: none;
}

.sidebar-date {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.4);
  margin-top: 12px;
}

/* 首页 inline-aside */
.content-prose-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.inline-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--ink-light);
  border-radius: var(--radius-card);
  padding: 24px;
  border-left: 3px solid rgba(233, 69, 96, 0.4);
}

.inline-aside h3 {
  font-family: var(--font-sketch);
  font-size: 16px;
  color: var(--parchment);
  margin-bottom: 4px;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.aside-nav-list li a {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.75);
  padding: 4px 0;
  display: block;
  text-decoration: none;
}

.aside-nav-list li a:hover {
  color: var(--red-light);
  text-decoration: none;
}

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

/* ============================
   正文 HTML 样式
   ============================ */
.prose-content h2,
.article-prose h2 {
  font-family: var(--font-sketch);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--parchment);
  margin: 2em 0 0.3em;
  line-height: 1.3;
}

.prose-content h3,
.article-prose h3 {
  font-family: var(--font-sketch);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--parchment);
  margin: 1.5em 0 0.3em;
}

.prose-content p,
.article-prose p {
  margin-bottom: 1.2em;
  color: rgba(245, 240, 232, 0.88);
  line-height: 1.8;
}

.prose-content ul,
.prose-content ol,
.article-prose ul,
.article-prose ol {
  margin: 0.8em 0 1.2em 1.6em;
  color: rgba(245, 240, 232, 0.85);
  list-style: disc;
}

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

.prose-content li,
.article-prose li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

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

.prose-content a:hover,
.article-prose a:hover {
  color: var(--red-light);
}

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

.prose-content blockquote,
.article-prose blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: rgba(233, 69, 96, 0.06);
  border-radius: 0 8px 8px 0;
  color: rgba(245, 240, 232, 0.8);
  font-style: italic;
}

.prose-content hr,
.article-prose hr {
  border: none;
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  margin: 2em 0;
}

.prose-content h2 + hr,
.prose-content h3 + hr,
.article-prose h2 + hr,
.article-prose h3 + hr {
  border-top-color: rgba(233, 69, 96, 0.4);
  width: 50px;
  margin-bottom: 1em;
}

/* ============================
   文章页
   ============================ */
.article-header-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.article-hero-figure {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-meta-aside {
  position: relative;
  z-index: 2;
  padding: 48px 64px;
  max-width: 800px;
  background: linear-gradient(to top, rgba(26,26,46,0.95) 60%, transparent);
  width: 100%;
}

.article-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  color: var(--parchment);
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pub-date, .mod-date {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.55);
  letter-spacing: 0.03em;
}

.article-desc {
  font-size: 16px;
  color: rgba(245, 240, 232, 0.8);
  max-width: 600px;
  line-height: 1.7;
}

.last-updated {
  margin-top: 32px;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.4);
  padding-top: 16px;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
}

.recent-section {
  background: var(--ink-light);
  border-radius: 24px;
  margin: 0 24px 60px;
}

.related-section {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 60px 32px;
}

.related-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 8px;
}

/* ============================
   栏目页 Hero
   ============================ */
.topic-hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.topic-hero-figure {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.topic-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-hero-aside {
  position: relative;
  z-index: 2;
  padding: 40px 64px;
  max-width: 800px;
  background: linear-gradient(to top, rgba(26,26,46,0.95) 60%, transparent);
  width: 100%;
}

.topic-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--parchment);
  margin-bottom: 10px;
}

.topic-desc {
  font-size: 16px;
  color: rgba(245, 240, 232, 0.8);
  max-width: 560px;
}

.children-section {
  background: var(--ink-light);
  border-radius: 24px;
  margin: 0 24px 60px;
}

.children-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 8px;
}

/* ============================
   关于 / 隐私页
   ============================ */
.about-header-section,
.privacy-header-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
}

.about-header-figure,
.privacy-header-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 60px 32px;
}

.about-banner-deco,
.privacy-banner-deco {
  display: flex;
  gap: 8px;
  user-select: none;
}

.deco-kanji {
  font-family: var(--font-sketch);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  color: rgba(233, 69, 96, 0.15);
  line-height: 1;
  display: block;
}

.about-intro-aside,
.privacy-intro-aside {
  padding: 60px 48px 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.about-intro-aside h1,
.privacy-intro-aside h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--parchment);
}

.about-tagline,
.privacy-tagline {
  font-size: 16px;
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.7;
  max-width: 480px;
}

.policy-date {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.5);
}

.about-stats-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.06) 0%, transparent 70%);
  border-radius: 24px;
  margin: 0 24px 60px;
}

.about-stats-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 8px;
  grid-column: 1 / -1;
}

.about-stats-section .sketch-divider {
  grid-column: 1 / -1;
}

.stats-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.stats-num {
  font-family: var(--font-sketch);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  white-space: nowrap;
}

.stats-unit {
  font-size: 0.4em;
  color: rgba(245, 240, 232, 0.6);
  vertical-align: super;
  margin-left: 4px;
}

.stats-aside {
  padding: 20px 0;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin-bottom: 20px;
}

.stats-list li {
  font-size: 16px;
  color: rgba(245, 240, 232, 0.8);
  padding-left: 20px;
  position: relative;
}

.stats-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 10px;
  top: 6px;
}

.stats-list strong {
  color: var(--red-light);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--red);
  color: var(--parchment);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  transition: background var(--transition-base);
}

.cta-link:hover, .cta-link:focus-visible {
  background: var(--red-dark);
  color: var(--parchment);
  text-decoration: none;
}

/* ============================
   页脚 — 四栏 footer > article×n
   ============================ */
.site-footer {
  background: rgba(10, 10, 20, 0.98);
  border-top: 1px solid rgba(233, 69, 96, 0.2);
  margin-top: auto;
}

.site-footer > article {
  display: block;
}

.footer-brand-section {
  padding: 60px 48px 40px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.07);
}

.footer-brand-huge {
  font-family: var(--font-sketch);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: rgba(245, 240, 232, 0.08);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  user-select: none;
}

.footer-tagline {
  font-size: 15px;
  color: rgba(245, 240, 232, 0.5);
  max-width: 480px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.footer-nav-section,
.footer-links-section,
.footer-info-section {
  padding: 40px 48px;
  border-right: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-info-section {
  border-right: none;
}

.site-footer article h3 {
  font-family: var(--font-sketch);
  font-size: 15px;
  color: var(--parchment);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.site-footer article hr {
  border-top-color: rgba(233, 69, 96, 0.3);
  margin-bottom: 16px;
}

.site-footer article ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer article ul a {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.6);
  text-decoration: none;
  padding: 4px 0;
  display: inline-block;
  min-height: 32px;
  line-height: 2;
}

.site-footer article ul a:hover {
  color: var(--red-light);
  text-decoration: none;
}

.site-footer article p {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-bottom {
  padding: 20px 48px;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.4);
}

.footer-bottom a {
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--red-light);
}

/* ============================
   Scroll Reveal 动效
   ============================ */
.reveal-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-img {
    will-change: auto;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================
   视差 Hero JS 支持类
   ============================ */
.parallax-hero .hero-img {
  transition: transform 0.1s linear;
}

/* ============================
   响应式断点
   ============================ */
@media (max-width: 1024px) {
  .content-prose-section,
  .topic-content-section,
  .article-body-section,
  .about-body-section,
  .privacy-body-section {
    grid-template-columns: 1fr;
  }

  .topic-sidebar,
  .article-sidebar,
  .about-sidebar,
  .privacy-sidebar {
    position: static;
    order: -1;
  }

  .content-prose-section {
    grid-template-columns: 1fr;
  }

  .inline-aside {
    position: static;
  }

  .about-header-section,
  .privacy-header-section {
    grid-template-columns: 1fr;
  }

  .about-header-figure,
  .privacy-header-figure {
    padding: 30px 32px;
    order: -1;
  }

  .about-intro-aside,
  .privacy-intro-aside {
    padding: 30px 32px 40px;
  }

  .about-stats-section {
    grid-template-columns: 1fr;
  }

  .footer-nav-section,
  .footer-links-section,
  .footer-info-section {
    padding: 30px 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 100px;
  }

  .header-brand-row {
    padding: 10px 20px 6px;
  }

  .brand-name {
    font-size: 18px;
  }

  .main-nav {
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .nav-links {
    flex-wrap: nowrap;
    width: max-content;
  }

  .nav-links a {
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
    min-height: 44px;
  }

  .hero-aside {
    padding: 48px 24px;
  }

  .hero-h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .content-section {
    padding: 40px 20px;
  }

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

  .article-grid,
  .child-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-meta-aside {
    padding: 32px 24px;
  }

  .topic-hero-aside {
    padding: 32px 24px;
  }

  .footer-brand-section {
    padding: 40px 24px 24px;
  }

  .footer-nav-section,
  .footer-links-section,
  .footer-info-section {
    padding: 24px 24px;
  }

  .footer-bottom {
    padding: 16px 24px;
  }

  .recent-section,
  .children-section {
    margin: 0 12px 40px;
  }

  .about-stats-section {
    margin: 0 12px 40px;
  }

  .deco-kanji {
    font-size: clamp(4rem, 18vw, 7rem);
  }
}

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

  .header-announce {
    font-size: 11px;
    padding: 5px 12px;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 15px;
  }

  .footer-brand-huge {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }
}
