@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Comic+Neue:wght@300;400;700&display=swap');

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

:root {
  --c-bg: #fafaf8;
  --c-mid: #4a4a4a;
  --c-dark: #1a1a1a;
  --c-border: #1a1a1a;
  --c-accent: #e8e0d0;
  --c-tag-a: #f5e6c8;
  --c-tag-b: #d4ecd4;
  --c-tag-c: #f0d4d4;
  --c-tag-d: #d4d8f0;
  --radius: 18px;
  --nav-h: 56px;
  --font-main: 'Baloo 2', 'Comic Neue', 'Ma Shan Zheng', cursive, sans-serif;
  --sketch-border: 2px solid var(--c-border);
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-dark);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: calc(var(--nav-h) + 8px);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(26,26,26,0.04) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(26,26,26,0.03) 32px);
  pointer-events: none;
  z-index: 0;
}

/* ===== 排版基础 ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-dark);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-style: wavy;
  color: var(--c-mid);
}

ul, ol { list-style: none; }

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

/* ===== 页面布局骨架 ===== */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===== 左侧侧边 aside > nav ===== */
.site-aside {
  width: 220px;
  flex-shrink: 0;
  background: var(--c-bg);
  border-right: var(--sketch-border);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.site-aside nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 1rem;
}

.site-aside nav ul li a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-mid);
  border: 2px solid transparent;
  transition: none;
}

.site-aside nav ul li a:hover,
.site-aside nav ul li a[aria-current="page"] {
  background: var(--c-dark);
  color: var(--c-bg);
  border-color: var(--c-dark);
  transform: rotate(-1deg);
}

/* ===== 主内容区 ===== */
.page-main,
.home-main,
.channel-main,
.article-main,
.tag-main,
.about-main,
.privacy-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 1.5rem 3rem;
}

/* ===== div > figure/aside 结构 ===== */
.content-section,
.channel-content-section,
.article-body-section,
.tag-content-section,
.about-content-section,
.privacy-content-section,
.home-content-section {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.content-figure,
.channel-content-figure,
.article-body-figure,
.tag-content-figure,
.about-content-figure,
.privacy-content-figure,
.home-content-figure {
  flex: 1 1 60%;
  min-width: 0;
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--c-bg);
  transform: rotate(-0.3deg);
}

.content-aside,
.channel-content-aside,
.article-sidebar,
.tag-content-aside,
.about-sidebar,
.privacy-sidebar,
.home-channels-aside {
  flex: 0 0 200px;
  min-width: 160px;
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--c-accent);
  transform: rotate(0.5deg);
  align-self: flex-start;
}

/* ===== Hero 区域（首页） ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 1.5rem 2rem;
  border-bottom: var(--sketch-border);
  margin-bottom: 2.5rem;
  position: relative;
}

.hero-figure {
  text-align: right;
  max-width: 700px;
  margin-left: auto;
}

.hero-badge {
  display: inline-block;
  background: var(--c-dark);
  color: var(--c-bg);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  transform: rotate(2deg);
  display: inline-block;
}

.hero-h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--c-mid);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
}

.hero-cta {
  display: inline-block;
  background: var(--c-dark);
  color: var(--c-bg);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: var(--sketch-border);
  transform: rotate(-1deg);
  min-height: 48px;
  line-height: 1.8;
}
.hero-cta:hover {
  transform: rotate(1deg) scale(1.03);
  background: var(--c-mid);
}

.hero-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.htag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  border: 2px solid var(--c-border);
}
.htag-a { background: var(--c-tag-a); transform: rotate(-2deg); }
.htag-b { background: var(--c-tag-b); transform: rotate(1.5deg); }
.htag-c { background: var(--c-tag-c); transform: rotate(-1deg); }
.htag-d { background: var(--c-tag-d); transform: rotate(2.5deg); }

.hero-aside {
  margin-top: 2rem;
}
.hero-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.hero-nav-list li a {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border: var(--sketch-border);
  border-radius: 50px;
  text-decoration: none;
  color: var(--c-dark);
  background: var(--c-bg);
  min-height: 40px;
  line-height: 2;
}
.hero-nav-list li a:hover {
  background: var(--c-dark);
  color: var(--c-bg);
}

/* ===== 面包屑 ===== */
.breadcrumb-aside {
  padding: 0.5rem 0;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--c-mid);
  list-style: none;
}
.breadcrumb li:not(:last-child)::after {
  content: ' 〉';
  color: var(--c-mid);
}
.breadcrumb li a {
  color: var(--c-mid);
  text-decoration: none;
}
.breadcrumb li a:hover { text-decoration: underline; }

