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

/* ==========================================
   CSS 自定义属性
   ========================================== */
:root {
  --c-bg: #ffffff;
  --c-surface: #f5f5f5;
  --c-ink: #1f1f1f;
  --c-ink-soft: #555555;
  --c-ink-muted: #888888;
  --c-border: #e0e0e0;
  --c-accent: #1f1f1f;
  --c-accent-hover: #3a3a3a;
  --c-announce: #1f1f1f;
  --c-announce-text: #ffffff;
  --c-footer-bg: #1f1f1f;
  --c-footer-text: #d0d0d0;
  --c-bottom-nav-bg: #1f1f1f;
  --c-bottom-nav-text: #ffffff;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 0px;
  --gap: 16px;
  --content-max: 900px;
  --layout-max: 1200px;
  --aside-w: 220px;
  --bottom-nav-h: 56px;
  --font-body: 'Archivo', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Archivo', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: var(--bottom-nav-h);
  overflow-x: hidden;
}

a {
  color: var(--c-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
}

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

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ==========================================
   公告条
   ========================================== */
.announcement-bar {
  background: var(--c-announce);
  color: var(--c-announce-text);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  font-family: var(--font-display);
}

/* ==========================================
   Header
   ========================================== */
.site-header {
  background: var(--c-bg);
  border-bottom: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-brand {
  flex-shrink: 0;
}

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

.brand-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.header-nav {
  display: flex;
  align-items: center;
}

/* ==========================================
   导航：details > summary + menu > li > a
   ========================================== */
#site-nav {
  position: relative;
}

#site-nav summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  user-select: none;
  transition: background 0.15s;
  min-height: 40px;
}

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

#site-nav summary:hover {
  background: var(--c-border);
}

.nav-icon {
  font-size: 1rem;
}
.nav-label {
  font-size: 0.85rem;
}

#site-nav[open] > summary {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

#site-nav menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  z-index: 200;
  padding: 8px 0;
}

#site-nav menu li {
  border-bottom: 1px solid var(--c-surface);
}
#site-nav menu li:last-child {
  border-bottom: none;
}

#site-nav menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-ink);
  transition: background 0.12s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
#site-nav menu li a:hover {
  background: var(--c-surface);
  text-decoration: none;
}

/* ==========================================
   Hero
   ========================================== */
.hero {
  position: relative;
  min-height: 45vh;
  background: var(--c-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 48px 32px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--layout-max);
  width: 100%;
  margin: 0 auto;
}

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

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #fff;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 28px;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
  min-height: 44px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.hero-cta:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* 斜切装饰 */
.hero-slash {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-bg);
  z-index: 3;
  clip-path: polygon(0 60px, 100% 0, 100% 60px);
}

.hero-cat .hero-slash,
.hero-about .hero-slash,
.hero-privacy .hero-slash {
  height: 48px;
  clip-path: polygon(0 48px, 100% 0, 100% 48px);
}

/* ==========================================
   Bento Grid（首页）
   ========================================== */
.bento-section {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.bento-header {
  margin-bottom: 24px;
}

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

.bento-card {
  display: flex;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(.22,.68,0,1.2), box-shadow 0.22s;
  cursor: pointer;
  position: relative;
}

.bento-card:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.bento-card-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  gap: 6px;
}

.bento-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-ink-muted);
  font-family: var(--font-display);
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

.bento-desc {
  font-size: 0.8rem;
  color: var(--c-ink-soft);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bento-arrow {
  font-size: 1.1rem;
  color: var(--c-ink-muted);
  align-self: flex-end;
  margin-top: auto;
}

/* 宽格 2列，标准1列，高格2行 */
.bento-wide {
  grid-column: span 2;
}
.bento-tall {
  grid-row: span 2;
}
.bento-std {
  grid-column: span 1;
}

/* 首页 bento：第1个宽+深色 */
.page-home .bento-grid .bento-card:first-child {
  background: var(--c-ink);
}
.page-home .bento-grid .bento-card:first-child .bento-title,
.page-home .bento-grid .bento-card:first-child .bento-eyebrow,
.page-home .bento-grid .bento-card:first-child .bento-desc,
.page-home .bento-grid .bento-card:first-child .bento-arrow {
  color: #fff;
}

/* ==========================================
   最近更新列表
   ========================================== */
.recent-section {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 32px 24px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1.5px solid var(--c-border);
}

.recent-item {
  border-bottom: 1px solid var(--c-border);
}

.recent-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  gap: 16px;
  transition: background 0.12s;
}
.recent-link:hover {
  text-decoration: none;
  background: var(--c-surface);
  padding-left: 10px;
}

