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

/* ===== 设计令牌 ===== */
:root {
  --mint: #b4fde1;
  --blue: #add8e6;
  --ink: #172620;
  --ink-80: rgba(23,38,32,0.80);
  --ink-40: rgba(23,38,32,0.40);
  --ink-10: rgba(23,38,32,0.10);
  --mint-dark: #7ce8be;
  --blue-dark: #7ab8cc;
  --bg: #f4fef9;
  --bg-card: #ffffff;
  --radius-card: 28px;
  --radius-sm: 14px;
  --radius-xs: 8px;
  --border: 3px solid var(--ink);
  --border-thin: 2px solid var(--ink);
  --shadow-clay: 4px 4px 0px var(--ink), inset -2px -2px 8px rgba(23,38,32,0.10);
  --shadow-card: 3px 3px 0px var(--ink);
  --shadow-hover: 6px 6px 0px var(--ink), inset -2px -2px 8px rgba(23,38,32,0.12);
  --font-heading: 'Libre Bodoni', Georgia, 'Noto Serif SC', serif;
  --font-body: 'Public Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --nav-w: 240px;
  --transition: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
hr {
  border: none;
  border-top: var(--border-thin);
  margin: 1rem 0 1.5rem;
  opacity: 0.35;
}

/* ===== 布局骨架 ===== */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

.page-body {
  flex: 1 1 0;
  margin-left: var(--nav-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== 侧边导航 ===== */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--mint);
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem 1.5rem;
  gap: 1rem;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 4px 0 0 var(--ink);
}

.sidenav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 1rem;
  border-bottom: var(--border-thin);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--mint);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--ink);
}

.brand-mark {
  border-radius: var(--radius-xs);
  border: 2px solid var(--ink);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--ink);
}

.sidenav-dl {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 0;
}

.sidenav-section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-80);
  padding: 0.4rem 0.5rem 0.25rem;
  margin-bottom: 0.1rem;
}

.nav-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  transition: background var(--transition), transform var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  background: rgba(23,38,32,0.10);
  transform: translateX(2px);
}

.nav-link--active {
  background: var(--ink);
  color: var(--mint);
  box-shadow: var(--shadow-clay);
}

.nav-link--active:hover {
  background: var(--ink);
  color: var(--mint);
}

/* ===== 侧边 CTA ===== */
.sidenav-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--ink);
  color: var(--mint);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-clay);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.sidenav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.sidenav-cta:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: var(--border);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.btn--primary {
  background: var(--ink);
  color: var(--mint);
  box-shadow: var(--shadow-clay);
}

.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.btn--secondary {
  background: var(--blue);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.btn--secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn--cta {
  background: var(--ink);
  color: var(--mint);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-80);
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-40);
}

.breadcrumb a:hover {
  text-decoration-color: var(--ink);
}

/* ===== article 通用结构（main > article > figure/aside 交错） ===== */
main > article {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 2rem 2rem 1.5rem;
  position: relative;
}

/* .section-aside 在左侧 */
.section-aside {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-main {
  flex: 1 1 0;
  min-width: 0;
}

.aside-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-80);
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
}

.aside-label:first-child { margin-top: 0; }
.aside-label--sm { font-size: 0.6rem; margin-top: 0.75rem; }

.aside-link {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  color: var(--ink);
  line-height: 1.35;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition);
  min-height: 32px;
  display: flex;
  align-items: center;
}

.aside-link:hover {
  background: var(--mint);
  border-color: var(--ink);
}

.aside-link--active {
  background: var(--ink);
  color: var(--mint);
  border-color: var(--ink);
}

.aside-link--home {
  margin-top: 0.5rem;
  font-weight: 600;
}

.aside-link--parent {
  font-weight: 600;
  background: var(--mint);
  border-color: var(--ink);
}

.aside-link--sm { font-size: 0.72rem; }

.aside-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-80);
}

.tag-chip {
  background: var(--blue);
  border-color: var(--ink);
  font-weight: 600;
}

.tag-chip:hover {
  background: var(--mint);
}

/* ===== figure 装饰（article 直接子元素） ===== */
.fig-deco {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: var(--border);
}

