/* ============================================================
  动漫版 · 全站样式表
  技术栈：原生 CSS，Grid/Flex 布局
  目录：base / layout / components / pages / responsive
  ============================================================ */

/* ============================================================
  base — 变量、重置、基础排版
  ============================================================ */
:root {
  --ink: #232832;
  --body: #2b313a;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f5f4f1;
  --line: #e5e3de;
  --accent: #4a5d75;
  --accent-dark: #3b4a5e;
  --gold: #b28d5c;
  --white: #ffffff;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(35, 40, 50, 0.04);
  --shadow-md: 0 4px 16px rgba(35, 40, 50, 0.06);
  --container: 1200px;
  --header-h: 68px;
  --space-section: 56px;
  --font-stack: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  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: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.35;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
  layout — 页头、页脚、通用容器、面包屑、页面标题区
  ============================================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  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-slogan {
  font-size: 13px;
  color: var(--muted);
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--body);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-list li a:hover {
  color: var(--accent);
  background: var(--bg-soft);
}

.nav-list li a.is-current {
  color: var(--accent);
  font-weight: 600;
  background: var(--bg-soft);
}

.nav-post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius);
  transition: background 0.2s;
  white-space: nowrap;
  margin-left: 8px;
}

.nav-post-btn:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.nav-post-btn.is-current {
  background: var(--accent-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  align-items: center;
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-main {
  flex: 1;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  padding: 20px 0 4px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--body);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.page-description {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

/* 页脚 */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.footer-slogan {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 4px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  max-width: var(--container);
  margin: 0 auto;
}

/* ============================================================
  components — 按钮、卡片、列表、折叠、表格等通用组件
  ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  line-height: 1.5;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(74, 93, 117, 0.06);
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-soft);
}

.btn-link {
  color: var(--accent);
  font-weight: 600;
  padding: 8px 4px;
}

.btn-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 6px;
}

.section-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 卡片通用 hover */
.creation-card,
.entry-card,
.tip-card,
.summary-card,
.related-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.creation-card:hover,
.entry-card:hover,
.tip-card:hover,
.summary-card:hover,
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 93, 117, 0.28);
  box-shadow: var(--shadow-md);
}

/* 折叠问答 */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
  position: relative;
  padding-right: 32px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item[open] summary {
  color: var(--accent);
}

.faq-item p {
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.75;
}

.faq-item p + p {
  padding-top: 0;
  margin-top: -10px;
}

/* 折叠问答（内页 faq） */
.faq-group details {
  border-bottom: 1px solid var(--line);
}

.faq-group summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
  line-height: 1.5;
}

.faq-group summary::-webkit-details-marker {
  display: none;
}

.faq-group summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}

.faq-group details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-group details[open] summary {
  color: var(--accent);
}

.faq-answer {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.75;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer a {
  font-weight: 500;
}

/* 入口卡（首页双入口 / 内页相关入口） */
.entry-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}

.entry-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.entry-card-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.entry-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.entry-card-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.entry-card:hover .entry-card-link::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* 相关入口链接条 */
.related-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.related-links-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.related-links-item {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  padding: 4px 0;
}

.related-links-item:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ============================================================
  pages — index 首页
  ============================================================ */
.site-home {
  background: var(--bg);
}

/* 首屏焦点区 */
.hero-section {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hero-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-entry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.entry-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}

.entry-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.entry-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* 首页主体双栏 */
.home-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

/* 热帖精选 */
.hot-list {
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: var(--radius);
}

.tab-btn {
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.tab-btn:hover {
  color: var(--body);
}

.tab-btn.is-active {
  background: var(--bg);
  color: var(--accent);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.post-item:first-child {
  padding-top: 4px;
}

.post-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}

.post-title a {
  color: var(--ink);
}

.post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.post-replies::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
  background: var(--gold);
  border-radius: 50%;
}

.post-board {
  color: var(--gold);
  font-weight: 500;
}

