@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

/* ===== 基础变量 ===== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --bg: #f5f5f0;
  --card-bg: #ffffff;
  --border: 3px solid #000;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --shadow-red: 5px 5px 0 #ff5252;
  --shadow-blue: 5px 5px 0 #3bb1ff;
  --radius: 0px;
  --card-radius: 0px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --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);
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, menu {
  list-style: none;
}

/* ===== 站点外层 ===== */
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 品牌栏 ===== */
.brand-bar {
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--blue);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--blue);
  text-decoration: none;
  min-height: 40px;
}

.brand-logo img {
  width: 36px;
  height: 36px;
}

.brand-name {
  letter-spacing: -0.02em;
}

.brand-slogan {
  font-size: 0.82rem;
  color: #aaa;
  flex: 1;
}

.contact-btn {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 8px 18px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: transform 0.1s, box-shadow 0.1s;
}

.contact-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000;
}

/* ===== 主导航 ===== */
.main-nav {
  background: var(--blue);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.nav-item > a,
.nav-item > details > summary {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: var(--nav-h);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--black);
  border-right: 2px solid rgba(0,0,0,0.15);
  cursor: pointer;
  min-height: 40px;
  user-select: none;
}

.nav-item > a:hover,
.nav-item > details > summary:hover,
.nav-item > details[open] > summary {
  background: var(--black);
  color: var(--blue);
}

.nav-item > details {
  position: relative;
}

.nav-item > details > summary {
  list-style: none;
}

.nav-item > details > summary::after {
  content: '▾';
  margin-left: 6px;
  font-size: 0.7rem;
}

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

.nav-item > details > menu,
.nav-item > details > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 200;
}

.nav-item > details > menu > li > a,
.nav-item > details > ul > li > a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 2px solid #eee;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.nav-item > details > menu > li > a:hover,
.nav-item > details > ul > li > a:hover {
  background: var(--blue);
  color: var(--black);
}

/* ===== 粘性锚点条 ===== */
.sticky-anchors {
  background: var(--white);
  border-bottom: var(--border);
  display: flex;
  gap: 0;
  overflow-x: auto;
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
}

.sticky-anchors a {
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  border-right: 2px solid #ddd;
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.sticky-anchors a:hover {
  background: var(--blue);
  color: var(--black);
}

/* ===== HERO 首页 ===== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 45vh;
  max-height: 520px;
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: clamp(80px, 18vw, 200px);
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.hero-figure {
  position: relative;
  z-index: 1;
  border-right: var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  min-height: 240px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  background: var(--black);
}

.hero-icon {
  font-size: 5rem;
  opacity: 0.4;
}

.hero-aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
  background: var(--black);
}

.hero-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-lead {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 400px;
}

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

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: var(--black);
  font-weight: 800;
  padding: 12px 24px;
  border: var(--border);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  min-height: 48px;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  padding: 12px 24px;
  border: var(--border);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  min-height: 48px;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-secondary:hover {
  background: var(--red);
  color: var(--white);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
}

/* ===== 分类区块 ===== */
.cat-section,
.entry-section,
.tag-entries-section,
.site-cats-section,
.related-section,
.children-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.cat-section h2,
.entry-section h2,
.tag-entries-section h2,
.site-cats-section h2,
.related-section h2,
.children-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: var(--border);
  padding-bottom: 12px;
}

.h2-tag {
  background: var(--red);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 2px solid #000;
  letter-spacing: 0.05em;
}

.h2-text {
  color: var(--black);
}

/* ===== 分类卡片网格 ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none;
  color: var(--black);
}

.cat-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
  background: var(--blue);
}

.cat-card strong {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
}

.card-num {
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.cat-card:hover .card-num {
  background: var(--white);
  color: var(--black);
}

.card-title {
  line-height: 1.3;
}

.card-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

.cat-card:hover .card-desc {
  color: #222;
}

/* ===== 资源卡片网格 ===== */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-blue);
  padding: 18px;
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none;
  color: var(--black);
}

.entry-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--blue);
  background: #f0f8ff;
}

.entry-card strong {
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.3;
}

.entry-desc {
  font-size: 0.83rem;
  color: #555;
  line-height: 1.5;
  flex: 1;
}

.entry-date {
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
}

/* ===== 内容区（sidebar + 正文）===== */
.content-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  border-top: var(--border);
  border-bottom: var(--border);
}

.sidebar {
  border-right: var(--border);
  padding: 32px 20px;
  background: var(--white);
  position: sticky;
  top: calc(var(--nav-h) + 42px);
  align-self: start;
}

.sidebar h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-bottom: 10px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar h3:first-child {
  margin-top: 0;
}

.sidebar h3 span {
  display: block;
}

.sidebar-links li {
  border-bottom: 1px solid #eee;
}

.sidebar-links a {
  display: block;
  padding: 8px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  min-height: 36px;
  display: flex;
  align-items: center;
}

.sidebar-links a:hover {
  color: var(--red);
  padding-left: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-pill {
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 2px solid #000;
  transition: background 0.1s, color 0.1s;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.tag-pill:hover {
  background: var(--blue);
  color: var(--black);
}

.main-content-area {
  padding: 36px 32px;
  min-width: 0;
}

/* ===== 正文内容样式 ===== */
.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--black);
  max-width: 760px;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--blue);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 10px;
}

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

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

.page-content li {
  margin-bottom: 6px;
}

.page-content a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--blue);
}

.page-content strong {
  font-weight: 800;
}

.page-content time {
  font-weight: 600;
  color: #555;
}

