/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
  background-color: #f8fafc;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #b45309;
  text-decoration: none;
}

a:hover {
  color: #92400e;
  text-decoration: underline;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.visually-hidden {
  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 #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-logo:hover {
  color: #b45309;
  text-decoration: none;
}

.brand-logo::before {
  content: "◆ ";
  color: #f59e0b;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-list a:hover {
  background-color: #fff7ed;
  color: #b45309;
  text-decoration: none;
}

.nav-list a.is-current {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.btn-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #f59e0b;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  transition: background-color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-post:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #0f172a;
}

.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 32px;
}

.footer-brand .footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.footer-brand .footer-logo::before {
  content: "◆ ";
  color: #f59e0b;
}

.footer-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.footer-nav ul,
.footer-help ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a,
.footer-help a {
  font-size: 14px;
  color: #64748b;
}

.footer-nav a:hover,
.footer-help a:hover {
  color: #b45309;
}

.footer-boundary p:last-child {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
}

.footer-bottom p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: #b45309;
}

.breadcrumb-sep {
  color: #94a3b8;
}

.breadcrumb-current {
  color: #334155;
  font-weight: 500;
}

/* Page header */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f59e0b;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  max-width: 720px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-small,
.btn-enter,
.btn-entry,
.btn-home,
.btn-boards,
.btn-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  padding: 12px 28px;
  font-size: 16px;
  background-color: #f59e0b;
  color: #ffffff;
  border: 1px solid #f59e0b;
}

.btn-primary:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  padding: 12px 28px;
  font-size: 16px;
  background-color: #ffffff;
  color: #b45309;
  border: 1px solid #d97706;
}

.btn-secondary:hover {
  background-color: #fff7ed;
  color: #92400e;
  text-decoration: none;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #f59e0b;
  color: #ffffff;
  border: 1px solid #f59e0b;
}

.btn-small:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
  text-decoration: none;
}

.btn-enter {
  padding: 10px 24px;
  font-size: 15px;
  background-color: #f59e0b;
  color: #ffffff;
  border: 1px solid #f59e0b;
}

.btn-enter:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
  text-decoration: none;
}

.btn-entry {
  padding: 10px 24px;
  font-size: 15px;
  background-color: #ffffff;
  color: #b45309;
  border: 1px solid #d97706;
}

.btn-entry:hover {
  background-color: #fff7ed;
  color: #92400e;
  text-decoration: none;
}

.btn-home,
.btn-boards {
  padding: 12px 28px;
  font-size: 16px;
}

.btn-home {
  background-color: #f59e0b;
  color: #ffffff;
  border: 1px solid #f59e0b;
}

.btn-home:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
  text-decoration: none;
}

.btn-boards {
  background-color: #ffffff;
  color: #b45309;
  border: 1px solid #d97706;
}

.btn-boards:hover {
  background-color: #fff7ed;
  color: #92400e;
  text-decoration: none;
}

.btn-feedback {
  padding: 10px 24px;
  font-size: 15px;
  background-color: #ffffff;
  color: #b45309;
  border: 1px solid #d97706;
}

.btn-feedback:hover {
  background-color: #fff7ed;
  color: #92400e;
  text-decoration: none;
}

.btn-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-print:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.more-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #b45309;
}

.more-link:hover {
  color: #92400e;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  border-radius: 4px;
  line-height: 1.5;
}