.recent-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-ink);
  flex: 1;
  line-height: 1.4;
}

.recent-date {
  font-size: 0.78rem;
  color: var(--c-ink-muted);
  font-family: var(--font-display);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================
   内容布局（带侧边栏）
   ========================================== */
.content-layout {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 48px;
}

/* aside 在左侧 */
.content-aside {
  width: var(--aside-w);
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside-inner {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  padding: 18px;
}

.aside-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-ink-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-nav-list li {
  border-bottom: 1px solid var(--c-border);
}
.aside-nav-list li:last-child {
  border-bottom: none;
}

.aside-nav-list li a {
  display: block;
  padding: 9px 4px;
  font-size: 0.82rem;
  color: var(--c-ink-soft);
  line-height: 1.4;
  transition: color 0.12s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-nav-list li a:hover {
  color: var(--c-ink);
  text-decoration: none;
}

.aside-parent {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.aside-back {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  display: block;
  padding: 8px 4px;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-back:hover {
  text-decoration: none;
  color: var(--c-ink);
}

.content-main {
  flex: 1;
  min-width: 0;
}

/* ==========================================
   main > article.wrap > section > div
   ========================================== */
.wrap {
  width: 100%;
  max-width: var(--content-max);
}

.page-home main > .wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 32px 24px;
}

/* ==========================================
   面包屑
   ========================================== */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--c-ink-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--c-ink-muted);
}
.breadcrumb a:hover {
  color: var(--c-ink);
}

/* ==========================================
   文章样式
   ========================================== */
.art-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.art-date {
  font-size: 0.78rem;
  font-family: var(--font-display);
  color: var(--c-ink-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.art-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--c-ink);
}

.art-hero-wrap {
  margin-bottom: 24px;
  overflow: hidden;
  max-height: 400px;
}
.art-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ink);
}

.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-ink);
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}
.page-content h2 { font-size: 1.35rem; }
.page-content h3 { font-size: 1.1rem; }
.page-content h4 { font-size: 1rem; }

.page-content p {
  margin-bottom: 1.1em;
}

.page-content ul,
.page-content ol {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 1.1em;
}
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.4em; }

.page-content a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content blockquote {
  border-left: 4px solid var(--c-ink);
  padding: 12px 20px;
  background: var(--c-surface);
  margin: 1.5em 0;
  font-style: italic;
}

.page-content table {
  margin: 1.5em 0;
  font-size: 0.9rem;
}
.page-content th,
.page-content td {
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  text-align: left;
}
.page-content th {
  background: var(--c-surface);
  font-weight: 700;
}

.page-content strong { font-weight: 700; }
.page-content em { font-style: italic; }

/* ==========================================
   相关文章
   ========================================== */
.related-articles {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1.5px solid var(--c-border);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.related-list li {
  border-bottom: 1px solid var(--c-border);
}
.related-list li:last-child {
  border-bottom: none;
}
.related-list li a {
  display: flex;
  align-items: center;
  padding: 11px 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  min-height: 40px;
  transition: color 0.12s, padding-left 0.12s;
}
.related-list li a:hover {
  color: var(--c-ink);
  text-decoration: none;
  padding-left: 8px;
}

/* ==========================================
   栏目页子页表格
   ========================================== */
.child-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
}

.child-table {
  font-size: 0.88rem;
  border: 1.5px solid var(--c-border);
}
.child-table thead th {
  background: var(--c-ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  text-align: left;
}
.child-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background 0.12s;
}
.child-table tbody tr:last-child {
  border-bottom: none;
}
.child-table tbody tr:hover {
  background: var(--c-surface);
}
.child-table td {
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.5;
}
.tbl-title a {
  font-weight: 600;
  color: var(--c-ink);
  font-size: 0.9rem;
}
.tbl-title a:hover {
  text-decoration: underline;
}
.tbl-desc {
  color: var(--c-ink-soft);
  max-width: 360px;
}
.tbl-date {
  white-space: nowrap;
  color: var(--c-ink-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
}

/* ==========================================
   栏目页 Bento 卡片
   ========================================== */
.bento-grid-cat {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
}

/* ==========================================
   标题装饰
   ========================================== */
.section-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading > span {
  position: relative;
}

.section-heading > span::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--c-ink);
  margin-top: 4px;
}

/* ==========================================
   About 页额外
   ========================================== */
