@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 {
  --cream: #f5e6c8;
  --amber: #d4a574;
  --espresso: #262117;
  --amber-dark: #b8864e;
  --amber-light: #e8c99a;
  --cream-dark: #e8d4a8;
  --espresso-light: #3d3424;
  --espresso-lighter: #5a4e38;
  --text-main: #262117;
  --text-muted: #6b5c3e;
  --text-light: #9a8060;
  --bg-main: #f5e6c8;
  --bg-card: #fdf4e3;
  --bg-sidebar: #262117;
  --sidebar-w: 240px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 20px rgba(38,33,23,0.12), 0 1px 4px rgba(38,33,23,0.08);
  --shadow-hover: 0 8px 32px rgba(38,33,23,0.18), 0 2px 8px rgba(38,33,23,0.12);
  --font-main: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --transition: 0.25s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ===== Film Grain SVG Filter ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ===== 布局骨架 ===== */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ===== 侧边栏 ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--espresso);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 20px;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid var(--espresso-light);
}

.sidebar-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 16px 24px;
  border-bottom: 1px solid rgba(212,165,116,0.2);
}

.brand-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius);
}

.brand-icon-text {
  width: 48px;
  height: 48px;
  background: var(--amber);
  color: var(--espresso);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  letter-spacing: -0.5px;
}

.sidebar nav {
  width: 100%;
  padding: 20px 12px;
  flex: 1;
}

.sidebar nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar nav ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a[aria-current="page"] {
  background: var(--amber);
  color: var(--espresso);
}

.sidebar-foot {
  padding: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(212,165,116,0.2);
  margin-top: auto;
}

.grain-badge {
  background: rgba(212,165,116,0.15);
  color: var(--amber);
  border: 1px solid rgba(212,165,116,0.3);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

/* ===== 页面主体 ===== */
.page-body {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== 通用 article 内布局（aside 左侧 + content-main 右侧）===== */
.content-section,
.page-header-section,
.feature-header-section,
.faq-header-section,
.about-header-section,
.privacy-section,
.default-section {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.content-aside {
  width: 220px;
  flex-shrink: 0;
  padding: 40px 20px 40px 32px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.aside-block {
  margin-bottom: 28px;
}

.aside-block strong {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--amber-light);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-links li a {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  line-height: 1.4;
}

.aside-links li a:hover {
  color: var(--espresso);
  background: var(--cream-dark);
}

.content-main {
  flex: 1;
  min-width: 0;
  padding: 40px 40px 40px 32px;
  border-left: 1px solid var(--amber-light);
}

/* ===== 面包屑 ===== */
.page-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb-home {
  color: var(--amber-dark);
}

.breadcrumb-home:hover { text-decoration: underline; }

.breadcrumb-sep { color: var(--text-light); }

/* ===== Hero（首页专用）===== */
.hero-section {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 70vh;
  background: var(--espresso);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-text {
  flex: 1;
  padding: 60px 48px 60px 48px;
  position: relative;
  z-index: 2;
}

.eyebrow-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 20px;
}

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

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

.hero-figure {
  width: 45%;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-divider {
  position: absolute;
  left: 52%;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(135deg, var(--espresso) 49%, transparent 51%);
  z-index: 3;
  pointer-events: none;
}

/* ===== VHS Frame ===== */
.vhs-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  background: var(--espresso-light);
}

.vhs-frame-wide {
  min-height: 200px;
  border-radius: var(--radius);
}

.light-leak {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(212,165,116,0.35) 0%,
    transparent 40%,
    transparent 60%,
    rgba(245,230,200,0.15) 100%);
  pointer-events: none;
  animation: leakPulse 6s ease-in-out infinite alternate;
}

.light-leak-sm {
  background: linear-gradient(110deg,
    rgba(212,165,116,0.25) 0%,
    transparent 50%);
  animation: leakPulse 8s ease-in-out infinite alternate;
}

@keyframes leakPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.04); }
}

