/* ============================================================
   yidougame.com — 动漫天堂 整站样式
   ============================================================ */

/* ============================================================
   1. Base — 设计变量、重置、全局基础
   ============================================================ */

:root {
  --bg-paper: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-soft: #F1ECE4;
  --ink: #2B2B2B;
  --ink-soft: #55524C;
  --link-blue: #1F3A5F;
  --accent-orange: #E8874A;
  --line-gray: #E5DFD6;
  --line-strong: #CFC7BB;
  --radius-sm: 4px;
  --radius-md: 8px;
  --content-max: 1200px;
  --read-max: 720px;
  --header-h: 72px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--bg-paper);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-orange);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

p {
  margin-bottom: 1em;
}

/* ============================================================
   2. Layout — 页头、页脚、主容器、内页骨架
   ============================================================ */

.site-header {
  background-color: var(--bg-paper);
  border-bottom: 1px solid var(--line-gray);
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm);
}

.nav-list li a:hover {
  color: var(--accent-orange);
  background-color: var(--bg-soft);
}

.nav-list li a.is-current {
  color: var(--ink);
  border-bottom-color: var(--accent-orange);
  font-weight: 700;
}

.site-main {
  min-height: 60vh;
}

/* 页脚 */
.site-footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line-gray);
  margin-top: 64px;
}

.footer-columns {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-title {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-col ul li a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid var(--line-gray);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 内页骨架 */
.inner-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 24px 16px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--link-blue);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: var(--read-max);
}

/* 内页配图 */
.page-hero-figure,
.page-figure,
.page-media {
  margin: 0 0 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-soft);
}

.page-hero-figure img,
.page-figure img,
.page-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.page-hero-figure figcaption,
.page-figure figcaption,
.page-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line-gray);
}

/* 侧栏 + 正文 两栏布局 */
.layout-shell,
.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar-left .layout-shell,
.sidebar-left .page-layout {
  grid-template-columns: 240px minmax(0, 1fr);
}

/* 侧栏 */
.doc-sidebar,
.page-sidebar,
.doc-toc,
.sidebar {
  position: sticky;
  top: 24px;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
}

.sidebar-title,
.toc-title {
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-gray);
}

.sidebar-list li,
.doc-toc ul li {
  margin-bottom: 4px;
}

.sidebar-list a,
.doc-toc ul a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
}

.sidebar-list a:hover,
.doc-toc ul a:hover {
  color: var(--accent-orange);
  background-color: var(--bg-soft);
}

/* 正文区域 */
.doc-content,
.page-content,
.content-area {
  min-width: 0;
}

.content-section,
.trouble-section {
  margin-bottom: 48px;
}

.content-section .section-title,
.trouble-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-gray);
}

/* 相关链接条 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  margin-top: 24px;
  border-top: 1px solid var(--line-gray);
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.related-links-item {
  font-size: 14px;
  padding: 4px 12px;
  border: 1px solid var(--line-gray);
  border-radius: 999px;
  background-color: var(--bg-card);
}

.related-links-item:hover {
  border-color: var(--accent-orange);
}

/* ============================================================
   3. Components — 通用组件
   ============================================================ */

/* 首页 section 标题 */
.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: var(--read-max);
  margin-bottom: 24px;
}

/* FAQ 折叠 */
.faq-item {
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  margin-bottom: 12px;
}

.faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent-orange);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 18px 16px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ============================================================
   4. Pages — 首页各模块
   ============================================================ */

/* 首屏 */
.hero-panel {
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line-gray);
  padding: 48px 24px 40px;
}

.hero-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-faq-list {
  display: grid;
  gap: 12px;
}

.faq-item dt {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.faq-item dd {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 16px;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(43, 43, 43, 0.12);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 首屏服务范围 */
.hero-services {
  max-width: var(--content-max);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-item {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
}

.service-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--link-blue);
}

.service-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* 首屏流程步骤 */
.hero-steps {
  max-width: var(--content-max);
  margin: 32px auto 0;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--bg-paper);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-soft);
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
}

/* 主题介绍 */
.editorial-note {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px 24px;
}

.editorial-inner {
  max-width: var(--read-max);
}

.editorial-copy p {
  color: var(--ink-soft);
  font-size: 15px;
}

.editorial-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  border-radius: 999px;
}

/* 封面墙 */
.cover-wall {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cover-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(43, 43, 43, 0.1);
}

.cover-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.genre-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--accent-orange);
  background-color: rgba(232, 135, 74, 0.1);
  border-radius: 999px;
  margin-bottom: 8px;
}

.cover-title {
  font-size: 16px;
  margin-bottom: 0;
}

