/* ==========================================================================
   souqihui.cn · 动漫分级指南 全站样式表
   游戏资料站风：深色页头页脚、琥珀金强调、分级标签色阶、属性表式信息组织
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base — 变量、重置、全局基础
   -------------------------------------------------------------------------- */
:root {
  --c-header-bg: #242a35;
  --c-body-bg: #f4f1ea;
  --c-card: #ffffff;
  --c-accent: #e8942a;
  --c-info: #4f8ff7;
  --c-tag-all: #3f9d63;
  --c-tag-12: #3b82c4;
  --c-tag-16: #e8891f;
  --c-tag-18: #c44b4b;
  --c-text: #2b2f36;
  --c-text-sub: #6b7280;
  --c-border: #e3e0d8;
  --c-white: #ffffff;
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --container-w: 1200px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 3px rgba(43, 47, 54, 0.06);
  --shadow-hover: 0 4px 12px rgba(43, 47, 54, 0.1);
  --header-h: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-body-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  margin: -1px;
  padding: 0;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. Layout — 全站骨架容器
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.site-main.home-main {
  background: var(--c-body-bg);
}

.site-main.inner-main {
  background: var(--c-body-bg);
  padding-bottom: 56px;
}

/* 统一内容宽度 */
.header-shell,
.hero-layout,
.age-band,
.hot-posts,
.doujin-preview,
.age-recommend,
.timeline-section,
.guide-strip,
.faq-teaser,
.page-layout,
.related-entry-strip,
.filter-panel,
.recommend-list,
.age-group-cards,
.related-links,
.topic-tag-band,
.layout-with-aside,
.related-entry-cards,
.creation-type-section,
.role-analysis-section,
.creation-tips-section,
.participation-guide,
.guide-steps,
.community-rules,
.board-guide,
.guide-figure,
.help-links,
.layout-shell,
.faq-guide-figure,
.error-panel,
.footer-shell {
  width: 100%;
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   3. Header — 深色页头、主导航、汉堡按钮
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--c-header-bg);
  position: relative;
  z-index: 100;
}

.header-shell {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-list li a.is-current {
  color: var(--c-accent);
  background: rgba(232, 148, 42, 0.12);
  font-weight: 600;
}

.nav-cta {
  display: inline-block;
  margin-left: 16px;
  padding: 8px 18px;
  background: var(--c-accent);
  color: var(--c-header-bg);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #f0a03e;
}

.nav-cta.is-current {
  background: var(--c-accent);
  color: var(--c-header-bg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   4. Footer — 深色四栏页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-header-bg);
  margin-top: auto;
}

.footer-shell {
  padding-top: 44px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.brand-col p:last-child {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--c-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   5. Components — 通用组件
   -------------------------------------------------------------------------- */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-sub);
  padding-top: 16px;
  padding-bottom: 0;
}

.breadcrumb a {
  color: var(--c-text-sub);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--c-accent);
}

.breadcrumb-sep {
  color: #b8b4aa;
}

.breadcrumb-current {
  color: var(--c-text);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding-top: 20px;
  padding-bottom: 24px;
}

.page-header .page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
}

.page-header .page-description {
  margin-top: 8px;
  font-size: 15px;
  color: var(--c-text-sub);
  max-width: 760px;
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* 年龄分级标签（通用） */
.age-tag,
.age-tag.tag-all {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--c-white);
  background: var(--c-tag-all);
  line-height: 1.6;
  white-space: nowrap;
}

.age-tag.age-12 {
  background: var(--c-tag-12);
}

.age-tag.age-16 {
  background: var(--c-tag-16);
}

.age-tag.age-18 {
  background: var(--c-tag-18);
}

/* 相关入口卡片（多页共用） */
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.related-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.related-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}

.related-card p {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.6;
}

/* 图文行条目（首页热帖 / 推荐 / 专题共用基础） */
.post-row,
.feature-item,
.featured-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

