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

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

:root {
  --bg: #ffffff;
  --bg2: #f5f5f5;
  --ink: #1f1f1f;
  --ink2: #555555;
  --border: #e0e0e0;
  --accent: #1f1f1f;
  --accent-hover: #444444;
  --radius: 4px;
  --radius-card: 16px;
  --gap: 16px;
  --header-h: 64px;
  --anchor-h: 44px;
  --font-body: 'Fira Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --trans: 0.22s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul {
  list-style: none;
}

/* ─── 辅助类 ─── */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── 顶部导航 ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 900;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  padding: 8px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color var(--trans), background var(--trans);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--bg2);
  text-decoration: none;
}

.brand-center {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.brand-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}

.btn-cta {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background var(--trans), color var(--trans);
  margin-left: 8px;
}

.btn-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* ─── 汉堡按钮 ─── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── 全屏遮罩菜单 ─── */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fullscreen-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 18px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  padding: 0 24px;
}

.menu-nav-link {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 14px 24px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: color var(--trans), background var(--trans);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.menu-cta {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ─── 粘性锚点条 ─── */
.sticky-anchor {
  position: sticky;
  top: var(--header-h);
  z-index: 800;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: var(--anchor-h);
}

.anchor-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
}

.anchor-link {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink2);
  white-space: nowrap;
  padding: 6px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}

.anchor-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
  text-decoration: none;
}

.anchor-current {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

/* ─── 主内容区 ─── */
.site-main {
  margin-top: var(--header-h);
  flex: 1;
}

/* ─── 首页 Hero ─── */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg2);
}

.hero-collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.collage-a {
  position: absolute;
  right: 5%;
  top: 10%;
  width: 38%;
  height: 50%;
  background: var(--border);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.collage-b {
  position: absolute;
  right: 12%;
  top: 40%;
  width: 30%;
  height: 40%;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  z-index: 1;
}

.hero-slash {
  position: absolute;
  right: 42%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ink);
  transform: rotate(3deg) scaleY(1.1);
  transform-origin: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 48px;
  margin-left: calc(50vw - 640px);
}

.hero-eyebrow {
  font-size: 12px;
  color: var(--ink2);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

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

.btn-primary {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 28px;
  border-radius: var(--radius);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  transition: background var(--trans), color var(--trans);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 14px 28px;
  border-radius: var(--radius);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  transition: background var(--trans), color var(--trans);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

/* ─── 内容+侧边栏布局 ─── */
.content-section,
.guide-content-section,
.faq-content-section,
.privacy-content-section,
.about-content-section,
.changelog-content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.content-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--anchor-h) + 16px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.aside-head {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink2);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.aside-links li {
  margin-bottom: 4px;
}

.aside-links a {
  font-size: 14px;
  color: var(--ink2);
  display: block;
  padding: 8px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
}

.aside-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.content-body {
  min-width: 0;
}

/* 正文内容样式 */
.content-body h1,
.content-body h2,
.content-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 700;
}

.content-body h1 { font-size: 28px; }
.content-body h2 { font-size: 22px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.content-body h3 { font-size: 18px; }

.content-body p {
  margin-bottom: 16px;
  line-height: 1.75;
}

.content-body ul,
.content-body ol {
  margin: 0 0 16px 24px;
  list-style: disc;
}

.content-body ol {
  list-style: decimal;
}

.content-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.content-body a:hover {
  border-bottom-color: var(--ink);
  text-decoration: none;
}

.content-body blockquote {
  border-left: 3px solid var(--ink);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--ink2);
}

.content-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px 6px;
}

.content-body pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

/* ─── Bento Grid ─── */
.bento-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 10px;
  letter-spacing: 0.08em;
}

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

.bento-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: block;
  position: relative;
  transition: transform var(--trans), border-color var(--trans);
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}

.bento-card:hover {
  transform: scale(1.02);
  border-color: var(--ink);
  text-decoration: none;
}

.bento-card.card-wide { grid-column: span 2; }
.bento-card.card-tall { grid-row: span 2; }
.bento-card.card-sm   { grid-column: span 1; }
.bento-card.card-md   { grid-column: span 2; }

.card-inner {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 8px;
  align-self: flex-start;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 12px 0 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.55;
  flex: 1;
}

.card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink2);
  margin-top: 8px;
}

.card-arrow {
  font-size: 18px;
  color: var(--ink);
  align-self: flex-end;
  margin-top: 8px;
}

/* ─── 统计条 ─── */
.stats-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}

.stats-figure {
  max-width: 1280px;
  margin: 0 auto;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--ink2);
}

