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

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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --off-white: #f5f5f0;
  --yellow: #ffe135;
  --border: 3px solid #000;
  --shadow: 5px 5px 0px #000;
  --shadow-sm: 3px 3px 0px #000;
  --shadow-lg: 7px 7px 0px #000;
  --radius: 0px;
  --card-radius: 0px;
  --font: 'Space Grotesk', 'Arial Black', Arial, sans-serif;
  --sidebar-w: 240px;
  --transition: 0.15s ease;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--off-white);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, menu {
  list-style: none;
}

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

button, input, textarea {
  font-family: var(--font);
  font-size: 16px;
}

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

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ===== 侧边栏导航 ===== */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--black);
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px 16px 16px;
  border-bottom: 3px solid #333;
}

.brand-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.brand-icon-link:hover {
  box-shadow: 3px 3px 0px var(--red);
  transform: translate(-1px, -1px);
}

.logo-text-icon {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.site-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* details/summary 导航 */
.nav-details {
  flex: 1;
  overflow: hidden;
}

.nav-summary {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  cursor: pointer;
  border-bottom: 1px solid #222;
  list-style: none;
  min-height: 44px;
}

.nav-summary::-webkit-details-marker { display: none; }

.nav-summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--blue);
  transition: transform var(--transition);
}

details[open] .nav-summary::after {
  transform: rotate(180deg);
}

.nav-menu {
  padding: 8px 0;
}

.nav-menu li {
  border-bottom: 1px solid #1a1a1a;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  line-height: 1.3;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--blue);
  color: var(--black);
  font-weight: 700;
}

.sidebar-cta {
  display: block;
  margin: 16px;
  padding: 12px 16px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  letter-spacing: 0.05em;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.sidebar-cta:hover {
  box-shadow: none;
  transform: translate(3px, 3px);
}

/* ===== 通用按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--blue);
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  min-height: 44px;
}

.btn-secondary:hover {
  background: var(--yellow);
  box-shadow: none;
  transform: translate(5px, 5px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: transparent;
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  min-height: 44px;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: none;
  transform: translate(3px, 3px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ===== article/figure/aside 结构 ===== */
article {
  padding: 40px 32px;
}

article + article {
  border-top: var(--border);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}

hr {
  border: none;
  border-top: 3px solid var(--black);
  margin-bottom: 28px;
}

/* ===== Hero（首页） ===== */
.hero-section {
  background: var(--blue);
  border-bottom: var(--border);
  padding: 0;
  position: relative;
  min-height: 45vh;
  overflow: hidden;
}

.hero-figure {
  margin: 0;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--black) 1px, transparent 1px),
    linear-gradient(90deg, var(--black) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 45vh;
  gap: 0;
}

.hero-text {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.eyebrow-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--black);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  align-self: flex-start;
}

.hero-h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  max-width: 480px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-aside {
  width: 360px;
  background: var(--white);
  border-left: var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

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

.hero-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--off-white),
    var(--off-white) 10px,
    var(--white) 10px,
    var(--white) 20px
  );
  min-height: 200px;
}

.hero-placeholder span {
  font-size: 18px;
  font-weight: 700;
  color: #999;
  border: var(--border);
  padding: 12px 24px;
  background: var(--white);
}

.hero-stats {
  display: flex;
  border-top: var(--border);
}

.stat-item {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  border-right: 2px solid var(--black);
}

.stat-item:last-child { border-right: none; }

.stat-item strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.stat-item span {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== 分类格子 ===== */
.categories-section,
.entries-section {
  background: var(--white);
}

.section-fig {
  margin: 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--off-white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.cat-card:hover {
  box-shadow: none;
  transform: translate(5px, 5px);
}

.cat-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.cat-card h3 a {
  color: var(--black);
}

.cat-card h3 a:hover {
  color: var(--red);
}

.cat-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  flex: 1;
}

/* ===== 词条格子 ===== */
.entries-section {
  background: var(--off-white);
}

.entries-aside {
  background: var(--black);
  color: var(--white);
  padding: 24px;
  border: var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  max-width: 300px;
  float: right;
  margin-left: 32px;
}

.entries-fig {
  margin: 0;
  overflow: hidden;
}

.aside-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.entries-aside p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.aside-link {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid #333;
  transition: color var(--transition);
}

.entries-aside .aside-link {
  color: var(--blue);
}

.aside-link:hover {
  color: var(--red);
}

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

.entry-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.entry-card:hover {
  box-shadow: none;
  transform: translate(5px, 5px);
  background: var(--yellow);
}

.entry-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.entry-card h3 a {
  color: var(--black);
}

.entry-card h3 a:hover { color: var(--red); }

.entry-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  flex: 1;
}