/* ===== div 标题 ===== */
.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title span {
  display: inline-block;
  border-bottom: 3px solid var(--c-border);
  padding-bottom: 2px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--c-dark);
  color: var(--c-bg);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  transform: rotate(-1.5deg);
}

/* ===== 卡片网格（channels / children） ===== */
.channels-section,
.children-section,
.articles-section,
.tag-articles-section {
  margin-bottom: 2.5rem;
}

.channels-section,
.children-section,
.articles-section,
.tag-articles-section {
  display: block;
}

.channels-grid,
.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.channel-card,
.child-card {
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.channel-card h3 span,
.child-card h3 span {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}
.channel-card p,
.child-card p {
  font-size: 0.88rem;
  color: var(--c-mid);
  margin-bottom: 0;
}
.channel-card.rotate-left,
.child-card.rotate-left {
  transform: rotate(-0.8deg);
}
.channel-card.rotate-right,
.child-card.rotate-right {
  transform: rotate(0.7deg);
}

.card-link {
  display: inline-block;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: var(--sketch-border);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  background: var(--c-bg);
  color: var(--c-dark);
  min-height: 40px;
  line-height: 2;
}
.card-link:hover {
  background: var(--c-dark);
  color: var(--c-bg);
  text-decoration: none;
}

.child-date {
  font-size: 0.78rem;
  color: var(--c-mid);
  margin-bottom: 0;
}

/* ===== 文章列表（首页紧凑型） ===== */
.articles-section {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.articles-figure {
  flex: 1 1 60%;
  min-width: 0;
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--c-bg);
}

.articles-aside {
  flex: 0 0 180px;
  min-width: 150px;
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--c-tag-b);
  transform: rotate(0.4deg);
  align-self: flex-start;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-item {
  border-bottom: 1px dashed var(--c-mid);
  padding: 0.6rem 0;
}
.article-item:last-child { border-bottom: none; }
.article-item-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--c-dark);
  font-size: 0.9rem;
}
.article-item-link:hover .article-item-title {
  text-decoration: underline wavy;
}
.article-item-title {
  flex: 1;
  font-weight: 500;
}
.article-item-date {
  font-size: 0.78rem;
  color: var(--c-mid);
  white-space: nowrap;
}

/* ===== 文章内页 ===== */
.article-header-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--sketch-border);
}

.article-header-figure {
  display: block;
}

.article-hero-wrap {
  margin-bottom: 1rem;
  border: var(--sketch-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.article-category-tag {
  display: inline-block;
  background: var(--c-dark);
  color: var(--c-bg);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.article-date {
  color: var(--c-mid);
}
.article-modified {
  color: var(--c-mid);
  font-size: 0.8rem;
}

.article-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.article-intro {
  font-size: 1rem;
  color: var(--c-mid);
  border-left: 4px solid var(--c-border);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

/* 文章正文 */
.article-content h2,
.article-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.article-content h2 span,
.article-content h3 span {
  display: inline;
}
.article-content p {
  margin-bottom: 1rem;
}
.article-content ul,
.article-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-content ol { list-style: decimal; }
.article-content a {
  color: var(--c-dark);
  font-weight: 600;
}
.article-content blockquote {
  border-left: 4px solid var(--c-border);
  padding: 0.75rem 1rem;
  background: var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}

/* ===== Sidebar aside heading ===== */
.sidebar-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 4px;
  border-bottom: var(--sketch-border);
}
.sidebar-heading span { display: inline-block; }
.sidebar-heading-sm {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}
.sidebar-heading-sm span { display: inline-block; }

/* ===== Tag pills ===== */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag-pill {
  display: inline-block;
  border: var(--sketch-border);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-dark);
  background: var(--c-tag-a);
  min-height: 40px;
  line-height: 2.4;
}
.tag-pill:hover {
  background: var(--c-dark);
  color: var(--c-bg);
  text-decoration: none;
}

/* ===== Aside 链接列表 ===== */
.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.aside-links li a {
  display: block;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--c-dark);
  border: 1px dashed transparent;
  min-height: 40px;
  line-height: 2.2;
}
.aside-links li a:hover {
  border-color: var(--c-border);
  background: var(--c-bg);
}

.aside-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.aside-heading span { display: inline-block; }

/* ===== Channel 页眉 ===== */
.channel-hero-section,
.tag-hero-section,
.about-hero-section,
.privacy-header-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--sketch-border);
}

