/* =========================================================
   海角网 · 全站样式表
   版本：1.0
   说明：覆盖首页、内页、导航、侧栏、列表、卡片、FAQ、联系区和页脚
   ========================================================= */

/* =========================================================
   1. Base —— 基础变量、重置、全局元素
   ========================================================= */
:root {
  --color-primary: #2F3B33;
  --color-accent: #D97A3A;
  --color-accent-soft: #3A7D97;
  --color-bg: #F6F1E7;
  --color-card: #FFFFFF;
  --color-text: #2F3B33;
  --color-text-light: #5A6B62;
  --color-border: #E2DCCF;
  --color-muted: #8A938C;
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --transition: 0.2s ease;
}

*,
*::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: var(--font-family);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #b8632a;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.4;
}

/* =========================================================
   2. Layout —— 全局布局容器、页头、页脚
   ========================================================= */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  width: 100%;
}

.site-header {
  background-color: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.is-current {
  color: #ffffff;
  background-color: var(--color-accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* 页脚 */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-brand {
  margin-bottom: 36px;
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 420px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.footer-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-nav-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.footer-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   3. Components —— 通用组件
   ========================================================= */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-accent-soft);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: var(--color-muted);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--color-text-light);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 720px;
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  max-width: 760px;
}

/* 标签 */
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: #F0ECE2;
  color: var(--color-text-light);
  margin-right: 6px;
  margin-bottom: 4px;
  white-space: nowrap;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #c76a2e;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

/* 文本链接 */
.text-link {
  color: var(--color-accent-soft);
  font-size: 15px;
  font-weight: 600;
}

.text-link:hover {
  color: var(--color-accent);
}

/* 内容媒体 */
.content-media {
  margin: 20px 0 24px;
}

.content-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.content-media-inline {
  margin: 20px 0 24px;
}

.content-media-inline img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.content-media-inline figcaption {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  padding: 8px 0 0;
}

/* 侧栏 */
.sidebar,
.sidebar-column,
.layout-sidebar {
  min-width: 0;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

/* 通用两栏布局 */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  margin-bottom: 48px;
}

.main-column,
.layout-main,
.content-main {
  min-width: 0;
}

/* 相关链接 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-right: 6px;
}

.related-links-item {
  font-size: 14px;
  color: var(--color-accent-soft);
  padding: 4px 12px;
  background-color: var(--color-card);
  border-radius: 20px;
  transition: background-color var(--transition), color var(--transition);
}

.related-links-item:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

/* =========================================================
   4. Pages —— 首页
   ========================================================= */

/* 首页 hero */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  background-color: var(--color-primary);
  padding: 48px 0;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 340px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.hero-content {
  padding-right: 24px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.35;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background-color: var(--color-accent);
}

.hero-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.hero-actions .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

/* 三入口卡片 */
.entry-cards {
  max-width: var(--container-width);
  margin: -28px auto 48px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.entry-card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.entry-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.entry-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.entry-card:hover .entry-media img {
  transform: scale(1.03);
}

.entry-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.entry-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.entry-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 12px;
  flex: 1;
}

.entry-tags {
  margin-bottom: 12px;
}

.entry-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  align-self: flex-start;
}

.entry-link:hover {
  color: #b8632a;
}

