/* ==========================================================
   每日大赛交流社区 · 全站样式表
   版本：1.0
   ========================================================== */

/* ==========================================================
   Base — 基础变量、重置与全局默认
   ========================================================== */
:root {
  --color-bg: #f5f6f8;
  --color-text: #2b2b2b;
  --color-text-light: #5a6068;
  --color-border: #dfe2e6;
  --color-blue: #5b7a99;
  --color-green: #6a8f7d;
  --color-purple: #807f9d;
  --color-warm: #9a8b7a;
  --color-white: #ffffff;
  --color-card-bg: #ffffff;
  --color-hover-bg: #f0f2f5;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas,
    "Liberation Mono", Menlo, monospace;

  --container-width: 1200px;
  --sidebar-width: 260px;
  --main-width: 640px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-card: 0 1px 2px rgba(43, 43, 43, 0.06);
  --shadow-card-hover: 0 4px 12px rgba(43, 43, 43, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #44617b;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 600;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-light);
}

/* ==========================================================
   Layout — 全站骨架：页头、页脚、主容器
   ========================================================== */

/* ---- 站点主体 ---- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* ---- 页头 ---- */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-name a {
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.brand-name a:hover {
  color: var(--color-blue);
}

/* ---- 主导航 ---- */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: var(--color-text);
  background-color: var(--color-hover-bg);
}

.nav-list li a.is-current {
  color: var(--color-text);
  font-weight: 600;
  background-color: #e9edf1;
}

/* ---- 汉堡按钮（默认隐藏） ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- 页脚 ---- */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}

.footer-site-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links li a {
  font-size: 14px;
  color: var(--color-text-light);
}

.footer-links li a:hover {
  color: var(--color-blue);
}

.footer-notes p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ---- 内页通用骨架 ---- */
.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-blue);
}

.breadcrumb-sep {
  color: #a8adb4;
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* ---- 页面标题区 ---- */
.page-header {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 720px;
  line-height: 1.7;
}

/* ---- 通用三栏布局（侧栏在前） ---- */
.layout-shell,
.page-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--sidebar-width);
  gap: 32px;
  align-items: start;
}

.layout-shell.sidebar-left,
.page-layout.sidebar-left {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.layout-shell.sidebar-left > aside:first-child,
.layout-shell.sidebar-left > div:first-child,
.page-layout.sidebar-left > aside:first-child,
.page-layout.sidebar-left > div:first-child {
  position: sticky;
  top: 88px;
}

/* ---- 侧栏统一样式 ---- */
.sidebar-panel,
.path-panel,
.feedback-panel,
.links-panel,
.policy-panel,
.aside-steps,
.aside-faq,
.ranking-panel,
.entry-panel,
.sidebar-overview,
.sidebar-penalties {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.sidebar-panel h2,
.path-panel h2,
.feedback-panel h2,
.links-panel h2,
.policy-panel h2,
.aside-title,
.ranking-panel h2,
.entry-panel h2,
.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-panel p,
.path-panel p,
.feedback-panel p,
.links-panel p,
.policy-panel p,
.aside-steps p,
.aside-faq p,
.ranking-panel p,
.entry-panel p,
.sidebar-overview p,
.sidebar-penalties p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* ==========================================================
   Components — 通用模块组件
   ========================================================== */

/* ---- 区块标题 ---- */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.section-head {
  margin-bottom: 24px;
}

/* ---- 发帖入口链接 ---- */
.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.entry-link {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.entry-link:hover {
  background-color: #4a6885;
  color: var(--color-white);
}

/* ---- 文本链接 ---- */
.text-link {
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  margin-top: 4px;
}

/* ---- 话题卡片（通用） ---- */
.topic-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}

.topic-card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* ---- 反馈列表 ---- */
.feedback-list {
  margin: 12px 0;
}

.feedback-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 10px;
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-blue);
}

/* ---- 相关链接条 ---- */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 32px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.related-links-item {
  font-size: 14px;
  color: var(--color-blue);
  padding: 6px 12px;
  background-color: #eef1f4;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.related-links-item:hover {
  background-color: #e2e7ec;
  color: #44617b;
}

/* ---- 图片容器 ---- */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  padding-top: 8px;
}

/* ==========================================================
   Pages — 首页
   ========================================================== */

/* ---- 首屏混合布局 ---- */
.hero-section {
  padding: 40px 0 48px;
}

.hero-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.hero-col.boards-col .section-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-col.boards-col .section-lead {
  margin-bottom: 24px;
  max-width: 620px;
}