.entry-date,
.entry-updated {
  font-size: 12px;
  font-weight: 600;
  color: #777;
  letter-spacing: 0.04em;
}

/* ===== 正文 ===== */
.content-section,
.about-content-section,
.privacy-content-section,
.default-content-section,
.entry-body-section {
  background: var(--white);
}

.content-fig,
.about-content-fig,
.privacy-content-fig,
.default-content-fig,
.entry-body-fig {
  margin: 0;
}

.prose-content {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: #111;
}

.prose-content h2,
.prose-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 8px;
  line-height: 1.2;
}

.prose-content h3 { font-size: 18px; }

.prose-content p {
  margin-bottom: 16px;
}

.prose-content ul,
.prose-content ol {
  margin: 12px 0 16px 24px;
}

.prose-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.prose-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

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

.prose-content strong { font-weight: 700; }

.prose-content blockquote {
  border-left: 5px solid var(--blue);
  padding: 12px 20px;
  background: var(--off-white);
  margin: 20px 0;
  font-style: italic;
}

.entry-prose { max-width: 780px; }

/* ===== 页面头部（category/entry/tag/about/privacy） ===== */
.page-header-section,
.about-header-section,
.privacy-header-section,
.entry-header-section,
.default-header-section,
.about-cats-section {
  background: var(--red);
  padding: 0;
}

.entry-header-section { background: var(--black); }

.page-header-fig,
.about-header-fig,
.privacy-header-fig,
.entry-header-fig,
.default-header-fig {
  margin: 0;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.page-header-inner,
.about-header-inner,
.privacy-header-inner,
.entry-header-meta,
.default-header-inner {
  flex: 1;
  padding: 40px 32px;
  min-width: 0;
}

.page-h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--black);
}

.entry-h1 {
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--white);
}

.page-desc,
.entry-desc {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  max-width: 520px;
}

.page-header-section .page-desc { color: var(--black); }
.entry-header-section .entry-desc { color: #ccc; }

.page-header-aside,
.about-aside-header,
.privacy-aside,
.entry-header-aside,
.default-aside {
  width: 240px;
  padding: 32px 24px;
  border-left: var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  flex-shrink: 0;
}

.entry-header-aside {
  background: var(--off-white);
}

.category-badge,
.about-badge,
.privacy-badge {
  padding: 14px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.badge-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 4px;
}

.badge-count {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
}

.page-updated {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.tag-h1 .tag-prefix {
  font-size: 0.6em;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  opacity: 0.7;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--blue);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0 var(--black);
  margin-right: 6px;
  margin-bottom: 6px;
  transition: background var(--transition);
}

.tag-chip:hover { background: var(--red); color: var(--white); }

.tag-row { display: flex; flex-wrap: wrap; margin-top: 12px; }

.entry-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.entry-updated { color: #aaa; }

/* ===== 子页列表 ===== */
.children-section,
.related-section,
.about-cats-section {
  background: var(--off-white);
}

.about-cats-section { background: var(--white); }

.children-fig,
.related-fig,
.about-cats-fig {
  overflow: hidden;
  margin: 0;
}

.children-aside,
.related-aside,
.about-cats-aside {
  background: var(--blue);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
  max-width: 280px;
  float: right;
  margin-left: 32px;
}

.children-aside .aside-label,
.related-aside .aside-label,
.about-cats-aside .aside-label {
  color: var(--black);
}

.children-aside p,
.related-aside p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--black);
}