.channel-hero-figure,
.tag-hero-figure,
.about-hero-figure,
.privacy-header-figure {
  display: block;
}

.channel-eyebrow,
.tag-eyebrow,
.about-sticker,
.privacy-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border: var(--sketch-border);
  border-radius: 50px;
  margin-bottom: 0.75rem;
  background: var(--c-tag-c);
  transform: rotate(-1deg);
}

.channel-desc,
.tag-desc,
.about-tagline {
  color: var(--c-mid);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ===== children-section layout ===== */
.children-section {
  display: flex;
  flex-direction: column;
}
.children-section .section-title {
  margin-bottom: 1rem;
}
.children-figure {
  flex: 1;
}
.children-aside {
  margin-top: 1.5rem;
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--c-tag-d);
  transform: rotate(0.3deg);
  max-width: 400px;
}

/* ===== tag articles div ===== */
.tag-articles-section {
  display: flex;
  flex-direction: column;
}
.tag-articles-figure {
  flex: 1;
}
.tag-articles-aside {
  margin-top: 1.5rem;
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--c-tag-b);
  transform: rotate(-0.4deg);
  max-width: 400px;
}

/* ===== About extra div ===== */
.about-extra-section {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.about-extra-figure {
  flex: 1 1 55%;
  min-width: 0;
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--c-accent);
  transform: rotate(0.3deg);
}
.about-extra-aside {
  flex: 0 0 180px;
  min-width: 150px;
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--c-tag-a);
  transform: rotate(-0.5deg);
}

.about-contact-note {
  font-size: 0.88rem;
  color: var(--c-mid);
}

/* ===== page-hero (非首页) ===== */
.page-hero-section {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: var(--sketch-border);
}
.page-hero-figure {
  display: block;
}
.page-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5rem;
}
.page-date {
  font-size: 0.88rem;
  color: var(--c-mid);
  margin-top: 0.25rem;
}

/* ===== 页脚 ===== */
.site-footer {
  border-top: var(--sketch-border);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  background: var(--c-bg);
  position: relative;
  z-index: 1;
}

