/* ==========================================================================
   海角社区 · 全站样式表
   qvtiay.com
   ========================================================================== */

/* ==========================================================================
   1. Base — 基础变量、重置、字体与全局元素
   ========================================================================== */

:root {
  /* 色彩系统 */
  --color-page-bg: #F6F4EE;
  --color-text-primary: #292A2E;
  --color-text-secondary: #5C5E66;
  --color-text-muted: #8A8B91;
  --color-border: #D8D3C6;
  --color-border-light: #E5E1D6;
  --color-accent-brown: #8C5E4D;
  --color-accent-brown-light: #A97B68;

  /* 版块色标 */
  --color-photo: #7D9499;
  --color-beach: #84987D;
  --color-qanda: #9890A3;
  --color-life: #B39B7E;
  --color-place: #6E8B9E;
  --color-service: #9B8C7E;

  /* 文字与排版 */
  --font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* 容器宽度 */
  --container-width: 1060px;
  --container-padding: 24px;

  /* 间距 */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* 字体尺寸 */
  --font-size-sm: 13px;
  --font-size-base: 15px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-xxl: 28px;
  --font-size-hero: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  line-height: 1.8;
  color: var(--color-text-primary);
  background-color: var(--color-page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent-brown);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-brown-light);
}

ul,
ol {
  list-style: none;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-hero);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: 12px;
}

/* 焦点可见性 */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent-brown);
  outline-offset: 2px;
}

/* ==========================================================================
   2. Layout — 全站布局骨架
   ========================================================================== */

/* 站点主体骨架 */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 首页主体 */
.home-main {
  width: 100%;
}

/* 内页主体 */
.inner-main {
  width: 100%;
  padding-bottom: var(--space-xxl);
}