.children-aside .aside-link,
.related-aside .aside-link,
.about-cats-aside .aside-link {
  color: var(--black);
  border-bottom-color: rgba(0,0,0,0.2);
  font-weight: 700;
}

.children-aside .aside-link:hover,
.related-aside .aside-link:hover,
.about-cats-aside .aside-link:hover {
  color: var(--red);
}

.child-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.child-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.child-card:hover {
  box-shadow: none;
  transform: translate(5px, 5px);
}

.child-card-inner {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.child-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.child-card h3 a { color: var(--black); }
.child-card h3 a:hover { color: var(--red); }

.child-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  flex: 1;
}

.card-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 4px;
}

.card-more:hover { color: var(--red); }

.empty-tip {
  font-size: 15px;
  color: #888;
  padding: 24px;
}

/* ===== 关联词条 ===== */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.related-card:hover {
  box-shadow: none;
  transform: translate(3px, 3px);
  background: var(--yellow);
}

.related-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-card h3 a { color: var(--black); }
.related-card h3 a:hover { color: var(--red); }

.related-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* ===== About ===== */
.about-cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.about-cat-item {
  background: var(--off-white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.about-cat-item:hover {
  box-shadow: none;
  transform: translate(5px, 5px);
}

.about-cat-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-cat-item h3 a { color: var(--black); }
.about-cat-item h3 a:hover { color: var(--blue); }

.about-cat-item p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* ===== Hero Entry ===== */
.entry-hero-wrap {
  width: 100%;
  border-bottom: var(--border);
  overflow: hidden;
  max-height: 320px;
}

.entry-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ===== cat-content ===== */
.cat-content { background: var(--off-white); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
}

.site-footer > article {
  background: transparent;
  border: none;
  padding: 36px 32px;
  border-bottom: 1px solid #222;
}

.site-footer > article + article {
  border-top: none;
}

/* 三栏并排 */
.site-footer {
  display: grid;
  grid-template-rows: auto auto;
}

/* 三栏 */
.footer-brand,
.footer-nav,
.footer-contact {
  display: block;
}

/* 上面三栏用flex分布 */
.site-footer > .footer-brand,
.site-footer > .footer-nav,
.site-footer > .footer-contact {
  float: none;
}

/* 用grid让三栏并排 */
.site-footer {
  display: block;
}

.site-footer > .footer-brand,
.site-footer > .footer-nav,
.site-footer > .footer-contact,
.site-footer > .footer-bottom {
  display: block;
}

/* 覆盖为真三栏 */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #222;
}

/* 使用直接定义在 HTML 的三个 article */
.site-footer {
  display: flex;
  flex-direction: column;
}

.site-footer > article {
  flex: none;
}

/* 让前三个 article 横排 */
.site-footer > article:nth-child(1),
.site-footer > article:nth-child(2),
.site-footer > article:nth-child(3) {
  display: inline-block;
  vertical-align: top;
  width: 33.333%;
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
}

.site-footer > article:nth-child(3) {
  border-right: none;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
  max-width: 200px;
}

.footer-nav h3,
.footer-contact h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.footer-nav ul { list-style: none; }

.footer-nav ul li {
  border-bottom: 1px solid #1a1a1a;
}

.footer-nav ul li a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: #ccc;
  transition: color var(--transition);
  min-height: 36px;
}

.footer-nav ul li a:hover { color: var(--blue); }

.footer-contact p {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 12px;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 2px solid #555;
}

.subscribe-form input {
  flex: 1;
  padding: 10px 14px;
  background: #111;
  border: none;
  color: var(--white);
  font-size: 13px;
  outline: none;
  min-height: 44px;
}