/* ===== 关于区块（首页）===== */
.about-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  gap: 32px;
  align-items: center;
  border-top: var(--border);
}

.about-fig {
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.about-icon {
  font-size: 3.5rem;
}

.about-aside h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-aside p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
}

/* ===== 页面级 HERO（category/entry/tag/about/privacy）===== */
.page-hero-section,
.entry-header-section,
.tag-hero-section,
.about-banner-section,
.privacy-hero-section,
.default-hero-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-bottom: var(--border);
  background: var(--black);
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.page-hero-bg-text {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: clamp(60px, 14vw, 160px);
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  pointer-events: none;
  z-index: 0;
}

.page-hero-fig,
.entry-hero-figure,
.tag-hero-fig,
.about-banner-fig,
.privacy-hero-fig,
.default-hero-fig {
  position: relative;
  z-index: 1;
  border-right: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  overflow: hidden;
  min-height: 200px;
}

.page-hero-img,
.entry-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-icon,
.tag-hero-icon,
.about-banner-num,
.privacy-num,
.hero-icon {
  font-size: 4rem;
  color: var(--blue);
  font-weight: 800;
  opacity: 0.6;
}

.about-banner-num,
.privacy-num {
  font-size: 5rem;
}

.entry-hero-placeholder {
  background: #1a1a1a;
}

.page-hero-aside,
.entry-header-aside,
.tag-hero-aside,
.about-banner-aside,
.privacy-hero-aside,
.default-hero-aside {
  position: relative;
  z-index: 1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-h1,
.entry-h1,
.tag-h1,
.about-h1,
.privacy-h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-lead,
.entry-desc-lead,
.tag-lead,
.about-lead,
.privacy-lead {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.page-date {
  color: #888;
  font-size: 0.82rem;
  font-weight: 600;
}

.tag-eyebrow,
.about-eyebrow,
.privacy-eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ===== 面包屑 ===== */
.entry-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.entry-breadcrumb a {
  color: var(--blue);
  font-weight: 600;
}

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

.entry-breadcrumb span:last-child {
  color: #ccc;
}

/* ===== 元信息 ===== */
.entry-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.meta-item {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
}

.meta-item time {
  color: #bbb;
}

.entry-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== 内容图片 ===== */
.content-figure {
  margin-bottom: 24px;
  border: var(--border);
  box-shadow: var(--shadow);
}

.content-figure img {
  width: 100%;
}

.child-img {
  display: block;
  overflow: hidden;
  border: 2px solid #000;
}

.child-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

/* ===== 子页列表 ===== */
.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.child-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-red);
  padding: 18px;
  transition: transform 0.12s, box-shadow 0.12s;
  color: var(--black);
  text-decoration: none;
}

.child-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--red);
  background: #fff5f5;
}

.child-card strong {
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.3;
}

.child-desc {
  font-size: 0.83rem;
  color: #555;
  line-height: 1.5;
}

.child-date {
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  transition: transform 0.1s, box-shadow 0.1s;
  color: var(--black);
  text-decoration: none;
}

.related-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
  background: var(--blue);
}

.related-card strong {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.3;
}

.related-card span {
  font-size: 0.8rem;
  color: #555;
}

.related-card:hover span {
  color: #222;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
  border-top-color: var(--blue);
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
}

.site-footer > article {
  padding: 36px 28px;
  border-right: 1px solid #222;
}

.site-footer > article:last-of-type {
  border-right: none;
}

.site-footer article strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #333;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.6;
}

.footer-nav ul,
.footer-info ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav a,
.footer-info a {
  font-size: 0.85rem;
  color: #bbb;
  padding: 5px 0;
  font-weight: 600;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.footer-nav a:hover,
.footer-info a:hover {
  color: var(--blue);
}

.footer-copy {
  grid-column: 1 / -1;
  background: #0a0a0a;
  border-top: 1px solid #222;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.8rem;
  color: #666;
  flex-wrap: wrap;
}

.footer-copy a {
  color: #888;
  font-weight: 600;
}

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

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

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

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

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

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

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

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }

  .hero-figure {
    min-height: 180px;
    border-right: none;
    border-bottom: var(--border);
  }

  .hero-aside {
    padding: 28px 20px;
  }

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

  .page-hero-section,
  .entry-header-section,
  .tag-hero-section,
  .about-banner-section,
  .privacy-hero-section,
  .default-hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-hero-fig,
  .entry-hero-figure,
  .tag-hero-fig,
  .about-banner-fig,
  .privacy-hero-fig,
  .default-hero-fig {
    min-height: 120px;
    border-right: none;
    border-bottom: var(--border);
  }

  .page-hero-aside,
  .entry-header-aside,
  .tag-hero-aside,
  .about-banner-aside,
  .privacy-hero-aside,
  .default-hero-aside {
    padding: 24px 20px;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    border-right: none;
    border-bottom: var(--border);
    padding: 20px 16px;
  }

  .main-content-area {
    padding: 24px 16px;
  }

  .about-section {
    grid-template-columns: 1fr;
    padding: 32px 16px;
  }

  .about-fig {
    min-height: 100px;
  }

  .cat-section,
  .entry-section,
  .tag-entries-section,
  .site-cats-section,
  .related-section,
  .children-section {
    padding: 32px 16px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer > article {
    border-right: none;
    border-bottom: 1px solid #222;
    padding: 24px 16px;
  }

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

  .nav-item > a,
  .nav-item > details > summary {
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .brand-bar {
    padding: 8px 16px;
  }

  .brand-slogan {
    display: none;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .children-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
