/* ==========================================================================
   每日大赛 · 整站样式表
   数据目录风：浅灰背景、深蓝主色、橙色/绿色状态标签，强调可扫描性
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 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, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2D3436;
  background-color: #F5F7FA;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1F3A5F;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4A90D9;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 600;
  color: #1F3A5F;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

/* --------------------------------------------------------------------------
   2. Layout — 全局布局骨架（所有页面统一）
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #F5F7FA;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 页头 */
.site-header {
  background-color: #1F3A5F;
  border-bottom: 3px solid #4A90D9;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.brand-slogan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link.is-current {
  color: #ffffff;
  background-color: #4A90D9;
  font-weight: 600;
}

/* 移动端汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* 页脚 */
.site-footer {
  background-color: #1F3A5F;
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
}

.footer-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-site-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* 内页统一定宽容器 */
.inner-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #7F8C8D;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #4A90D9;
}

.breadcrumb a:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #B2BEC3;
}

.breadcrumb-current {
  color: #2D3436;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  border-bottom: 2px solid #E1E8ED;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #1F3A5F;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: #636E72;
  line-height: 1.7;
  max-width: 720px;
}

/* 通用 section 标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F3A5F;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: #636E72;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* 侧栏卡片通用 */
.side-card {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.side-title {
  font-size: 17px;
  font-weight: 600;
  color: #1F3A5F;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E1E8ED;
}

.side-links li {
  margin-bottom: 10px;
}

.side-links a {
  font-size: 14px;
  color: #4A90D9;
  display: inline-block;
}

.side-links a:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

/* 双栏布局（主内容 + 右侧栏） */
.layout-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* 标签通用 */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 3px;
}

.tag-hot {
  background-color: #E74C3C;
  color: #ffffff;
}

.tag-top {
  background-color: #E67E22;
  color: #ffffff;
}

.tag-new {
  background-color: #27AE60;
  color: #ffffff;
}

.tag-normal {
  background-color: #E1E8ED;
  color: #2D3436;
}

.tag-cat {
  background-color: #4A90D9;
  color: #ffffff;
}

.tag-blue {
  background-color: #4A90D9;
  color: #ffffff;
}

.tag-orange {
  background-color: #E67E22;
  color: #ffffff;
}

.tag-green {
  background-color: #27AE60;
  color: #ffffff;
}

.tag-red {
  background-color: #E74C3C;
  color: #ffffff;
}

.tag-topic {
  background-color: #1F3A5F;
  color: #ffffff;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
}

.btn-primary {
  background-color: #4A90D9;
  color: #ffffff;
  border-color: #4A90D9;
}

.btn-primary:hover {
  background-color: #1F3A5F;
  border-color: #1F3A5F;
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: #1F3A5F;
  border-color: #4A90D9;
}

.btn-secondary:hover {
  background-color: #EAF2FA;
  border-color: #1F3A5F;
  color: #1F3A5F;
}

.btn-outline {
  background-color: transparent;
  color: #4A90D9;
  border-color: #4A90D9;
}

.btn-outline:hover {
  background-color: #4A90D9;
  color: #ffffff;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   3. Components — 通用组件
   -------------------------------------------------------------------------- */

/* --- 首页 Hero --- */
.home-hero {
  background-color: #1F3A5F;
  padding: 48px 20px;
}

.home-hero .hero-media {
  max-width: 1160px;
  margin: 0 auto 24px;
}

.home-hero .hero-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.home-hero .hero-content {
  max-width: 1160px;
  margin: 0 auto;
}

.home-title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.hero-lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background-color: #E67E22;
  border-color: #E67E22;
}

.hero-actions .btn-primary:hover {
  background-color: #D35400;
  border-color: #D35400;
}

.hero-actions .btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-actions .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

/* --- 首页版块卡片 --- */
.home-cats {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cat-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(31, 58, 95, 0.1);
}

.cat-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cat-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.cat-card .cat-name {
  font-size: 17px;
  font-weight: 600;
  color: #1F3A5F;
  padding: 14px 14px 4px;
}

.cat-card .cat-desc {
  font-size: 13px;
  color: #636E72;
  line-height: 1.5;
  padding: 0 14px 10px;
  flex: 1;
}

.cat-link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #4A90D9;
  padding: 0 14px 14px;
}

.cat-link:hover {
  color: #1F3A5F;
}

