@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

/* ===== 基础变量 ===== */
:root {
  --bg: #0D0D0D;
  --accent: #FF3366;
  --mint: #00FFB2;
  --surface: #161616;
  --surface2: #1E1E1E;
  --border: #2A2A2A;
  --text: #E8E8E8;
  --text-muted: #888;
  --font: 'JetBrains Mono', 'Courier New', Courier, monospace;
  --r: 18px;
  --r-sm: 6px;
  --trans: 160ms ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--mint); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
ul { list-style: none; }
button, input, select, textarea { font-family: var(--font); font-size: 1rem; }

/* ===== 导航：aside > nav > ul > li > a ===== */
.site-aside {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
  width: 100%;
}
.site-aside nav { width: 100%; }
.site-aside nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.site-aside nav ul li { display: flex; align-items: stretch; }
.site-aside nav ul li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  min-height: 48px;
  transition: color var(--trans), background var(--trans);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.site-aside nav ul li a:hover {
  color: var(--mint);
  background: rgba(0,255,178,0.04);
  border-bottom-color: var(--mint);
}
.brand-center { order: -10; }
.brand-logo {
  color: var(--accent) !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  padding: 0.75rem 1.5rem !important;
  border: 1px solid var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
  margin: 0.4rem 1rem !important;
  border-radius: var(--r-sm) !important;
  min-height: 40px !important;
}
.brand-logo:hover { color: var(--bg) !important; background: var(--accent) !important; }

/* ===== 锚点条 ===== */
.anchor-bar {
  position: sticky;
  top: 52px;
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  overflow-x: auto;
}
.anchor-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  white-space: nowrap;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--trans), color var(--trans);
}
.anchor-link:hover { border-color: var(--mint); color: var(--mint); }

/* ===== main > div.wrap > section > article ===== */
main { min-height: 60vh; }
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0 3rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--mint);
  text-transform: uppercase;
  border: 1px solid var(--mint);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}
.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 38ch;
}
.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.hero-img { border-radius: var(--r); object-fit: cover; }
.hero-deco {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.term-cursor { display: inline-block; }

/* 斜切色带 */
.hero-slash {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: var(--surface);
  clip-path: polygon(0 60%,100% 0,100% 100%,0 100%);
  z-index: 1;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  min-height: 44px;
  transition: background var(--trans), color var(--trans);
  letter-spacing: 0.05em;
}
.btn-primary:hover { background: var(--mint); color: var(--bg); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  min-height: 40px;
  transition: border-color var(--trans), color var(--trans);
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-block { width: 100%; justify-content: center; }

/* ===== section title ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mint);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ===== 正文内容区 ===== */
.content-section { padding: 3rem 0 2rem; }
.prose {
  max-width: 72ch;
  margin: 0 auto;
}
.prose h2 { font-size: 1.25rem; color: var(--accent); margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.05rem; color: var(--mint); margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose a { color: var(--accent); border-bottom: 1px solid transparent; }
.prose a:hover { color: var(--mint); border-bottom-color: var(--mint); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }
.prose code {
  background: var(--surface2);
  color: var(--mint);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}
.prose pre {
  background: var(--surface2);
  color: var(--mint);
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose time { color: var(--mint); font-size: 0.85rem; }

/* ===== 分类卡片 ===== */
.cats-section { padding: 2rem 0; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--trans), background var(--trans);
}
.cat-card:hover { border-color: var(--accent); background: var(--surface2); }
.cat-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  color: var(--text);
  min-height: 72px;
}
.cat-link:hover { color: var(--text); }
.cat-icon { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }
.cat-name { display: block; font-size: 0.95rem; font-weight: 500; color: var(--text); margin-bottom: 0.2rem; }
.cat-desc { display: block; font-size: 0.78rem; color: var(--text-muted); }

/* ===== 精选卡片 ===== */
.featured-section { padding: 2rem 0 3rem; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--trans), background var(--trans);
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--accent); }
.card-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 0; }
.card-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  align-self: flex-start;
}
.card-title { font-size: 0.95rem; font-weight: 500; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--mint); }
.card-desc { font-size: 0.82rem; color: var(--text-muted); flex: 1; }
.card-date { font-size: 0.75rem; color: var(--text-muted); }

/* ===== Service / Article 页 ===== */
.article-section { padding: 2.5rem 0; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}
.article-main { min-width: 0; }
.article-hero-img { width: 100%; border-radius: var(--r); margin-bottom: 1.5rem; }
.article-h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.meta-date {
  font-size: 0.78rem;
  color: var(--mint);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.article-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.article-prose h2 { font-size: 1.2rem; color: var(--accent); margin: 2rem 0 0.75rem; }
.article-prose h3 { font-size: 1.05rem; color: var(--mint); margin: 1.5rem 0 0.5rem; }
.article-prose p { margin-bottom: 1rem; }
.article-prose a { color: var(--accent); }
.article-prose a:hover { color: var(--mint); }
.article-prose ul, .article-prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-prose li { margin-bottom: 0.4rem; }
.article-prose code {
  background: var(--surface2);
  color: var(--mint);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
}
.article-prose pre {
  background: var(--surface2);
  padding: 1rem;
  border-radius: var(--r-sm);
  overflow-x: auto;
  border: 1px solid var(--border);
  margin: 1rem 0;
}
.article-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.article-prose strong { color: var(--text); }
.article-prose time { color: var(--mint); }

/* 侧栏 */
.article-sidebar { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 1.25rem; }
.siblings-aside, .nav-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
}
.aside-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.siblings-list li, .aside-nav-list li { margin-bottom: 0.3rem; }
.siblings-list a, .aside-nav-list a { font-size: 0.82rem; color: var(--text-muted); display: block; padding: 0.25rem 0; }
.siblings-list a:hover, .aside-nav-list a:hover { color: var(--mint); }
.sib-active a, li.sib-active > a { color: var(--accent) !important; }

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bc-link { color: var(--text-muted); }
.bc-link:hover { color: var(--mint); }
.bc-sep { color: var(--border); }
.bc-current { color: var(--text); }

