/* ==========================================================================
   海角社区 全站样式表
   视觉方向：海边岩石、浅色沙洲、透明水色；可持续品牌 + 潮间带观察记录
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 基础变量、重置、全局字体与背景
   -------------------------------------------------------------------------- */
:root {
  --bg-sand: #f7f4ec;
  --ink-sea: #243b3a;
  --accent-coral: #b55035;
  --line-sand: #d9d2c3;
  --deep-sea: #1d2f2e;
  --paper-white: #fffdf8;
  --text-secondary: #5a6b68;
  --text-light: #7a8a86;
  --shadow-soft: 0 1px 4px rgba(36, 59, 58, 0.06);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --container-width: 1180px;
  --content-width: 760px;
  --header-height: 64px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

*,
*::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-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-sea);
  background-color: var(--bg-sand);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-coral);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--deep-sea);
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  color: var(--deep-sea);
  font-weight: 600;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 22px;
  font-weight: 600;
}

h3 {
  font-size: 17px;
  font-weight: 600;
}

h4 {
  font-size: 15px;
  font-weight: 600;
}

p {
  margin-bottom: 12px;
}

/* 统一的页面主体背景色 */
.site-body {
  background-color: var(--bg-sand);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   2. layout — 页头、页脚、主容器、面包屑
   -------------------------------------------------------------------------- */

/* --- 页头 --- */
.site-header {
  background-color: var(--paper-white);
  border-bottom: 1px solid var(--line-sand);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--deep-sea);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-link:hover {
  color: var(--accent-coral);
  text-decoration: none;
}

.brand-name {
  white-space: nowrap;
}

/* 导航切换按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink-sea);
  cursor: pointer;
  min-height: 44px;
  line-height: 1;
}

.nav-toggle:hover {
  background-color: var(--bg-sand);
  border-color: var(--accent-coral);
}

.nav-toggle-text {
  font-size: 14px;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list li {
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-sea);
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background-color: var(--bg-sand);
  color: var(--accent-coral);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent-coral);
  font-weight: 600;
  background-color: rgba(181, 80, 53, 0.08);
}

/* --- 主容器 --- */
.site-main {
  flex: 1 0 auto;
}

/* 首页主区 */
.home-main {
  width: 100%;
}

/* 内页主区 */
.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-coral);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line-sand);
}

.breadcrumb-current {
  color: var(--ink-sea);
  font-weight: 500;
}

/* 内页标题区 */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--deep-sea);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* --- 页脚 --- */
.site-footer {
  background-color: var(--deep-sea);
  color: rgba(255, 253, 248, 0.85);
  padding: 28px 0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--paper-white);
  margin: 0;
  flex-shrink: 0;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255, 253, 248, 0.6);
  margin: 0;
  order: 10;
  width: 100%;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.footer-nav li {
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 253, 248, 0.75);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.6;
  display: inline-block;
  padding: 4px 0;
}

.footer-nav a:hover {
  color: var(--paper-white);
  text-decoration: underline;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 253, 248, 0.5);
  margin: 0;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. components — 通用组件
   -------------------------------------------------------------------------- */

/* 章节标题 */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 12px;
  line-height: 1.4;
}

.section-note {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.section-lead {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* 图片容器通用约束 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
}

figure figcaption {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.6;
  text-align: left;
}

/* 内容图与主图不同高度约束 */
.content-media-primary img,
.hero-figure img,
.map-hero-figure img,
.topics-media img,
.guide-figure img,
.rules-intro-media img,
.notice-hero-figure img {
  object-fit: cover;
}

/* 通用按钮样式（用于 404 等） */
.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--accent-coral);
  color: #fff;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.5;
  border: 1px solid var(--accent-coral);
  min-height: 44px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--deep-sea);
  border-color: var(--deep-sea);
  color: #fff;
  text-decoration: none;
}

/* 相关阅读出口（内页通用） */
.related-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-sand);
}

.related-links h2,
.related-links .related-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 16px;
}

.related-links .related-links-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 12px;
}

.related-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-link {
  display: block;
  padding: 14px 16px;
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.related-link:hover {
  border-color: var(--accent-coral);
  background-color: #fff;
  text-decoration: none;
}

.related-link-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 4px;
}

.related-link-desc {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.related-links-item {
  display: inline-block;
  font-size: 15px;
  color: var(--accent-coral);
  text-decoration: none;
  padding: 6px 0;
  line-height: 1.5;
}

.related-links-item:hover {
  color: var(--deep-sea);
  text-decoration: underline;
}

/* 条目列表容器 */
.boundary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.boundary-link {
  display: block;
  padding: 16px 20px;
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  text-decoration: none;
  flex: 1 1 220px;
  max-width: 360px;
  transition: border-color 0.2s ease;
}

.boundary-link:hover {
  border-color: var(--accent-coral);
  text-decoration: none;
}

.boundary-link-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 4px;
}

