@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Russo+One&display=swap');

/* ===== 变量 ===== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffe44d;
  --border: 3px solid #000;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --radius: 0px;
  --font-head: 'Russo One', 'Chakra Petch', sans-serif;
  --font-body: 'Chakra Petch', system-ui, sans-serif;
  --max-w: 1100px;
  --nav-h: 56px;
}

/* ===== 重置 ===== */
*, *::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.65;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* ===== 公告条 ===== */
.announce-bar {
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 6px 16px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  border-bottom: 2px solid var(--black);
  background: var(--blue);
}
.brand-link {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--black);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.nav-row {
  background: var(--white);
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-row::-webkit-scrollbar { display: none; }
.main-nav ol {
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.main-nav ol li a {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  border-right: 2px solid var(--black);
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.main-nav ol li:first-child a { border-left: 2px solid var(--black); }
.main-nav ol li a:hover,
.main-nav ol li a[aria-current="page"] {
  background: var(--red);
  color: var(--white);
}

/* ===== 汉堡按钮 ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--black);
}
.hamburger:hover { background: var(--red); }
.hamburger:hover span { background: var(--white); }

/* ===== 全屏遮罩菜单 ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  border-left: var(--border);
}
.fullscreen-menu.is-open {
  transform: translateX(0);
}
.fullscreen-menu nav ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.fullscreen-menu nav ol li {
  border: var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.menu-link {
  display: block;
  padding: 16px 48px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--black);
  font-weight: 700;
  transition: background 0.15s;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-link:hover {
  background: var(--red);
  color: var(--white);
}
.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
}
.menu-close:hover { background: var(--black); }

/* ===== 主体布局（main + aside 并排）===== */
body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
main {
  width: 100%;
}
.global-aside {
  display: none;
}

/* Desktop: main + aside side by side */
@media (min-width: 900px) {
  body {
    display: block;
  }
  .announce-bar,
  .site-header,
  .fullscreen-menu,
  .site-footer {
    /* 正常流 */
  }
  .page-layout-wrapper {
    display: flex;
    gap: 0;
    max-width: var(--max-w);
    margin: 0 auto;
  }
  main {
    flex: 1;
    min-width: 0;
  }
  .global-aside {
    display: block;
    width: 240px;
    flex-shrink: 0;
    border-left: var(--border);
    padding: 24px 16px;
    background: var(--white);
    position: sticky;
    top: 112px;
    align-self: flex-start;
  }
}

/* wrap 容器 */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== aside 内容 ===== */
.aside-inner h2 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: var(--border);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.aside-inner .subtitle {
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 12px;
}
.aside-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aside-links li a {
  display: block;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0 var(--black);
  transition: background 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-links li a:hover {
  background: var(--blue);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Hero（首页）===== */
.hero-section {
  background: var(--blue);
  border-bottom: var(--border);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-content {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 80px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.15);
}
.hero-lead {
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--black);
  font-weight: 500;
}
.hero-media {
  margin-top: 20px;
  border: var(--border);
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; max-width: 600px; }

/* ===== 按钮 ===== */
.btn-hero {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border: var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.btn-hero:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000;
}
.btn-hero:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 #000; }

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.btn-primary:hover {
  background: var(--red);
  color: var(--white);
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 #000;
}
.btn-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.btn-secondary:hover { background: var(--blue); }

/* ===== 通用 div 间距 ===== */
.content-section,
.cats-section,
.tags-section,
.cat-hero,
.entry-list-section,
.cat-tags,
.entry-header-section,
.entry-body-section,
.related-section,
.nav-tags-section,
.tag-hero-section,
.tag-content-section,
.tagged-list-section,
.all-tags-section,
.about-header-section,
.about-body-section,
.about-nav-section,
.privacy-header-section,
.privacy-body-section,
.privacy-links-section,
.default-header-section,
.default-body-section,
.default-links-section {
  padding: 32px 0;
}

/* ===== 正文 prose ===== */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--black);
  max-width: 760px;
}
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin: 1.6em 0 0.4em;
  border-left: 5px solid var(--red);
  padding-left: 10px;
}
.prose h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 1.2em 0 0.3em;
}
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol {
  margin: 0.8em 0 1em 1.4em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.3em; }
.prose a { color: var(--blue); text-decoration: underline; font-weight: 600; }
.prose a:hover { color: var(--red); }
.prose strong { font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--blue);
  padding-left: 14px;
  color: #333;
  margin: 1em 0;
}