/* 卡片悬停上浮（通用） */
.doujin-card,
.recommend-card,
.group-card,
.type-card,
.rule-card,
.help-card,
.entry-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doujin-card:hover,
.recommend-card:hover,
.group-card:hover,
.type-card:hover,
.rule-card:hover,
.help-card:hover,
.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* 滚动淡入动画（仅增强，不影响初始可见性） */
@keyframes fadeInUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   6. 首页 — index.html
   -------------------------------------------------------------------------- */

/* 首屏双区：左表格 + 右侧栏 */
.hero-layout {
  padding-top: 28px;
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.hero-main h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.hero-lead {
  font-size: 15px;
  color: var(--c-text-sub);
  margin-bottom: 20px;
  max-width: 680px;
}

.board-table-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}

.board-table-wrap .section-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.board-table {
  width: 100%;
  font-size: 14px;
}

.board-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-sub);
  background: #f8f6f1;
  border-bottom: 1px solid var(--c-border);
}

.board-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.board-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.board-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.board-table tbody tr:last-child td {
  border-bottom: none;
}

.board-table tbody tr {
  transition: background 0.15s ease;
}

.board-table tbody tr:hover {
  background: #faf7f1;
}

.board-table tbody td:first-child {
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

.board-table tbody td:nth-child(2) {
  color: var(--c-text-sub);
  font-size: 13px;
}

.board-table tbody td:nth-child(3) {
  color: var(--c-accent);
  font-size: 12px;
  white-space: nowrap;
}

/* 首屏右侧栏 */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.latest-replies,
.announcements {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.replies-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0ede5;
}

.replies-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.replies-list li a {
  display: block;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.replies-list li a:hover {
  color: var(--c-accent);
}

.reply-meta {
  font-size: 12px;
  color: var(--c-text-sub);
}

.announce-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0ede5;
}

.announce-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.announce-list li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  transition: color 0.2s ease;
}

.announce-list li a:hover {
  color: var(--c-accent);
}

.announce-list li p {
  font-size: 13px;
  color: var(--c-text-sub);
  margin-top: 4px;
  line-height: 1.6;
}

/* 分级标签带 */
.age-band {
  padding-top: 16px;
  padding-bottom: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.age-tag.tag-all,
.age-tag.tag-12,
.age-tag.tag-16,
.age-tag.tag-18 {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 999px;
  color: var(--c-white);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.age-tag.tag-all:hover,
.age-tag.tag-12:hover,
.age-tag.tag-16:hover,
.age-tag.tag-18:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.age-tag.tag-all {
  background: var(--c-tag-all);
}

.age-tag.tag-12 {
  background: var(--c-tag-12);
}

.age-tag.tag-16 {
  background: var(--c-tag-16);
}

.age-tag.tag-18 {
  background: var(--c-tag-18);
}

/* 区块通用间距 */
.hot-posts,
.doujin-preview,
.age-recommend,
.timeline-section,
.guide-strip,
.faq-teaser {
  padding-top: 28px;
  padding-bottom: 8px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-link {
  font-size: 14px;
  color: var(--c-accent);
  font-weight: 500;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: #c97a1d;
}

/* 今日热帖混合列表 */
.hot-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-row.feature {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px;
}

.post-thumb {
  width: 180px;
  height: 112px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.post-content h3 a {
  color: var(--c-text);
  transition: color 0.2s ease;
}

.post-content h3 a:hover {
  color: var(--c-accent);
}

.post-content p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.6;
  margin-bottom: 10px;
}

.tag-label.heat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fdf0e0;
  color: var(--c-accent);
}

.post-row.compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.post-row.compact:hover {
  background: #faf7f1;
}

.post-row.compact h3 {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.post-row.compact h3 a {
  color: var(--c-text);
  transition: color 0.2s ease;
}

.post-row.compact h3 a:hover {
  color: var(--c-accent);
}

.post-row.compact .tag-label {
  font-size: 12px;
  color: var(--c-text-sub);
  white-space: nowrap;
}

/* 同人创作预览 */
.doujin-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.doujin-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.doujin-card figure {
  height: 180px;
  overflow: hidden;
}

.doujin-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doujin-card h3 {
  font-size: 17px;
  font-weight: 600;
  padding: 16px 16px 6px;
}

.doujin-card p {
  font-size: 14px;
  color: var(--c-text-sub);
  padding: 0 16px 12px;
  line-height: 1.6;
}

.doujin-card .card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  padding: 0 16px 16px;
  transition: color 0.2s ease;
}

.doujin-card .card-link:hover {
  color: #c97a1d;
}

/* 适龄推荐分组 */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.recommend-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  border-top: 3px solid var(--c-accent);
}

.recommend-card:nth-child(1) {
  border-top-color: var(--c-tag-all);
}

.recommend-card:nth-child(2) {
  border-top-color: var(--c-tag-16);
}

.recommend-card:nth-child(3) {
  border-top-color: var(--c-tag-18);
}

.recommend-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.recommend-card p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
  margin-bottom: 14px;
}

