/* =========================================================
   Base
   ========================================================= */
:root {
  --ink: #111111;
  --paper: #f5f1e8;
  --line: #e0ddd5;
  --card: #ffffff;
  --accent: #b30000;
  --muted: #6b675f;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "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(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.4;
  font-weight: 700;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

p {
  font-size: 16px;
}

/* =========================================================
   Layout
   ========================================================= */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.inner-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 页面布局：侧栏在左，主内容在右 */
.page-layout.sidebar-left,
.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 侧栏 */
.sidebar,
.page-sidebar {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.sidebar-inner {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px 0;
}

.sidebar h2,
.sidebar-title {
  font-size: 18px;
  font-family: var(--serif);
  padding: 0 20px 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 8px;
}

.sidebar-nav li a,
.sidebar-list li a,
.sidebar-nav-list li a,
.sidebar-links li a,
.filter-list li a {
  display: block;
  padding: 8px 20px;
  font-size: 15px;
  border-left: 3px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-list li a:hover,
.sidebar-nav-list li a:hover,
.sidebar-links li a:hover,
.filter-list li a:hover {
  background: var(--paper);
  border-left-color: var(--accent);
}

.sidebar-nav li a.is-current,
.sidebar-list li a.is-current,
.sidebar-nav-list li a.is-current,
.sidebar-links li a.is-current,
.filter-list li a.is-current {
  background: var(--paper);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-list li a.is-active {
  background: var(--paper);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-note {
  margin-top: 16px;
  padding: 0 20px;
}

.sidebar-note p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.sidebar-note a {
  font-size: 14px;
  color: var(--accent);
}

/* =========================================================
   Components
   ========================================================= */
/* 页头 */
.site-header {
  background: var(--card);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand-area {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-list li a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.nav-list li a.is-current {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.header-action {
  flex-shrink: 0;
}

.post-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 20px;
  font-size: 15px;
  border: 1px solid var(--ink);
  transition: background-color 0.2s, color 0.2s;
}

.post-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--card);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  padding: 6px 10px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}

.nav-toggle-icon {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle-text {
  font-size: 14px;
}

/* 面包屑 */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--muted);
  margin: 0 4px;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  border-bottom: 2px solid var(--ink);
  padding: 24px 0 20px;
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  margin-top: 8px;
}

/* 区块标题通用 */
.section-title {
  font-size: 22px;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--ink);
  margin-bottom: 8px;
}

.block-desc,
.section-lead {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 720px;
}

/* 话题列表行 */
.topic-list {
  display: flex;
  flex-direction: column;
}

.topic-item,
.topic-row {
  display: flex;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.topic-item a,
.topic-row a {
  flex: 1;
  font-size: 16px;
}

.topic-item a:hover,
.topic-row a:hover {
  color: var(--accent);
}

.topic-meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.topic-board,
.topic-tag {
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 作品卡 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card,
.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.gallery-figure,
.work-card figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper);
}

.gallery-figure img,
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-name {
  font-size: 16px;
  font-family: var(--serif);
  margin-top: 10px;
  padding: 0 4px;
}

.gallery-author {
  font-size: 13px;
  color: var(--muted);
  padding: 2px 4px 8px;
}

.gallery-link {
  font-size: 14px;
  color: var(--accent);
  padding: 0 4px 4px;
  border-bottom: 1px solid transparent;
}

.gallery-link:hover {
  border-bottom-color: var(--accent);
}

.work-card figcaption {
  padding: 10px 4px 4px;
}

.work-name {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.work-author {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.work-link {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  margin-top: 6px;
}

/* 活动卡片 */
.event-card {
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.event-card-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.event-tag {
  display: inline-block;
  font-size: 12px;
  background: var(--accent);
  color: var(--card);
  padding: 2px 10px;
  margin-bottom: 8px;
}

.event-card-head h3 {
  font-size: 18px;
}

.event-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.event-card-body {
  padding: 16px 20px;
}

.event-card-body p {
  font-size: 15px;
  margin-bottom: 8px;
}

.event-card-body a {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.event-card-body a:hover {
  border-bottom-color: var(--accent);
}

/* 折叠问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
}

.faq-item summary {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--ink);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 15px;
}

/* 步骤列表 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 20px;
  counter-increment: step;
}

.step-item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.4;
}

.step-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 15px;
}

/* 信息卡片 */
.card-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
}

.info-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.info-card p {
  font-size: 14px;
}

/* 图片容器 */
.content-figure,
.media-figure,
.guide-figure,
.event-figure,
.boards-banner {
  margin: 24px 0;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px;
}

.content-figure img,
.media-figure img,
.guide-figure img,
.event-figure img,
.boards-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-figure figcaption,
.media-figure figcaption,
.guide-figure figcaption,
.event-figure figcaption,
.boards-banner figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 4px 2px;
}

/* 相关链接 */
.related-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.related-links-item {
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.related-links-item:hover {
  border-bottom-color: var(--accent);
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
}

.boards-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

.boards-table th,
.boards-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.boards-table thead th {
  background: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

.boards-table tbody tr:last-child td {
  border-bottom: none;
}

.boards-table tbody tr:hover {
  background: var(--paper);
}

.boards-table a {
  color: var(--accent);
}

/* =========================================================
   首页模块
   ========================================================= */
.home-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
  flex: 1 0 auto;
}

/* 场景选择首屏 */
.scenario-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 3px solid var(--ink);
}

.hero-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 4 / 3;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding: 8px 0;
}

.hero-content h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 24px;
}

.scenario-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scenario-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.scenario-card:hover {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 rgba(17, 17, 17, 0.15);
}

.scenario-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.scenario-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.scenario-desc {
  font-size: 13px;
  color: var(--muted);
}

/* 社区动态 */
.community-dynamics {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.dynamics-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
}

.hot-topics h2,
.community-announcements h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.community-announcements .announcement-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.community-announcements .announcement-list a {
  font-size: 15px;
}

/* 同人作品精选 */
.gallery-preview {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.gallery-preview h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

/* 活动时间线 */
.events-preview {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.events-preview h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.events-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--line);
}

.event-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.event-date {
  font-size: 14px;
  color: var(--muted);
  padding-top: 2px;
}

.event-content h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.event-content p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.event-content a {
  font-size: 14px;
  color: var(--accent);
}

/* 版块目录摘要 */
.boards-preview {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.boards-preview h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.board-entry {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.board-entry:hover {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 rgba(17, 17, 17, 0.15);
}

.board-entry h3 {
  font-size: 17px;
}

.board-entry p {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.board-link-text {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* 规则摘要 */
.rules-summary {
  padding: 40px 0;
}

.rules-summary h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.rules-content p {
  font-size: 15px;
  max-width: 720px;
  margin-bottom: 16px;
}

.rules-content p a {
  color: var(--accent);
}

.rules-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.guide-link,
.post-guide-link {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  border: 1px solid var(--ink);
}

.guide-link {
  background: transparent;
}

.guide-link:hover {
  background: var(--paper);
}

.post-guide-link {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--card);
}

.post-guide-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
}

/* =========================================================
   内页专属模块
   ========================================================= */
/* boards */
.boards-advice-section {
  margin-top: 40px;
}

.boards-advice-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.boards-advice-section p {
  font-size: 15px;
  margin-bottom: 12px;
  max-width: 720px;
}

/* skills */
.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: 22px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.topic-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
}

.topic-body h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.topic-body h3 a {
  color: var(--ink);
}

.topic-body h3 a:hover {
  color: var(--accent);
}

.topic-body p {
  font-size: 14px;
  color: var(--muted);
}

.topic-body .topic-meta {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tutorial-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
}

.tutorial-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.tutorial-card ul li {
  font-size: 14px;
  padding: 4px 0;
}

.tutorial-card ul li a {
  color: var(--accent);
}

.question-list {
  display: flex;
  flex-direction: column;
}

.question-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.question-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.question-item h3 a {
  color: var(--ink);
}

.question-item h3 a:hover {
  color: var(--accent);
}

.question-meta {
  font-size: 13px;
  color: var(--muted);
}

.more-link {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.more-link a {
  font-size: 14px;
  color: var(--accent);
}

.related-block {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.related-block h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.related-links li {
  padding: 8px 0;
}

.related-links li a {
  font-size: 15px;
  color: var(--accent);
}

/* gallery */
.gallery-section,
.topic-section,
.discuss-section {
  margin-bottom: 48px;
}

.gallery-section .section-title,
.topic-section .section-title,
.discuss-section .section-title {
  font-size: 22px;
  border-bottom: 2px solid var(--ink);
}

.discuss-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

.discuss-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.discuss-list li a {
  color: var(--accent);
}

.discuss-more {
  margin-top: 16px;
  font-size: 14px;
}

.discuss-more a {
  color: var(--accent);
  margin-right: 16px;
}

/* discussion */
.content-section {
  margin-bottom: 48px;
}

.content-section .section-title {
  font-size: 22px;
  border-bottom: 2px solid var(--ink);
}

.media-block {
  margin-bottom: 20px;
}

.calendar-list {
  display: flex;
  flex-direction: column;
}

.calendar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.calendar-date {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 80px;
}

.calendar-item a {
  font-size: 15px;
  color: var(--accent);
}

/* events */
.event-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-steps li {
  font-size: 15px;
  padding: 8px 0;
  border-left: 3px solid var(--line);
  padding-left: 16px;
}

.event-steps li::before {
  content: "→";
  color: var(--accent);
  margin-right: 8px;
}

.event-history-list {
  display: flex;
  flex-direction: column;
}

.event-history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.event-history-name {
  font-size: 15px;
  flex: 1;
}

.event-history-name a {
  color: var(--ink);
}

.event-history-name a:hover {
  color: var(--accent);
}

.event-history-date {
  font-size: 14px;
  color: var(--muted);
}

/* guide */
.guide-section {
  margin-bottom: 48px;
}

.guide-section .section-title {
  font-size: 22px;
  border-bottom: 2px solid var(--ink);
}

.guide-tip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-tip-item {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
}

.guide-tip-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.guide-tip-item p {
  font-size: 14px;
}

.rule-list {
  display: flex;
  flex-direction: column;
}

.rule-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  position: relative;
  padding-left: 20px;
}

.rule-item::before {
  content: "·";
  position: absolute;
  left: 4px;
  font-size: 20px;
  color: var(--accent);
  line-height: 1.4;
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
}

.section-note a {
  color: var(--accent);
}

/* team */
.role-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.role-list li {
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15px;
}

.role-list strong {
  font-family: var(--serif);
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}

.apply-steps {
  margin-top: 24px;
}

.apply-steps h3 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 36px;
}

.step-body h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 14px;
}

/* 404 */
.error-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.error-section {
  text-align: center;
  max-width: 520px;
}

.error-code {
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  display: inline-block;
  padding: 0 24px 16px;
  margin-bottom: 24px;
}

.error-section h1 {
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-back-home,
.btn-to-boards {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  border: 1px solid var(--ink);
}

.btn-back-home {
  background: var(--ink);
  color: var(--paper);
}

.btn-back-home:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--card);
}

.btn-to-boards {
  background: transparent;
}

.btn-to-boards:hover {
  background: var(--paper);
}

.error-tip {
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(245, 241, 232, 0.7);
  max-width: 480px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.2);
}

.footer-col h3 {
  font-size: 16px;
  color: var(--paper);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.2);
}