/* 子页列表：section > article×n */
.children-section { padding: 2rem 0; }
.children-wrap { padding: 0 0 2rem; }
.child-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color var(--trans);
}
.child-card:hover { border-color: var(--accent); }
.child-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 0; }
.child-body { padding: 0.75rem 1rem 0.75rem 0; display: flex; flex-direction: column; gap: 0.3rem; justify-content: center; }
.child-title { font-size: 0.95rem; font-weight: 500; }
.child-title a { color: var(--text); }
.child-title a:hover { color: var(--mint); }
.child-desc { font-size: 0.82rem; color: var(--text-muted); }
.child-date { font-size: 0.75rem; color: var(--text-muted); }

/* ===== About 页 ===== */
.about-section { padding: 3rem 0; }
.about-layout {}
.about-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.about-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--mint);
  border: 1px solid var(--mint);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}
.about-h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.about-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}
.about-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.about-prose h2 { font-size: 1.15rem; color: var(--accent); margin: 1.75rem 0 0.6rem; }
.about-prose h3 { font-size: 1rem; color: var(--mint); margin: 1.25rem 0 0.4rem; }
.about-prose p { margin-bottom: 0.9rem; }
.about-prose a { color: var(--accent); }
.about-prose a:hover { color: var(--mint); }
.about-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 108px; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
}
.about-info-list { display: flex; flex-direction: column; gap: 0.5rem; }
.about-info-list li { display: flex; justify-content: space-between; font-size: 0.82rem; }
.info-label { color: var(--text-muted); }

/* ===== Privacy 页 ===== */
.legal-section { padding: 3rem 0; }
.legal-layout { max-width: 72ch; margin: 0 auto; }
.legal-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.legal-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}
.legal-h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; color: var(--text); margin-bottom: 0.5rem; }
.legal-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
}
.legal-prose h2 { font-size: 1.1rem; color: var(--accent); margin: 1.75rem 0 0.6rem; }
.legal-prose p { margin-bottom: 0.9rem; }
.legal-prose a { color: var(--accent); }
.legal-prose a:hover { color: var(--mint); }
.legal-prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-prose li { margin-bottom: 0.4rem; }
.legal-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== Contact 页 ===== */
.contact-section { padding: 3rem 0; }
.contact-layout {}
.contact-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.contact-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}
.contact-h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; color: var(--text); margin-bottom: 0.5rem; }
.contact-lead { color: var(--text-muted); font-size: 0.95rem; max-width: 55ch; }
.contact-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.contact-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.contact-prose h2 { font-size: 1.1rem; color: var(--accent); margin: 1.5rem 0 0.6rem; }
.contact-prose p { margin-bottom: 0.9rem; }
.contact-prose a { color: var(--accent); }
.contact-prose a:hover { color: var(--mint); }
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}
.contact-form-title { font-size: 0.95rem; font-weight: 500; color: var(--mint); margin-bottom: 1.25rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.05em; }
.form-input, .form-select, .form-textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  min-height: 44px;
  transition: border-color var(--trans);
  resize: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 120px; }
.contact-extra-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== Default 页 ===== */
.default-section { padding: 3rem 0; }
.default-layout { max-width: 72ch; margin: 0 auto; }
.default-h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; color: var(--text); margin-bottom: 1.5rem; }
.default-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
}
.default-prose h2 { font-size: 1.1rem; color: var(--accent); margin: 1.5rem 0 0.6rem; }
.default-prose p { margin-bottom: 0.9rem; }
.default-prose a { color: var(--accent); }
.default-prose a:hover { color: var(--mint); }
.default-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== 页脚：三栏 ===== */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2rem;
}
.footer-brand {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.footer-about { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.footer-heading { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--mint); margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); min-height: 28px; display: flex; align-items: center; }
.footer-links a:hover { color: var(--mint); }
.footer-col { display: flex; flex-direction: column; }
.footer-form { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.footer-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  min-height: 40px;
  transition: border-color var(--trans);
}
.footer-input:focus { outline: none; border-color: var(--accent); }
.footer-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font);
  min-height: 40px;
  transition: background var(--trans);
}
.footer-btn:hover { background: var(--mint); color: var(--bg); }
.footer-legal { margin-top: 0.5rem; }
.footer-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }
.footer-icp { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 0.5rem; }
.footer-icp a { color: var(--text-muted); }
.footer-icp a:hover { color: var(--mint); }

/* ===== Scroll Reveal 动效 ===== */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 240ms ease var(--delay, 0ms), transform 240ms ease var(--delay, 0ms);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-deco { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { min-height: 200px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .about-body { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .contact-body { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  html { font-size: 17px; }
  .wrap { padding: 0 1rem; }
  .hero-section { padding: 2.5rem 0 2rem; min-height: auto; }
  .hero-h1 { font-size: 1.6rem; }
  .site-aside nav ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 0.5rem; }
  .brand-logo { padding: 0.6rem 1rem !important; margin: 0.3rem 0.5rem !important; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .cats-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .child-card { grid-template-columns: 1fr; }
  .child-thumb { width: 100%; height: 180px; }
  .child-body { padding: 0.75rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 1rem; }
  .footer-bar { flex-direction: column; align-items: flex-start; padding: 0.75rem 1rem; }
  .anchor-bar { top: 48px; }
  .article-sidebar { display: none; }
}