/* 最近更新 */
.recent-updates {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.update-timeline {
  border-left: 2px solid var(--line-gray);
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  border: 2px solid var(--bg-paper);
}

.update-date {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.update-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.update-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* 热门关注 */
.popular-list {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.popular-ranking {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
}

.rank-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--link-blue);
  background-color: var(--bg-soft);
  border-radius: 50%;
}

.rank-item:nth-child(1) .rank-num {
  background-color: var(--accent-orange);
  color: #fff;
}

.rank-item:nth-child(2) .rank-num {
  background-color: var(--accent-orange);
  color: #fff;
  opacity: 0.85;
}

.rank-item:nth-child(3) .rank-num {
  background-color: var(--accent-orange);
  color: #fff;
  opacity: 0.7;
}

.rank-title {
  font-size: 16px;
  margin-bottom: 2px;
}

.rank-genre {
  font-size: 13px;
  color: var(--ink-soft);
}

/* 延伸阅读 */
.extended-reading {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.recommend-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recommend-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.recommend-card:hover {
  transform: translateY(-4px);
}

.recommend-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.recommend-body {
  padding: 16px;
}

.recommend-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.recommend-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.recommend-body a {
  font-size: 14px;
  font-weight: 700;
}

/* 反馈说明 */
.feedback-note {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}

.feedback-note p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

.feedback-note a {
  font-weight: 700;
}

/* ============================================================
   5. Pages — 内页各模块
   ============================================================ */

/* 开始使用 */
.step-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.step-card {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background-color: var(--accent-orange);
  border-radius: 50%;
  margin-bottom: 10px;
}

.step-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.flow-list {
  counter-reset: flow;
}

.flow-item {
  position: relative;
  padding: 0 0 20px 40px;
  border-left: 2px solid var(--line-gray);
  margin-left: 16px;
}

.flow-item::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: -17px;
  top: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-color: var(--link-blue);
  border-radius: 50%;
}

.flow-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.flow-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* 账户与设置 */
.emphasis-box {
  padding: 16px 20px;
  background-color: rgba(232, 135, 74, 0.08);
  border-left: 3px solid var(--accent-orange);
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.emphasis-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.feature-list {
  margin: 12px 0;
}

.feature-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
}

/* 功能说明 */
.module-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.module-card {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
}

.module-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--link-blue);
}

.module-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.tag-item {
  display: inline-block;
  padding: 4px 14px;
  font-size: 14px;
  color: var(--link-blue);
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: 999px;
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--line-gray);
}

.compare-table th {
  background-color: var(--bg-soft);
  font-weight: 700;
}

.compare-table td {
  color: var(--ink-soft);
}

/* 故障处理 */
.trouble-section .step-list {
  margin: 12px 0;
}

.trouble-section .step-list li {
  position: relative;
  padding: 0 0 16px 36px;
  border-left: 2px solid var(--line-gray);
  margin-left: 16px;
}

.trouble-section .step-list li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-orange);
  border-radius: 50%;
}

.trouble-section .step-list h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.trouble-section .step-list p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* 联系支持 */
.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
}

.preparation-list {
  margin: 16px 0;
}

.preparation-list li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 15px;
  color: var(--ink-soft);
}

.preparation-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--accent-orange);
  font-weight: 700;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.entry-card {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
}

.entry-card-title {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--link-blue);
}

.entry-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.entry-card a {
  font-size: 14px;
  font-weight: 700;
}

.boundary-block {
  padding: 16px 20px;
  margin-bottom: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-md);
}

.boundary-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.boundary-block p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* 相关帮助列表 */
.related-list li {
  margin-bottom: 8px;
}

.related-list a {
  font-size: 15px;
}

.related-title {
  font-size: 18px;
  margin-bottom: 12px;
}

/* ============================================================
   6. Pages — 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-block {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1.2;
  margin-bottom: 8px;
}

.error-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-home-link {
  display: inline-block;
  padding: 10px 28px;
  background-color: var(--link-blue);
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.error-home-link:hover {
  background-color: var(--accent-orange);
  color: #fff;
}

/* ============================================================
   7. Responsive — 响应式适配
   ============================================================ */

@media (max-width: 1024px) {
  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommend-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell,
  .page-layout,
  .sidebar-left .layout-shell,
  .sidebar-left .page-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-figure img {
    height: 260px;
  }

  .hero-services {
    grid-template-columns: 1fr;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .module-cards,
  .entry-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-paper);
    border-bottom: 1px solid var(--line-gray);
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.08);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 12px;
    border-bottom: 1px solid var(--line-gray);
    border-radius: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list li a.is-current {
    border-bottom-color: var(--line-gray);
    color: var(--accent-orange);
  }

  /* 内页：侧栏放到正文之后 */
  .layout-shell,
  .page-layout,
  .sidebar-left .layout-shell,
  .sidebar-left .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .doc-sidebar,
  .page-sidebar,
  .doc-toc,
  .sidebar {
    position: static;
    order: 2;
  }

  .doc-content,
  .page-content,
  .content-area {
    order: 1;
  }

  /* 首页模块 */
  .hero-panel {
    padding: 32px 16px 32px;
  }

  .cover-wall,
  .recent-updates,
  .popular-list,
  .extended-reading,
  .editorial-note,
  .feedback-note {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cover-grid,
  .recommend-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cover-card img {
    height: 220px;
  }

  .step-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 24px;
  }

  .inner-main {
    padding: 24px 16px 16px;
  }

  .page-hero-figure img,
  .page-figure img,
  .page-media img {
    height: 200px;
  }

  .page-title {
    font-size: 24px;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-figure img {
    height: 200px;
  }

  .rank-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px 10px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