.recommend-card .card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.recommend-card .card-link:hover {
  color: #c97a1d;
}

/* 活动与公告时间线 */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--c-border);
}

.timeline-item {
  position: relative;
  padding: 0 0 20px 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-body-bg);
  box-shadow: 0 0 0 2px var(--c-accent);
}

.timeline-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.6;
}

/* 新手引导条带 */
.guide-strip {
  padding-top: 28px;
  padding-bottom: 8px;
}

.guide-strip .section-title {
  margin-bottom: 16px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.guide-step p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.6;
  margin-bottom: 6px;
}

.guide-step a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.guide-step a:hover {
  color: #c97a1d;
}

/* FAQ 摘选折叠区 */
.faq-teaser {
  padding-bottom: 40px;
}

.faq-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 20px;
}

.faq-item summary {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--c-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--c-border);
}

.faq-item p {
  font-size: 14px;
  color: var(--c-text-sub);
  padding: 12px 0;
  line-height: 1.7;
}

.faq-item a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  padding-bottom: 16px;
  display: inline-block;
  transition: color 0.2s ease;
}

.faq-item a:hover {
  color: #c97a1d;
}

/* --------------------------------------------------------------------------
   7. 内页通用布局 — 主内容 + 侧栏
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  padding-top: 0;
}

.main-content {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

/* 内页侧栏卡片 */
.sidebar-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.sidebar-anchor-list li {
  margin-bottom: 8px;
}

.sidebar-anchor-list li a {
  font-size: 14px;
  color: var(--c-text-sub);
  transition: color 0.2s ease;
}

.sidebar-anchor-list li a:hover {
  color: var(--c-accent);
}

.sidebar-figure {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.sidebar-figure figcaption {
  font-size: 13px;
  color: var(--c-text-sub);
  padding: 10px 14px;
  line-height: 1.6;
}

/* 相关入口条带 */
.related-entry-strip {
  padding-top: 36px;
  padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   8. 分级总览 — fenji-zonglan.html
   -------------------------------------------------------------------------- */
.content-section {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 12px;
}

.content-section > p {
  font-size: 14px;
  color: var(--c-text-sub);
  margin-bottom: 16px;
  line-height: 1.8;
}

.table-scroll {
  overflow-x: auto;
}

.age-attribute-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
}

.age-attribute-table thead th {
  text-align: left;
  padding: 12px 14px;
  background: var(--c-header-bg);
  color: var(--c-white);
  font-weight: 600;
  font-size: 14px;
}

.age-attribute-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.age-attribute-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.age-attribute-table tbody th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  background: #f8f6f1;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

.age-attribute-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.6;
}

.age-attribute-table tbody tr:last-child th,
.age-attribute-table tbody tr:last-child td {
  border-bottom: none;
}

/* 分级判断流程 */
.judge-steps {
  counter-reset: judge;
}

.judge-steps .step-item,
.judge-steps li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid var(--c-border);
  counter-increment: judge;
}

.judge-steps .step-item:last-child,
.judge-steps li:last-child {
  border-bottom: none;
}

.judge-steps .step-item::before,
.judge-steps li::before {
  content: counter(judge);
  position: absolute;
  left: 0;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 常见误判提醒 */
.misjudge-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.7;
}