.hero-placeholder,
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.1em;
  filter: sepia(0.4) contrast(1.1);
}

.img-placeholder-wide {
  position: relative;
  min-height: 200px;
}

.vhs-tag {
  font-size: 11px;
  background: var(--amber);
  color: var(--espresso);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.hero-img, .guide-hero-img, .feature-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.25) contrast(1.1) saturate(0.85);
}

/* ===== Polaroid Frame ===== */
.polaroid-frame {
  background: #fefaf0;
  border: 1px solid var(--cream-dark);
  padding: 12px 12px 32px;
  box-shadow: var(--shadow-card);
  display: inline-block;
  max-width: 340px;
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}

.polaroid-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-frame-sm {
  max-width: 240px;
  transform: rotate(-1deg);
}

.polaroid-inner {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  background: var(--espresso-light);
}

.polaroid-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.05em;
}

.guide-figure, .about-figure {
  margin: 28px 0;
  display: flex;
  justify-content: center;
}

.feature-banner {
  margin: 28px 0;
}

.faq-figure, .privacy-figure {
  margin: 20px 0;
}

/* ===== Tape / Badge 装饰 ===== */
.faq-tape {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: var(--espresso);
  padding: 6px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transform: rotate(-0.8deg);
  box-shadow: 2px 2px 0 rgba(38,33,23,0.2);
}

.tape-label { display: block; }

.privacy-badge-wrap {
  padding: 16px 0;
}

.privacy-badge {
  display: inline-block;
  border: 2px solid var(--amber);
  color: var(--amber-dark);
  padding: 6px 18px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
}

.feature-tag {
  display: inline-block;
  background: var(--amber);
  color: var(--espresso);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 500;
}

/* ===== 标题 ===== */
h1 {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--espresso);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--espresso);
  margin-bottom: 8px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--espresso);
  margin-bottom: 8px;
}

p.subtitle, p.subhead, p.desc, p.lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.faq-lead {
  margin-bottom: 20px;
}

/* ===== 日期 ===== */
.date-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pub-date, .mod-date {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-light);
  background: var(--cream-dark);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: var(--espresso);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  min-height: 44px;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--amber);
  color: var(--amber);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  min-height: 44px;
  transition: background var(--transition), color var(--transition);
}

.btn-ghost:hover {
  background: var(--amber);
  color: var(--espresso);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 18px;
  min-height: 36px;
}

/* ===== 正文 prose ===== */
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  max-width: 72ch;
}

.prose h2 {
  margin-top: 36px;
  margin-bottom: 10px;
}

.prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  margin: 12px 0 16px 20px;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.prose a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--espresso); }

.prose strong { font-weight: 600; }

.prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--cream-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

