@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ===== 变量 ===== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000;
  --white: #fff;
  --bg: #f5f5f0;
  --shadow: 5px 5px 0 var(--black);
  --shadow-sm: 3px 3px 0 var(--black);
  --border: 3px solid var(--black);
  --radius: 4px;
  --font-hand: 'Caveat', cursive;
  --font-body: 'Quicksand', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --nav-h: 110px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--black);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ===== 点阵底纹 ===== */
.hero-section, .channel-hero-section {
  background-image: radial-gradient(circle, var(--black) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  background-color: var(--blue);
  position: relative;
}

/* ===== 导航（aside > nav > ul > li > a） ===== */
.site-nav-aside {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: var(--border);
  width: 100%;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px 8px;
  border-bottom: 2px solid #222;
  background: var(--black);
}
.brand-link {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand-slogan {
  font-size: 0.78rem;
  color: #aaa;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 16px;
  background: #111;
}
.main-nav ul li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  border-right: 1px solid #333;
  transition: background 0.15s, color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--blue);
  color: var(--black);
  outline: none;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 10px 24px;
  font-size: 0.82rem;
  color: #555;
  background: #fff;
  border-bottom: 2px solid var(--black);
}
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 4px; }

/* ===== 通用按钮 ===== */
.btn-hero, .btn-more, .btn-read {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 24px;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition: transform 0.1s, box-shadow 0.1s;
  min-height: 44px;
  align-items: center;
}
.btn-hero:hover, .btn-more:hover, .btn-read:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--black);
}
.btn-hero:active, .btn-more:active, .btn-read:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}
.btn-hero { background: var(--blue); color: var(--black); font-size: 1.2rem; }

/* ===== ASIDE 标签 ===== */
.aside-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  padding: 3px 12px;
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* ===== HR 装饰 ===== */
hr {
  border: none;
  border-top: 3px solid var(--black);
  margin: 12px 0 18px;
}

/* ===== HOME ===== */
.page-home .hero-section { min-height: 100vh; }
.hero-figure {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.hero-caption {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 40px 48px 60px;
  max-width: 600px;
}
.hero-h1 {
  font-family: var(--font-hand);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 4px 4px 0 var(--black);
}
.hero-desc {
  color: #eee;
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* 频道区 */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}
.content-section h2 {
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.chan-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.chan-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--black);
}
.chan-card h3 { font-family: var(--font-hand); font-size: 1.3rem; font-weight: 700; }
.chan-card h3 a { color: var(--blue); }
.chan-card h3 a:hover { text-decoration: underline; }
.chan-card p { font-size: 0.9rem; color: #444; flex: 1; }

/* 文章列表区 */
.articles-section {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}
.section-aside {
  width: 180px;
  flex-shrink: 0;
  background: var(--blue);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  border-radius: var(--radius);
}
.section-aside--right { background: var(--red); color: var(--white); }
.section-aside p { font-size: 0.88rem; margin-top: 8px; }
.articles-figure { flex: 1; }
.articles-figure h2 { font-family: var(--font-hand); font-size: 2rem; font-weight: 700; }
.articles-list { display: flex; flex-direction: column; gap: 2px; }
.art-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--black);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background 0.12s, transform 0.12s;
  margin-bottom: 6px;
}
.art-item a:hover { background: var(--blue); transform: translate(-2px, -2px); }
.art-num {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  min-width: 32px;
}
.art-title { font-weight: 600; flex: 1; font-size: 0.95rem; }
.art-date { font-size: 0.78rem; color: #777; white-space: nowrap; }

/* 首页正文区 */
.page-content-section {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--black);
  max-width: 100%;
  padding: 48px 24px;
}
.page-content-section .section-aside {
  background: var(--red);
  color: var(--white);
}
.page-content-figure { flex: 1; max-width: 900px; }
.page-content-figure .prose { color: var(--white); }