/* 首页主内容与侧栏 */
.home-main .layout-shell {
  max-width: var(--container-width);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.hot-threads {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.thread-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #F0ECE2;
}

.thread-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.thread-meta {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.thread-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: #EAF0F2;
  color: var(--color-accent-soft);
  white-space: nowrap;
}

.thread-main {
  min-width: 0;
  flex: 1;
}

.thread-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.thread-title a {
  color: var(--color-primary);
}

.thread-title a:hover {
  color: var(--color-accent);
}

.thread-summary {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thread-time {
  font-size: 13px;
  color: var(--color-muted);
}

/* 首页侧栏 */
.home-main .sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.announcement-panel,
.tips-panel {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.announcement-list li {
  padding: 12px 0;
  border-bottom: 1px solid #F0ECE2;
}

.announcement-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.announcement-link {
  display: block;
  font-size: 15px;
  color: var(--color-primary);
  margin-bottom: 2px;
  line-height: 1.5;
}

.announcement-link:hover {
  color: var(--color-accent);
}

.announcement-date {
  font-size: 13px;
  color: var(--color-muted);
}

.tips-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.tips-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* 公益项目线索 */
.projects-teaser {
  background-color: var(--color-accent-soft);
  border-radius: var(--radius-lg);
  margin: 0 auto 48px;
  padding: 32px;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.teaser-content {
  flex: 1;
  min-width: 260px;
}

.teaser-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.teaser-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.teaser-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition);
  white-space: nowrap;
}

.teaser-link:hover {
  background-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* 首页相关链接 */
.home-main .related-links {
  max-width: var(--container-width);
  margin: 0 auto 24px;
  padding: 20px 24px;
}

/* =========================================================
   5. Pages —— 内页通用
   ========================================================= */
.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 36px 24px 0;
  width: 100%;
}

/* =========================================================
   6. Pages —— 版块导航 boards
   ========================================================= */
.board-list {
  margin-bottom: 40px;
}

.board-card {
  display: grid;
  grid-template-columns: 40% 60%;
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  transition: box-shadow var(--transition);
}

.board-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.board-card-media {
  min-height: 200px;
  overflow: hidden;
}

.board-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.board-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.board-card-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.board-card-tags {
  margin-bottom: 16px;
}

.board-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  align-self: flex-start;
}

.board-card-link:hover {
  color: #b8632a;
}

/* 发帖边界提示 */
.posting-hint {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 32px;
}

.posting-hint-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.posting-hint-text {
  flex: 1;
  min-width: 260px;
}

.posting-hint-text p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.posting-hint-links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* =========================================================
   7. Pages —— 活动专区 activity
   ========================================================= */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.content-main {
  min-width: 0;
}

.activity-type {
  margin-bottom: 40px;
}

.type-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.type-card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition);
}

.type-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.type-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.type-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.example-topics {
  margin-bottom: 40px;
}

.topic-card-list {
  display: grid;
  gap: 16px;
}

.topic-card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: box-shadow var(--transition);
}

.topic-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.topic-media {
  min-height: 120px;
  overflow: hidden;
}

.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-body {
  padding: 18px 20px;
}

.topic-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.topic-format {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 8px;
}

.topic-tags {
  margin-top: 4px;
}

/* 活动页侧栏 */
.activity-page .sidebar,
.page-activity .sidebar {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  align-self: start;
  position: sticky;
  top: 88px;
}

.notice-list {
  counter-reset: notice;
}

.notice-item {
  counter-increment: notice;
  padding: 14px 0;
  border-bottom: 1px solid #F0ECE2;
}

.notice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notice-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.notice-heading::before {
  content: counter(notice, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
}

.notice-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  padding-left: 24px;
}

.sidebar-note {
  background-color: #F0ECE2;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.sidebar-note-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.sidebar-note-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* 活动页相关链接 */
.activity-page .related-links,
.page-activity .related-links {
  margin-top: 8px;
}

.related-link-list li {
  margin-bottom: 8px;
}

.related-link-list a {
  font-size: 14px;
  color: var(--color-accent-soft);
}

.related-link-list a:hover {
  color: var(--color-accent);
}

/* =========================================================
   8. Pages —— 公益项目 projects
   ========================================================= */
.project-direction,
.record-catalog,
.participation-guide,
.contact-channel {
  margin-bottom: 44px;
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.direction-card {
  background-color: #F8F5EE;
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 3px solid var(--color-accent);
}

.direction-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.direction-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.record-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.record-item {
  background-color: #F8F5EE;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.record-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  flex-shrink: 0;
  min-width: 96px;
  color: var(--color-accent-soft);
}

.record-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.guide-step {
  background-color: #F8F5EE;
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.step-number {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background-color: var(--color-accent);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  margin-bottom: 10px;
}

.guide-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-step p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-content {
  margin-top: 16px;
}

.contact-content p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 680px;
}

.contact-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-accent);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition);
}