/* 统一内容容器 */
.layout-shell,
.header-inner,
.footer-inner,
.home-layout {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* 页面双栏布局 */
.page-layout {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

/* 首页双栏布局 */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

/* 主内容列 */
.content-column,
.main-article,
.topic-stream,
.guide-content,
.main-content {
  min-width: 0;
  min-width: 520px;
}

/* 侧栏列 */
.sidebar-column,
.topic-aside {
  min-width: 0;
}

/* ==========================================================================
   3. Header — 页头与全屏导航
   ========================================================================== */

.site-header {
  width: 100%;
  background-color: var(--color-page-bg);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.3;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* 目录按钮（桌面隐藏，由导航列表代替） */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 8px;
  gap: 4px;
  transition: background-color 0.15s ease;
}

.nav-toggle:hover {
  background-color: #EFECE4;
}

.toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toggle-text {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1;
}

/* 全屏导航遮罩 */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.nav-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(41, 42, 46, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  pointer-events: none;
}

.nav-panel {
  width: 100%;
  max-width: 560px;
  margin: 0 24px;
  background-color: var(--color-page-bg);
  border-radius: var(--radius-lg);
  padding: 32px 32px 24px;
  box-shadow: 0 8px 32px rgba(41, 42, 46, 0.15);
  transform: translateY(-16px);
  transition: transform 0.2s ease;
}

.nav-intro {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
  margin-bottom: 20px;
}

.nav-list li a {
  display: block;
  padding: 10px 8px;
  font-size: 16px;
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-list li a:hover {
  background-color: #EFECE4;
  color: var(--color-accent-brown);
}

.nav-list li a.is-current {
  color: var(--color-accent-brown);
  font-weight: 600;
  background-color: #EFECE4;
}

.nav-close {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-family: var(--font-family);
}

.nav-close:hover {
  background-color: #EFECE4;
}

/* 导航打开状态：由 JS 切换 .is-open 到 .nav-list 或 .site-nav */
.site-nav.is-open {
  pointer-events: auto;
}

.site-nav.is-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.site-nav.is-open .nav-panel {
  transform: translateY(0);
}

/* ==========================================================================
   4. Breadcrumb 与页面标题区
   ========================================================================== */

.breadcrumb {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--color-accent-brown);
}

.breadcrumb-sep {
  color: var(--color-border);
}

.breadcrumb-current {
  color: var(--color-text-secondary);
}

.page-header {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 28px 24px 24px;
}

.page-title {
  font-size: var(--font-size-xxl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 0;
}

/* ==========================================================================
   5. Footer — 页脚
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: #EFECE4;
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-column {
  min-width: 0;
}

.footer-site-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-year {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.footer-column h2.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 14px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list li a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}

.footer-list li a:hover {
  color: var(--color-accent-brown);
}

.footer-home {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-accent-brown);
}

.footer-note {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 8px;
}

/* ==========================================================================
   6. Components — 通用组件
   ========================================================================== */

/* ----- 区块标题 ----- */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.section-desc,
.section-intro {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ----- 图片容器 ----- */
figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #EFECE4;
}

figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding: 10px 4px 0;
  text-align: left;
}

/* ----- 版块色点 ----- */
.board-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.dot-photo {
  background-color: var(--color-photo);
}

.dot-beach {
  background-color: var(--color-beach);
}

.dot-gear {
  background-color: var(--color-qanda);
}

.dot-life {
  background-color: var(--color-life);
}

.dot-place {
  background-color: var(--color-place);
}

.dot-service {
  background-color: var(--color-service);
}

/* ----- 版块标签（话题行内） ----- */
.topic-cat,
.topic-board-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
  line-height: 1.6;
  white-space: nowrap;
}

.cat-photo,
.board-photo {
  background-color: rgba(125, 148, 153, 0.15);
  color: #5A7478;
}

.cat-beach {
  background-color: rgba(132, 152, 125, 0.15);
  color: #5C6E55;
}

.cat-qa {
  background-color: rgba(152, 144, 163, 0.15);
  color: #6B6475;
}

.cat-life {
  background-color: rgba(179, 155, 126, 0.18);
  color: #7D6A4F;
}

.board-beach {
  background-color: rgba(132, 152, 125, 0.15);
  color: #5C6E55;
}

.board-qanda {
  background-color: rgba(152, 144, 163, 0.15);
  color: #6B6475;
}

.board-life {
  background-color: rgba(179, 155, 126, 0.18);
  color: #7D6A4F;
}

/* ----- 话题标签 ----- */
.topic-tag {
  font-size: 13px;
  color: var(--color-text-muted);
  background-color: #EFECE4;
  padding: 2px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ==========================================================================
   7. Header 导航状态（桌面与移动）
   ========================================================================== */

/* 桌面：隐藏按钮，显示导航列表 */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    pointer-events: auto;
    display: block;
  }

  .nav-overlay {
    position: static;
    inset: auto;
    background-color: transparent;
    opacity: 1;
    display: block;
    padding: 0;
    pointer-events: auto;
  }

  .nav-panel {
    max-width: none;
    margin: 0;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
  }

  .nav-intro {
    display: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list li a {
    display: block;
    padding: 8px 12px;
    font-size: 15px;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
  }

  .nav-list li a:hover {
    color: var(--color-accent-brown);
    background-color: transparent;
  }

  .nav-list li a.is-current {
    color: var(--color-accent-brown);
    font-weight: 600;
    background-color: transparent;
  }

  .nav-close {
    display: none;
  }
}

/* ==========================================================================
   8. Home — 首页样式
   ========================================================================== */

/* 首屏 Hero */
.hero-section {
  width: 100%;
  position: relative;
  margin-bottom: 0;
}

.hero-media {
  width: 100%;
}

.hero-figure {
  width: 100%;
  max-height: 480px;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--color-photo);
}

.hero-figure img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Hero 内容叠加层 */
.hero-content {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  max-width: 720px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 680px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--color-accent-brown);
  color: #ffffff;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
  min-height: 44px;
}

.hero-link:hover {
  background-color: var(--color-accent-brown-light);
  color: #ffffff;
}