.misjudge-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-tag-16);
}

/* --------------------------------------------------------------------------
   9. 适龄推荐 — shiling-tuijian.html
   -------------------------------------------------------------------------- */

/* 多条件筛选器 */
.filter-panel {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 14px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-group:last-of-type {
  margin-bottom: 0;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  min-width: 72px;
}

.filter-chip {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--c-body-bg);
  border: 1px solid var(--c-border);
  color: var(--c-text-sub);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.filter-chip.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
  font-weight: 500;
}

.filter-clear {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-text-sub);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: var(--c-body-bg);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-clear:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

/* 推荐列表 */
.recommend-list {
  padding-top: 8px;
  padding-bottom: 8px;
}

.feature-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.feature-thumb {
  width: 200px;
  height: 128px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.feature-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.genre-tag,
.depth-tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--c-body-bg);
  color: var(--c-text-sub);
  border: 1px solid var(--c-border);
}

.feature-content p:last-child {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
}

/* 紧凑文本推荐 */
.compact-list {
  margin-top: 8px;
}

.compact-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: background 0.15s ease;
}

.compact-item:hover {
  background: #faf7f1;
}

.compact-title {
  flex: 1;
  min-width: 200px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
}

.compact-meta {
  font-size: 13px;
  color: var(--c-text-sub);
}

/* 年龄段分组说明卡 */
.age-group-cards {
  padding-top: 28px;
  padding-bottom: 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.group-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  border-top: 3px solid var(--c-tag-all);
}

.group-card:nth-child(2) {
  border-top-color: var(--c-tag-16);
}

.group-card:nth-child(3) {
  border-top-color: var(--c-tag-18);
}

.group-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.group-card p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
  margin-bottom: 12px;
}

.group-card a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.group-card a:hover {
  color: #c97a1d;
}

/* 相关链接 */
.related-links {
  padding-top: 28px;
  padding-bottom: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-links nav[aria-label="相关内容"] {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.related-links-item {
  font-size: 14px;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.related-links-item:hover {
  color: #c97a1d;
}

/* --------------------------------------------------------------------------
   10. 番剧讨论 — fanju-taolun.html
   -------------------------------------------------------------------------- */

/* 讨论方向标签带 */
.topic-tag-band {
  padding-top: 8px;
  padding-bottom: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topic-tag {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  color: var(--c-text-sub);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topic-tag:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

/* 主区 + 侧栏 */
.layout-with-aside {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  padding-top: 16px;
  padding-bottom: 8px;
}

.post-main-area {
  min-width: 0;
}

/* 重点图文帖 */
.post-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.post-featured {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px;
}

.post-thumb-wrap {
  width: 200px;
  height: 128px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.post-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-title a {
  color: var(--c-text);
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--c-accent);
}

.post-excerpt {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
  margin-bottom: 10px;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--c-text-sub);
}

.hot-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fdf0e0;
  color: var(--c-accent);
}

.tag-discuss {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--c-body-bg);
  color: var(--c-text-sub);
  border: 1px solid var(--c-border);
}

.reply-time {
  margin-left: auto;
}

/* 普通文本帖 */
.post-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
}

.post-text .post-title {
  flex: 1;
  min-width: 200px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0;
}

/* 侧栏 */
.post-aside {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.reply-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0ede5;
}

.reply-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.reply-item a {
  display: block;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.reply-item a:hover {
  color: var(--c-accent);
}

.reply-board {
  font-size: 12px;
  color: var(--c-text-sub);
}

/* 相关入口 */
.related-entry-cards {
  padding-top: 28px;
  padding-bottom: 8px;
}

.entry-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.entry-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
}

.entry-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}

.entry-card-text {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. 同人创作 — tongren-chuangzuo.html
   -------------------------------------------------------------------------- */
.creation-type-section,
.role-analysis-section,
.creation-tips-section,
.participation-guide {
  padding-top: 8px;
  padding-bottom: 8px;
}

.type-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.type-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.type-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.type-card p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
  margin-bottom: 10px;
}