/* ===== h2 + subtitle 装饰 ===== */
h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 0;
}
h2 + .subtitle,
h2 + p.subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translate(-3px,-3px);
  box-shadow: 8px 8px 0 #000;
}
.card-media { overflow: hidden; border-bottom: var(--border); }
.card-media img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 16px; }
.card-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-body h3 a:hover { color: var(--red); }
.card-body p {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.5;
}

/* ===== 标签云 ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.tag-pill {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border: var(--border);
  box-shadow: 3px 3px 0 #000;
  transition: background 0.15s, transform 0.1s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.tag-pill:hover {
  background: var(--red);
  color: var(--white);
  transform: translate(-1px,-1px);
}

/* ===== 栏目 hero ===== */
.cat-intro,
.tag-intro,
.about-intro,
.privacy-intro {
  background: var(--blue);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  position: relative;
}
.cat-intro h1,
.tag-intro h1,
.about-intro h1,
.privacy-intro h1 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.2;
}
.cat-intro .subtitle,
.tag-intro .subtitle,
.about-intro .subtitle,
.privacy-intro .subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
}
.tag-eyebrow,
.about-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border: var(--border);
  box-shadow: 2px 2px 0 #000;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

/* ===== Entry 头部 ===== */
.entry-header-content {
  padding: 28px 0;
}
.entry-header-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 4vw, 2rem);
  margin-bottom: 8px;
  line-height: 1.2;
}
.entry-header-content .subtitle {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 12px;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.entry-date {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--yellow);
  border: 2px solid #000;
  padding: 3px 8px;
}
.entry-hero-wrap {
  margin-top: 16px;
  border: var(--border);
  box-shadow: var(--shadow);
}
.entry-hero-img { width: 100%; max-height: 400px; object-fit: cover; }

/* ===== 表格（栏目子页列表）===== */
.entry-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9rem;
  border: var(--border);
  box-shadow: var(--shadow);
}
.entry-table tbody tr {
  border-bottom: 2px solid #000;
  transition: background 0.15s;
}
.entry-table tbody tr:last-child { border-bottom: none; }
.entry-table tbody tr:hover { background: #f0f7ff; }
.entry-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-right: 2px solid #000;
}
.entry-table td:last-child { border-right: none; }
.entry-table td:first-child a {
  font-weight: 700;
  color: var(--black);
}
.entry-table td:first-child a:hover { color: var(--red); }

/* ===== 相关视频 ===== */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.related-card {
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  background: var(--white);
  transition: transform 0.15s;
}
.related-card:hover { transform: translate(-2px,-2px); }
.related-card a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
}
.related-card a:hover { color: var(--red); }
.related-card p { font-size: 0.8rem; color: #444; }

/* ===== 关于页导航网格 ===== */
.about-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.about-nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background: var(--blue);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.15s, background 0.15s;
  text-decoration: none;
}
.about-nav-card:hover {
  background: var(--red);
  color: var(--white);
  transform: translate(-3px,-3px);
}
.anc-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(0,0,0,0.3);
  margin-bottom: 8px;
}
.anc-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}
.about-nav-card:hover .anc-num { color: rgba(255,255,255,0.4); }
.about-nav-card:hover .anc-label { color: var(--white); }

/* ===== 隐私页日期 ===== */
.privacy-date {
  font-size: 0.8rem;
  color: #555;
  margin-top: 8px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-brand address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-brand address strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-links ul li a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  padding: 4px 0;
  display: block;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.footer-links ul li a:hover { color: var(--blue); }
.footer-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  border-top: 2px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #aaa;
}
.footer-bar a { color: #aaa; }
.footer-bar a:hover { color: var(--blue); }

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

/* ===== 移动端适配 ===== */
@media (max-width: 600px) {
  .brand-link { font-size: 1rem; }
  .hero-content { padding: 32px 16px 64px; min-height: 38vh; }
  .hero-content h1 { font-size: 1.4rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .about-nav-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr; }
  .main-nav ol li a { padding: 12px 10px; font-size: 0.78rem; }
  .entry-table td { padding: 8px 10px; font-size: 0.82rem; }
}

/* ===== aside 在桌面端正确定位（配合 flex 布局）===== */
@media (min-width: 900px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .site-header,
  .announce-bar,
  .site-footer,
  .fullscreen-menu {
    width: 100%;
  }
  /* wrap 区域和 aside 并排 */
  main {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    align-self: stretch;
  }
  main > .wrap {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .global-aside {
    display: block;
    position: sticky;
    top: 112px;
    align-self: flex-start;
  }
}