.hero-link.is-outline {
  background-color: transparent;
  border: 1px solid var(--color-accent-brown);
  color: var(--color-accent-brown);
}

.hero-link.is-outline:hover {
  background-color: rgba(140, 94, 77, 0.08);
  color: var(--color-accent-brown);
}

/* 首屏下方的补充图片 */
.content-media-primary {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto 0;
  padding: 0 24px;
}

.content-media-primary figure {
  border-radius: var(--radius-lg);
}

.content-media-primary img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.content-media-primary figcaption {
  padding: 10px 4px 0;
}

/* ----- 首页内容区 ----- */
.home-layout {
  padding-top: 48px;
  padding-bottom: 64px;
}

/* 内容主列 */
.content-column {
  min-width: 0;
}

/* 版块速览 */
.board-index-section {
  margin-bottom: 48px;
}

.board-index-section h2,
.topic-stream-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 版块文字目录行 */
.board-index-list {
  border-top: 1px solid var(--color-border-light);
}

.board-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.15s ease;
  border-left: 3px solid transparent;
}

.board-row:hover {
  background-color: #F1EEE6;
  border-left-color: var(--color-photo);
}

.board-info {
  flex: 1;
  min-width: 0;
}

.board-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.board-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.board-link {
  align-self: center;
  font-size: 14px;
  color: var(--color-accent-brown);
  white-space: nowrap;
  padding: 6px 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.board-row:hover .board-link {
  opacity: 1;
}

/* 热门话题流 */
.topic-stream-section {
  margin-bottom: 24px;
}

.topic-stream-list {
  border-top: 1px solid var(--color-border-light);
}

.topic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.15s ease;
  flex-wrap: wrap;
}

.topic-row:hover {
  background-color: #F1EEE6;
}

.topic-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.topic-title {
  color: var(--color-text-primary);
  transition: color 0.15s ease;
}

a.topic-title:hover {
  color: var(--color-accent-brown);
}

.section-more {
  margin-top: 20px;
  text-align: right;
}

.section-more a {
  font-size: 15px;
  color: var(--color-accent-brown);
  display: inline-block;
  padding: 6px 4px;
}

.section-more a::after {
  content: " →";
  font-size: 14px;
}

/* 首页侧栏 */
.home-sidebar {
  min-width: 0;
}

.sidebar-block {
  margin-bottom: 32px;
  padding: 20px;
  background-color: #F1EEE6;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.sidebar-block h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.guide-block {
  margin-bottom: 20px;
}

.guide-block:last-child {
  margin-bottom: 0;
}

.guide-block-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-primary);
}

.guide-block-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.sidebar-link {
  font-size: 14px;
  color: var(--color-accent-brown);
  display: inline-block;
}

.sidebar-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   9. Board 版块导览页
   ========================================================================== */

/* 版块列表 */
.board-guide-section {
  margin-bottom: 48px;
}

.board-guide-section h2,
.board-tip-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.board-list {
  border-top: 1px solid var(--color-border-light);
}

.board-item {
  padding: 24px 4px;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.15s ease;
  border-left: 3px solid transparent;
}

.board-item:hover {
  background-color: #F1EEE6;
  border-left-color: var(--color-photo);
}

.board-item-main {
  flex: 1;
  min-width: 0;
}

.board-item-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.board-item-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.board-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-tags span {
  font-size: 13px;
  color: var(--color-text-muted);
}

.board-item-link {
  flex-shrink: 0;
  align-self: center;
}

.board-item-link a {
  font-size: 15px;
  color: var(--color-accent-brown);
  padding: 6px 4px;
  white-space: nowrap;
}

.board-item-link a::after {
  content: " →";
}

/* 发帖选版提示 */
.board-tip-section {
  margin-bottom: 40px;
}

