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

/* ── 设计令牌 ── */
:root {
  --base: #c8e0f4;
  --accent: #f5e0e8;
  --ink: #171f26;
  --base-light: #dcedfb;
  --base-dark: #a8c4e0;
  --accent-light: #faedf2;
  --accent-dark: #e0c0cc;
  --ink-muted: #3a4a58;
  --ink-faint: #6a7e8f;
  --white: #ffffff;
  --shadow-dark: rgba(23,31,38,0.18);
  --shadow-light: rgba(255,255,255,0.85);
  --radius: 14px;
  --radius-sm: 10px;
  --nav-w: 240px;
  --font: 'JetBrains Mono', 'Courier New', monospace;
}

/* ── 重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--base);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-muted); }
ul, ol { list-style: none; }

/* ── Neumorphic 混合类 ── */
.neu-raised {
  background: linear-gradient(145deg, var(--base-light), var(--base-dark));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
}
.neu-pressed {
  background: linear-gradient(145deg, var(--base-dark), var(--base-light));
  box-shadow: inset -3px -3px 8px var(--shadow-light), inset 3px 3px 8px var(--shadow-dark);
  border-radius: var(--radius);
}
.neu-flat {
  background: var(--base);
  box-shadow: -3px -3px 8px var(--shadow-light), 3px 3px 8px var(--shadow-dark);
  border-radius: var(--radius-sm);
}

/* ── 布局骨架 ── */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── 左侧导航 ── */
.sidenav {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--nav-w);
  height: 100vh;
  background: linear-gradient(180deg, var(--base-light) 0%, var(--base) 100%);
  box-shadow: 4px 0 20px var(--shadow-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidenav-announce {
  width: 100%;
  background: var(--ink);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 6px 12px;
  font-family: var(--font);
}

.sidenav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 16px;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--base-dark);
}

.nav-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 8px;
  box-shadow: -3px -3px 8px var(--shadow-light), 3px 3px 8px var(--shadow-dark);
}

.brand-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.4;
  word-break: keep-all;
}

.sidenav-menu {
  width: 100%;
  padding: 12px 0;
  flex: 1;
}

.sidenav-menu li {
  width: 100%;
}

.sidenav-menu li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  line-height: 1.4;
}

.sidenav-menu li a:hover,
.sidenav-menu li a[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: inset -2px -2px 6px var(--shadow-light), inset 2px 2px 6px var(--shadow-dark);
  border-left-color: var(--accent-dark);
}

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

/* ── Hero（首页） ── */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 32px;
}

.hero-dot-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--base-dark) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 960px;
  width: 100%;
}

.hero-media {
  flex: 0 0 48%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: -6px -6px 18px var(--shadow-light), 6px 6px 18px var(--shadow-dark);
}

.hero-img,
.article-hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-img-placeholder {
  width: 100%;
  height: 360px;
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  border-radius: var(--radius);
}

.hero-text {
  flex: 1;
  text-align: right;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-text h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--ink);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ── 按钮 ── */
.btn-primary,
.btn-secondary,
.btn-read {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  box-shadow: -4px -4px 10px var(--shadow-light), 4px 4px 10px var(--shadow-dark);
  color: var(--ink);
  margin-right: 12px;
}

.btn-primary:hover {
  box-shadow: inset -2px -2px 6px var(--shadow-light), inset 2px 2px 6px var(--shadow-dark);
  transform: scale(0.98);
  color: var(--ink);
}

.btn-secondary {
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -3px -3px 8px var(--shadow-light), 3px 3px 8px var(--shadow-dark);
  color: var(--ink-muted);
}

.btn-secondary:hover {
  box-shadow: inset -2px -2px 6px var(--shadow-light), inset 2px 2px 6px var(--shadow-dark);
  transform: scale(0.98);
  color: var(--ink);
}

.btn-read {
  background: linear-gradient(145deg, var(--base-light), var(--base-dark));
  box-shadow: -3px -3px 8px var(--shadow-light), 3px 3px 8px var(--shadow-dark);
  color: var(--ink);
  font-size: 0.8rem;
  padding: 8px 18px;
}

.btn-read:hover {
  box-shadow: inset -2px -2px 5px var(--shadow-light), inset 2px 2px 5px var(--shadow-dark);
}

/* ── main 通用 ── */
main {
  flex: 1;
  padding: 32px;
  max-width: 1200px;
  width: 100%;
}

/* ── content-section（首页正文+aside） ── */
.content-section {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
}

.content-figure {
  flex: 1;
  min-width: 0;
  padding: 32px;
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
}