/* stagger 动效 */
@media (prefers-reduced-motion: no-preference) {
  .stagger-list .art-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.4s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.06s);
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===== CHANNEL ===== */
.channel-main { max-width: 1200px; margin: 0 auto; }
.channel-hero-section {
  display: flex;
  gap: 0;
  border-bottom: var(--border);
  min-height: 320px;
}
.channel-aside {
  width: 200px;
  flex-shrink: 0;
  background: var(--blue);
  border-right: var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aside-letter {
  font-family: var(--font-hand);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
}
.aside-sibnav ul, .aside-sibnav li { margin: 0; padding: 0; }
.aside-sibnav li a {
  display: block;
  padding: 7px 0;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px dashed #0004;
  color: var(--black);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-sibnav li a:hover { color: var(--red); }
.channel-intro-figure {
  flex: 1;
  padding: 36px 32px;
  background: var(--white);
}
.channel-h1 {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* 子页卡片 */
.child-cards-section {
  padding: 40px 24px;
}
.child-cards-section h2 {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.child-card {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin: 0 16px 20px 0;
  width: calc(50% - 32px);
  vertical-align: top;
  transition: transform 0.15s, box-shadow 0.15s;
}
.child-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--black);
}
.child-card h3 { font-family: var(--font-hand); font-size: 1.25rem; font-weight: 700; }
.child-card h3 a { color: var(--blue); }
.child-card h3 a:hover { text-decoration: underline; }
.child-card p { font-size: 0.9rem; color: #444; flex: 1; }
.card-date { font-size: 0.78rem; color: #888; }
.no-child { color: #888; font-style: italic; }

/* channel 卡片动效 */
@media (prefers-reduced-motion: no-preference) {
  .child-card {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.35s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.07s);
  }
}

/* ===== ARTICLE ===== */
.article-main { max-width: 1200px; margin: 0 auto; }
.article-body-section {
  display: flex;
  gap: 0;
  border-bottom: var(--border);
}
.article-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg);
  border-right: var(--border);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-channel-link {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  padding: 6px 0;
}
.article-sidebar h4 {
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
}
.related-list li { border-bottom: 1px dashed #ccc; }
.related-list li a {
  display: block;
  padding: 7px 0;
  font-size: 0.85rem;
  color: var(--black);
  font-weight: 500;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.related-list li a:hover { color: var(--red); }
.sidebar-nav-block ul li a {
  display: flex;
  align-items: center;
  padding: 7px 0;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px dashed #ccc;
  color: var(--black);
  min-height: 40px;
}
.sidebar-nav-block ul li a:hover { color: var(--blue); }
.article-content-figure {
  flex: 1;
  padding: 36px 36px 48px;
  background: var(--white);
}
.article-hero { margin-bottom: 24px; }
.article-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.article-h1 {
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 16px;
}
.article-foot-section {
  display: flex;
  gap: 0;
  background: var(--black);
  color: var(--white);
}
.foot-aside {
  width: 220px;
  flex-shrink: 0;
  background: var(--red);
  border-right: var(--border);
  border-top: var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-aside p { font-size: 0.85rem; }
.foot-figure {
  flex: 1;
  padding: 28px 32px;
  border-top: var(--border);
}
.foot-figure h2 { font-family: var(--font-hand); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.foot-figure hr { border-color: #444; }
.foot-nav-links { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

/* ===== ABOUT ===== */
.about-main { max-width: 1200px; margin: 0 auto; }
.about-hero-section {
  display: flex;
  gap: 0;
  border-bottom: var(--border);
  min-height: 360px;
}
.about-aside {
  width: 200px;
  flex-shrink: 0;
  background: var(--blue);
  border-right: var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aside-bigtext {
  font-family: var(--font-hand);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  letter-spacing: 2px;
}
.about-aside nav ul li a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px dashed #0003;
  min-height: 40px;
}
.about-aside nav ul li a:hover { color: var(--red); }
.about-content-figure {
  flex: 1;
  padding: 36px 40px;
  background: var(--white);
}
.about-content-figure h1 {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  font-weight: 700;
}
.about-extra-section {
  display: flex;
  gap: 0;
  background: var(--bg);
}
.about-extra-aside {
  width: 200px;
  flex-shrink: 0;
  background: var(--red);
  color: var(--white);
  border-right: var(--border);
  border-top: var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-extra-aside p { font-size: 0.85rem; }
.about-extra-figure {
  flex: 1;
  padding: 28px 36px;
  border-top: var(--border);
}
.about-extra-figure h2 { font-family: var(--font-hand); font-size: 1.6rem; font-weight: 700; }
.promise-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.promise-list li {
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.promise-list li::before { content: "✔ "; color: var(--blue); font-weight: 700; }

/* ===== PRIVACY ===== */
.privacy-main { max-width: 1200px; margin: 0 auto; }
.privacy-body-section {
  display: flex;
  gap: 0;
  min-height: 60vh;
}
.privacy-aside {
  width: 200px;
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  border-right: var(--border);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.privacy-aside nav ul li a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid #333;
  min-height: 40px;
}
.privacy-aside nav ul li a:hover { color: var(--blue); }
.aside-notice {
  background: #222;
  border: 1px solid #444;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 8px;
}
.privacy-content-figure {
  flex: 1;
  padding: 36px 40px;
  background: var(--white);
}
.privacy-content-figure h1 {
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
}

/* ===== PROSE ===== */
.prose { font-size: 1rem; line-height: 1.75; color: #222; }
.prose h2, .prose h3 { font-family: var(--font-hand); font-weight: 700; margin: 1.5em 0 0.5em; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { margin: 0.8em 0 1em 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.prose a:hover { color: var(--red); }
.prose strong { font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--blue);
  padding: 8px 16px;
  background: #eaf6ff;
  margin: 1em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 2px solid var(--black); padding: 8px 12px; font-size: 0.92rem; }
.prose th { background: var(--black); color: var(--white); font-family: var(--font-hand); }
.prose code { background: #f0f0f0; padding: 2px 6px; border-radius: 3px; font-size: 0.88em; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
  padding: 0 0 0 0;
  margin-top: 0;
}
.site-footer > article {
  display: inline-block;
  vertical-align: top;
}
footer.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.footer-brand {
  padding: 36px 32px;
  border-right: 2px solid #333;
}
.footer-logo {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.footer-brand p { font-size: 0.9rem; color: #bbb; line-height: 1.6; margin-bottom: 6px; }
.footer-disclaimer { font-size: 0.78rem; color: #777; }
.footer-links { padding: 36px 32px; }
.footer-links h4 {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 14px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 4px; }
.footer-links ul li a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: #ccc;
  border-bottom: 1px solid #222;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.12s;
}
.footer-links ul li a:hover { color: var(--blue); }
.footer-bottom {
  grid-column: 1 / -1;
  padding: 14px 32px;
  background: #111;
  border-top: 2px solid #222;
  font-size: 0.78rem;
  color: #666;
  text-align: center;
}

/* ===== DEFAULT ===== */
.default-main { max-width: 1200px; margin: 0 auto; }
.default-body-section {
  display: flex;
  gap: 0;
  min-height: 50vh;
}
.default-aside {
  width: 180px;
  flex-shrink: 0;
  background: var(--blue);
  border-right: var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.default-aside nav ul li a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px dashed #0003;
  min-height: 40px;
}
.default-aside nav ul li a:hover { color: var(--red); }
.default-content-figure {
  flex: 1;
  padding: 36px 40px;
  background: var(--white);
}
.default-content-figure h1 {
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .channel-hero-section,
  .article-body-section,
  .about-hero-section,
  .about-extra-section,
  .privacy-body-section,
  .default-body-section,
  .article-foot-section {
    flex-direction: column;
  }
  .channel-aside,
  .article-sidebar,
  .about-aside,
  .about-extra-aside,
  .privacy-aside,
  .default-aside,
  .foot-aside {
    width: 100%;
    border-right: none;
    border-bottom: var(--border);
  }
  .aside-sibnav { display: none; }
  footer.site-footer { grid-template-columns: 1fr; }
  .footer-brand { border-right: none; border-bottom: 2px solid #222; }
  .footer-bottom { grid-column: 1; }
  .child-card { width: 100%; margin-right: 0; display: flex; }
  .articles-section { flex-direction: column; }
  .section-aside { width: 100%; }
  .page-content-section { flex-direction: column; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero-caption { padding: 28px 20px 40px; max-width: 100%; }
  .hero-h1 { font-size: 1.8rem; }
  .brand-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 16px; }
  .brand-slogan { display: none; }
  .main-nav ul { flex-wrap: wrap; padding: 0 8px; }
  .main-nav ul li a { padding: 8px 10px; font-size: 0.82rem; min-height: 40px; }
  .content-section { padding: 28px 16px; }
  .channels-grid { grid-template-columns: 1fr; }
  .article-content-figure, .channel-intro-figure,
  .about-content-figure, .privacy-content-figure,
  .default-content-figure { padding: 20px 16px; }
  .footer-brand, .footer-links { padding: 24px 16px; }
  .breadcrumb { padding: 8px 16px; }
  .foot-figure { padding: 20px 16px; }
  .about-extra-figure { padding: 20px 16px; }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