.board-tip-steps {
  counter-reset: tip-counter;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.tip-step {
  background-color: #F1EEE6;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--color-border-light);
  counter-increment: tip-counter;
  position: relative;
}

.tip-step::before {
  content: counter(tip-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--color-accent-brown);
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tip-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tip-step p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 版块氛围图片 */
.board-atmosphere {
  margin-top: 40px;
  border-radius: var(--radius-lg);
}

.board-atmosphere img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ==========================================================================
   10. Topic 热门话题页
   ========================================================================== */

.topic-stream {
  min-width: 0;
}

.topic-section {
  margin-bottom: 24px;
}

.topic-section h2.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 话题列表 */
.topic-list {
  border-top: 1px solid var(--color-border-light);
}

.topic-feature-image {
  width: 100%;
  margin-bottom: 8px;
  border-radius: var(--radius-lg);
}

.topic-feature-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.topic-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.15s ease;
  flex-wrap: wrap;
}

.topic-item:hover {
  background-color: #F1EEE6;
}

.topic-board-tag {
  margin-top: 3px;
}

.topic-item h3.topic-title {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.5;
}

.topic-item h3.topic-title a {
  color: var(--color-text-primary);
  transition: color 0.15s ease;
}

.topic-item h3.topic-title a:hover {
  color: var(--color-accent-brown);
}

.topic-meta {
  width: 100%;
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0 0 0;
  line-height: 1.5;
}

/* 侧栏 */
.topic-aside {
  min-width: 0;
}

.aside-inner {
  padding: 20px;
  background-color: #F1EEE6;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.aside-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.aside-intro {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.board-entry-list li {
  margin-bottom: 4px;
}

.board-entry-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  font-size: 15px;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
  min-height: 40px;
}

.board-entry-list li a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-photo);
  flex-shrink: 0;
}

.board-entry-list li a:hover {
  background-color: #E8E4DA;
  color: var(--color-accent-brown);
}