/* ── aside ── */
.content-aside {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside-panel {
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -4px -4px 12px var(--shadow-light), 4px 4px 12px var(--shadow-dark);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-panel.aside-tip {
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
}

.aside-title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 12px;
}

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

.aside-links li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  min-height: 36px;
  line-height: 1.5;
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -2px -2px 6px var(--shadow-light), 2px 2px 6px var(--shadow-dark);
}

.aside-links li a:hover {
  box-shadow: inset -2px -2px 5px var(--shadow-light), inset 2px 2px 5px var(--shadow-dark);
  color: var(--ink);
}

.aside-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-decoration: underline;
}

/* ── 首页指南网格 ── */
.guides-section,
.children-section,
.faq-guides-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

hr {
  border: none;
  border-top: 1px solid var(--base-dark);
  margin: 12px 0 20px;
}

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

.guide-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-card-inner {
  padding: 24px;
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-tag,
.article-tag,
.page-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  box-shadow: -2px -2px 5px var(--shadow-light), 2px 2px 5px var(--shadow-dark);
  color: var(--ink-muted);
  font-weight: 500;
  width: fit-content;
}

.guide-card-inner h3 {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.guide-card-inner h3 a {
  color: var(--ink);
}

.guide-card-inner h3 a:hover {
  color: var(--ink-muted);
}

.guide-card-inner p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  flex: 1;
  line-height: 1.6;
}

/* ── 子页卡片 ── */
.child-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 16px;
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -4px -4px 12px var(--shadow-light), 4px 4px 12px var(--shadow-dark);
  border-radius: var(--radius);
}

.card-img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--ink-muted); }