.card-tag a {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.card-tag a:hover {
  color: #c97a1d;
}

/* 角色设定解析专题 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.featured-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px;
}

.featured-media {
  width: 160px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.featured-content p {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.6;
  margin-bottom: 8px;
}

.topic-label {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fdf0e0;
  color: var(--c-accent);
  font-weight: 500;
}

/* 创作心得列表 */
.tips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tip-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.tip-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tip-item p {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.6;
  margin-bottom: 8px;
}

.tip-meta {
  font-size: 12px;
  color: var(--c-text-sub);
}

/* 参与方式 */
.participation-guide .guide-steps {
  padding-left: 0;
}

.participation-guide .guide-steps li {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 56px;
}

.participation-guide .guide-steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.participation-guide .guide-steps li h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.participation-guide .guide-steps li p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. 新手指南 — xinshou-zhinan.html
   -------------------------------------------------------------------------- */

/* 三步时间线 */
.guide-steps {
  padding-top: 8px;
  padding-bottom: 8px;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-left: 0;
}

.step-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  text-align: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 14px;
}

.step-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
  margin-bottom: 12px;
  text-align: left;
}

.step-item a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.step-item a:hover {
  color: #c97a1d;
}

/* 社区守则摘要 */
.community-rules {
  padding-top: 28px;
  padding-bottom: 8px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rule-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--c-accent);
}

.rule-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.rule-card p {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.6;
}

/* 版块选择指引 */
.board-guide {
  padding-top: 28px;
  padding-bottom: 8px;
}

.board-guide .board-table-wrap {
  padding: 0;
}

.board-guide .board-table thead th {
  background: var(--c-header-bg);
  color: var(--c-white);
}

.board-guide .board-table tbody td {
  font-size: 14px;
}

.board-guide .board-table tbody td:first-child {
  font-weight: 600;
  color: var(--c-text);
}

/* 配图 */
.guide-figure {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-border);
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 13px;
  color: var(--c-text-sub);
  padding: 12px 16px;
  line-height: 1.6;
}

/* 帮助入口 */
.help-links {
  padding-top: 28px;
  padding-bottom: 8px;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.help-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
}

.help-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}

.help-card p {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. 常见问题 — changjian-wenti.html
   -------------------------------------------------------------------------- */

/* 左目录右问答 */
.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 8px;
  padding-bottom: 8px;
}

.sidebar-faq {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-faq h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.faq-topic-list li {
  margin-bottom: 4px;
}

.faq-topic-list li a {
  display: block;
  font-size: 14px;
  color: var(--c-text-sub);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-topic-list li a:hover {
  background: var(--c-body-bg);
  color: var(--c-accent);
}

.sidebar-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.sidebar-link:hover {
  color: #c97a1d;
}

.content-area {
  min-width: 0;
}

/* 分组问答 */
.faq-group {
  margin-bottom: 28px;
}

.faq-group > h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-accent);
  display: inline-block;
}

.faq-group .faq-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 20px;
}