/* 侧栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.widget {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.widget-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.announce-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.announce-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.announce-date {
  font-size: 13px;
  color: var(--muted);
}

.announce-item h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.announce-item h3 a {
  color: var(--body);
}

.announce-item h3 a:hover {
  color: var(--accent);
}

.widget-boundary {
  background: var(--bg-soft);
  border-color: transparent;
}

.boundary-text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 12px;
}

.widget-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.widget-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* 同人创作展示 */
.creation-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.creation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.creation-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.creation-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(178, 141, 92, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.card-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.creation-more {
  margin-top: 28px;
  text-align: center;
}

/* 双入口 */
.entry-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.entry-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* 首页 FAQ */
.faq-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.faq-list {
  margin-top: 8px;
}

.faq-more {
  margin-top: 20px;
}

/* ============================================================
  pages — 内页公共
  ============================================================ */
.site-inner {
  background: var(--bg);
}

/* ============================================================
  pages — dmb/boards.html 讨论版区
  ============================================================ */
.page-boards {
  background: var(--bg);
}

.section-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.intro-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.intro-text p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 12px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-figure {
  margin: 0;
}

.intro-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.section-zone-list {
  margin-bottom: 48px;
}

.section-zone-list > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.zone-list-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.zone-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zone-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.zone-item:hover {
  border-color: rgba(74, 93, 117, 0.28);
  box-shadow: var(--shadow-sm);
}

.zone-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.zone-position {
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 12px;
}

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zone-tags li {
  font-size: 13px;
  color: var(--accent);
  background: rgba(74, 93, 117, 0.07);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 500;
}

/* 发帖建议卡 */
.section-tips {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 8px;
}

.section-tips > h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.tips-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.tip-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.zone-related {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zone-related a {
  font-weight: 500;
}

/* ============================================================
  pages — dmb/guide.html 品鉴指南
  ============================================================ */
.page-guide {
  background: var(--bg);
}

.guide-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.guide-intro-text p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 12px;
}

.guide-intro-text p:last-child {
  margin-bottom: 0;
}

.guide-figure {
  margin: 0;
}

.guide-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.guide-steps {
  margin-bottom: 48px;
}

.guide-steps > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  position: relative;
  padding-left: 88px;
}

.step-item::before {
  content: attr(data-step);
  position: absolute;
  left: 24px;
  top: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius);
}

.step-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}

.step-item p:last-child {
  margin-bottom: 0;
}

.guide-pitfalls {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}

.guide-pitfalls > h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.pitfall-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pitfall-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.pitfall-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.pitfall-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.guide-related {
  margin-bottom: 8px;
}

.guide-related > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.entry-cards .entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}

.entry-cards .entry-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.entry-cards .entry-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.entry-link-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.entry-link-text::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.entry-card:hover .entry-link-text::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* ============================================================
  pages — dmb/posting.html 发帖指引
  ============================================================ */
.page-posting {
  background: var(--bg);
}

.section-purpose {
  margin-bottom: 48px;
}

.purpose-content .section-title {
  margin-bottom: 12px;
}

.purpose-content p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 12px;
}

.purpose-content p:last-child {
  margin-bottom: 0;
}

.section-checklist {
  margin-bottom: 48px;
}

.section-checklist > .section-title {
  margin-bottom: 6px;
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.checklist-item::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  background: rgba(74, 93, 117, 0.06);
}

.checklist-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.checklist-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.checklist-item p a {
  font-weight: 500;
}

.section-structure {
  margin-bottom: 48px;
}

.section-structure > .section-title {
  margin-bottom: 24px;
}

.structure-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.structure-text p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 16px;
}

.sub-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  margin-top: 16px;
}

.structure-figure {
  margin: 0;
}

.structure-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.structure-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.section-rejection {
  margin-bottom: 48px;
}

.section-rejection > .section-title {
  margin-bottom: 6px;
}

.rejection-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rejection-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.rejection-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.rejection-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.section-related {
  margin-bottom: 8px;
}

.section-related > .section-title {
  margin-bottom: 20px;
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: block;
  text-decoration: none;
}

.related-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.related-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
  pages — dmb/rules.html 社区公约
  ============================================================ */
.page-rules {
  background: var(--bg);
}

.rule-summary {
  margin-bottom: 48px;
}

.rule-summary > .section-title {
  margin-bottom: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.summary-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.summary-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.summary-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.rule-details {
  margin-bottom: 48px;
}

.rule-details > .section-title {
  margin-bottom: 20px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.detail-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.detail-item p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
}

.rule-spoiler {
  margin-bottom: 48px;
}

.rule-spoiler > .section-title {
  margin-bottom: 20px;
}

.spoiler-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.spoiler-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spoiler-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.spoiler-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.spoiler-block p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
}

.spoiler-figure {
  margin: 0;
}

.spoiler-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.spoiler-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.rule-enforcement {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}

.rule-enforcement > .section-title {
  margin-bottom: 6px;
}

.enforcement-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.enforcement-steps li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  padding-top: 52px;
}

.enforcement-steps li::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  left: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
}

.enforcement-steps h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.enforcement-steps p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.enforcement-note {
  font-size: 14px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}

.enforcement-note a {
  font-weight: 500;
}

.related-entry {
  margin-bottom: 8px;
}

.related-entry > .section-title {
  margin-bottom: 20px;
}

.related-entry .entry-cards {
  grid-template-columns: repeat(2, 1fr);
}

