/* ============================================================
   base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2F3438;
  background-color: #FAF7F2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #3E6B50;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #C97B4A;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: #3E6B50;
  line-height: 1.4;
  font-weight: 600;
}

p {
  margin-bottom: 0.8em;
}

figure {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   layout - 全站骨架
   ============================================================ */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E0D8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #3E6B50;
  letter-spacing: 0;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: #2F3438;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-list li a:hover {
  background-color: #EAF0F4;
  color: #3E6B50;
}

.site-nav .nav-list li a.is-current {
  background-color: #3E6B50;
  color: #FFFFFF;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid #E5E0D8;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #3E6B50;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-footer {
  background-color: #3E6B50;
  color: #EAF0F4;
  margin-top: auto;
}

.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(234, 240, 244, 0.85);
  margin-bottom: 0;
}

.footer-heading {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li a {
  font-size: 14px;
  color: rgba(234, 240, 244, 0.85);
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #FFFFFF;
}

.footer-feedback-desc {
  font-size: 14px;
  color: rgba(234, 240, 244, 0.85);
  margin-bottom: 12px;
}

.footer-feedback-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  background-color: #C97B4A;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.footer-feedback-link:hover {
  background-color: #B96A3D;
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(234, 240, 244, 0.2);
  padding: 16px 24px;
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: rgba(234, 240, 244, 0.7);
  margin: 0 auto;
  max-width: 1200px;
}

/* ============================================================
   components - 通用组件
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #3E6B50;
}

.breadcrumb a:hover {
  color: #C97B4A;
}

.breadcrumb-sep {
  color: #A8A29A;
}

.breadcrumb-current {
  color: #6B7280;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-description,
.page-desc,
.page-subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: #4B5563;
  max-width: 720px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-intro,
.section-desc {
  font-size: 15px;
  color: #4B5563;
  margin-bottom: 24px;
  max-width: 720px;
}

.text-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: #3E6B50;
  margin-top: 12px;
}

.text-link:hover {
  color: #C97B4A;
}

.content-media {
  overflow: hidden;
  border-radius: 8px;
  background-color: #EAF0F4;
}

.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #6B7280;
  background-color: #EAF0F4;
}

.related-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #E5E0D8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #3E6B50;
}

.related-links-item {
  font-size: 14px;
  color: #4B5563;
  padding: 6px 14px;
  background-color: #EAF0F4;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  background-color: #3E6B50;
  color: #FFFFFF;
}

/* ============================================================
   components - 首页
   ============================================================ */
.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero-section {
  margin-bottom: 56px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero-left,
.hero-right {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 28px;
}

.hot-topics-list {
  margin-top: 8px;
}

.hot-topic-item {
  padding: 12px 0;
  border-bottom: 1px solid #F0EDE8;
}

.hot-topic-item:last-child {
  border-bottom: none;
}

.hot-topic-item a {
  display: block;
  font-size: 15px;
  color: #2F3438;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.hot-topic-item a:hover {
  color: #3E6B50;
}

.board-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 20px;
}

.board-entry-card {
  display: block;
  background-color: #EAF0F4;
  border-radius: 8px;
  padding: 14px 16px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.board-entry-card:hover {
  background-color: #DCE6ED;
  transform: translateY(-2px);
}

.board-entry-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #3E6B50;
  margin-bottom: 2px;
}

.board-entry-desc {
  display: block;
  font-size: 13px;
  color: #6B7280;
}

.post-entry-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-post {
  display: inline-block;
  background-color: #3E6B50;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-post:hover {
  background-color: #335C44;
  color: #FFFFFF;
}

.post-hint {
  font-size: 13px;
  color: #6B7280;
}

.content-media-primary {
  margin-top: 40px;
  height: 220px;
}

.content-media-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-hot-section {
  margin-bottom: 56px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 0;
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  overflow: hidden;
}

.featured-media {
  min-height: 260px;
  background-color: #EAF0F4;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #C97B4A;
  background-color: #F3EBDD;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.featured-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.featured-summary {
  font-size: 15px;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 16px;
}

.timeline-section {
  margin-bottom: 56px;
}

.timeline-list {
  position: relative;
  padding-left: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background-color: #DCE6ED;
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3E6B50;
  border: 2px solid #FAF7F2;
}