.card-desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.card-date {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ── 文章页 ── */
.article-main {
  flex: 1;
  padding: 32px;
}

.article-section {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.article-figure {
  flex: 1;
  min-width: 0;
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
  padding: 32px;
}

.article-hero {
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-main h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--ink);
}

.article-nav-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ── FAQ 页 ── */
.faq-main {
  flex: 1;
  padding: 32px;
}

.faq-section {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.faq-header-figure {
  flex: 1;
  min-width: 0;
}

.faq-header {
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
  padding: 32px;
}

.faq-content-section {
  margin-bottom: 40px;
}

.faq-prose {
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
  padding: 32px;
}

.faq-guides-section section {
  padding: 20px;
  margin-bottom: 16px;
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -4px -4px 12px var(--shadow-light), 4px 4px 12px var(--shadow-dark);
  border-radius: var(--radius);
}

.faq-guides-section section h3 { font-size: 0.95rem; margin-bottom: 8px; }
.faq-guides-section section h3 a { color: var(--ink); }
.faq-guides-section section h3 a:hover { color: var(--ink-muted); }
.faq-guides-section section p { font-size: 0.82rem; color: var(--ink-muted); }

/* ── Changelog 页 ── */
.changelog-main {
  flex: 1;
  padding: 32px;
}

.changelog-section {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.changelog-header-figure {
  flex: 1;
  min-width: 0;
}

.changelog-header {
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
  padding: 32px;
}

.changelog-content-section {
  margin-bottom: 40px;
}

.changelog-timeline {
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
  padding: 32px;
}

/* ── About 页 ── */
.about-main {
  flex: 1;
  padding: 32px;
}

.about-section {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.about-figure {
  flex: 1;
  min-width: 0;
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
  padding: 32px;
}

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

.about-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ── Privacy 页 ── */
.privacy-main {
  flex: 1;
  padding: 32px;
}

.privacy-section {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.privacy-figure {
  flex: 1;
  min-width: 0;
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
  padding: 32px;
}

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

.date-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── 通用页眉元素 ── */
.page-header {
  margin-bottom: 24px;
}

.page-tag {
  margin-bottom: 12px;
}

.page-lead {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-top: 12px;
  line-height: 1.7;
}

h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin: 12px 0 16px;
}

/* ── Default article ── */
.default-section {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.default-figure {
  flex: 1;
  min-width: 0;
  background: linear-gradient(145deg, var(--base-light), var(--base));
  box-shadow: -5px -5px 15px var(--shadow-light), 5px 5px 15px var(--shadow-dark);
  border-radius: var(--radius);
  padding: 32px;
}

/* ── 日期 ── */
.pub-date, .mod-date {
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ── Prose 正文样式 ── */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 2rem 0 0.5rem;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.prose h2 + hr,
.prose h3 + hr {
  border: none;
  border-top: 1px solid var(--base-dark);
  margin: 0.5rem 0 1rem;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1.5rem 0 0.4rem;
  color: var(--ink);
}

.prose p {
  margin-bottom: 1.2rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

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

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

.prose blockquote {
  border-left: 3px solid var(--accent-dark);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: inset -2px -2px 6px var(--shadow-light), inset 2px 2px 6px var(--shadow-dark);
  color: var(--ink-muted);
  font-style: italic;
}

.prose code {
  background: var(--base-dark);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.88em;
}

.prose pre {
  background: var(--ink);
  color: var(--base-light);
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-bottom: 1.2rem;
  box-shadow: inset -3px -3px 8px rgba(0,0,0,0.3), inset 3px 3px 8px rgba(0,0,0,0.2);
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 0.88rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

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

.prose th {
  font-weight: 500;
  background: linear-gradient(145deg, var(--base-light), var(--base));
}

.prose img {
  border-radius: var(--radius-sm);
  box-shadow: -4px -4px 10px var(--shadow-light), 4px 4px 10px var(--shadow-dark);
  margin: 1.5rem 0;
}

.prose time {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* ── 页脚 ── */
.site-footer {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 24px 32px 16px;
  background: linear-gradient(145deg, var(--base-dark), var(--base));
  box-shadow: 0 -3px 12px var(--shadow-dark);
  flex-wrap: wrap;
  row-gap: 16px;
}

.footer-col {
  flex: 1;
  min-width: 140px;
  padding: 0 16px;
}

.footer-col:first-child { padding-left: 0; }

.footer-col dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-col dd {
  margin-bottom: 4px;
}

.footer-col dd a {
  font-size: 0.8rem;
  color: var(--ink-muted);
  transition: color 0.1s;
  display: inline-block;
  min-height: 28px;
  line-height: 1.8;
}

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

.footer-copy {
  width: 100%;
  border-top: 1px solid var(--base-dark);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 0.75rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── 动效 ── */
@media (prefers-reduced-motion: no-preference) {
  .guide-card-inner,
  .child-card,
  .aside-panel {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .guide-card-inner:hover,
  .child-card:hover {
    transform: translateY(-3px);
    box-shadow: -7px -7px 20px var(--shadow-light), 7px 7px 20px var(--shadow-dark);
  }

  .hero-media {
    transition: transform 0.4s ease;
  }

  .hero-section:hover .hero-media {
    transform: translateY(-4px);
  }

  .btn-primary:active,
  .btn-secondary:active,
  .btn-read:active {
    transform: scale(0.96);
    box-shadow: inset -2px -2px 6px var(--shadow-light), inset 2px 2px 6px var(--shadow-dark);
  }
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  :root { --nav-w: 200px; }
  .hero-inner { gap: 24px; }
  .hero-img, .hero-img-placeholder { height: 260px; }
  .guides-grid { grid-template-columns: 1fr 1fr; }
  .content-section,
  .article-section,
  .faq-section,
  .about-section,
  .privacy-section,
  .changelog-section,
  .default-section { flex-direction: column; }
  .content-aside { flex: none; width: 100%; }
  .aside-links { flex-direction: row; flex-wrap: wrap; }
  .aside-links li { flex: 1 1 auto; }
}

@media (max-width: 680px) {
  :root { --nav-w: 0px; }

  .sidenav {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    box-shadow: 0 3px 12px var(--shadow-dark);
  }

  .sidenav-announce {
    width: 100%;
    order: 0;
  }

  .sidenav-brand {
    flex-direction: row;
    padding: 12px 16px;
    border-bottom: none;
    border-right: 1px solid var(--base-dark);
    flex: 0 0 auto;
    order: 1;
  }

  .nav-logo { width: 32px; height: 32px; margin-bottom: 0; margin-right: 8px; }

  .sidenav-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 0;
    order: 2;
    flex: 1;
  }

  .sidenav-menu li {
    width: auto;
    flex-shrink: 0;
  }

  .sidenav-menu li a {
    white-space: nowrap;
    padding: 10px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    min-height: 44px;
  }

  .sidenav-menu li a:hover,
  .sidenav-menu li a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: var(--accent-dark);
  }

  .layout-wrapper { flex-direction: column; }
  .page-body { margin-left: 0; }

  .hero-section {
    min-height: auto;
    padding: 24px 16px;
  }

  .hero-inner { flex-direction: column; }
  .hero-media { flex: none; width: 100%; }
  .hero-text { text-align: left; }
  .hero-img, .hero-img-placeholder { height: 220px; }

  main,
  .article-main,
  .faq-main,
  .changelog-main,
  .about-main,
  .privacy-main {
    padding: 16px;
  }

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

  .child-card { flex-direction: column; }
  .card-img { width: 100%; height: 160px; }

  .site-footer {
    padding: 20px 16px 12px;
  }

  .footer-col { min-width: 100px; }

  h1 { font-size: 1.3rem; }
}

/* ── 玻璃拟态卡片（guide-card） ── */
.guide-card-inner {
  backdrop-filter: blur(2px);
}

/* ── 辅助 ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