.contact-link:hover {
  background-color: #c76a2e;
  color: #ffffff;
}

/* =========================================================
   9. Pages —— 新手指南 guide
   ========================================================= */
.section-block {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.steps-list {
  counter-reset: guide-step;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #F0ECE2;
  counter-increment: guide-step;
}

.step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-item .step-number {
  flex-shrink: 0;
  margin-bottom: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.reply-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.reply-rule-card {
  background-color: #F8F5EE;
  border-radius: var(--radius-md);
  padding: 20px;
  border-top: 3px solid var(--color-accent-soft);
}

.rule-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.rule-card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.guide-media {
  margin-top: 20px;
}

.guide-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 240px;
}

.guide-media figcaption {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  padding: 8px 0 0;
}

/* 指南页侧栏 */
.faq-sidebar {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  align-self: start;
  position: sticky;
  top: 88px;
}

.faq-item {
  border-bottom: 1px solid #F0ECE2;
  padding: 12px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question::after {
  content: "+";
  font-size: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  padding-top: 8px;
  padding-right: 16px;
}

.sidebar-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.sidebar-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.sidebar-link-list li {
  margin-bottom: 6px;
}

.sidebar-link-list a {
  font-size: 14px;
  color: var(--color-accent-soft);
}

.sidebar-link-list a:hover {
  color: var(--color-accent);
}

/* =========================================================
   10. Pages —— 社区规则 rules
   ========================================================= */
.rule-paths {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.rule-card {
  background-color: #F8F5EE;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.rule-card:last-child {
  margin-bottom: 0;
}

.rule-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rule-card-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.rule-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: #F5E6DA;
  color: var(--color-accent);
  white-space: nowrap;
}

.rule-detail .rule-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #E2DCCF;
  font-size: 14px;
}

.rule-detail .rule-row:last-child {
  border-bottom: none;
}

.rule-detail .rule-row dt {
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
  min-width: 72px;
}

.rule-detail .rule-row dd {
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0;
}

/* 规则页侧栏 */
.process-sidebar {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  align-self: start;
  position: sticky;
  top: 88px;
}

.process-timeline {
  position: relative;
  padding-left: 32px;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: #E2DCCF;
}

.process-step {
  position: relative;
  padding-bottom: 20px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.step-num {
  position: absolute;
  left: -32px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-body h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.step-body p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.process-note {
  background-color: #F0ECE2;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 16px;
}

.process-note p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 规则页底部额外区 */
.rule-extra {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  margin-top: 32px;
}

.extra-inner h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.extra-inner p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.extra-inner a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* =========================================================
   11. Pages —— 反馈通道 feedback
   ========================================================= */
.container {
  width: 100%;
}

.feedback-types {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.feedback-type-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  background-color: #F8F5EE;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow var(--transition);
}

.feedback-type-card:last-child {
  margin-bottom: 0;
}

.feedback-type-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.feedback-type-media {
  min-height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feedback-type-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-type-content {
  min-width: 0;
}

.feedback-type-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feedback-type-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 8px;
}

.feedback-type-scope {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* 反馈页侧栏 */
.handle-sidebar {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  align-self: start;
  position: sticky;
  top: 88px;
}

.handle-block {
  padding: 14px 0;
  border-bottom: 1px solid #F0ECE2;
}

.handle-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.handle-block-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-accent-soft);
}

.handle-block-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 4px;
}

.handle-block-desc:last-child {
  margin-bottom: 0;
}

/* =========================================================
   12. Pages —— 404
   ========================================================= */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.error-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition);
}

.error-link:hover {
  background-color: #c76a2e;
  color: #ffffff;
}

.error-link-secondary {
  background-color: transparent;
  color: var(--color-accent-soft);
  border: 1px solid var(--color-accent-soft);
}