/* footer > div×n */
.site-footer div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--c-mid);
}
.footer-links {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a {
  color: var(--c-mid);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.25rem;
}
.footer-links a:hover { text-decoration: underline; }
.footer-sep {
  color: var(--c-mid);
  opacity: 0.5;
}

/* ===== 底部固定导航条 ===== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--c-bg);
  border-top: var(--sketch-border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  z-index: 1000;
}

.bottom-brand {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--c-dark);
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
}

.bottom-nav-group {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.bottom-nav-toggle {
  background: var(--c-bg);
  border: var(--sketch-border);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  color: var(--c-dark);
}
.bottom-nav-toggle:hover {
  background: var(--c-dark);
  color: var(--c-bg);
}

.bottom-nav-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-bg);
  border: var(--sketch-border);
  border-radius: var(--radius);
  padding: 0.75rem;
  min-width: 260px;
  max-width: 90vw;
  box-shadow: 4px 4px 0 var(--c-border);
  z-index: 1001;
}

.bottom-nav-dropdown.open {
  display: block;
}

.bottom-nav-dropdown ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bottom-nav-dropdown ul li a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  color: var(--c-dark);
  min-height: 40px;
  line-height: 2;
}
.bottom-nav-dropdown ul li a:hover {
  background: var(--c-dark);
  color: var(--c-bg);
}

.bottom-cta {
  display: inline-flex;
  align-items: center;
  background: var(--c-dark);
  color: var(--c-bg);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  border: var(--sketch-border);
  min-height: 44px;
  white-space: nowrap;
}
.bottom-cta:hover {
  background: var(--c-mid);
  color: var(--c-bg);
  text-decoration: none;
}

/* ===== tag mini list ===== */
.tag-list-mini {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tag-list-mini li a {
  display: inline-block;
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  border: var(--sketch-border);
  border-radius: 50px;
  text-decoration: none;
  color: var(--c-dark);
  background: var(--c-tag-d);
  min-height: 40px;
  line-height: 2.2;
}
.tag-list-mini li a:hover {
  background: var(--c-dark);
  color: var(--c-bg);
  text-decoration: none;
}

/* channel mini list */
.channel-list-mini {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.channel-list-mini li a {
  display: block;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--c-dark);
  border: 1px dashed var(--c-mid);
  min-height: 40px;
  line-height: 2;
}
.channel-list-mini li a:hover {
  background: var(--c-dark);
  color: var(--c-bg);
  border-color: var(--c-dark);
}

/* ===== Scroll Reveal 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .channel-card,
  .child-card,
  .content-figure,
  .articles-figure,
  .about-extra-figure,
  .hero-h1,
  .hero-badge {
    opacity: 0;
    transform: translateY(20px) rotate(-0.5deg);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .channel-card.rotate-left { transform: translateY(20px) rotate(-1deg); }
  .channel-card.rotate-right { transform: translateY(20px) rotate(0.8deg); }

  .channel-card.revealed,
  .child-card.revealed,
  .content-figure.revealed,
  .articles-figure.revealed,
  .about-extra-figure.revealed,
  .hero-h1.revealed,
  .hero-badge.revealed {
    opacity: 1;
    transform: translateY(0) rotate(var(--base-rot, 0deg));
  }
  .channel-card.rotate-left.revealed { --base-rot: -0.8deg; }
  .channel-card.rotate-right.revealed { --base-rot: 0.7deg; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===== 响应式：隐藏侧边栏 ===== */
@media (max-width: 860px) {
  .site-aside {
    display: none;
  }
  .page-wrapper {
    display: block;
  }
  .home-main,
  .page-main,
  .channel-main,
  .article-main,
  .tag-main,
  .about-main,
  .privacy-main {
    padding: 1.25rem 1rem 2.5rem;
  }
}

/* ===== 响应式：卡片 ===== */
@media (max-width: 600px) {
  .channels-grid,
  .children-grid {
    grid-template-columns: 1fr;
  }
  .content-section,
  .channel-content-section,
  .article-body-section,
  .tag-content-section,
  .about-content-section,
  .privacy-content-section,
  .home-content-section,
  .articles-section,
  .about-extra-section {
    flex-direction: column;
  }
  .content-aside,
  .channel-content-aside,
  .article-sidebar,
  .tag-content-aside,
  .about-sidebar,
  .privacy-sidebar,
  .home-channels-aside,
  .articles-aside {
    flex: none;
    width: 100%;
    transform: none;
  }
  .content-figure,
  .channel-content-figure,
  .article-body-figure,
  .tag-content-figure,
  .about-content-figure,
  .privacy-content-figure,
  .home-content-figure {
    transform: none;
  }
  .hero-section {
    min-height: 100svh;
    padding: 2rem 1rem 1.5rem;
  }
  .hero-figure {
    text-align: right;
  }
  .hero-h1 {
    font-size: 2rem;
  }
  .channel-card.rotate-left,
  .channel-card.rotate-right,
  .child-card.rotate-left {
    transform: none;
  }
}

/* ===== 375px 无横向滚动保障 ===== */
@media (max-width: 420px) {
  body {
    overflow-x: hidden;
  }
  .bottom-nav-bar {
    gap: 0.4rem;
    padding: 0 0.5rem;
  }
  .bottom-brand {
    font-size: 0.82rem;
  }
  .bottom-cta {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }
  .bottom-nav-toggle {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }
}