.aside-guide {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.aside-guide-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.aside-guide p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.aside-guide p a {
  font-size: 14px;
}

.entry-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ==========================================================================
   11. Place 海边地标页
   ========================================================================== */

.place-intro,
.place-list,
.place-topics {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.place-intro {
  margin-bottom: 24px;
}

.intro-content p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.place-list {
  margin-bottom: 48px;
}

.place-list h2.section-title {
  margin-bottom: 24px;
}

.place-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.place-item:first-of-type {
  border-top: 1px solid var(--color-border-light);
}

.place-media {
  min-width: 0;
}

.place-figure {
  border-radius: var(--radius-lg);
}

.place-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.place-info {
  min-width: 0;
  padding-top: 4px;
}

.place-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.place-details {
  margin-bottom: 16px;
}

.place-details li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.place-details li strong {
  color: var(--color-text-primary);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 72px;
}

.place-link {
  display: inline-block;
  font-size: 15px;
  color: var(--color-accent-brown);
  padding: 6px 0;
}

.place-link::after {
  content: " →";
}

/* 相关话题 */
.place-topics {
  margin-bottom: 40px;
}

.topic-link-list {
  margin-top: 12px;
}

.topic-link-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.topic-link-list li a {
  font-size: 15px;
  color: var(--color-text-primary);
  display: inline-block;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.topic-link-list li a:hover {
  color: var(--color-accent-brown);
}

/* 相关内容导航 */
.related-links {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--color-border-light);
}

.related-links-label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.related-links-item {
  font-size: 15px;
  color: var(--color-accent-brown);
  padding: 4px 0;
}

.related-links-item + .related-links-item {
  margin-left: 4px;
}

.related-links-item::after {
  content: " ·";
  color: var(--color-border);
  margin-left: 4px;
}

.related-links-item:last-child::after {
  content: "";
}

/* ==========================================================================
   12. Guide 新手指引页
   ========================================================================== */

.guide-content {
  min-width: 0;
}

.guide-figure {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
}

.guide-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.guide-section > p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* 准备清单 */
.check-list {
  counter-reset: check-counter;
  margin-top: 16px;
}

.check-list li {
  counter-increment: check-counter;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.check-list li::before {
  content: counter(check-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--color-photo);
  color: #ffffff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-list li a {
  font-size: 15px;
}

/* 发帖格式双栏 */
.format-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.format-block {
  background-color: #F1EEE6;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--color-border-light);
}

.format-block h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.format-list {
  counter-reset: format-counter;
}

.format-list li {
  counter-increment: format-counter;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.format-list li::before {
  content: counter(format-counter);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-brown);
  flex-shrink: 0;
  width: 18px;
  text-align: right;
}

.format-note {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 14px;
  line-height: 1.7;
}

.format-note a {
  font-size: 14px;
}

/* 回帖上下文 */
.reply-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.reply-item {
  background-color: #F1EEE6;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--color-border-light);
}

.reply-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.reply-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.reply-note {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 14px;
}

.reply-note a {
  font-size: 14px;
}

/* 收尾引导 */
.guide-tip {
  background-color: #F1EEE6;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--color-border-light);
}

.guide-tip h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-tip p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.guide-tip p a {
  font-size: 15px;
  margin-right: 16px;
  display: inline-block;
}

/* ==========================================================================
   13. FAQ 常见问答页
   ========================================================================== */

/* 问题索引 */
.faq-index-section {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin-bottom: 40px;
}

.faq-index-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.content-media-inline {
  margin-bottom: 20px;
  max-width: 720px;
}

.content-media-inline img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.faq-index-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  border-top: 1px solid var(--color-border-light);
  padding-top: 16px;
}

.faq-index-list li a {
  display: block;
  padding: 8px 4px;
  font-size: 15px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.faq-index-list li a::before {
  content: "· ";
  color: var(--color-accent-brown);
  font-weight: 600;
}

.faq-index-list li a:hover {
  color: var(--color-accent-brown);
  padding-left: 8px;
}

/* 折叠问答 */
.faq-list-section {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin-bottom: 48px;
}

.faq-list-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.faq-list-wrap {
  border-top: 1px solid var(--color-border-light);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item summary {
  padding: 16px 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.15s ease;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--color-accent-brown);
  color: #ffffff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--color-accent-brown);
}

.faq-answer {
  padding: 4px 8px 20px 42px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  font-size: 15px;
}

/* 反馈路径 */
.feedback-path-section {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.feedback-path-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feedback-path-content {
  background-color: #F1EEE6;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--color-border-light);
}

.feedback-path-content > p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.feedback-path-list {
  margin: 12px 0;
  padding-left: 4px;
}

.feedback-path-list li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  position: relative;
  padding-left: 20px;
}

.feedback-path-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--color-accent-brown);
  font-weight: 700;
  font-size: 18px;
}

/* ==========================================================================
   14. Rules 社区公约页
   ========================================================================== */

.rules-figure {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
}

.rules-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.rules-section {
  margin-bottom: 40px;
}

.rules-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.rules-section .section-intro {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.principle-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.principle-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.principle-item p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 讨论边界：列表形式 */
.boundary-list {
  margin-top: 8px;
}

.boundary-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  display: flex;
  gap: 10px;
}

.boundary-list li::before {
  content: "·";
  color: var(--color-accent-brown);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* 处理范围网格 */
.enforcement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.enforcement-item {
  background-color: #F1EEE6;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--color-border-light);
}

.enforcement-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.enforcement-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 规则相关链接 */
.rules-related {
  margin-top: 24px;
  padding: 20px;
  background-color: #F1EEE6;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.rules-related h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.rules-related p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.rules-related p a {
  font-size: 15px;
  margin-right: 16px;
  display: inline-block;
}

/* ==========================================================================
   15. 404 错误页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-section {
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.error-section h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.error-home,
.error-board {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  min-height: 44px;
}

.error-home {
  background-color: var(--color-accent-brown);
  color: #ffffff;
}

.error-home:hover {
  background-color: var(--color-accent-brown-light);
  color: #ffffff;
}

.error-board {
  background-color: transparent;
  border: 1px solid var(--color-accent-brown);
  color: var(--color-accent-brown);
}

.error-board:hover {
  background-color: rgba(140, 94, 77, 0.08);
  color: var(--color-accent-brown);
}

.error-help {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   16. Responsive — 响应式
   ========================================================================== */

/* 小桌面 1024px 以下 */
@media (max-width: 1024px) {
  .page-layout,
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }
}

/* 移动端断点 768px */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  /* 页头 */
  .header-inner {
    height: 64px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  /* 显示目录按钮 */
  .nav-toggle {
    display: flex;
  }

  /* 导航遮罩全屏 */
  .site-nav {
    position: fixed;
    inset: 0;
    pointer-events: none;
  }

  .nav-overlay {
    padding-top: 0;
    align-items: stretch;
    background-color: rgba(41, 42, 46, 0.55);
  }

  .nav-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 24px 20px 20px;
    transform: translateY(-16px);
  }

  .nav-intro {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .nav-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .nav-list li a {
    padding: 12px 8px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-close {
    margin-top: 8px;
    min-height: 48px;
  }

  /* 桌面导航恢复隐藏 */
  .site-nav:not(.is-open) {
    pointer-events: none;
  }

  .site-nav:not(.is-open) .nav-overlay {
    opacity: 0;
    pointer-events: none;
  }

  /* 双栏收单列 */
  .page-layout,
  .home-layout {
    display: block;
  }

  .content-column,
  .main-article,
  .topic-stream,
  .guide-content,
  .main-content {
    min-width: 0;
  }

  /* 侧栏移到主内容之后 */
  .sidebar-column,
  .topic-aside {
    margin-top: 32px;
  }

  /* 面包屑与标题 */
  .breadcrumb {
    padding: 16px 16px 0;
    font-size: 13px;
  }

  .page-header {
    padding: 20px 16px 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  /* 首页 Hero */
  .hero-figure img {
    height: 260px;
  }

  .hero-content {
    padding: 24px 16px 20px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-link {
    width: 100%;
    justify-content: center;
  }

  .content-media-primary {
    padding: 0 16px;
  }

  .home-layout {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .board-index-section,
  .topic-stream-section {
    margin-bottom: 32px;
  }

  .board-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .board-link {
    opacity: 1;
    margin-left: 22px;
  }

  .topic-row {
    align-items: flex-start;
  }

  .topic-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.6;
  }

  .topic-tag {
    order: 3;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .footer-column {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-light);
  }

  .footer-column:last-child {
    border-bottom: none;
  }

  /* 版块页 */
  .board-item {
    flex-direction: column;
    gap: 8px;
  }

  .board-item-link {
    align-self: flex-start;
  }

  .board-tip-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .board-atmosphere img {
    height: 180px;
  }

  /* 话题页 */
  .topic-feature-image img {
    height: 180px;
  }

  .topic-item {
    gap: 10px;
  }

  .topic-meta {
    margin-left: 0;
  }

  /* 地标页 */
  .place-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .place-figure img {
    height: 200px;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 16px;
  }

  /* 指引页 */
  .guide-figure img {
    height: 200px;
  }

  .format-row {
    grid-template-columns: 1fr;
  }

  .reply-row {
    grid-template-columns: 1fr;
  }

  .guide-section {
    margin-bottom: 32px;
  }

  /* FAQ 页 */
  .faq-index-list {
    grid-template-columns: 1fr;
  }

  .faq-answer {
    padding-left: 8px;
    padding-right: 8px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 14px 8px;
  }

  .faq-item summary::before {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  /* 公约页 */
  .enforcement-grid {
    grid-template-columns: 1fr;
  }

  .rules-figure img {
    height: 200px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* 小屏手机 480px 以下 */
@media (max-width: 480px) {
  .hero-figure img {
    height: 220px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .content-media-primary img {
    max-height: 260px;
  }

  .board-row,
  .topic-row,
  .topic-item {
    padding-left: 2px;
    padding-right: 2px;
  }

  .board-link {
    margin-left: 18px;
  }

  .topic-tag {
    font-size: 12px;
  }
}