/* ─── 指南 Hero ─── */
.guide-hero-section {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.guide-hero-figure {
  width: 80px;
  height: 80px;
  background: var(--ink);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-badge {
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-hero-text {
  flex: 1;
}

.guide-h1,
.page-h1 {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.guide-desc,
.page-desc {
  font-size: 17px;
  color: var(--ink2);
  line-height: 1.6;
  max-width: 640px;
}

.guide-meta {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-date {
  font-size: 12px;
  color: var(--ink2);
}

/* ─── 相关文章 ─── */
.related-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.related-figure {
  margin: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color var(--trans), transform var(--trans);
  text-decoration: none;
}

.related-card:hover {
  border-color: var(--ink);
  transform: scale(1.02);
  text-decoration: none;
}

.rc-tag {
  font-size: 10px;
  color: var(--ink2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.rc-desc {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
}

/* ─── 通用页面 Hero（faq/changelog/privacy）─── */
.page-hero-section {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.page-hero-figure {
  width: 80px;
  height: 80px;
  background: var(--ink);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge {
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.page-hero-text {
  flex: 1;
}

/* ─── FAQ 表格 ─── */
.faq-table-section,
.changelog-index-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.table-figure {
  margin: 16px 0 0;
  overflow-x: auto;
}

.faq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.faq-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}

.faq-table tr:hover td {
  background: var(--bg2);
}

.table-tag {
  font-size: 11px;
  color: var(--ink2);
  white-space: nowrap;
  width: 60px;
  letter-spacing: 0.06em;
}

.table-title a {
  color: var(--ink);
  font-weight: 600;
}

.table-title a:hover {
  text-decoration: underline;
}

.table-desc {
  color: var(--ink2);
  width: 50%;
}

/* ─── About 特殊 ─── */
.about-hero-section {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  flex-wrap: wrap;
}

.about-hero-figure {
  width: 100px;
  height: 100px;
  background: var(--ink);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-brand-mark {
  color: var(--bg);
  font-size: 28px;
  font-weight: 700;
}

.about-stats-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.about-stats-figure {
  margin: 16px 0 0;
}

.about-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.ab-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: transform var(--trans);
}

.ab-card:hover {
  transform: scale(1.02);
}

.ab-card.ab-wide {
  grid-column: span 2;
}

.ab-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.ab-label {
  font-size: 14px;
  color: var(--ink2);
}

/* ─── Privacy/Changelog 正文容器 ─── */
.privacy-wrap,
.faq-content-wrap,
.changelog-wrap {
  max-width: 760px;
}

.intro-section {
  padding-top: 40px;
}

/* ─── 页脚 ─── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
  max-width: 360px;
}

.subscribe-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.subscribe-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subscribe-input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  min-height: 44px;
}

.subscribe-input:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}

.subscribe-btn {
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--trans);
}

.subscribe-btn:hover {
  background: var(--accent-hover);
}

/* footer nav */
.footer-nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-dl {
  display: flex;
  flex-direction: column;
}

.dl-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-dl dd {
  margin: 0;
}

.footer-dl dd a {
  font-size: 14px;
  color: var(--ink2);
  display: block;
  padding: 7px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
}

.footer-dl dd a:hover {
  color: var(--ink);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copy {
  font-size: 12px;
  color: var(--ink2);
}

.footer-sep {
  color: var(--border);
  font-size: 12px;
}

.footer-bottom a {
  font-size: 12px;
  color: var(--ink2);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* ─── h2/h3 span 装饰 ─── */
.section-title span:first-child,
.aside-head span,
.dl-head span {
  display: inline;
}

/* ─── 动效 ─── */
@media (prefers-reduced-motion: no-preference) {
  .bento-card,
  .related-card,
  .ab-card {
    will-change: transform;
  }
}

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

/* ─── 视差占位（JS 配合）─── */
.hero-section[data-parallax] .hero-collage {
  transform: translateY(var(--py, 0px));
}

/* ─── 响应式 ─── */
@media (max-width: 1024px) {
  .hero-content {
    margin-left: 0;
    padding: 0 40px;
    max-width: 520px;
  }

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

  .bento-card.card-wide { grid-column: span 2; }
  .bento-card.card-tall { grid-row: span 2; }
  .bento-card.card-md   { grid-column: span 2; }
  .bento-card.card-sm   { grid-column: span 1; }

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

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

  .about-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .ab-card.ab-wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .hero-section {
    height: 100vh;
    min-height: 550px;
  }

  .hero-content {
    padding: 0 24px;
    max-width: 100%;
    margin-left: 0;
  }

  .collage-a, .collage-b, .hero-slash {
    opacity: 0.3;
  }

  .content-section,
  .guide-content-section,
  .faq-content-section,
  .privacy-content-section,
  .about-content-section,
  .changelog-content-section {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .content-aside {
    position: static;
    order: 2;
  }

  .content-body {
    order: 1;
  }

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

  .bento-card.card-wide,
  .bento-card.card-tall,
  .bento-card.card-md,
  .bento-card.card-sm {
    grid-column: span 1;
    grid-row: span 1;
  }

  .card-inner {
    min-height: 140px;
  }

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

  .guide-hero-section,
  .page-hero-section,
  .about-hero-section {
    flex-direction: column;
    padding: 32px 16px 16px;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    padding: 32px 16px 24px;
  }

  .footer-nav-wrap {
    grid-template-columns: 1fr;
    padding: 0 16px 24px;
  }

  .footer-bottom {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .about-bento {
    grid-template-columns: 1fr;
  }
  .ab-card.ab-wide {
    grid-column: span 1;
  }

  .faq-table .table-desc {
    display: none;
  }

  .anchor-inner {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 28px;
  }

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

  .bento-section,
  .stats-section,
  .related-section,
  .faq-table-section,
  .changelog-index-section,
  .about-stats-section {
    padding: 24px 16px;
  }

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

  .stat-item {
    padding: 16px;
  }

  .stat-num {
    font-size: 24px;
  }
}