.error-link-secondary:hover {
  background-color: var(--color-accent-soft);
  color: #ffffff;
}

.error-help {
  font-size: 14px;
  color: var(--color-text-light);
}

.error-inline-link {
  color: var(--color-accent);
  font-weight: 600;
}

.error-inline-link:hover {
  color: #b8632a;
}

/* =========================================================
   13. Responsive —— 响应式
   ========================================================= */

/* 平板 */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
  }

  .entry-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }

  .direction-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .type-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机 */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 60px;
    flex-wrap: wrap;
  }

  /* 汉堡菜单 */
  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    width: 100%;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    gap: 2px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  /* 首页 hero */
  .hero-section {
    grid-template-columns: 1fr;
    padding: 32px 16px;
    gap: 20px;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-visual {
    max-height: 220px;
  }

  .hero-visual img {
    min-height: 180px;
  }

  .entry-cards {
    grid-template-columns: 1fr;
    padding: 0 16px;
    margin-top: -20px;
    gap: 16px;
  }

  .entry-media {
    aspect-ratio: 16 / 8;
  }

  /* 首页布局 */
  .home-main .layout-shell {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 20px;
  }

  .hot-threads {
    padding: 20px;
  }

  .thread-item {
    gap: 12px;
  }

  .thread-meta {
    width: 52px;
  }

  .projects-teaser {
    margin: 0 16px 32px;
    padding: 24px;
  }

  .home-main .related-links {
    padding: 16px;
  }

  /* 内页 */
  .inner-main {
    padding: 24px 16px 0;
  }

  .page-title {
    font-size: 22px;
  }

  .page-description {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 13px;
    flex-wrap: wrap;
  }

  /* 内页布局全部转单列 */
  .layout-shell,
  .page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 侧栏在手机端 */
  .sidebar,
  .sidebar-column,
  .layout-sidebar {
    position: static;
  }

  /* 版块卡片 */
  .board-card {
    grid-template-columns: 1fr;
  }

  .board-card-media {
    min-height: 160px;
  }

  .board-card-body {
    padding: 20px;
  }

  .posting-hint-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 活动页 */
  .type-card-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    grid-template-columns: 1fr;
  }

  .topic-media {
    min-height: 140px;
  }

  /* 公益项目 */
  .direction-grid {
    grid-template-columns: 1fr;
  }

  .record-item {
    flex-direction: column;
    gap: 4px;
  }

  .record-item h3 {
    min-width: 0;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  /* 新手指南 */
  .reply-rules-grid {
    grid-template-columns: 1fr;
  }

  /* 反馈 */
  .feedback-type-card {
    grid-template-columns: 1fr;
  }

  .feedback-type-media {
    min-height: 120px;
  }

  /* 页脚 */
  .footer-inner {
    padding: 36px 16px 24px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    margin-bottom: 24px;
  }

  /* 404 */
  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* 小手机 */
@media (max-width: 480px) {
  .brand-slogan {
    display: none;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .thread-meta {
    width: 44px;
  }

  .thread-badge {
    font-size: 11px;
    padding: 2px 8px;
  }
}

/* =========================================================
   14. 滚动出现动画增强（不影响初始可见性）
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .entry-card,
  .board-card,
  .type-card,
  .topic-card,
  .direction-card,
  .guide-step,
  .reply-rule-card,
  .feedback-type-card {
    animation: fadeInUp 0.4s ease both;
  }

  .entry-card:nth-child(2),
  .board-card:nth-child(2),
  .type-card:nth-child(2),
  .direction-card:nth-child(2),
  .guide-step:nth-child(2) {
    animation-delay: 0.06s;
  }

  .entry-card:nth-child(3),
  .board-card:nth-child(3),
  .type-card:nth-child(3),
  .direction-card:nth-child(3),
  .guide-step:nth-child(3) {
    animation-delay: 0.12s;
  }

  .guide-step:nth-child(4) {
    animation-delay: 0.18s;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