/* ============================================================
  pages — dmb/boundary.html 内容边界
  ============================================================ */
.page-boundary {
  background: var(--bg);
}

.overview {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 48px;
}

.overview h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.overview p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.75;
}

.scope-list {
  margin-bottom: 48px;
}

.scope-list > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.scope-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.scope-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.scope-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  line-height: 1.6;
  vertical-align: top;
}

.scope-table tr:last-child td {
  border-bottom: none;
}

.scope-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.scope-figure {
  margin: 0;
}

.scope-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scope-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.not-provided {
  margin-bottom: 48px;
}

.not-provided > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.not-provided-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.not-provided-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.not-provided-list h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.not-provided-list h3::before {
  content: "✕";
  display: inline-block;
  margin-right: 8px;
  color: var(--gold);
  font-weight: 700;
}

.not-provided-list p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.verification {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}

.verification > h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.verification-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.verification-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.verification-list h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.verification-list p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.related {
  margin-bottom: 8px;
}

.related > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.related .related-cards {
  grid-template-columns: repeat(2, 1fr);
}

.related .related-card {
  display: block;
  text-decoration: none;
}

.related .related-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.related .related-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

.related .related-card a {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
  pages — dmb/faq.html 常见问题
  ============================================================ */
.page-faq {
  background: var(--bg);
}

.faq-hero-media {
  margin: 0 0 40px;
}

.faq-hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.faq-hero-media figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.faq-group {
  margin-bottom: 40px;
}

.faq-group h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.faq-related-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.faq-related-links .related-card {
  display: block;
  text-decoration: none;
}

.related-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.related-desc {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
  pages — 404.html
  ============================================================ */
.site-error {
  background: var(--bg);
}

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1;
}

.error-panel {
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 48px 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.error-btn:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.error-link:hover {
  background: rgba(74, 93, 117, 0.06);
  color: var(--accent-dark);
}

.error-tip {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
  responsive — 响应式断点
  ============================================================ */
/* ≥993px 桌面：显示完整导航 */
@media (min-width: 993px) {
  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
  }
}

/* ≤992px 平板：汉堡菜单 */
@media (max-width: 992px) {
  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    border-radius: var(--radius);
  }

  .nav-post-btn {
    margin: 8px 16px 16px;
    justify-content: center;
  }

  /* 首页首屏 */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px;
  }

  .hero-visual {
    order: 2;
  }

  .hero-entry {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 首页双栏 */
  .home-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .widget-boundary {
    grid-column: 1 / -1;
  }

  /* 内页双栏 */
  .section-intro,
  .guide-intro,
  .structure-layout,
  .spoiler-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ≤640px 手机 */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --space-section: 40px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-section {
    padding: 32px 16px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-layout {
    padding: 32px 16px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-tabs {
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 9px 8px;
  }

  .post-item {
    padding: 16px 0;
  }

  .post-title {
    font-size: 16px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .widget-boundary {
    grid-column: auto;
  }

  .creation-section {
    padding: 0 16px 40px;
  }

  .creation-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .entry-section {
    padding: 40px 0;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .faq-section {
    padding: 40px 16px 32px;
  }

  .creation-more .btn {
    width: 100%;
  }

  /* 内页 */
  .inner-main {
    padding: 0 16px 48px;
  }

  .page-header {
    padding: 20px 0 24px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  /* 版区页 */
  .section-tips {
    padding: 24px 20px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .zone-item {
    padding: 20px;
  }

  /* 品鉴指南 */
  .step-item {
    padding: 20px;
    padding-top: 76px;
  }

  .step-item::before {
    left: 20px;
    top: 20px;
  }

  .pitfall-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-pitfalls {
    padding: 24px 20px;
  }

  /* 发帖指引 */
  .checklist-item {
    padding: 18px;
    flex-direction: column;
    gap: 8px;
  }

  .checklist-item::before {
    width: 18px;
    height: 18px;
  }

  .rejection-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 社区公约 */
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .enforcement-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rule-enforcement {
    padding: 24px 20px;
  }

  /* 内容边界 */
  .overview {
    padding: 20px;
  }

  .not-provided-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .verification {
    padding: 24px 20px;
  }

  .verification-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* FAQ */
  .faq-related-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 16px 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .error-btn,
  .error-actions .error-link {
    width: 100%;
  }
}

/* 滚动渐入动画（增强，不影响初始可见性） */
@media (prefers-reduced-motion: no-preference) {
  .creation-card,
  .entry-card,
  .tip-card,
  .zone-item,
  .step-item,
  .pitfall-item,
  .summary-card,
  .detail-item,
  .checklist-item,
  .rejection-item,
  .not-provided-list li,
  .verification-list li {
    opacity: 1;
  }
}