.footer-col ul li {
  padding: 4px 0;
}

.footer-col ul li a {
  color: rgba(245, 241, 232, 0.8);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  font-size: 14px;
  color: rgba(245, 241, 232, 0.6);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .boards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-layout.sidebar-left,
  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 48px;
  }

  .sidebar,
  .page-sidebar {
    position: static;
    order: 2;
  }

  .sidebar-inner {
    padding: 12px 0;
  }

  .sidebar h2,
  .sidebar-title {
    padding: 0 16px 10px;
  }

  .sidebar-nav,
  .sidebar-list,
  .sidebar-nav-list,
  .sidebar-links,
  .filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 12px;
  }

  .sidebar-nav li a,
  .sidebar-list li a,
  .sidebar-nav-list li a,
  .sidebar-links li a,
  .filter-list li a {
    padding: 6px 12px;
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
  }

  .sidebar-nav li a:hover,
  .sidebar-list li a:hover,
  .sidebar-nav-list li a:hover,
  .sidebar-links li a:hover,
  .filter-list li a:hover {
    border-bottom-color: var(--accent);
  }

  .sidebar-nav li a.is-current,
  .sidebar-list li a.is-current,
  .sidebar-nav-list li a.is-current,
  .sidebar-links li a.is-current,
  .filter-list li a.is-current {
    border-bottom-color: var(--accent);
    color: var(--accent);
  }

  .sidebar-list li a.is-active {
    border-bottom-color: var(--accent);
    color: var(--accent);
  }

  .sidebar-note {
    padding: 0 16px;
  }

  .dynamics-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .scenario-select {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    aspect-ratio: 16 / 9;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.three-cols {
    grid-template-columns: 1fr;
  }

  .guide-tip-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand-name {
    font-size: 22px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
  }

  .nav-list li a.is-current {
    border-left-color: var(--accent);
    border-bottom-color: var(--line);
  }

  .header-action {
    margin-left: auto;
  }

  .post-btn {
    padding: 6px 14px;
    font-size: 14px;
  }

  .inner-main,
  .home-main {
    padding: 0 16px 48px;
  }

  .breadcrumb {
    padding: 12px 16px 0;
  }

  .page-header {
    padding: 16px 0 16px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  h2,
  .section-title,
  .content-block h2,
  .gallery-section .section-title,
  .topic-section .section-title,
  .discuss-section .section-title,
  .content-section .section-title,
  .guide-section .section-title {
    font-size: 20px;
  }

  .scenario-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .boards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 16px;
  }

  .tutorial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-item,
  .topic-row {
    flex-wrap: wrap;
  }

  .topic-meta {
    white-space: normal;
  }

  .topic-row {
    grid-template-columns: 1fr;
  }

  .related-links {
    padding: 16px;
  }

  .step-item {
    flex-direction: column;
    gap: 8px;
  }

  .error-code {
    font-size: 64px;
  }
}

@media (max-width: 480px) {
  .brand-slogan {
    font-size: 11px;
  }

  .scenario-select {
    padding: 24px 0;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .community-dynamics,
  .gallery-preview,
  .events-preview,
  .boards-preview,
  .rules-summary {
    padding: 28px 0;
  }

  .dynamics-layout {
    gap: 24px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-brand {
    margin-bottom: 24px;
  }
}