.boundary-link-desc {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. pages — 各页面专属模块
   -------------------------------------------------------------------------- */

/* ==================== index 首页 ==================== */

/* 首屏两栏布局：桌面窄侧 280px + 主宽侧 */
.hero-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

/* 首屏窄侧 */
.hero-rail {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  align-self: start;
}

.notice-block h2,
.quick-index h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-sand);
}

.notice-block p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 公告中的小图 */
.notice-block .content-media-primary {
  margin-bottom: 12px;
}

.notice-block .content-media-primary img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.notice-block .content-media-primary figcaption {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.5;
}

/* 快速入口 */
.quick-index {
  margin-top: 20px;
}

.quick-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-index li {
  list-style: none;
}

.quick-index a {
  display: block;
  padding: 10px 8px;
  font-size: 14px;
  color: var(--ink-sea);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.quick-index a:hover {
  color: var(--accent-coral);
  background-color: var(--bg-sand);
  border-left-color: var(--accent-coral);
  text-decoration: none;
}

/* 首屏主宽侧 */
.hero-content {
  min-width: 0;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--deep-sea);
  margin-bottom: 12px;
  line-height: 1.35;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 640px;
}

/* hero 主图 */
.hero-figure {
  margin-bottom: 20px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* 首屏两个入口 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-link {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.5;
  min-height: 44px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.action-link:first-child {
  background-color: var(--accent-coral);
  border-color: var(--accent-coral);
  color: #fff;
}

.action-link:first-child:hover {
  background-color: var(--deep-sea);
  border-color: var(--deep-sea);
  text-decoration: none;
}

.action-link:last-child {
  background-color: transparent;
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

.action-link:last-child:hover {
  background-color: rgba(181, 80, 53, 0.08);
  text-decoration: none;
}

/* 话题线索摘要区 */
.topic-digest {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

/* 三组线索 */
.digest-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.digest-group {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.digest-group h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 6px;
}

.group-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.digest-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.digest-group li {
  list-style: none;
  padding-top: 10px;
  border-top: 1px solid rgba(217, 210, 195, 0.5);
}

.digest-group li a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-sea);
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 2px;
}

.digest-group li a:hover {
  color: var(--accent-coral);
  text-decoration: underline;
}

.topic-source {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.digest-more {
  margin-top: 16px;
  text-align: right;
}

.digest-more a {
  font-size: 14px;
  color: var(--accent-coral);
  text-decoration: none;
}

.digest-more a:hover {
  text-decoration: underline;
}

/* 分区引荐区 */
.section-intro {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.section-card {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
  border-color: var(--accent-coral);
  box-shadow: var(--shadow-soft);
}

.section-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 8px;
}

.section-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.section-card a {
  font-size: 14px;
  color: var(--accent-coral);
  text-decoration: none;
}

.section-card a:hover {
  text-decoration: underline;
}

/* 参与讨论前准备区 */
.prepare-block {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.prepare-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.prepare-item {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: left;
  transition: border-color 0.2s ease;
}

.prepare-item:hover {
  border-color: var(--accent-coral);
}

.prepare-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 8px;
}

.prepare-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.prepare-item a {
  font-size: 14px;
  color: var(--accent-coral);
  text-decoration: none;
}

.prepare-item a:hover {
  text-decoration: underline;
}

/* ==================== map 分区总览 ==================== */

/* 分区总览开头 */
.map-intro-block {
  margin-bottom: 40px;
}

.map-intro-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.map-hero-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.map-intro-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.map-intro-text p:last-child {
  margin-bottom: 0;
}

/* 分区列表 */
.zone-list-section {
  margin-bottom: 40px;
}

.zone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-sand);
}

.zone-row:first-of-type {
  border-top: 1px solid var(--line-sand);
}

.zone-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 8px;
}

.zone-info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.zone-info a {
  font-size: 14px;
  color: var(--accent-coral);
  text-decoration: none;
}

.zone-info a:hover {
  text-decoration: underline;
}

/* 分区边界：适合/不适合 */
.zone-boundary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.boundary-fit,
.boundary-unfit {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  padding: 16px;
}

.boundary-fit h4,
.boundary-unfit h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-sand);
}

.boundary-fit h4 {
  color: var(--deep-sea);
}

.boundary-unfit h4 {
  color: var(--accent-coral);
}

.boundary-fit ul,
.boundary-unfit ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.boundary-fit li,
.boundary-unfit li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 3px 0;
  position: relative;
  list-style: none;
  padding-left: 16px;
}

.boundary-fit li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--deep-sea);
  font-weight: 700;
}

.boundary-unfit li::before {
  content: "×";
  position: absolute;
  left: 2px;
  color: var(--accent-coral);
  font-weight: 700;
}