.prose blockquote {
  border-left: 3px solid var(--amber);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.prose th, .prose td {
  border: 1px solid var(--amber-light);
  padding: 10px 14px;
  text-align: left;
}

.prose th {
  background: var(--cream-dark);
  font-weight: 600;
}

/* ===== 卡片列表（首页指南）===== */
.guides-section, .features-section,
.guide-nav-section, .feature-guides-section,
.faq-links-section, .about-links-section,
.privacy-nav-section {
  padding: 48px 40px 40px 40px;
  border-top: 1px solid var(--amber-light);
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--cream-dark);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-inner {
  display: flex;
  flex-direction: column;
  padding: 24px;
  height: 100%;
  min-height: 160px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.card-inner h3 {
  font-size: 15px;
  margin-bottom: 8px;
  flex: 1;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.card-arrow {
  font-size: 12px;
  color: var(--amber-dark);
  font-weight: 500;
  margin-top: auto;
}

/* ===== 功能卡片 ===== */
.feat-wrap {
  margin-top: 24px;
}

.feat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.feat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feat-card a {
  display: block;
  padding: 22px;
}

.feat-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.feat-card small {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

/* ===== 有序列表（指南/FAQ 延伸）===== */
.guide-more-list,
.faq-guide-list,
.about-resource-list,
.privacy-more-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: guide-counter;
  margin-top: 20px;
}

.guide-more-list li,
.faq-guide-list li,
.about-resource-list li,
.privacy-more-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.guide-more-list li:hover,
.faq-guide-list li:hover,
.about-resource-list li:hover,
.privacy-more-list li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.guide-more-list li a,
.faq-guide-list li a,
.about-resource-list li a,
.privacy-more-list li a {
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.4;
  transition: color var(--transition);
}

.guide-more-list li a:hover,
.faq-guide-list li a:hover,
.about-resource-list li a:hover,
.privacy-more-list li a:hover {
  color: var(--amber-dark);
}

.guide-more-list li small,
.faq-guide-list li small,
.about-resource-list li small,
.privacy-more-list li small {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== guide-more-wrap / faq / about / privacy figure wrappers ===== */
.guide-more-wrap,
.faq-links-figure,
.about-resource-wrap,
.privacy-more-wrap {
  display: block;
}

/* ===== guide grid（feature 页）===== */
.guide-grid-wrap {
  display: block;
  margin-top: 20px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.guide-grid-item {
  background: var(--bg-card);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.guide-grid-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.guide-grid-item a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.grid-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.grid-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.4;
}

.guide-grid-item small {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--espresso);
  color: var(--cream);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px 40px 32px;
  border-bottom: 1px solid rgba(212,165,116,0.2);
}

.footer-brand-col strong.footer-brand-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}

.footer-brand-col p {
  font-size: 14px;
  color: var(--amber-light);
  line-height: 1.6;
  max-width: 340px;
}

.footer-contact-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.footer-contact-note {
  font-size: 14px;
  color: var(--amber-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-nav-row {
  display: flex;
  gap: 0;
  padding: 32px 40px;
  border-bottom: 1px solid rgba(212,165,116,0.15);
}

.footer-dl {
  flex: 1;
  padding-right: 24px;
}

.footer-dl dt {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212,165,116,0.25);
}

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

.footer-dl dd a {
  font-size: 13px;
  color: var(--amber-light);
  transition: color var(--transition);
  line-height: 1.5;
}

.footer-dl dd a:hover {
  color: var(--amber);
}

.footer-bottom {
  padding: 20px 40px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== 滚动显现动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease calc(var(--i, 0) * 80ms),
              transform 0.5s ease calc(var(--i, 0) * 80ms);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .light-leak { animation: none; }
  .polaroid-frame, .polaroid-frame:hover { transform: none; }
}

/* ===== 移动端汉堡 ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  background: var(--espresso);
  border: 1.5px solid var(--amber);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== 移动端遮罩 ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(38,33,23,0.6);
  z-index: 90;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 260px;
    z-index: 110;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .page-body {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding-top: 56px;
  }

  .hero-text {
    padding: 32px 24px 24px;
  }

  .hero-figure {
    width: 100%;
    min-height: 220px;
  }

  .hero-divider { display: none; }

  .content-aside {
    display: none;
  }

  .content-main {
    padding: 28px 20px;
    border-left: none;
  }

  .content-section,
  .page-header-section,
  .feature-header-section,
  .faq-header-section,
  .about-header-section,
  .privacy-section,
  .default-section {
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
    padding: 28px 20px 20px;
    gap: 24px;
  }

  .footer-nav-row {
    flex-direction: column;
    gap: 24px;
    padding: 24px 20px;
  }

  .footer-bottom {
    padding: 16px 20px;
  }

  .guides-section, .features-section,
  .guide-nav-section, .feature-guides-section,
  .faq-links-section, .about-links-section,
  .privacy-nav-section {
    padding: 32px 20px 28px;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .feat-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .hero-text h1 { font-size: 24px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .prose { font-size: 16px; }
  .footer-dl { padding-right: 0; }
  h2 { font-size: 20px; }
  .polaroid-frame { max-width: 100%; }
}