.faq-group .faq-item summary {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-group .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-group .faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--c-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-group .faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-group .faq-item[open] summary {
  border-bottom: 1px solid var(--c-border);
}

.faq-answer {
  padding: 12px 0;
}

.faq-answer p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.faq-answer a:hover {
  color: #c97a1d;
}

/* 未覆盖问题 */
.faq-unanswered {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.faq-unanswered h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.faq-unanswered p {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
}

.faq-unanswered a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.faq-unanswered a:hover {
  color: #c97a1d;
}

/* 底部导览图 */
.faq-guide-figure {
  margin-top: 24px;
}

.faq-guide-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.faq-guide-figure figcaption {
  font-size: 13px;
  color: var(--c-text-sub);
  padding: 8px 4px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. 404 页面
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: var(--c-body-bg);
}

.error-panel {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--c-text-sub);
  margin-bottom: 24px;
  line-height: 1.7;
}

.error-home {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  margin-bottom: 24px;
}

.error-home:hover {
  background: #c97a1d;
}

.error-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.error-links a {
  font-size: 14px;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.error-links a:hover {
  color: #c97a1d;
}

/* --------------------------------------------------------------------------
   15. Responsive — 响应式断点
   -------------------------------------------------------------------------- */

/* 平板：768–991px */
@media (max-width: 991px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .page-layout {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }

  .layout-with-aside {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .entry-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recommend-grid,
  .cards-grid,
  .type-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-list {
    grid-template-columns: 1fr;
  }

  .related-grid,
  .help-cards {
    grid-template-columns: 1fr 1fr;
  }

  .related-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机：<768px */
@media (max-width: 767px) {
  .header-shell {
    height: 60px;
    gap: 12px;
  }

  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  /* 汉堡按钮 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--c-header-bg);
    padding: 8px 16px 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 14px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 12px;
    display: block;
    text-align: center;
    padding: 10px 18px;
  }

  /* 首屏 */
  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 20px;
    gap: 16px;
  }

  .hero-main h1 {
    font-size: 24px;
  }

  .hero-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 表格横向滚动 */
  .board-table-wrap {
    padding: 12px;
    overflow-x: auto;
  }

  .board-table {
    min-width: 560px;
  }

  /* 分级标签带 */
  .tag-row {
    gap: 8px;
  }

  .age-tag.tag-all,
  .age-tag.tag-12,
  .age-tag.tag-16,
  .age-tag.tag-18 {
    font-size: 13px;
    padding: 5px 14px;
  }

  /* 热帖 */
  .post-row.feature {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .post-thumb {
    width: 100%;
    height: 160px;
  }

  .post-row.compact {
    flex-wrap: wrap;
  }

  .post-row.compact h3 {
    flex-basis: 100%;
  }

  /* 同人卡 */
  .doujin-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .doujin-card figure {
    height: 160px;
  }

  /* 推荐分组 */
  .recommend-grid,
  .cards-grid,
  .type-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 时间线 */
  .timeline-item {
    padding-left: 16px;
  }

  /* 内页通用 */
  .inner-main {
    padding-bottom: 40px;
  }

  .breadcrumb {
    padding-top: 12px;
  }

  .page-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .page-header .page-title {
    font-size: 24px;
  }

  /* 内页侧栏布局 */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar {
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .layout-with-aside {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-aside {
    order: 2;
  }

  .post-main-area {
    order: 1;
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar-faq {
    order: 2;
  }

  .content-area {
    order: 1;
  }

  /* 筛选器 */
  .filter-panel {
    padding: 16px;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .filter-label {
    min-width: 0;
  }

  /* 推荐条目 */
  .feature-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-thumb {
    width: 100%;
    height: 160px;
  }

  .compact-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .compact-title {
    flex-basis: 100%;
    min-width: 0;
  }

  /* 讨论帖 */
  .post-featured {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .post-thumb-wrap {
    width: 100%;
    height: 160px;
  }

  .post-text {
    flex-wrap: wrap;
  }

  .post-text .post-title {
    flex-basis: 100%;
    min-width: 0;
  }

  /* 同人专题 */
  .featured-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .featured-media {
    width: 100%;
    height: 140px;
  }

  /* 新手指南 */
  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-item {
    text-align: left;
  }

  .step-number {
    margin: 0 0 10px;
  }

  .rules-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-figure img {
    height: 180px;
  }

  /* FAQ */
  .faq-group .faq-item {
    padding: 0 14px;
  }

  /* 相关卡片 */
  .related-cards,
  .related-grid,
  .help-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .entry-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 页脚 */
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-panel h1 {
    font-size: 20px;
  }
}

/* 小屏手机：≤420px 微调 */
@media (max-width: 420px) {
  .brand-name {
    font-size: 16px;
  }

  .nav-cta {
    font-size: 13px;
    padding: 8px 14px;
  }

  .hero-main h1 {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .post-thumb {
    height: 140px;
  }

  .doujin-card figure {
    height: 140px;
  }

  .feature-thumb {
    height: 140px;
  }

  .post-thumb-wrap {
    height: 140px;
  }

  .featured-media {
    height: 120px;
  }
}
