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

/* ===== CSS 自定义属性 ===== */
:root {
  --c-white: #ffffff;
  --c-surface: #f5f5f5;
  --c-ink: #1f1f1f;
  --c-ink-60: rgba(31,31,31,0.6);
  --c-ink-20: rgba(31,31,31,0.12);
  --c-accent: #1f1f1f;
  --c-accent-light: #3a3a3a;
  --c-border: rgba(31,31,31,0.1);
  --c-shadow: rgba(0,0,0,0.06);
  --c-shadow-md: rgba(0,0,0,0.10);
  --radius-card: 18px;
  --radius-pill: 999px;
  --radius-sm: 8px;
  --gap: 16px;
  --max-w: 1200px;
  --nav-h: 64px;
  --anchor-h: 44px;
  --font-base: 'Inter', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-white);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background: var(--c-white);
  color: var(--c-ink);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

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

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
}

.site-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-ink);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.logo-mark {
  height: 32px;
  width: auto;
}

.nav-pills {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-pills::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-ink);
  white-space: nowrap;
  min-height: 40px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: var(--c-ink);
  color: var(--c-white);
  text-decoration: none;
}

.nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--c-ink);
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  min-height: 40px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--c-accent-light);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== 锚点条 ===== */
.anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  height: var(--anchor-h);
}

.anchor-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-inner::-webkit-scrollbar { display: none; }

.anchor-inner a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink-60);
  white-space: nowrap;
  padding: 6px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.anchor-inner a:hover {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
  text-decoration: none;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 20px 0 8px;
  font-size: 0.8rem;
  color: var(--c-ink-60);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumb a {
  color: var(--c-ink-60);
  transition: color 0.2s;
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--c-ink); }
.breadcrumb span[aria-current] { color: var(--c-ink); font-weight: 600; }

/* ===== Hero 首页 ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-ink);
  margin: 24px 0;
  border-radius: 24px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 60px 56px;
}

.hero-text {
  max-width: 600px;
  text-align: left;
}

.hero-eyebrow,
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-section .eyebrow,
.hero-section .hero-eyebrow {
  color: rgba(255,255,255,0.55);
}

.hero-section h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--c-white);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 480px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 44px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

.page-article .btn-ghost,
.page-topic .btn-ghost,
.page-about .btn-ghost {
  color: var(--c-ink);
  border-color: var(--c-border);
}
.page-article .btn-ghost:hover,
.page-topic .btn-ghost:hover,
.page-about .btn-ghost:hover {
  background: var(--c-surface);
  border-color: var(--c-ink);
}

.hero-media {
  flex-shrink: 0;
  max-width: 280px;
}
.hero-img {
  border-radius: 16px;
  object-fit: cover;
}

.hero-slash {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, transparent 49.5%, rgba(255,255,255,0.04) 50%);
  pointer-events: none;
  z-index: 1;
}

/* ===== Section 通用 ===== */
.section-header {
  margin-bottom: 24px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin-top: 6px;
}
.section-header .eyebrow {
  color: var(--c-ink-60);
}

/* ===== Bento Grid ===== */
.bento-section,
.topic-cards-section,
.about-nav-section,
.privacy-links {
  padding: 48px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--gap);
}

.bento-card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: transform 0.25s cubic-bezier(.22,.61,.36,1), box-shadow 0.25s;
  box-shadow: 0 4px 6px var(--c-shadow);
  text-decoration: none;
  color: var(--c-ink);
  cursor: pointer;
}
.bento-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px var(--c-shadow-md);
  text-decoration: none;
  color: var(--c-ink);
}

.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

.bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: var(--radius-card);
}

.bento-body {
  position: relative;
  z-index: 1;
}

.bento-card .bento-img ~ .bento-body {
  background: linear-gradient(to top, rgba(31,31,31,0.75) 0%, transparent 100%);
  margin: -20px;
  padding: 20px;
  color: var(--c-white);
}

.bento-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.bento-card .bento-img ~ .bento-body .bento-tag {
  background: rgba(255,255,255,0.2);
}

.bento-body h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.bento-body p {
  font-size: 0.8rem;
  color: var(--c-ink-60);
  line-height: 1.5;
}
.bento-card .bento-img ~ .bento-body p {
  color: rgba(255,255,255,0.75);
}

.bento-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-ink);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
}
.bento-card:hover .bento-line { transform: scaleX(1); }

/* ===== 文章表格 ===== */
.latest-section,
.child-list-section {
  padding: 48px 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  background: var(--c-white);
}

.art-table,
.child-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.child-table thead {
  background: var(--c-surface);
}
.child-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--c-ink-60);
  border-bottom: 1px solid var(--c-border);
}

.child-row,
.art-table tr {
  border-bottom: 1px solid var(--c-border);
  transition: background 0.15s;
}
.child-row:last-child,
.art-table tr:last-child { border-bottom: none; }
.child-row:hover,
.art-table tr:hover { background: var(--c-surface); }

.art-cell,
.child-title-cell,
.child-desc-cell,
.child-date-cell {
  padding: 16px 20px;
  vertical-align: top;
}

.art-link,
.child-link {
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.art-link:hover,
.child-link:hover { text-decoration: underline; }

.art-title { font-family: var(--font-display); }

.art-date,
.child-date-cell time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-ink-60);
  white-space: nowrap;
}

.child-desc-cell {
  color: var(--c-ink-60);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 360px;
}

/* ===== 正文容器 ===== */
.content-section {
  padding: 40px 0;
}

.content-body {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 40px 48px;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 6px var(--c-shadow);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-ink);
  max-width: 820px;
}