/* 不归任何分区 */
.unplaced-section {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
}

.unplaced-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.unplaced-section p:last-child {
  margin-bottom: 0;
}

/* ==================== topics 讨论线索 ==================== */

/* 线索说明区 */
.topics-intro {
  margin-bottom: 40px;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.intro-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.topics-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* 线索分组 */
.clue-group {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-sand);
}

.clue-group:last-of-type {
  border-bottom: none;
}

.clue-group-head {
  margin-bottom: 16px;
}

.clue-group-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.clue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clue-item {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.clue-meta {
  margin-bottom: 6px;
}

.clue-source {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-coral);
  background-color: rgba(181, 80, 53, 0.08);
  padding: 2px 10px;
  border-radius: 20px;
  line-height: 1.6;
}

.clue-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 6px;
  line-height: 1.5;
}

.clue-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 参与前边界提示 */
.topics-boundary {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 8px;
}

/* ==================== guide 新手上路 ==================== */

/* 引导说明与配图 */
.guide-intro-section {
  margin-bottom: 40px;
}

.guide-intro-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.guide-intro-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.guide-intro-text p:last-child {
  margin-bottom: 0;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* 参与步骤 */
.guide-steps-section {
  margin-bottom: 48px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.step-item {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-coral);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step-content {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 常用名词对照表 */
.guide-terms-section {
  margin-bottom: 48px;
}

.terms-table {
  width: 100%;
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--paper-white);
}

.terms-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line-sand);
}

.terms-row:last-child {
  border-bottom: none;
}

.terms-head {
  background-color: var(--deep-sea);
  color: var(--paper-white);
}

.terms-head .term-name,
.terms-head .term-meaning {
  font-weight: 600;
  font-size: 14px;
  color: var(--paper-white);
}

.term-name {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-sea);
  border-right: 1px solid var(--line-sand);
  display: flex;
  align-items: center;
}

.term-meaning {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 准备清单 */
.guide-checklist-section {
  margin-bottom: 48px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  list-style: none;
}

.check-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--accent-coral);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  line-height: 1;
}

.check-content {
  min-width: 0;
}

.check-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 4px;
}

.check-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 站务提示 */
.guide-notice-section {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.guide-notice-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0;
}

.guide-notice-section a {
  color: var(--accent-coral);
}

/* 相关阅读 */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-link {
  display: block;
  padding: 14px 16px;
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.related-link:hover {
  border-color: var(--accent-coral);
  text-decoration: none;
}

.related-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 2px;
}

.related-desc {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== rules 发言约定 ==================== */

.rules-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

.rules-intro-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.rules-intro-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 四条基本约定 */
.rules-core {
  margin-bottom: 40px;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.rule-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 8px;
}

.rule-item > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

.rule-example {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  background-color: var(--bg-sand);
  border-left: 3px solid var(--line-sand);
  padding: 10px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0;
}

.rule-example strong {
  color: var(--accent-coral);
  font-weight: 600;
  margin-right: 6px;
}

/* 容易触碰边界的细节 */
.rules-details {
  margin-bottom: 40px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  list-style: none;
}

.detail-list li p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.detail-list li p strong {
  display: block;
  color: var(--deep-sea);
  font-weight: 600;
  margin-bottom: 4px;
}

/* 规则问答 */
.rules-faq {
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-sea);
  cursor: pointer;
  line-height: 1.5;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent-coral);
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent-coral);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
  border-top: 1px solid rgba(217, 210, 195, 0.4);
  padding-top: 12px;
}

/* 处理路径 */
.rules-path {
  margin-bottom: 40px;
}

.path-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.path-card {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.path-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 8px;
}

.path-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

.path-card a {
  font-size: 14px;
  color: var(--accent-coral);
  text-decoration: none;
}

.path-card a:hover {
  text-decoration: underline;
}

/* ==================== notice 站务公开 ==================== */

/* 引导与配图 */
.notice-intro-block {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

.notice-hero-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.notice-intro-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 工作范围 */
.scope-section {
  margin-bottom: 40px;
}

.scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scope-item {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 20px;
  list-style: none;
}

.scope-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 8px;
}

.scope-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 规则修订顺序 */
.revision-order-section {
  margin-bottom: 40px;
}

.revision-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: rev-step;
}

.revision-step {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  padding: 18px 20px 18px 64px;
  position: relative;
  list-style: none;
  counter-increment: rev-step;
}

.revision-step::before {
  content: counter(rev-step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--deep-sea);
  color: var(--paper-white);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.revision-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 4px;
}

.revision-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 反馈归口 */
.feedback-section {
  margin-bottom: 40px;
}

.feedback-guide {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.feedback-guide p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 8px;
}