.timeline-board {
  font-size: 13px;
  color: #FFFFFF;
  background-color: #C97B4A;
  padding: 2px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.timeline-title {
  font-size: 15px;
  color: #2F3438;
  flex: 1;
}

.timeline-title:hover {
  color: #3E6B50;
}

.timeline-time {
  font-size: 13px;
  color: #6B7280;
  flex-shrink: 0;
}

.guide-preview-section {
  margin-bottom: 56px;
  padding: 40px;
  background-color: #F3EBDD;
  border-radius: 8px;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}

.guide-step-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #3E6B50;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-heading {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 0;
}

.faq-preview-section {
  margin-bottom: 48px;
}

.faq-preview-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-preview-item {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 24px;
}

.faq-preview-q {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-preview-a {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   components - 话题版块页
   ============================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.page-header-text {
  flex: 1;
}

.page-header-media {
  width: 320px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #EAF0F4;
}

.page-header-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.board-list {
  margin-bottom: 48px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.board-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.board-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.board-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.board-card-name {
  font-size: 17px;
  font-weight: 600;
}

.board-card-tag {
  font-size: 12px;
  color: #C97B4A;
  background-color: #F3EBDD;
  padding: 2px 10px;
  border-radius: 4px;
}

.board-card-desc {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.board-card-link {
  font-size: 14px;
  font-weight: 500;
  color: #3E6B50;
}

.board-card-link:hover {
  color: #C97B4A;
}

.board-rules {
  background-color: #EAF0F4;
  border-radius: 8px;
  padding: 32px;
}

.rules-list {
  margin-bottom: 24px;
}

.rule-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(62, 107, 80, 0.15);
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #3E6B50;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}

.rule-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rule-content p {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 0;
}

.rules-footer {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.rules-footer a {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   components - 参与指南页
   ============================================================ */
.guide-hero-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  background-color: #EAF0F4;
  max-height: 320px;
}

.guide-hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.guide-steps {
  margin-bottom: 48px;
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 20px;
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 24px;
}

.step-body {
  flex: 1;
}

.step-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 8px;
}

.step-body a {
  font-size: 14px;
  font-weight: 500;
  margin-right: 16px;
}

.guide-etiquette {
  margin-bottom: 48px;
  background-color: #F3EBDD;
  border-radius: 8px;
  padding: 32px;
}

.etiquette-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.etiquette-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
}

.etiquette-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.etiquette-item p {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 0;
}

.guide-faq-link {
  background-color: #EAF0F4;
  border-radius: 8px;
  padding: 24px 32px;
}

.guide-faq-link h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-faq-link p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

.guide-faq-link a {
  font-weight: 500;
}

/* ============================================================
   components - 版主协作页
   ============================================================ */
.inner-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.moderator-duties {
  margin-bottom: 40px;
}

.duty-list {
  display: grid;
  gap: 12px;
}

.duty-item {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
}

.moderator-cooperation {
  margin-bottom: 32px;
}

.cooperation-list {
  display: grid;
  gap: 12px;
}

.cooperation-item {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
}

.moderator-links {
  margin-bottom: 32px;
}

.moderator-links p {
  font-size: 14px;
  color: #4B5563;
}

.moderator-links a {
  font-weight: 500;
  margin-right: 16px;
}

.content-media-inline {
  margin-top: 24px;
  height: 240px;
}

.content-media-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar {
  min-width: 0;
}

.sidebar > section {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar > section:last-child {
  margin-bottom: 0;
}

.sidebar h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sidebar-intro {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 16px;
}

.apply-list {
  display: grid;
  gap: 8px;
}

.apply-item {
  font-size: 14px;
  color: #2F3438;
  padding: 8px 12px;
  background-color: #EAF0F4;
  border-radius: 6px;
  line-height: 1.6;
}

.apply-steps {
  display: grid;
  gap: 12px;
  counter-reset: apply-step;
}

.apply-step {
  font-size: 14px;
  color: #2F3438;
  padding: 8px 12px;
  background-color: #F3EBDD;
  border-radius: 6px;
  line-height: 1.6;
  counter-increment: apply-step;
}

.apply-step::before {
  content: counter(apply-step) ".";
  font-weight: 600;
  color: #3E6B50;
  margin-right: 6px;
}

/* ============================================================
   components - 帮助手册页
   ============================================================ */
.help-dir {
  margin-bottom: 48px;
}

.help-dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.help-dir-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.help-dir-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.help-dir-desc {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}

.help-dir-link {
  font-size: 13px;
  font-weight: 500;
}

.help-details {
  display: grid;
  gap: 24px;
}

.help-block {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 24px;
}

.help-block:first-of-type {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.help-block-media {
  border-radius: 8px;
  overflow: hidden;
  background-color: #EAF0F4;
}

.help-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.help-figure figcaption {
  font-size: 12px;
  color: #6B7280;
  padding: 8px 12px;
}

.help-block-content {
  min-width: 0;
}

.help-block-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.help-block-text {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ============================================================
   components - 问题解答页
   ============================================================ */
.faq-list {
  margin-bottom: 40px;
}

.faq-list .section-title {
  margin-top: 32px;
}

.faq-list .section-title:first-child {
  margin-top: 0;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #2F3438;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #3E6B50;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  background-color: #F3EBDD;
  color: #3E6B50;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #4B5563;
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer a {
  font-weight: 500;
  margin-right: 12px;
}

.faq-links {
  background-color: #EAF0F4;
  border-radius: 8px;
  padding: 24px 32px;
}

.faq-links .section-title {
  margin-bottom: 8px;
}

.faq-links p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

.faq-links a {
  font-weight: 500;
  margin-right: 16px;
}

/* ============================================================
   components - 热议精选页
   ============================================================ */
.layout-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.hot-list {
  min-width: 0;
}

.hot-item {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}

.hot-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hot-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 4px;
}

.tag-board {
  color: #C97B4A;
  background-color: #F3EBDD;
}

.hot-item-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.hot-item-summary {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 12px;
}

.hot-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #6B7280;
}

.meta-link {
  font-weight: 500;
}

.hot-filter {
  min-width: 0;
}

.filter-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.filter-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-item a {
  display: block;
  font-size: 14px;
  color: #2F3438;
  padding: 8px 12px;
  background-color: #EAF0F4;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-item a:hover {
  background-color: #3E6B50;
  color: #FFFFFF;
}

.hot-media {
  border-radius: 8px;
  overflow: hidden;
  background-color: #EAF0F4;
}

.hot-media-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.hot-media-caption {
  font-size: 13px;
  color: #6B7280;
  padding: 8px 12px;
  background-color: #EAF0F4;
}

/* ============================================================
   components - 404
   ============================================================ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  background-color: #FFFFFF;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 48px 40px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: #3E6B50;
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #4B5563;
  margin-bottom: 24px;
}

.error-back-link {
  display: inline-block;
  background-color: #3E6B50;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 6px;
  margin-bottom: 24px;
  transition: background-color 0.2s ease;
}

.error-back-link:hover {
  background-color: #335C44;
  color: #FFFFFF;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1024px) {
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-dir-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-shell {
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    width: 100%;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid #E5E0D8;
    margin-top: 8px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list li {
    width: 100%;
  }

  .site-nav .nav-list li a {
    padding: 12px 16px;
  }

  .inner-main,
  .home-main,
  .inner-shell {
    padding: 24px 16px 48px;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-right {
    order: 1;
  }

  .hero-left {
    order: 2;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 200px;
  }

  .featured-media img {
    height: 200px;
  }

  .guide-steps-grid {
    grid-template-columns: 1fr;
  }

  .faq-preview-list {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    gap: 16px;
  }

  .page-header-media {
    width: 100%;
  }

  .page-header-media img {
    height: 180px;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .etiquette-list {
    grid-template-columns: 1fr;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 1;
  }

  .main-content {
    order: 2;
  }

  .layout-shell {
    grid-template-columns: 1fr;
  }

  .hot-filter {
    order: 1;
  }

  .hot-list {
    order: 2;
  }

  .help-dir-grid {
    grid-template-columns: 1fr;
  }

  .help-block:first-of-type {
    grid-template-columns: 1fr;
  }

  .help-block-media {
    max-height: 200px;
  }

  .help-figure img {
    height: 180px;
  }

  .timeline-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .timeline-board {
    order: 1;
  }

  .timeline-title {
    order: 2;
    width: 100%;
  }

  .timeline-time {
    order: 3;
  }

  .post-entry-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn-post {
    width: 100%;
    text-align: center;
  }

  .content-media-primary {
    height: 180px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-about {
    grid-column: auto;
  }

  .guide-preview-section {
    padding: 24px;
  }

  .board-rules {
    padding: 24px;
  }

  .guide-etiquette {
    padding: 24px;
  }

  .featured-content {
    padding: 24px;
  }

  .hot-item {
    padding: 16px;
  }

  .hot-item-head {
    flex-wrap: wrap;
  }

  .rules-footer {
    flex-direction: column;
    gap: 8px;
  }

  .moderator-links a {
    display: block;
    margin: 0 0 8px 0;
  }

  .faq-links a {
    display: block;
    margin: 0 0 8px 0;
  }

  .guide-faq-link a {
    display: block;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