.about-cta-block {
  margin-top: 48px;
  padding: 32px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
}
.about-cta-block p {
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  margin-bottom: 20px;
  line-height: 1.6;
}
.about-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--c-ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 24px;
  min-height: 44px;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.btn-primary:hover {
  opacity: 0.82;
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 24px;
  min-height: 44px;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--c-ink);
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover {
  background: var(--c-ink);
  color: #fff;
  text-decoration: none;
}

/* ==========================================
   首页侧边 aside（独立浮块）
   ========================================== */
.home-aside {
  max-width: var(--layout-max);
  margin: 0 auto 32px;
  padding: 0 24px;
}
.home-aside .aside-inner {
  max-width: 320px;
}

/* ==========================================
   页脚
   ========================================== */
.site-footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-text);
  padding-top: 48px;
  margin-top: 48px;
}

.footer-cta-block {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-cta-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  max-width: 420px;
  line-height: 1.4;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 13px 28px;
  min-height: 44px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.footer-cta-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.footer-cols {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-dl dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.footer-dl dd {
  margin-bottom: 8px;
}

.footer-dl dd a {
  font-size: 0.85rem;
  color: var(--c-footer-text);
  line-height: 1.5;
  display: block;
  padding: 3px 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  transition: color 0.12s;
}
.footer-dl dd a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: calc(20px + var(--bottom-nav-h));
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ==========================================
   底部固定导航
   ========================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: var(--c-bottom-nav-bg);
  display: flex;
  align-items: stretch;
  z-index: 300;
  border-top: 1.5px solid rgba(255,255,255,0.08);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  min-height: var(--bottom-nav-h);
  padding: 8px 4px;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.12s, color 0.12s;
}
.bottom-nav-item:last-child {
  border-right: none;
}
.bottom-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none;
}

/* ==========================================
   Stagger 动效
   ========================================== */
@media (prefers-reduced-motion: no-preference) {
  .bento-card {
    animation: fadeUp 0.4s ease backwards;
  }
  .bento-grid .bento-card:nth-child(1) { animation-delay: 0.05s; }
  .bento-grid .bento-card:nth-child(2) { animation-delay: 0.10s; }
  .bento-grid .bento-card:nth-child(3) { animation-delay: 0.15s; }
  .bento-grid .bento-card:nth-child(4) { animation-delay: 0.20s; }
  .bento-grid .bento-card:nth-child(5) { animation-delay: 0.25s; }
  .bento-grid .bento-card:nth-child(6) { animation-delay: 0.30s; }

  .recent-item {
    animation: fadeUp 0.35s ease backwards;
  }
  .recent-item:nth-child(1) { animation-delay: 0.05s; }
  .recent-item:nth-child(2) { animation-delay: 0.10s; }
  .recent-item:nth-child(3) { animation-delay: 0.15s; }
  .recent-item:nth-child(4) { animation-delay: 0.20s; }
  .recent-item:nth-child(5) { animation-delay: 0.24s; }

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

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

/* ==========================================
   响应式
   ========================================== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
  .footer-cols {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .bento-wide {
    grid-column: span 2;
  }
  .bento-tall {
    grid-row: span 1;
  }

  .bento-grid-cat {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout {
    flex-direction: column;
    padding-top: 24px;
    gap: 0;
  }

  .content-aside {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
  }

  .aside-inner {
    flex: 1;
    min-width: 160px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-dl:last-child {
    grid-column: span 2;
  }

  .footer-cta-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 48vh;
    padding: 40px 20px 56px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0 16px;
  }

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

  .bento-grid-cat {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 50vh;
    padding: 32px 16px 52px;
  }

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

  .footer-cols {
    grid-template-columns: 1fr;
  }
  .footer-dl:last-child {
    grid-column: span 1;
  }

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

  .content-layout {
    padding: 16px 16px 32px;
  }

  .bento-section,
  .recent-section {
    padding: 32px 16px;
  }

  .child-table-wrap {
    font-size: 0.82rem;
  }

  .about-cta-btns {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   隐私页、About 页正文间距补充
   ========================================== */
.about-content,
.privacy-content {
  font-size: 1rem;
  line-height: 1.75;
}

/* ==========================================
   无需滚动条的小细节
   ========================================== */
@media (max-width: 375px) {
  body {
    overflow-x: hidden;
  }
  .site-header {
    gap: 8px;
  }
  .brand-link {
    font-size: 0.88rem;
  }
  #site-nav menu {
    min-width: 240px;
    right: -8px;
  }
}