.feedback-guide p:last-child {
  margin-bottom: 0;
}

/* 站务页特殊相关入口 */
.notice-page-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.related-link-item {
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-md);
  padding: 20px;
}

.related-link-item a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-sea);
  text-decoration: none;
  margin-bottom: 6px;
}

.related-link-item a:hover {
  color: var(--accent-coral);
  text-decoration: underline;
}

.related-link-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ==================== 404 页面 ==================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  flex: 1 0 auto;
}

.error-section {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background-color: var(--paper-white);
  border: 1px solid var(--line-sand);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent-coral);
  line-height: 1;
  margin-bottom: 16px;
}

.error-section h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.error-actions a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.5;
  min-height: 44px;
  border: 1px solid var(--line-sand);
  color: var(--ink-sea);
  background-color: var(--paper-white);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.error-actions a:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
  text-decoration: none;
}

.error-actions .btn-primary {
  background-color: var(--accent-coral);
  border-color: var(--accent-coral);
  color: #fff;
}

.error-actions .btn-primary:hover {
  background-color: var(--deep-sea);
  border-color: var(--deep-sea);
  color: #fff;
}

.error-help {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 0;
}

.error-help a {
  color: var(--accent-coral);
}

/* --------------------------------------------------------------------------
   5. responsive — 响应式断点
   -------------------------------------------------------------------------- */

/* ==================== 平板与窄桌面 ≤1024px ==================== */
@media (max-width: 1024px) {
  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .digest-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .scope-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==================== 移动端 ≤768px ==================== */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: var(--header-height);
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  /* 显示菜单按钮，隐藏水平导航 */
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    width: 100%;
    border-top: 1px solid var(--line-sand);
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    padding: 12px 8px;
    border-radius: 0;
    border-bottom: 1px solid rgba(217, 210, 195, 0.4);
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  /* 内页主区缩窄 */
  .inner-main {
    padding: 20px 16px 40px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 13px;
    margin-bottom: 14px;
  }

  /* 首页首屏：移动端堆叠，H1 在前 */
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 16px;
    gap: 20px;
  }

  .hero-content {
    order: 1;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-figure {
    order: 2;
  }

  .hero-rail {
    order: 3;
    width: 100%;
  }

  .hero-actions {
    margin-bottom: 4px;
  }

  .action-link {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  /* 首页各区块 */
  .topic-digest {
    padding: 32px 16px 16px;
  }

  .digest-groups {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-intro {
    padding: 32px 16px 16px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .prepare-block {
    padding: 32px 16px 40px;
  }

  .prepare-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 页脚移动端 */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 0 16px;
  }

  .footer-nav {
    justify-content: center;
    gap: 4px 16px;
  }

  .footer-copy {
    order: 11;
  }

  /* map 分区总览 */
  .map-intro-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .map-hero-figure img {
    height: 200px;
  }

  .zone-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .zone-boundary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* topics 讨论线索 */
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topics-media img {
    height: 200px;
  }

  .clue-item {
    padding: 14px 16px;
  }

  /* guide 新手上路 */
  .guide-intro-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-figure img {
    height: 200px;
  }

  .steps-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .terms-row {
    grid-template-columns: 1fr;
  }

  .term-name {
    border-right: none;
    border-bottom: 1px solid var(--line-sand);
    padding: 10px 16px 6px;
  }

  .term-meaning {
    padding: 6px 16px 12px;
  }

  .terms-head {
    display: none;
  }

  .check-item {
    padding: 14px 16px;
  }

  /* rules 发言约定 */
  .rules-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rules-intro-media img {
    height: 200px;
  }

  .rule-item {
    padding: 16px;
  }

  .path-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* notice 站务公开 */
  .notice-intro-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .notice-hero-figure img {
    height: 200px;
  }

  .scope-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .revision-step {
    padding-left: 56px;
  }

  .revision-step::before {
    left: 16px;
  }

  .notice-page-related {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 404 */
  .error-section {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* ==================== 超小屏 ≤390px ==================== */
@media (max-width: 390px) {
  .header-inner {
    padding: 10px 12px;
    gap: 12px;
  }

  .brand-link {
    font-size: 18px;
  }

  .nav-toggle {
    padding: 8px 10px;
  }

  .inner-main {
    padding: 16px 12px 32px;
  }

  .hero-layout {
    padding: 20px 12px 12px;
  }

  .topic-digest {
    padding: 24px 12px 12px;
  }

  .section-intro {
    padding: 24px 12px 12px;
  }

  .prepare-block {
    padding: 24px 12px 32px;
  }

  .footer-inner {
    padding: 0 12px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .action-link {
    width: 100%;
    text-align: center;
  }

  .error-main {
    padding: 32px 12px;
  }

  .error-section {
    padding: 24px 16px;
  }
}