.fig-deco--mint { background: var(--mint); }
.fig-deco--blue { background: var(--blue); }
.fig-deco--brand { background: var(--ink); }

.fig-scroll-icon {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-40);
  margin-top: 0.5rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* hero-section aside 特殊样式（首页 hero 含 aside） */
.hero-aside {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

/* ===== HERO（首页） ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  background: linear-gradient(135deg, var(--mint) 55%, var(--blue) 100%);
  border-bottom: var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 2.5rem 2rem 2.5rem calc(var(--nav-w) * 0 + 2rem);
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 300px;
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-80);
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255,255,255,0.5);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xs);
  display: inline-block;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-80);
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-deco {
  flex: 0 0 200px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-img {
  border-radius: var(--radius-card);
  border: var(--border);
  box-shadow: var(--shadow-clay);
  max-width: 180px;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  border: var(--border);
  opacity: 0.55;
}

.hero-bubble--1 {
  width: 80px; height: 80px;
  background: var(--blue);
  top: -20px; right: -10px;
}

.hero-bubble--2 {
  width: 50px; height: 50px;
  background: var(--mint);
  bottom: -10px; right: 30px;
}

.hero-bubble--3 {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.7);
  top: 30px; right: 80px;
}

.hero-stripe {
  position: absolute;
  bottom: -1px;
  left: -5%;
  width: 110%;
  height: 48px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

/* ===== 内容 article 背景交替 ===== */
.channels-section {
  background: #fff;
  border-bottom: var(--border-thin);
}

.articles-section {
  background: var(--bg);
  border-bottom: var(--border-thin);
}

.content-section {
  background: linear-gradient(135deg, rgba(180,253,225,0.18) 0%, rgba(173,216,230,0.18) 100%);
  border-bottom: var(--border-thin);
}

/* ===== 栏目页 ===== */
.channel-hero-section {
  background: linear-gradient(120deg, var(--blue) 40%, var(--mint) 100%);
  border-bottom: var(--border);
  min-height: 28vh;
  align-items: flex-start;
}

.channel-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.channel-desc {
  font-size: 1rem;
  color: var(--ink-80);
  max-width: 560px;
}

.channel-content-section {
  background: #fff;
  border-bottom: var(--border-thin);
  align-items: flex-start;
}

.channel-fig {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.channel-articles-section {
  background: var(--bg);
  border-bottom: var(--border-thin);
}

/* ===== 文章页 ===== */
.article-header-section {
  background: linear-gradient(120deg, var(--mint) 50%, rgba(173,216,230,0.5) 100%);
  border-bottom: var(--border);
  align-items: flex-start;
}

.article-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.article-lead {
  font-size: 1rem;
  color: var(--ink-80);
  max-width: 560px;
  margin-top: 0.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.article-body-section {
  background: #fff;
  border-bottom: var(--border-thin);
  align-items: flex-start;
}

.article-hero-fig {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.article-hero-fig--empty {
  opacity: 0.7;
}

.article-hero-img {
  border-radius: var(--radius-sm);
  border: var(--border);
  box-shadow: var(--shadow-card);
  max-width: 200px;
}

.article-related-section {
  background: var(--bg);
  border-bottom: var(--border-thin);
}

.related-intro {
  font-size: 0.9rem;
  color: var(--ink-80);
  margin-bottom: 1rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.related-item a {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-xs);
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.related-item a:hover {
  background: var(--mint);
  border-color: var(--ink);
}

.related-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.related-date {
  font-size: 0.68rem;
  color: var(--ink-40);
}

/* ===== tag 页 ===== */
.tag-header-section {
  background: linear-gradient(120deg, var(--blue) 40%, var(--mint) 100%);
  border-bottom: var(--border);
  align-items: flex-start;
}

.tag-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-80);
  margin-bottom: 0.4rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(255,255,255,0.5);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xs);
}

.tag-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.tag-desc {
  font-size: 1rem;
  color: var(--ink-80);
  max-width: 540px;
}

.tag-content-section {
  background: #fff;
  border-bottom: var(--border-thin);
  align-items: flex-start;
}

.tag-fig {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.tag-articles-section {
  background: var(--bg);
  border-bottom: var(--border-thin);
}

/* ===== about 页 ===== */
.about-header-section {
  background: linear-gradient(120deg, var(--mint) 40%, rgba(173,216,230,0.6) 100%);
  border-bottom: var(--border);
  align-items: flex-start;
}

.about-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.about-lead {
  font-size: 1rem;
  color: var(--ink-80);
  max-width: 540px;
  margin-top: 0.5rem;
}

.about-body-section {
  background: #fff;
  border-bottom: var(--border-thin);
  align-items: flex-start;
}

.about-fig {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.brand-big-icon {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-40);
  text-align: center;
  margin-top: 0.5rem;
}

.about-links-section {
  background: var(--bg);
  border-bottom: var(--border-thin);
}

.about-channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-channel-item {
  flex: 1 1 200px;
}

/* ===== privacy 页 ===== */
.privacy-header-section {
  background: linear-gradient(120deg, var(--blue) 40%, var(--mint) 100%);
  border-bottom: var(--border);
  align-items: flex-start;
}

.privacy-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.privacy-lead {
  font-size: 1rem;
  color: var(--ink-80);
  max-width: 540px;
  margin-top: 0.5rem;
}

.privacy-body-section {
  background: #fff;
  border-bottom: var(--border-thin);
  align-items: flex-start;
}

.privacy-fig {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.privacy-nav-section {
  background: var(--bg);
  border-bottom: var(--border-thin);
}

.privacy-links-list {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.privacy-links-list li a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-40);
  font-size: 0.95rem;
  transition: text-decoration-color 150ms;
}

.privacy-links-list li a:hover {
  text-decoration-color: var(--ink);
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.card--channel {
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff 60%, rgba(180,253,225,0.3) 100%);
}

.card--channel h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card--channel h3 a:hover {
  text-decoration: underline;
}

.card--channel p {
  font-size: 0.875rem;
  color: var(--ink-80);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.card--article {
  padding: 0;
}

.card-fig {
  margin: 0;
  overflow: hidden;
  border-bottom: var(--border-thin);
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.card--article:not(:has(.card-body)) {
  padding: 1.1rem 1.25rem 1.25rem;
}

/* 没有 card-fig 时直接 padding */
.card--article > .card-meta,
.card--article > h3,
.card--article > p,
.card--article > .card-readmore,
.card--article > time {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.card--article > .card-meta { padding-top: 1rem; }
.card--article > .card-readmore { padding-bottom: 1.25rem; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.card-date {
  font-size: 0.72rem;
  color: var(--ink-40);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card--article h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.card--article h3 a:hover { text-decoration: underline; }

.card--article p {
  font-size: 0.85rem;
  color: var(--ink-80);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.card-readmore {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-40);
  transition: text-decoration-color 150ms;
}

.card-readmore:hover { text-decoration-color: var(--ink); }

.card--flat {
  padding: 1.1rem 1.25rem;
  box-shadow: none;
  border: var(--border-thin);
}

/* ===== 网格 ===== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

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

/* ===== 正文排版 ===== */
.prose-wrap {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.prose-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.75rem 0 0.25rem;
  line-height: 1.25;
}

.prose-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.35rem 0 0.25rem;
  line-height: 1.3;
}

.prose-wrap h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.1rem 0 0.2rem;
}

.prose-wrap p {
  margin-bottom: 1rem;
}

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

.prose-wrap ol { list-style: decimal; }

.prose-wrap li {
  margin-bottom: 0.4rem;
}

.prose-wrap a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mint-dark);
  font-weight: 500;
}

.prose-wrap a:hover {
  text-decoration-color: var(--ink);
}

.prose-wrap blockquote {
  border-left: 4px solid var(--mint-dark);
  padding: 0.75rem 1rem;
  background: rgba(180,253,225,0.2);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin: 1.25rem 0;
  font-style: italic;
}

.prose-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.prose-wrap th, .prose-wrap td {
  border: 2px solid var(--ink-10);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.prose-wrap th {
  background: var(--mint);
  font-weight: 700;
}

.prose-wrap hr {
  margin: 1.5rem 0;
  opacity: 0.3;
}

/* article 内 h2 后的 hr */
.section-main h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.section-main h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* ===== 日期 ===== */
.page-date {
  font-size: 0.78rem;
  color: var(--ink-40);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 0.25rem;
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: rgba(180,253,225,0.9);
  border-top: var(--border);
  padding: 2rem 2rem 1.25rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-dl {
  flex: 1 1 160px;
  min-width: 140px;
}

.footer-dl dt {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(180,253,225,0.25);
  letter-spacing: 0.03em;
}

.footer-dl dd {
  margin-bottom: 0.3rem;
}

.footer-dl dd a {
  font-size: 0.82rem;
  color: rgba(180,253,225,0.75);
  transition: color 150ms;
  display: inline-block;
  padding: 0.15rem 0;
  min-height: 28px;
  line-height: 1.4;
}

.footer-dl dd a:hover {
  color: var(--mint);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(180,253,225,0.15);
  font-size: 0.78rem;
  color: rgba(180,253,225,0.5);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: rgba(180,253,225,0.6);
  transition: color 150ms;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { color: var(--mint); }

/* ===== 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .article-grid li,
  .channel-grid li {
    animation: stagger-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .article-grid li:nth-child(1) { animation-delay: 0.05s; }
  .article-grid li:nth-child(2) { animation-delay: 0.10s; }
  .article-grid li:nth-child(3) { animation-delay: 0.15s; }
  .article-grid li:nth-child(4) { animation-delay: 0.20s; }
  .article-grid li:nth-child(5) { animation-delay: 0.25s; }
  .article-grid li:nth-child(6) { animation-delay: 0.30s; }
  .channel-grid li:nth-child(1) { animation-delay: 0.05s; }
  .channel-grid li:nth-child(2) { animation-delay: 0.12s; }
  .channel-grid li:nth-child(3) { animation-delay: 0.19s; }
  .channel-grid li:nth-child(4) { animation-delay: 0.26s; }

  @keyframes stagger-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .hero-bubble--1 { animation: float1 4s ease-in-out infinite alternate; }
  .hero-bubble--2 { animation: float2 5s ease-in-out infinite alternate; }
  .hero-bubble--3 { animation: float3 3.5s ease-in-out infinite alternate; }

  @keyframes float1 {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
  }
  @keyframes float2 {
    from { transform: translateY(0); }
    to { transform: translateY(8px); }
  }
  @keyframes float3 {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-6px) rotate(8deg); }
  }
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  :root { --nav-w: 0px; }

  .sidenav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 60vh;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.6rem 1rem;
    border-right: none;
    border-top: var(--border);
    box-shadow: 0 -4px 0 var(--ink);
    z-index: 200;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
  }

  .sidenav-brand {
    border-bottom: none;
    padding-bottom: 0;
    flex-shrink: 0;
  }

  .brand-name {
    display: none;
  }

  .sidenav-dl {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: auto;
    flex: 1 1 0;
  }

  .sidenav-section-title {
    display: none;
  }

  .sidenav-dl dd {
    flex-shrink: 0;
  }

  .nav-link {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.5rem 0.65rem;
    min-height: 40px;
  }

  .sidenav-cta {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0;
  }

  .page-body {
    margin-left: 0;
    padding-bottom: 80px;
  }

  main > article {
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .section-aside {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: rgba(180,253,225,0.2);
    border-radius: var(--radius-sm);
    border: var(--border-thin);
    padding: 0.6rem 0.75rem;
  }

  .aside-label {
    width: 100%;
    margin-top: 0;
  }

  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 1.5rem 1rem 2rem;
  }

  .hero-aside {
    position: static;
    transform: none;
  }

  .hero-deco {
    flex: 0 0 auto;
    max-width: 200px;
    align-self: center;
  }

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

  .hero-stripe {
    height: 30px;
  }

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

  .footer-nav {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .about-channel-list {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.3rem; }
  .channel-h1, .tag-h1 { font-size: 1.2rem; }
  .article-h1, .about-h1, .privacy-h1 { font-size: 1.15rem; }

  main > article {
    padding: 1rem 0.75rem;
  }

  .card--channel, .card-body {
    padding: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