.subscribe-form input::placeholder { color: #555; }

.subscribe-form .btn-primary {
  border: none;
  border-left: 2px solid #555;
  box-shadow: none;
  padding: 10px 16px;
  font-size: 13px;
}

.subscribe-form .btn-primary:hover {
  transform: none;
  background: var(--red);
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.footer-links-row a {
  font-size: 13px;
  color: #aaa;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 32px;
  border-top: 1px solid #222;
  background: #050505;
}

.copyright {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.footer-meta {
  font-size: 12px;
  color: #444;
}

/* ===== 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .cat-card,
  .entry-card,
  .child-card,
  .related-card,
  .about-cat-item {
    animation: fadeUp 0.4s ease both;
  }

  .cat-grid li:nth-child(1) .cat-card { animation-delay: 0.05s; }
  .cat-grid li:nth-child(2) .cat-card { animation-delay: 0.1s; }
  .cat-grid li:nth-child(3) .cat-card { animation-delay: 0.15s; }
  .cat-grid li:nth-child(4) .cat-card { animation-delay: 0.2s; }

  .entry-grid li:nth-child(1) .entry-card { animation-delay: 0.05s; }
  .entry-grid li:nth-child(2) .entry-card { animation-delay: 0.1s; }
  .entry-grid li:nth-child(3) .entry-card { animation-delay: 0.15s; }
  .entry-grid li:nth-child(4) .entry-card { animation-delay: 0.2s; }
  .entry-grid li:nth-child(5) .entry-card { animation-delay: 0.25s; }
  .entry-grid li:nth-child(6) .entry-card { animation-delay: 0.3s; }

  .child-list li:nth-child(1) .child-card { animation-delay: 0.05s; }
  .child-list li:nth-child(2) .child-card { animation-delay: 0.1s; }
  .child-list li:nth-child(3) .child-card { animation-delay: 0.15s; }
  .child-list li:nth-child(4) .child-card { animation-delay: 0.2s; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

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

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  :root {
    --sidebar-w: 200px;
  }

  .hero-aside { width: 280px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  .site-footer > article:nth-child(1),
  .site-footer > article:nth-child(2),
  .site-footer > article:nth-child(3) {
    width: 100%;
    border-right: none;
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar-nav {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    flex-direction: row;
    align-items: center;
    z-index: 200;
    padding: 0;
    border-right: none;
    border-bottom: var(--border);
    overflow: visible;
  }

  .sidebar-brand {
    padding: 8px 12px;
    border-bottom: none;
    border-right: var(--border);
    flex-shrink: 0;
  }

  .nav-details {
    position: relative;
    flex: 1;
  }

  .nav-summary {
    border-bottom: none;
    padding: 0 12px;
    height: 52px;
    font-size: 12px;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border: var(--border);
    border-top: none;
    z-index: 300;
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
  }

  .nav-menu li {
    border-bottom: 1px solid #222;
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 14px;
  }

  .sidebar-cta {
    margin: 8px;
    padding: 10px 14px;
    flex-shrink: 0;
    font-size: 12px;
  }

  .main-content {
    margin-left: 0;
  }

  article { padding: 28px 16px; }

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

  .hero-text { padding: 32px 16px; }

  .hero-aside {
    width: 100%;
    border-left: none;
    border-top: var(--border);
  }

  .hero-h1 { font-size: 32px; }

  .page-header-fig,
  .about-header-fig,
  .privacy-header-fig,
  .entry-header-fig,
  .default-header-fig {
    flex-direction: column;
  }

  .page-header-aside,
  .about-aside-header,
  .privacy-aside,
  .entry-header-aside,
  .default-aside {
    width: 100%;
    border-left: none;
    border-top: var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-header-inner,
  .about-header-inner,
  .privacy-header-inner,
  .entry-header-meta,
  .default-header-inner {
    padding: 28px 16px;
  }

  .entries-aside,
  .children-aside,
  .related-aside,
  .about-cats-aside {
    float: none;
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 20px;
  }

  .child-list { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr 1fr; }

  .footer-bottom {
    padding: 16px;
    flex-direction: column;
    text-align: center;
  }

  .section-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 26px; }
  .page-h1 { font-size: 24px; }
  .entry-h1 { font-size: 22px; }
  .cat-grid { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  article { padding: 20px 12px; }
  .subscribe-form { flex-direction: column; border: none; gap: 8px; }
  .subscribe-form input { border: var(--border); }
  .subscribe-form .btn-primary { border-left: var(--border); width: 100%; }
}