/* --- 首页热帖列表 --- */
.home-trending {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.trending-list .post-item {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-list .post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(31, 58, 95, 0.08);
}

.post-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-title {
  font-size: 17px;
  font-weight: 600;
}

.post-title a {
  color: #1F3A5F;
}

.post-title a:hover {
  color: #4A90D9;
}

.post-excerpt {
  font-size: 14px;
  color: #636E72;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.post-discuss {
  font-size: 13px;
  color: #4A90D9;
  margin-left: auto;
}

.post-discuss:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

.trending-more {
  text-align: center;
}

/* --- 首页侧栏 --- */
.home-aside {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.aside-block {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px;
}

.aside-title {
  font-size: 17px;
  font-weight: 600;
  color: #1F3A5F;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E1E8ED;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}

.notice-date {
  color: #B2BEC3;
  font-size: 13px;
  flex-shrink: 0;
}

.notice-link {
  color: #2D3436;
  line-height: 1.5;
}

.notice-link:hover {
  color: #4A90D9;
}

/* --- 首页新手指南横幅 --- */
.home-guide {
  background-color: #EAF2FA;
  border-top: 1px solid #D6E4F0;
  border-bottom: 1px solid #D6E4F0;
  padding: 40px 20px;
}

.home-guide .section-title {
  max-width: 1160px;
  margin: 0 auto 20px;
}

.guide-banner-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guide-card {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 58, 95, 0.1);
}

.guide-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1F3A5F;
  margin-bottom: 8px;
}

.guide-card-text {
  font-size: 14px;
  color: #636E72;
  line-height: 1.6;
  margin-bottom: 14px;
}

.guide-link {
  font-size: 14px;
  font-weight: 500;
  color: #4A90D9;
}

.guide-link:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

/* --- 版块分类页（categories） --- */
.categories-intro {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.categories-intro .section-desc {
  margin-bottom: 16px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-group .tag {
  padding: 6px 14px;
  font-size: 13px;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(31, 58, 95, 0.08);
}

.category-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.category-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.category-name {
  font-size: 18px;
  font-weight: 600;
  color: #1F3A5F;
}

.category-desc {
  font-size: 14px;
  color: #636E72;
  line-height: 1.6;
  flex: 1;
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.category-link {
  font-size: 14px;
  font-weight: 500;
  color: #4A90D9;
}

.category-link:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

.categories-related {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 24px;
}

.categories-related p {
  font-size: 14px;
  color: #636E72;
  margin-bottom: 8px;
}

.categories-related a {
  color: #4A90D9;
  font-weight: 500;
}

.categories-related a:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

/* --- 热帖页（trending） --- */
.post-list {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 24px;
}

.post-list .section-title {
  margin-bottom: 20px;
}

.post-list .post-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #E1E8ED;
}

.post-list .post-item:last-child {
  border-bottom: none;
}

.post-media {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.post-title {
  font-size: 17px;
}

.post-summary {
  font-size: 14px;
  color: #636E72;
  line-height: 1.6;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.post-info {
  font-size: 13px;
  color: #B2BEC3;
}

.post-enter {
  font-size: 13px;
  font-weight: 500;
  color: #4A90D9;
}

.post-enter:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

/* 标签筛选侧栏 */
.post-filter {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px;
}

.post-filter .side-title {
  font-size: 17px;
}

.side-desc {
  font-size: 14px;
  color: #636E72;
  margin-bottom: 14px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid #E1E8ED;
  border-radius: 4px;
  color: #2D3436;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-link:hover {
  background-color: #4A90D9;
  color: #ffffff;
  border-color: #4A90D9;
}

.side-guide,
.side-feedback {
  background-color: #EAF2FA;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.side-guide-title,
.side-feedback-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F3A5F;
  margin-bottom: 6px;
}

.side-guide-text,
.side-feedback-text {
  font-size: 13px;
  color: #636E72;
  line-height: 1.5;
  margin-bottom: 8px;
}

.side-guide-link,
.side-feedback-link {
  font-size: 13px;
  font-weight: 500;
  color: #4A90D9;
}

.side-guide-link:hover,
.side-feedback-link:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

/* --- 社区规则页（rules） --- */
.rules-content {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 24px;
}

.rules-group {
  margin-bottom: 28px;
}

.rules-group:last-of-type {
  margin-bottom: 24px;
}

.rules-group-title {
  font-size: 20px;
  font-weight: 600;
  color: #1F3A5F;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E1E8ED;
}

.rules-group-desc {
  font-size: 14px;
  color: #636E72;
  margin-bottom: 14px;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-list li {
  font-size: 14px;
  color: #2D3436;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.rules-list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: #4A90D9;
  font-weight: 700;
}

.rules-figure {
  margin: 24px 0;
  background-color: #F5F7FA;
  border-radius: 6px;
  overflow: hidden;
}

.rules-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.rules-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #7F8C8D;
  background-color: #EAF2FA;
}

.rules-note {
  font-size: 14px;
  color: #636E72;
  background-color: #F5F7FA;
  border-left: 3px solid #4A90D9;
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  margin-top: 20px;
}

.rules-steps {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rules-steps li {
  font-size: 14px;
  color: #2D3436;
}

.rules-side .side-card {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.side-text {
  font-size: 14px;
  color: #636E72;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* --- 新手指南页（guide） --- */
.layout-main {
  min-width: 0;
}

.guide-steps {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 24px;
}

.guide-section {
  margin-bottom: 32px;
}

.guide-section .section-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.guide-section .section-desc {
  margin-bottom: 16px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 14px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #4A90D9;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F3A5F;
  margin-bottom: 4px;
}

.step-text {
  font-size: 14px;
  color: #636E72;
  line-height: 1.6;
}

.guide-figure {
  margin-top: 12px;
  background-color: #F5F7FA;
  border-radius: 6px;
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: #7F8C8D;
  background-color: #EAF2FA;
}

.ordered-list {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ordered-item {
  font-size: 14px;
  color: #2D3436;
  line-height: 1.6;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plain-item {
  font-size: 14px;
  color: #2D3436;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.plain-item::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #4A90D9;
}

.guide-related {
  background-color: #F5F7FA;
  border-radius: 6px;
  padding: 20px;
}

.guide-related .section-title {
  font-size: 18px;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item a {
  font-size: 14px;
  color: #4A90D9;
  font-weight: 500;
}

.related-item a:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

.section-note {
  font-size: 13px;
  color: #7F8C8D;
  background-color: #FFF9F0;
  border-left: 3px solid #E67E22;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  margin-top: 16px;
}

.guide-side .side-card {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-item {
  font-size: 14px;
  color: #2D3436;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.side-item::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #4A90D9;
  font-weight: 700;
}

/* --- 更新动态页（updates） --- */
.updates-intro {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.updates-intro h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.updates-intro p {
  font-size: 14px;
  color: #636E72;
}

.updates-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.update-item {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px 24px;
  border-left: 4px solid #4A90D9;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.update-version {
  font-size: 14px;
  font-weight: 700;
  color: #1F3A5F;
  background-color: #EAF2FA;
  padding: 3px 10px;
  border-radius: 4px;
}

.update-date {
  font-size: 13px;
  color: #7F8C8D;
}

.status-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 3px;
}

.status-tag-green {
  background-color: #27AE60;
  color: #ffffff;
}

.status-tag-orange {
  background-color: #E67E22;
  color: #ffffff;
}

.status-tag-red {
  background-color: #E74C3C;
  color: #ffffff;
}

.update-title {
  font-size: 18px;
  font-weight: 600;
  color: #1F3A5F;
  margin-bottom: 8px;
}

.update-item > p {
  font-size: 14px;
  color: #636E72;
  line-height: 1.6;
  margin-bottom: 12px;
}

.update-figure {
  background-color: #F5F7FA;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
}

.update-figure img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.update-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: #7F8C8D;
  background-color: #EAF2FA;
}

.history-summary {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.history-summary h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.history-summary p {
  font-size: 14px;
  color: #636E72;
  line-height: 1.6;
}

.history-summary a {
  color: #4A90D9;
  font-weight: 500;
}

.history-summary a:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

.updates-side .side-card {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

/* --- 问题反馈页（feedback） --- */
.feedback-channels {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.feedback-channels .section-title {
  margin-bottom: 20px;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.channel-card {
  background-color: #F5F7FA;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(31, 58, 95, 0.08);
}

.channel-media img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.channel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.channel-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F3A5F;
}

.channel-desc {
  font-size: 13px;
  color: #636E72;
  line-height: 1.5;
  flex: 1;
}

.channel-link {
  font-size: 13px;
  font-weight: 500;
  color: #4A90D9;
}

.channel-link:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

.feedback-process {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.feedback-process .section-title {
  margin-bottom: 20px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}

.process-step {
  display: flex;
  gap: 14px;
}

.process-step .step-num {
  background-color: #E67E22;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F3A5F;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: #636E72;
  line-height: 1.6;
}

.process-note {
  font-size: 14px;
  color: #636E72;
  background-color: #F5F7FA;
  border-left: 3px solid #4A90D9;
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
}

.process-note a {
  color: #4A90D9;
  font-weight: 500;
}

.process-note a:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

.feedback-faq {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 24px;
}

.feedback-faq .section-title {
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid #E1E8ED;
  border-radius: 6px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #1F3A5F;
  cursor: pointer;
  background-color: #F5F7FA;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #EAF2FA;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: #4A90D9;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 14px 18px;
  background-color: #ffffff;
}

.faq-answer p {
  font-size: 14px;
  color: #2D3436;
  line-height: 1.6;
}

.feedback-side .side-card {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.side-link-item {
  margin-bottom: 10px;
}

.side-link-item a {
  font-size: 14px;
  color: #4A90D9;
}

.side-link-item a:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

.side-note p {
  font-size: 14px;
  color: #636E72;
  margin-bottom: 12px;
}

.side-note .side-link {
  font-size: 14px;
  font-weight: 500;
  color: #4A90D9;
}

.side-note .side-link:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

/* --- 404 页面 --- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.error-panel {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: #4A90D9;
  line-height: 1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F3A5F;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #636E72;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.error-help {
  font-size: 14px;
  color: #B2BEC3;
}

.error-help a {
  color: #4A90D9;
}

.error-help a:hover {
  color: #1F3A5F;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   4. Pages — 页面级布局
   -------------------------------------------------------------------------- */

/* 首页主体 */
.home-main {
  width: 100%;
}

/* 内页双栏布局：主内容 + 右侧栏 */
.layout-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* 带侧栏的内页（trending / rules / guide / feedback 等） */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* 宽屏下启用双栏 */
@media (min-width: 900px) {
  .layout-shell {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }

  .layout-shell > .post-list,
  .layout-shell > article,
  .layout-shell > section {
    min-width: 0;
  }

  .page-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }

  .page-layout > .layout-main,
  .page-layout > article,
  .page-layout > section {
    min-width: 0;
  }
}

/* 规则页侧栏在右 */
.sidebar-right .page-layout {
  grid-template-columns: 1fr 320px;
}

/* 反馈页结构：main 与 aside 是 body 直接子元素 */
.site-body.page-feedback .layout-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .site-body.page-feedback .layout-shell {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

/* 更新页侧栏 */
.updates-side {
  background-color: #ffffff;
  border: 1px solid #E1E8ED;
  border-radius: 8px;
  padding: 20px;
}

/* 更新页时间线 + 侧栏 */
@media (min-width: 900px) {
  .page-updates .inner-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
  }

  .page-updates .updates-timeline {
    grid-column: 1;
  }

  .page-updates .updates-intro {
    grid-column: 1;
  }

  .page-updates .history-summary {
    grid-column: 1;
  }

  .page-updates .updates-side {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

/* --------------------------------------------------------------------------
   5. Responsive — 响应式
   -------------------------------------------------------------------------- */

/* 平板 */
@media (max-width: 1024px) {
  .cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }
}

/* 手机端 */
@media (max-width: 767px) {
  /* 页头 */
  .header-shell {
    min-height: 56px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  /* 汉堡按钮显示 */
  .nav-toggle {
    display: flex;
  }

  /* 导航列表收起为汉堡菜单 */
  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #1F3A5F;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .nav-list.is-open {
    max-height: 420px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 14px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* 首页 hero */
  .home-hero {
    padding: 32px 16px;
  }

  .home-hero .hero-media img {
    height: 180px;
  }

  .home-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* 首页版块卡片 */
  .home-cats {
    padding: 28px 16px 16px;
  }

  .cats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cat-thumb img {
    height: 140px;
  }

  /* 首页热帖 */
  .home-trending {
    padding: 16px;
  }

  .trending-list .post-item {
    padding: 14px;
  }

  /* 首页侧栏 */
  .home-aside {
    grid-template-columns: 1fr;
    padding: 0 16px 28px;
  }

  /* 首页指南 */
  .home-guide {
    padding: 28px 16px;
  }

  .guide-banner-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 内页 */
  .inner-main {
    padding: 20px 16px 40px;
  }

  .page-title {
    font-size: 24px;
  }

  /* 版块分类 */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-img {
    height: 140px;
  }

  /* 热帖列表 */
  .post-list {
    padding: 16px;
  }

  .post-list .post-item {
    flex-direction: column;
    gap: 10px;
  }

  .post-media {
    width: 100%;
    height: 140px;
  }

  /* 反馈渠道 */
  .channels-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .channel-media img {
    height: 120px;
  }

  /* 页脚 */
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
  }

  /* 404 */
  .error-main {
    padding: 32px 16px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }
}

/* 小屏手机 */
@media (max-width: 390px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .post-meta {
    gap: 6px;
  }

  .post-discuss {
    margin-left: 0;
  }
}