.content-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2em 0 0.6em;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.content-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5em 0 0.5em;
  color: var(--c-ink);
}
.content-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.2em 0 0.4em;
}
.content-body p { margin-bottom: 1.2em; }
.content-body ul, .content-body ol {
  margin: 0 0 1.2em 1.5em;
  list-style: disc;
}
.content-body ol { list-style: decimal; }
.content-body li { margin-bottom: 0.4em; }
.content-body strong { font-weight: 700; }
.content-body em { font-style: italic; }
.content-body a { color: var(--c-ink); text-decoration: underline; }
.content-body blockquote {
  border-left: 3px solid var(--c-ink);
  padding-left: 20px;
  margin: 1.5em 0;
  color: var(--c-ink-60);
  font-style: italic;
}
.content-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--c-surface);
  padding: 2px 6px;
  border-radius: 4px;
}
.content-body pre {
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.2em;
}
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 0.9em;
}
.content-body th, .content-body td {
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  text-align: left;
}
.content-body th {
  background: var(--c-surface);
  font-weight: 700;
}
.content-body time {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--c-ink-60);
}

/* ===== 文章页 ===== */
.article-header-section {
  padding: 32px 0 24px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.article-header-inner {
  flex: 1;
  min-width: 260px;
}
.article-header-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 10px 0 16px;
  color: var(--c-ink);
}
.article-lead {
  font-size: 1rem;
  color: var(--c-ink-60);
  line-height: 1.7;
  max-width: 600px;
}
.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-ink-60);
}
.article-hero-img-wrap {
  flex-shrink: 0;
  width: 260px;
}
.article-hero-img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  max-height: 200px;
}

.article-content {
  max-width: 760px;
}

.nav-between {
  padding: 32px 0 48px;
}
.between-inner {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== 专题页 ===== */
.topic-hero {
  padding: 40px 0 24px;
}
.topic-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 10px 0 14px;
  color: var(--c-ink);
}
.topic-lead {
  font-size: 1rem;
  color: var(--c-ink-60);
  max-width: 620px;
  line-height: 1.7;
}

/* ===== About 页 ===== */
.about-hero {
  padding: 48px 0 24px;
}
.about-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 10px 0 14px;
  letter-spacing: -0.03em;
}
.about-lead {
  font-size: 1rem;
  color: var(--c-ink-60);
  max-width: 600px;
  line-height: 1.7;
}
.about-content { max-width: 760px; }

.stats-section { padding: 24px 0 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.stat-card {
  text-align: center;
  padding: 28px 16px;
  justify-content: center;
  grid-row: auto;
  height: auto;
  min-height: 120px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--c-ink-60);
  font-weight: 600;
}

.about-bento {
  grid-auto-rows: 160px;
}

/* ===== Privacy 页 ===== */
.privacy-header { padding: 48px 0 24px; }
.privacy-header-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 10px 0 14px;
  letter-spacing: -0.03em;
}
.privacy-lead {
  font-size: 1rem;
  color: var(--c-ink-60);
  max-width: 600px;
  line-height: 1.7;
}
.privacy-update {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-ink-60);
}
.privacy-content { max-width: 760px; }
.privacy-bento {
  grid-auto-rows: 160px;
  grid-template-columns: repeat(3, 1fr);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-ink);
  color: var(--c-white);
  margin-top: 80px;
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-white);
  display: block;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
  line-height: 1.6;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}
.footer-form label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--c-white);
}
.form-row {
  display: flex;
  gap: 8px;
}
.footer-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--c-white);
  font-size: 0.85rem;
  font-family: var(--font-base);
  min-height: 42px;
  outline: none;
  transition: border-color 0.2s;
}
.footer-form input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.footer-form input[type="email"]:focus { border-color: rgba(255,255,255,0.6); }
.footer-form button {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-ink);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 42px;
  min-width: 60px;
  transition: background 0.2s;
}
.footer-form button:hover { background: var(--c-surface); }

.footer-cols {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col {
  flex: 1;
  min-width: 160px;
}
.footer-col dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-col dd {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.footer-col dd a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  min-height: 24px;
}
.footer-col dd a:hover { color: var(--c-white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--c-white); }

/* ===== 相关文章 ===== */
.related-section { padding: 48px 0 16px; }

/* ===== Scroll Reveal 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(.22,.61,.36,1), transform 0.55s cubic-bezier(.22,.61,.36,1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-stagger {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s cubic-bezier(.22,.61,.36,1), transform 0.45s cubic-bezier(.22,.61,.36,1);
  }
  .reveal-stagger.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 48px 32px; flex-direction: column; }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-media { display: none; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }

  .site-nav { gap: 8px; padding: 0 16px; }
  .nav-pills { gap: 2px; }
  .nav-link { padding: 8px 10px; font-size: 0.78rem; min-height: 40px; }
  .brand-text { font-size: 0.88rem; }
  .nav-cta { padding: 8px 14px; font-size: 0.78rem; }

  .wrap { padding: 0 16px; }

  .hero-section { border-radius: 16px; min-height: 60vh; margin: 16px 0; }
  .hero-inner { padding: 40px 24px; }
  .hero-section h1 { font-size: 1.6rem; }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 12px;
  }
  .bento-wide { grid-column: span 2; }
  .bento-tall { grid-row: span 1; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .privacy-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 140px;
  }

  .content-body { padding: 24px 20px; }

  .article-header-section { flex-direction: column; }
  .article-hero-img-wrap { width: 100%; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-cols { flex-direction: column; gap: 28px; }
  .footer-form { min-width: unset; width: 100%; }

  .child-table th:nth-child(2),
  .child-table td.child-desc-cell { display: none; }

  .article-meta { flex-direction: column; gap: 4px; }

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

@media (max-width: 400px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide { grid-column: span 1; }
}