/* ---- 版块卡片网格 ---- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.board-card {
  display: block;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.board-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #c9ced4;
}

.board-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.board-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.topic-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-text-light);
  background-color: var(--color-hover-bg);
  padding: 3px 10px;
  border-radius: 12px;
  margin-right: 6px;
}

/* 版块色彩区分 */
.board-card:nth-child(6n + 1) h3 {
  color: var(--color-blue);
}
.board-card:nth-child(6n + 2) h3 {
  color: var(--color-green);
}
.board-card:nth-child(6n + 3) h3 {
  color: var(--color-purple);
}
.board-card:nth-child(6n + 4) h3 {
  color: var(--color-warm);
}
.board-card:nth-child(6n + 5) h3 {
  color: var(--color-blue);
}
.board-card:nth-child(6n + 6) h3 {
  color: var(--color-green);
}

/* ---- 首页右侧侧栏 ---- */
.hero-col.side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hot-list-block,
.notice-block,
.post-entry-block {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.block-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eef0f2;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list li a {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.hot-list li a:hover {
  color: var(--color-blue);
}

.notice-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eef0f2;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list li a {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.notice-list li a:hover {
  color: var(--color-blue);
}

.post-entry-block p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ---- 近期话题流 ---- */
.latest-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.latest-section .section-head {
  margin-bottom: 28px;
}

.topic-stream {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-stream .topic-card {
  display: flex;
  flex-direction: column;
}

.topic-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e8eaed;
  overflow: hidden;
}

.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.topic-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.45;
}

.topic-content h3 a {
  color: var(--color-text);
}

.topic-content h3 a:hover {
  color: var(--color-blue);
}

.topic-content p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}

.topic-meta {
  font-size: 13px;
  color: var(--color-text-light);
  font-family: var(--font-mono);
}

/* ---- 新手引导 ---- */
.guide-section {
  background-color: #eef0f3;
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}

.guide-section .section-head {
  max-width: var(--container-width);
  margin: 0 auto 28px;
  padding: 0 24px;
}

.guide-steps {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.step-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 10px;
}

.step-item a {
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================
   Pages — 主题索引（zhuti）
   ========================================================== */

.index-panel {
  min-width: 0;
}

.index-panel > h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.index-panel > p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.entry-group {
  margin-bottom: 28px;
}

.entry-group h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.entry-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eef0f2;
}

.entry-list li:last-child {
  border-bottom: none;
}

.entry-term {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.entry-list li p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.index-figure {
  margin-top: 28px;
  background-color: #eef0f3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.index-figure img {
  aspect-ratio: 16 / 7;
}

.index-figure figcaption {
  padding: 12px 16px;
}

/* ---- 专题路径（左侧） ---- */
.path-panel ol,
.path-list {
  counter-reset: path-counter;
}

.path-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid #eef0f2;
  counter-increment: path-counter;
}

.path-list li::before {
  content: counter(path-counter);
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.path-list li a {
  font-size: 14px;
  font-weight: 500;
}

/* ---- 纠错反馈（右侧） ---- */
.feedback-panel .feedback-list {
  margin-top: 0;
}

.feedback-panel > p:last-child {
  font-size: 13px;
  margin-bottom: 0;
}

/* ==========================================================
   Pages — 每日大赛讨论区（dasai）
   ========================================================== */

.topics-panel {
  min-width: 0;
}

.post-notice {
  background-color: #f0f3f6;
  border-left: 3px solid var(--color-blue);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

.post-notice p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.post-notice a {
  font-weight: 500;
}

.topics-panel .section-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.topics-panel .topic-card {
  padding: 20px;
  margin-bottom: 16px;
}

.topic-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.topic-title a {
  color: var(--color-text);
}

.topic-title a:hover {
  color: var(--color-blue);
}

.topic-meta {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.topic-excerpt {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 12px;
}

.topic-actions a {
  font-size: 14px;
  font-weight: 500;
}

/* ---- 回复流 ---- */
.reply-flow {
  background-color: #f7f8fa;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 0 20px;
}

.reply-flow-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.reply-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.reply-item:last-child {
  border-bottom: none;
}

.reply-author {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.reply-content {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- 版块规则摘要（左侧） ---- */
.rule-tips li {
  padding: 8px 0;
  border-bottom: 1px solid #eef0f2;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.rule-tips li:last-child {
  border-bottom: none;
}

.panel-link {
  margin-top: 12px;
}

.panel-link a {
  font-size: 14px;
  font-weight: 500;
}

/* ---- 专题路径（右侧） ---- */
.path-steps {
  counter-reset: step-counter;
}

.path-steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid #eef0f2;
}

.path-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  background-color: var(--color-green);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.path-steps li a {
  font-size: 14px;
  font-weight: 500;
}

.panel-note {
  margin-top: 12px;
  font-size: 13px;
}

/* ---- 赛前赛中赛后场景区 ---- */
.rules-entry {
  background-color: #eef0f3;
  border-top: 1px solid var(--color-border);
  margin-top: 48px;
  padding: 48px 0;
}

.rules-entry-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.rules-entry-inner .section-title {
  margin-bottom: 10px;
}

.rules-entry-inner > p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  max-width: 680px;
}

.scene-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.scene-figure img {
  aspect-ratio: 21 / 8;
}

.scene-figure figcaption {
  padding: 10px 16px;
  background-color: var(--color-white);
}

.scene-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scene-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.scene-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.scene-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- 发帖提醒 ---- */
.posting-guide {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 0;
}

.posting-guide-inner {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.posting-guide-inner .section-title {
  margin-bottom: 12px;
}

.posting-guide-inner p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.posting-guide-inner .entry-links {
  margin-top: 4px;
}

/* ==========================================================
   Pages — 聚集地爆料（baoliao）
   ========================================================== */

/* ---- 最新线索（左侧） ---- */
.clue-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eef0f2;
}

.clue-list li:last-child {
  border-bottom: none;
}

.clue-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 10px;
  background-color: #eef0f3;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.clue-summary {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 4px;
}

.clue-meta {
  font-size: 12px;
  color: var(--color-text-light);
  font-family: var(--font-mono);
}

/* ---- 求证讨论区（中间） ---- */
.discuss-panel {
  min-width: 0;
}

.discuss-panel .panel-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.discuss-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}

.discuss-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card-media {
  width: 100%;
}

.media-figure img {
  aspect-ratio: 16 / 6;
}

.media-figure figcaption {
  padding: 8px 16px;
  background-color: #f7f8fa;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 12px;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.status-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  background-color: #eef0f3;
  color: var(--color-text-light);
}

/* ---- 转载参考规则（右侧） ---- */
.policy-list {
  counter-reset: policy-counter;
}

.policy-list li {
  counter-increment: policy-counter;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f2;
}

.policy-list li:last-child {
  border-bottom: none;
}

.policy-head {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.policy-head::before {
  content: counter(policy-counter) ".";
  margin-right: 6px;
  color: var(--color-purple);
  font-family: var(--font-mono);
}

.policy-list li p:last-child {
  font-size: 13px;
  margin-bottom: 0;
}

/* ---- 反馈与改错说明 ---- */
.feedback-section {
  max-width: var(--container-width);
  margin: 48px auto 0;
  padding: 0 24px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feedback-section .section-title {
  margin-bottom: 12px;
}

.feedback-section > p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feedback-section .feedback-list {
  margin-bottom: 16px;
}

.feedback-section > p:last-child {
  margin-bottom: 0;
  font-size: 13px;
}

/* ---- 发帖提醒（爆料版） ---- */
.post-reminder {
  background-color: #f6f4f0;
  border-left: 3px solid var(--color-warm);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

.post-reminder p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.post-reminder strong {
  color: var(--color-text);
}

/* ==========================================================
   Pages — 新手指南（xinshou）
   ========================================================== */

.guide-body {
  min-width: 0;
}

.guide-body > .section-title {
  font-size: 20px;
  margin: 32px 0 12px;
}

.guide-body > .section-title:first-child {
  margin-top: 0;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

.guide-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background-color: #eef0f3;
}

.guide-figure img {
  aspect-ratio: 16 / 7;
}

.guide-figure figcaption {
  padding: 10px 16px;
  background-color: var(--color-white);
}

.guide-step-block {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.guide-step-block h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-step-block p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 8px;
}

.guide-step-block a {
  font-size: 14px;
  font-weight: 500;
}

/* ---- 回复礼节 ---- */
.etiquette-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.etiquette-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.etiquette-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.etiquette-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- 左侧阅读顺序 ---- */
.aside-steps .step-list {
  counter-reset: step-counter;
}

.aside-steps .step-item {
  background: none;
  border: none;
  border-bottom: 1px solid #eef0f2;
  border-radius: 0;
  padding: 12px 0;
}

.aside-steps .step-item:last-child {
  border-bottom: none;
}

.aside-steps .step-num {
  width: 22px;
  height: 22px;
  font-size: 12px;
  margin-bottom: 6px;
  background-color: var(--color-green);
}

.aside-steps .step-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.aside-steps .step-content p {
  font-size: 13px;
  margin-bottom: 6px;
}

.aside-steps .step-content a {
  font-size: 13px;
  font-weight: 500;
}

/* ---- 右侧 FAQ ---- */
.faq-item {
  border-bottom: 1px solid #eef0f2;
  padding: 10px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-right: 20px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 4px;
  font-size: 16px;
  color: var(--color-text-light);
  font-family: var(--font-mono);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  font-size: 13px;
  padding: 8px 0 4px;
  margin-bottom: 0;
}

.faq-item p a {
  font-size: 13px;
}

.feedback-note {
  font-size: 13px;
  margin-top: 8px;
}

/* ==========================================================
   Pages — 社区规则（guize）
   ========================================================== */

/* ---- 原则总览（左侧） ---- */
.principle-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.principle-card:last-child {
  margin-bottom: 0;
}

.principle-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.principle-card p {
  font-size: 13px;
  margin-bottom: 0;
  line-height: 1.6;
}

.principle-verify {
  background-color: #edf1f5;
  border-left: 3px solid var(--color-blue);
}

.principle-privacy {
  background-color: #eef3ef;
  border-left: 3px solid var(--color-green);
}

.principle-order {
  background-color: #f1f0f4;
  border-left: 3px solid var(--color-purple);
}

/* ---- 规则条款（中间） ---- */
.rules-content {
  min-width: 0;
}

.rule-block {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.rule-block h2 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.rule-item {
  padding: 12px 0;
  border-bottom: 1px solid #eef0f2;
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.rule-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ---- 违规处理（右侧） ---- */
.penalty-step {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f2;
}

.penalty-step:last-child {
  border-bottom: none;
}

.step-mark {
  flex: 0 0 24px;
  height: 24px;
  background-color: var(--color-warm);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.penalty-step p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.penalty-step p strong {
  display: block;
  color: var(--color-text);
  font-size: 14px;
  margin-bottom: 2px;
}

.penalty-note {
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ---- 规则页内联图 ---- */
.content-media-inline {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #eef0f3;
}

.content-media-inline img {
  aspect-ratio: 16 / 5;
}

.content-media-inline figcaption {
  padding: 8px 16px;
  background-color: var(--color-white);
}

/* ---- 规则页反馈区 ---- */
.guize .feedback-section {
  margin-top: 32px;
}

/* ==========================================================
   Pages — 热门话题（redian）
   ========================================================== */

/* ---- 左侧排行 ---- */
.panel-desc {
  font-size: 13px;
  margin-bottom: 16px;
}

.ranking-list {
  counter-reset: rank-counter;
}

.ranking-item {
  counter-increment: rank-counter;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f2;
}

.ranking-item::before {
  content: counter(rank-counter);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  flex: 0 0 20px;
}

.ranking-heat {
  display: block;
  height: 6px;
  border-radius: 3px;
  background-color: #e8eaed;
  overflow: hidden;
  position: relative;
  flex: 1;
  max-width: 60px;
}

.ranking-heat::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
}

.heat-high::after {
  width: 85%;
  background-color: var(--color-blue);
}

.heat-mid::after {
  width: 55%;
  background-color: var(--color-green);
}

.heat-low::after {
  width: 30%;
  background-color: var(--color-warm);
}

.ranking-item a {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
  flex: 1;
  line-height: 1.5;
}

.ranking-item a:hover {
  color: var(--color-blue);
}

.panel-note {
  font-size: 13px;
  margin-top: 12px;
}

/* ---- 中间时间流 ---- */
.topic-timeline {
  min-width: 0;
}

.timeline-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.topic-timeline .topic-card {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
}

.topic-timeline .topic-media {
  flex: 0 0 180px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #e8eaed;
}

.topic-timeline .topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-body {
  flex: 1;
  min-width: 0;
}

.topic-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.45;
}

.topic-name a {
  color: var(--color-text);
}

.topic-name a:hover {
  color: var(--color-blue);
}

.topic-excerpt {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.topic-meta {
  font-size: 13px;
  color: var(--color-text-light);
  font-family: var(--font-mono);
  display: inline-block;
}

.new-tag {
  display: inline-block;
  font-size: 12px;
  color: #7a6a58;
  background-color: #f3efe9;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: 1px;
}

/* ---- 右侧进入版块 ---- */
.entry-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eef0f2;
}

.entry-list li:last-child {
  border-bottom: none;
}

.entry-list li a {
  font-size: 14px;
  font-weight: 500;
  display: block;
  padding: 4px 0;
}

.entry-note {
  font-size: 13px;
  margin-top: 12px;
}

/* ==========================================================
   Pages — 404
   ========================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-wrap {
  max-width: 520px;
  text-align: left;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-back,
.btn-index {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-back {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-back:hover {
  background-color: #4a6885;
  color: var(--color-white);
}

.btn-index {
  background-color: #eef0f3;
  color: var(--color-text);
}

.btn-index:hover {
  background-color: #e2e5e9;
  color: var(--color-text);
}

.error-tip {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.error-tip a {
  font-weight: 500;
}

/* ==========================================================
   Responsive — 响应式断点
   ========================================================== */

/* ---- 1024px：平板横屏 ---- */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-col.side-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .post-entry-block {
    grid-column: 1 / -1;
  }

  .topic-stream {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell,
  .page-layout,
  .layout-shell.sidebar-left,
  .page-layout.sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }
}

/* ---- 768px：平板竖屏与手机 ---- */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card-hover);
    padding: 0 16px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 8px;
    border-radius: 0;
    border-bottom: 1px solid #eef0f2;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .inner-main {
    padding: 0 16px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .page-header {
    padding: 24px 0 20px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-section {
    padding: 24px 0 32px;
  }

  .hero-layout {
    padding: 0 16px;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .hero-col.side-col {
    grid-template-columns: 1fr;
  }

  .post-entry-block {
    grid-column: auto;
  }

  .latest-section {
    padding: 32px 16px;
  }

  .topic-stream {
    grid-template-columns: 1fr;
  }

  .guide-section {
    padding: 32px 0;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  /* 内页三栏全部收敛为单列，正文优先 */
  .layout-shell,
  .page-layout,
  .layout-shell.sidebar-left,
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .layout-shell.sidebar-left > aside:first-child,
  .layout-shell.sidebar-left > div:first-child,
  .page-layout.sidebar-left > aside:first-child,
  .page-layout.sidebar-left > div:first-child {
    position: static;
  }

  /* 内页正文在前，侧栏在后 */
  .layout-shell.sidebar-left > aside:first-child,
  .page-layout.sidebar-left > aside:first-child {
    order: 2;
  }

  .layout-shell.sidebar-left > section,
  .layout-shell.sidebar-left > div:not(:first-child),
  .page-layout.sidebar-left > section,
  .page-layout.sidebar-left > div:not(:first-child) {
    order: 1;
  }

  /* 场景列表 */
  .scene-list {
    grid-template-columns: 1fr;
  }

  .etiquette-list {
    grid-template-columns: 1fr;
  }

  /* 热门话题卡片 */
  .topic-timeline .topic-card {
    flex-direction: column;
  }

  .topic-timeline .topic-media {
    flex: none;
    width: 100%;
  }

  /* 规则页内联图 */
  .content-media-inline img {
    aspect-ratio: 16 / 9;
  }

  .scene-figure img {
    aspect-ratio: 16 / 9;
  }

  .guide-figure img {
    aspect-ratio: 16 / 9;
  }

  .index-figure img {
    aspect-ratio: 16 / 9;
  }

  /* 反馈区 */
  .feedback-section {
    padding: 20px;
    margin-top: 32px;
  }

  .rules-entry {
    padding: 32px 0;
    margin-top: 32px;
  }

  .posting-guide {
    padding: 32px 16px 0;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-wrap {
    padding: 28px;
  }
}

/* ---- 390px：小屏手机 ---- */
@media (max-width: 390px) {
  .brand-name {
    font-size: 17px;
  }

  .header-inner {
    gap: 12px;
  }

  .hero-col.boards-col .section-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .board-card {
    padding: 16px;
  }

  .topic-content {
    padding: 14px;
  }

  .step-item {
    padding: 16px;
  }

  .topic-timeline .topic-card {
    padding: 12px;
  }

  .guide-step-block,
  .rule-block {
    padding: 16px;
  }

  .error-code {
    font-size: 40px;
  }

  .error-actions {
    flex-direction: column;
  }

  .btn-back,
  .btn-index {
    text-align: center;
  }

  .related-links {
    gap: 10px;
  }

  .related-links-item {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* ---- 打印 ---- */
@media print {
  .site-header,
  .site-footer,
  .breadcrumb,
  .related-links,
  .post-entry-block,
  .posting-guide {
    display: none;
  }

  body {
    background-color: var(--color-white);
  }

  .topic-card,
  .discuss-card,
  .rule-block,
  .sidebar-panel,
  .path-panel,
  .feedback-panel,
  .links-panel,
  .policy-panel,
  .aside-steps,
  .aside-faq,
  .ranking-panel,
  .entry-panel,
  .sidebar-overview,
  .sidebar-penalties {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