.status-badge.status-live,
.status-badge.status-open {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-badge.status-done,
.status-badge.status-published {
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.status-badge.status-updated {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  line-height: 1.5;
}

.status-tag.status-open {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-tag.status-published {
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.status-tag.status-updated {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Cards */
.card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}

/* Timeline list */
.timeline-list {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  flex-shrink: 0;
  font-size: 14px;
  color: #94a3b8;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  min-width: 72px;
}

.timeline-body {
  flex: 1;
  min-width: 0;
}

.timeline-body h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.timeline-body h3 a {
  color: #0f172a;
}

.timeline-body h3 a:hover {
  color: #b45309;
}

.timeline-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* Tree navigation */
.tree-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tree-list a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: #334155;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.tree-list a:hover {
  background-color: #fff7ed;
  color: #b45309;
  text-decoration: none;
}

.tree-parent {
  font-weight: 600;
}

.tree-children {
  margin-left: 16px;
  border-left: 1px solid #e2e8f0;
  padding-left: 8px;
}

.tree-sub {
  margin-left: 16px;
  border-left: 1px solid #e2e8f0;
  padding-left: 8px;
}

/* ==========================================================================
   Page: index.html
   ========================================================================== */

.site-home {
  background-color: #f8fafc;
}

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.hero-focus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 32px;
}

.hero-copy {
  max-width: 520px;
}

.hero-copy h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-slogan {
  font-size: 18px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.content-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.content-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.content-media figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: #64748b;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.content-index {
  margin-bottom: 32px;
}

.index-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.index-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.index-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.card-label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.card-label::before {
  content: "› ";
  color: #f59e0b;
}

.card-desc {
  display: block;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.hot-topics {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.hot-topics h2,
.board-tree h2,
.announcements h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.topic-featured {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.topic-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  margin-bottom: 8px;
}

.topic-featured h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.topic-featured h3 a {
  color: #0f172a;
}

.topic-featured h3 a:hover {
  color: #b45309;
}

.topic-featured p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 8px;
}

.reply-count {
  display: inline-block;
  font-size: 13px;
  color: #94a3b8;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
}

.topic-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-item time {
  flex-shrink: 0;
  font-size: 13px;
  color: #94a3b8;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  min-width: 72px;
}

.topic-item h3 {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
}

.topic-item h3 a {
  color: #334155;
}

.topic-item h3 a:hover {
  color: #b45309;
}

.event-tip {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.event-tip p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

.event-tip strong {
  color: #0f172a;
  font-weight: 600;
}

.aside-column {
  min-width: 0;
}

.board-tree,
.announcements {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.tree-list li {
  margin-bottom: 4px;
}

.announce-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.announce-list a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.5;
}

.announce-list a:hover {
  color: #b45309;
}

.announce-list li:last-child a {
  border-bottom: none;
}

.guide-entry {
  margin-top: 32px;
}

.guide-banner {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guide-banner p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  flex: 1;
}

.guide-banner p a {
  font-weight: 600;
  color: #b45309;
}

/* ==========================================================================
   Page: boards.html
   ========================================================================== */

.page-boards {
  background-color: #f8fafc;
}

/* Sidebar left layout: aside is first child of body-level .layout-shell */
.layout-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.sidebar-left {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar-left .sidebar,
.sidebar-left .guide-tree,
.sidebar-left .page-aside {
  min-width: 0;
}

.sidebar-left .inner-main {
  max-width: none;
  padding: 0;
  min-width: 0;
}

.board-tree-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.board-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.board-tree > li {
  margin-bottom: 4px;
}

.board-tree > li > a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  border-radius: 6px;
}

.board-tree > li > a:hover {
  background-color: #fff7ed;
  color: #b45309;
  text-decoration: none;
}

.board-catalog {
  margin-bottom: 40px;
}

.board-catalog h2,
.usage-guide h2,
.popular-boards h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.board-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.board-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.board-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #e2e8f0;
}

.board-card-content {
  padding: 16px;
}

.board-card-content h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.board-card-content h3 a {
  color: #0f172a;
}

.board-card-content h3 a:hover {
  color: #b45309;
}

.board-card-content p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
}

.board-card-content .status-badge {
  margin-bottom: 12px;
}

.board-card-content > a:last-child {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #b45309;
}

.usage-guide {
  margin-bottom: 40px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  color: #92400e;
  background-color: #fef3c7;
  border-radius: 6px;
  margin-bottom: 12px;
}

.step-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.popular-boards {
  margin-bottom: 40px;
}

.board-ranking {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
}

.board-ranking li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.board-ranking li:last-child {
  border-bottom: none;
}

.board-ranking a {
  font-size: 15px;
  font-weight: 500;
  color: #334155;
}

.board-ranking a:hover {
  color: #b45309;
}

.rank-meta {
  font-size: 13px;
  color: #94a3b8;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  white-space: nowrap;
}

/* ==========================================================================
   Page: topics.html
   ========================================================================== */

.page-topics {
  background-color: #f8fafc;
}

.topics-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.topics-layout .main-column {
  min-width: 0;
}

.current-topic {
  margin-bottom: 32px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.topic-feature {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}

.topic-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.topic-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.topic-content {
  min-width: 0;
}

.topic-content .topic-title {
  font-size: 18px;
  margin: 8px 0 8px;
}

.topic-content .topic-title a {
  color: #0f172a;
}

.topic-content .topic-title a:hover {
  color: #b45309;
}

.topic-excerpt {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.topic-meta {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.timeline {
  margin-bottom: 32px;
}

.timeline .timeline-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.timeline .timeline-item:last-child {
  margin-bottom: 0;
}

.side-column {
  min-width: 0;
}

.side-popular,
.side-filter {
  margin-bottom: 24px;
}

.side-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-list li {
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.popular-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-list a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 4px;
}

.popular-list a:hover {
  color: #b45309;
}

.popular-list span {
  font-size: 13px;
  color: #94a3b8;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tags a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: background-color 0.2s, border-color 0.2s;
}

.filter-tags a:hover {
  background-color: #fff7ed;
  border-color: #f59e0b;
  color: #b45309;
  text-decoration: none;
}

.inner-links {
  margin-top: 32px;
}

.inner-links .section-title {
  margin-bottom: 8px;
}

.inner-links p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.inner-links p a {
  font-weight: 600;
  color: #b45309;
  margin-right: 16px;
}

/* ==========================================================================
   Page: events.html
   ========================================================================== */

.page-events {
  background-color: #f8fafc;
}

.event-hero {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.event-hero h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.event-figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.event-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.event-fact-sheet {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 0;
}

.fact-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.fact-item dt {
  font-weight: 600;
  color: #0f172a;
  flex-shrink: 0;
}

.fact-item dd {
  margin: 0;
  color: #475569;
}

.event-summary-text {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.event-timeline {
  margin-bottom: 32px;
}

.event-timeline h2,
.participate-steps h2,
.event-discussion h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.event-timeline .timeline-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.event-timeline .timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-meta {
  flex-shrink: 0;
  font-size: 13px;
  color: #94a3b8;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  min-width: 80px;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.timeline-content h3 a {
  color: #0f172a;
}

.timeline-content h3 a:hover {
  color: #b45309;
}

.timeline-content p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.participate-steps {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.step-list .step-item {
  background-color: #f8fafc;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  color: #92400e;
  background-color: #fef3c7;
  border-radius: 6px;
  margin-bottom: 12px;
}

.step-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.step-text p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.steps-note {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.steps-note a {
  font-weight: 600;
  color: #b45309;
  margin-right: 12px;
}

.event-discussion {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.discussion-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discussion-link-item {
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.discussion-link-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.discussion-link-item a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 4px;
}

.discussion-link-item a:hover {
  color: #b45309;
}

.link-meta {
  font-size: 13px;
  color: #94a3b8;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
}

.aside-tip {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 16px 0;
}

/* ==========================================================================
   Page: guide.html
   ========================================================================== */

.page-guide {
  background-color: #f8fafc;
}

.guide-tree {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.tree-item {
  margin-bottom: 4px;
}

.tree-note {
  margin-top: 16px;
  padding: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.tree-note p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.tree-note a {
  font-weight: 600;
  color: #b45309;
}

.guide-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.guide-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.guide-section > p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-section .guide-steps {
  margin-bottom: 16px;
}

.step-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.step-card .step-number {
  margin-bottom: 12px;
}

.step-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.guide-figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin: 16px 0;
}

.guide-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: #64748b;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.guide-list li {
  padding: 16px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.guide-list h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.guide-list p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.guide-tip {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  padding: 12px 16px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
}

.guide-tip a {
  font-weight: 600;
  color: #b45309;
}

.reply-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.example-good,
.example-bad {
  border-radius: 8px;
  padding: 16px 20px;
}

.example-good {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.example-bad {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
}

.example-good h3,
.example-bad h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.example-good h3 {
  color: #065f46;
}

.example-bad h3 {
  color: #991b1b;
}

.example-good ul,
.example-bad ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.example-good li,
.example-bad li {
  font-size: 14px;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.example-good li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

.example-bad li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

.guide-print-note {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.related-links {
  margin-top: 16px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.related-links-item {
  font-size: 14px;
  color: #b45309;
  font-weight: 500;
}

.related-links-item:hover {
  color: #92400e;
}

/* ==========================================================================
   Page: rules.html
   ========================================================================== */

.page-rules {
  background-color: #f8fafc;
}

.tree-nav {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.version-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.version-number {
  font-size: 14px;
  color: #64748b;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
}

.rules-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.rules-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.rules-section > p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: principle;
  list-style: none;
  padding: 0;
}

.principle-list li {
  counter-increment: principle;
  position: relative;
  padding-left: 40px;
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
}

.principle-list li::before {
  content: counter(principle);
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  color: #92400e;
  background-color: #fef3c7;
  border-radius: 6px;
}

.boundary-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.boundary-code {
  background-color: #0f172a;
  border-radius: 8px;
  padding: 16px 20px;
  overflow: hidden;
}

.code-label {
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 12px;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
}

.boundary-code ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-code li {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  padding-left: 16px;
  position: relative;
}

.boundary-code li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #f59e0b;
}

.rules-section .timeline-list {
  counter-reset: violation;
  list-style: none;
  padding: 0;
}

.rules-section .timeline-list li {
  counter-increment: violation;
  position: relative;
  padding: 12px 0 12px 40px;
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
  border-bottom: 1px solid #f1f5f9;
}

.rules-section .timeline-list li:last-child {
  border-bottom: none;
}

.rules-section .timeline-list li::before {
  content: counter(violation);
  position: absolute;
  left: 0;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  color: #92400e;
  background-color: #fef3c7;
  border-radius: 6px;
}

.rules-section .timeline-list strong {
  display: block;
  margin-bottom: 4px;
}

.revision-table {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}

.revision-table th,
.revision-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.revision-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}

.revision-table tbody tr:last-child td {
  border-bottom: none;
}

.revision-table td {
  color: #475569;
  line-height: 1.6;
}

.rules-figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin: 24px 0;
}

.rules-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rules-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: #64748b;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   Page: feedback.html
   ========================================================================== */

.page-feedback {
  background-color: #f8fafc;
}

.page-aside {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.feedback-types {
  margin-bottom: 24px;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.feedback-type-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feedback-type-list a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: #334155;
  border-radius: 6px;
}

.feedback-type-list a:hover {
  background-color: #fff7ed;
  color: #b45309;
  text-decoration: none;
}

.aside-note {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-links a {
  font-size: 14px;
  color: #b45309;
}

.aside-links a:hover {
  color: #92400e;
}

.feedback-type-section {
  margin-bottom: 40px;
}

.feedback-type-section h2,
.process-section h2,
.news-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
}

.feedback-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feedback-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.feedback-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.feedback-card-head h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.feedback-card > p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 8px;
}

.feedback-example {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  background-color: #f8fafc;
  border-radius: 6px;
  padding: 8px 12px;
}

.process-section {
  margin-bottom: 40px;
}

.section-intro {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: process;
  list-style: none;
  padding: 0;
}

.process-steps li {
  counter-increment: process;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.process-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  color: #92400e;
  background-color: #fef3c7;
  border-radius: 6px;
  margin-bottom: 12px;
}

.step-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.news-section {
  margin-bottom: 40px;
}

.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-meta time {
  font-size: 13px;
  color: #94a3b8;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
}

.news-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.news-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 4px;
}

.entry-note {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.entry-note p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.entry-note a {
  font-weight: 600;
  color: #b45309;
  margin-right: 12px;
}

.feedback-figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.feedback-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.print-action {
  margin-top: 24px;
}

/* ==========================================================================
   Page: 404.html
   ========================================================================== */

.site-error {
  background-color: #f8fafc;
}

.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  min-height: 60vh;
}

.error-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
  color: #f59e0b;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-wrap h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.error-tip {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 8px 16px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    flex-basis: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 8px;
    font-size: 16px;
  }

  .btn-post {
    order: 2;
    margin-left: auto;
    padding: 8px 14px;
    font-size: 14px;
  }

  .brand-logo {
    order: 1;
    font-size: 18px;
  }

  .inner-main {
    padding: 24px 16px 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-bottom p {
    padding: 12px 16px;
  }

  /* Home */
  .home-main {
    padding: 0 16px 32px;
  }

  .hero-focus {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 24px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-media img {
    height: 220px;
  }

  .index-cards {
    grid-template-columns: 1fr;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .event-tip {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Sidebar left layouts */
  .sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar-left .sidebar,
  .sidebar-left .guide-tree,
  .sidebar-left .page-aside {
    order: 2;
  }

  .sidebar-left .inner-main {
    order: 1;
  }

  /* Topics */
  .topics-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .topic-feature {
    grid-template-columns: 1fr;
  }

  .topic-media img {
    height: 180px;
  }

  /* Events */
  .fact-list {
    grid-template-columns: 1fr;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  /* Guide */
  .guide-steps {
    grid-template-columns: 1fr;
  }

  .reply-examples {
    grid-template-columns: 1fr;
  }

  /* Rules */
  .boundary-block {
    grid-template-columns: 1fr;
  }

  /* Feedback */
  .feedback-card-list {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  /* Topics */
  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-date {
    min-width: 0;
  }

  /* Boards */
  .board-grid {
    grid-template-columns: 1fr;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 8px 12px;
  }

  .brand-logo {
    font-size: 16px;
  }

  .btn-post {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .board-card img {
    height: 140px;
  }

  .event-figure img {
    height: 200px;
  }

  .guide-figure img,
  .rules-figure img,
  .feedback-figure img {
    height: 160px;
  }

  .content-media img {
    height: 160px;
  }

  .hero-media img {
    height: 200px;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .site-nav,
  .nav-toggle,
  .btn-post,
  .breadcrumb,
  .sidebar,
  .guide-tree,
  .page-aside,
  .side-column,
  .aside-column,
  .related-links,
  .print-action,
  .entry-note,
  .footer-nav,
  .footer-help,
  .footer-boundary {
    display: none !important;
  }

  .site-footer {
    border-top: none;
    margin-top: 0;
  }

  .footer-inner {
    padding: 16px;
  }

  .footer-bottom {
    border-top: 1px solid #e2e8f0;
  }

  .inner-main {
    max-width: 100%;
    padding: 0;
  }

  .page-header {
    border-bottom: 2px solid #f59e0b;
  }

  .card,
  .board-card,
  .feedback-card,
  .news-item,
  .rules-section,
  .guide-section,
  .event-hero,
  .event-timeline .timeline-item,
  .participate-steps {
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  a {
    color: #0f172a !important;
    text-decoration: none !important;
  }

  .status-badge,
  .status-tag {
    border: 1px solid #94a3b8 !important;
    background-color: #f8fafc !important;
    color: #334155 !important;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
