/* ==========================================================================
   base — 全局基础样式
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1F2328;
  background-color: #F4F2EE;
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1F2328;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #B98A3E;
}

ul,
ol {
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid #B98A3E;
  outline-offset: 2px;
}

/* ==========================================================================
   layout — 全站布局骨架
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E1D8;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #1F2328;
  line-height: 1.4;
}

.brand-logo:hover {
  color: #B98A3E;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: #1F2328;
  border-bottom: 2px solid transparent;
  line-height: 1.5;
}

.nav-list li a:hover {
  color: #B98A3E;
  border-bottom-color: #B98A3E;
}

.nav-list li a.is-current {
  color: #B98A3E;
  border-bottom-color: #B98A3E;
  font-weight: 600;
}

.cta-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #B98A3E;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  line-height: 1.5;
  margin-left: 8px;
  white-space: nowrap;
}

.cta-btn:hover {
  background-color: #A87A32;
  color: #FFFFFF;
}

.cta-btn.is-current {
  background-color: #A87A32;
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1F2328;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  min-height: 60vh;
}

.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E5E1D8;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-group {
  flex: 1 1 200px;
}

.footer-group h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1F2328;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul li a {
  font-size: 14px;
  color: #5E6B73;
}

.footer-group ul li a:hover {
  color: #B98A3E;
}

.footer-bottom {
  flex-basis: 100%;
  border-top: 1px solid #E5E1D8;
  padding-top: 24px;
  margin-top: 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: #5E6B73;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* 面包屑 */
.breadcrumb {
  font-size: 14px;
  color: #5E6B73;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: #5E6B73;
}

.breadcrumb a:hover {
  color: #B98A3E;
}

.breadcrumb-sep {
  color: #B98A3E;
  margin: 0 2px;
}

.breadcrumb-current {
  color: #1F2328;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #1F2328;
}

.page-description {
  font-size: 16px;
  color: #5E6B73;
  line-height: 1.7;
}

/* 通用布局容器 */
.layout-shell {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.layout-shell > .main-content {
  flex: 1;
  min-width: 0;
}

.layout-shell > .sidebar-right,
.layout-shell > .sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-right {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.sidebar-right > .main-content {
  flex: 1;
  min-width: 0;
}

.sidebar-right > .sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-left {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.sidebar-left > .main-content {
  flex: 1;
  min-width: 0;
  order: 2;
}

.sidebar-left > .sidebar {
  width: 280px;
  flex-shrink: 0;
  order: 1;
}

/* 页面布局 */
.page-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-layout > .content-main {
  flex: 1;
  min-width: 0;
}

.page-layout > .content-side {
  width: 280px;
  flex-shrink: 0;
}

.page-layout.sidebar-left > .guide-toc {
  width: 280px;
  flex-shrink: 0;
  order: 1;
}

.page-layout.sidebar-left > .guide-content {
  flex: 1;
  min-width: 0;
  order: 2;
}

/* 有侧栏的页面布局 */
.page-layout.has-sidebar {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-layout.has-sidebar > .hot-thread-list,
.page-layout.has-sidebar > .heat-sort {
  flex: 1;
  min-width: 0;
}

.page-layout.has-sidebar > .related-sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* 内页通用容器 */
.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* 相关内容栏 */
.related-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.related-group {
  margin-bottom: 32px;
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
}

.related-group h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2328;
  padding-bottom: 8px;
  border-bottom: 2px solid #B98A3E;
}

.related-group ul li {
  margin-bottom: 8px;
}

.related-group ul li a {
  font-size: 14px;
  color: #1F2328;
  display: inline-block;
  padding: 2px 0;
}

.related-group ul li a:hover {
  color: #B98A3E;
}

/* 侧栏卡片 */
.sidebar-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2328;
  padding-bottom: 8px;
  border-bottom: 2px solid #B98A3E;
}

.sidebar-card ul li {
  margin-bottom: 8px;
}

.sidebar-card ul li a {
  font-size: 14px;
  color: #1F2328;
}

.sidebar-card ul li a:hover {
  color: #B98A3E;
}

/* 相关链接条 */
.related-links {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #E5E1D8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.related-links-label {
  font-size: 14px;
  color: #5E6B73;
  margin-right: 4px;
}

.related-links-item {
  font-size: 14px;
  color: #B98A3E;
  padding: 4px 8px;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* ==========================================================================
   components — 组件样式
   ========================================================================== */

/* 内容区块 */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1F2328;
  line-height: 1.4;
}

.content-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1F2328;
}

.section-intro {
  font-size: 15px;
  color: #5E6B73;
  margin-bottom: 20px;
  line-height: 1.7;
}

.section-desc {
  font-size: 15px;
  color: #5E6B73;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* 表格容器 */
.table-wrap {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  overflow-x: auto;
}

.table-wrap table {
  min-width: 640px;
}

.table-wrap th {
  background-color: #F4F2EE;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  color: #1F2328;
  border-bottom: 2px solid #E5E1D8;
  white-space: nowrap;
}

.table-wrap td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #E5E1D8;
  color: #1F2328;
  vertical-align: top;
  line-height: 1.6;
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.table-wrap tbody tr:hover {
  background-color: #FAF9F6;
}

.table-note {
  font-size: 13px;
  color: #5E6B73;
  margin-top: 12px;
  line-height: 1.6;
}

/* 首页首屏 */
.hero-section {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 48px 0 56px;
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.hero-copy h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #1F2328;
}

.hero-lead {
  font-size: 16px;
  color: #5E6B73;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background-color: #B98A3E;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  line-height: 1.5;
}

.btn-primary:hover {
  background-color: #A87A32;
  color: #FFFFFF;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background-color: #FFFFFF;
  color: #1F2328;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #E5E1D8;
  line-height: 1.5;
}

.btn-secondary:hover {
  border-color: #B98A3E;
  color: #B98A3E;
}

.hero-figure {
  flex: 0 0 420px;
  max-width: 420px;
}

.hero-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

.hero-figure figcaption {
  font-size: 13px;
  color: #5E6B73;
  margin-top: 8px;
  line-height: 1.5;
}

/* 首页内容媒体图 */
.content-media-primary {
  margin-bottom: 48px;
}

.content-media-primary img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
}

.content-media-primary figcaption {
  font-size: 13px;
  color: #5E6B73;
  margin-top: 8px;
}

/* 版块目录表 */
.board-directory {
  padding: 48px 0;
  border-top: 1px solid #E5E1D8;
}

.board-directory h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1F2328;
}

.board-directory .table-wrap table {
  min-width: 640px;
}

/* 讨论沉淀路径 */
.path-section {
  padding: 48px 0;
}

.path-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1F2328;
}

.path-section .section-intro {
  margin-bottom: 32px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.path-step {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
  position: relative;
}

.path-step .step-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: #B98A3E;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.path-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1F2328;
}

.path-step p {
  font-size: 14px;
  color: #5E6B73;
  line-height: 1.6;
}

/* 热门话题列表 */
.hot-topics {
  padding: 48px 0;
  border-top: 1px solid #E5E1D8;
}

.hot-topics h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1F2328;
}

.topic-list {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  overflow: hidden;
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #E5E1D8;
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-item:hover {
  background-color: #FAF9F6;
}

.topic-item a {
  flex: 1;
  font-size: 15px;
  color: #1F2328;
  line-height: 1.5;
}

.topic-item a:hover {
  color: #B98A3E;
}

.topic-tag {
  font-size: 12px;
  color: #5E6B73;
  background-color: #F4F2EE;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.topic-activity {
  font-size: 13px;
  color: #B98A3E;
  white-space: nowrap;
}

/* 版块识别色板 */
.color-swatch-section {
  padding: 48px 0;
  border-top: 1px solid #E5E1D8;
}

.color-swatch-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1F2328;
}

.swatch-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.swatch-item {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  overflow: hidden;
}

.swatch-color {
  display: block;
  height: 72px;
}

.swatch-discussion {
  background-color: #B98A3E;
}

.swatch-resource {
  background-color: #5E6B73;
}

.swatch-works {
  background-color: #7A7F5C;
}

.swatch-people {
  background-color: #8B6E63;
}

.swatch-affairs {
  background-color: #42606E;
}

.swatch-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1F2328;
  padding: 10px 12px 0;
}

.swatch-hex {
  display: block;
  font-size: 13px;
  color: #5E6B73;
  padding: 0 12px;
}

.swatch-use {
  display: block;
  font-size: 13px;
  color: #5E6B73;
  padding: 0 12px 12px;
  line-height: 1.5;
}

/* FAQ 折叠 */
.faq-section {
  padding: 48px 0;
  border-top: 1px solid #E5E1D8;
}

.faq-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1F2328;
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  margin-bottom: 12px;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1F2328;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #B98A3E;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 20px 16px;
}

.faq-answer p {
  font-size: 14px;
  color: #5E6B73;
  line-height: 1.7;
}

/* 首页底部 FAQ */
.faq-section .faq-list {
  max-width: 800px;
}

/* 版块总览页 */
.board-figure {
  margin-bottom: 32px;
}

.board-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
}

.board-figure figcaption {
  font-size: 13px;
  color: #5E6B73;
  margin-top: 8px;
}

.board-table-section .table-wrap table {
  min-width: 720px;
}

.example-topic-section {
  margin-top: 48px;
}

.topic-example-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.topic-example-item {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
}

.topic-example-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1F2328;
}

.topic-example-item p {
  font-size: 14px;
  color: #5E6B73;
  line-height: 1.6;
}

/* 热门话题页 */
.page-cover {
  margin-bottom: 32px;
}

.page-cover img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
}

.page-cover figcaption {
  font-size: 13px;
  color: #5E6B73;
  margin-top: 8px;
}

.heat-sort {
  margin-bottom: 40px;
}

.heat-sort h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1F2328;
}

.sort-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sort-dim {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
}

.sort-dim h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1F2328;
}

.sort-dim p {
  font-size: 14px;
  color: #5E6B73;
  line-height: 1.6;
}

.hot-thread-list {
  margin-bottom: 40px;
}

.hot-thread-list h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1F2328;
}

.thread-items {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  overflow: hidden;
}

.thread-item {
  padding: 16px 20px;
  border-bottom: 1px solid #E5E1D8;
}

.thread-item:last-child {
  border-bottom: none;
}

.thread-item:hover {
  background-color: #FAF9F6;
}

.thread-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.thread-item h3 a {
  color: #1F2328;
}

.thread-item h3 a:hover {
  color: #B98A3E;
}

.thread-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #5E6B73;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-bankuai {
  background-color: #F4F2EE;
  color: #5E6B73;
}

.tag-work {
  background-color: #F0F1EA;
  color: #7A7F5C;
}

.tag-data {
  background-color: #EDEEF0;
  color: #5E6B73;
}

.tag-person {
  background-color: #F1EDEB;
  color: #8B6E63;
}

.tag-guide {
  background-color: #F4F0E8;
  color: #B98A3E;
}

.tag-rule {
  background-color: #E9EEF0;
  color: #42606E;
}

.activity {
  color: #B98A3E;
  font-weight: 500;
}

.update-time {
  color: #5E6B73;
}

/* 资料档案页 */
.data-table {
  min-width: 720px;
}

.entry-list {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  overflow: hidden;
}

.entry-item {
  padding: 16px 20px;
  border-bottom: 1px solid #E5E1D8;
}

.entry-item:last-child {
  border-bottom: none;
}

.entry-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1F2328;
}

.entry-version {
  font-size: 13px;
  color: #5E6B73;
  margin-bottom: 4px;
}

.entry-rule {
  font-size: 14px;
  color: #1F2328;
  line-height: 1.6;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-item {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
}

.step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #5E6B73;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1F2328;
}

.step-content p {
  font-size: 14px;
  color: #5E6B73;
  line-height: 1.6;
}

.content-figure {
  margin-bottom: 32px;
}

.content-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
}

.content-figure figcaption {
  font-size: 13px;
  color: #5E6B73;
  margin-top: 8px;
}

/* 作品讨论页 */
.content-media-inline {
  margin-bottom: 24px;
}

.content-media-inline img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
}

.content-media-inline figcaption {
  font-size: 13px;
  color: #5E6B73;
  margin-top: 8px;
}

.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.col-text {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
}

.col-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2328;
}

.check-list {
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: #5E6B73;
  line-height: 1.6;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #B98A3E;
  border-radius: 50%;
}

/* 话题分类 */
.category-group {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1F2328;
}

.category-desc {
  font-size: 14px;
  color: #5E6B73;
  line-height: 1.6;
}

.participation {
  display: inline-block;
  font-size: 13px;
  color: #B98A3E;
  margin-top: 8px;
}

/* 人物介绍页 */
.person-group {
  margin-bottom: 24px;
}

.person-group h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2328;
  padding-bottom: 8px;
  border-bottom: 2px solid #E5E1D8;
}

.person-list {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  overflow: hidden;
}

.person-item {
  padding: 14px 20px;
  border-bottom: 1px solid #E5E1D8;
}

.person-item:last-child {
  border-bottom: none;
}

.person-name {
  font-size: 15px;
  font-weight: 600;
  color: #1F2328;
  margin-bottom: 4px;
}

.person-bg {
  font-size: 14px;
  color: #5E6B73;
  line-height: 1.6;
}

/* 人物页相关话题 */
.topic-heat {
  font-size: 13px;
  color: #B98A3E;
  white-space: nowrap;
}

/* 侧栏 */
.sidebar-block {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-block h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2328;
  padding-bottom: 8px;
  border-bottom: 2px solid #B98A3E;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links li a {
  font-size: 14px;
  color: #1F2328;
}

.sidebar-links li a:hover {
  color: #B98A3E;
}

/* 新手指南页 */
.guide-toc {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
  position: sticky;
  top: 80px;
}

.guide-toc h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2328;
  padding-bottom: 8px;
  border-bottom: 2px solid #B98A3E;
}

.toc-list > li {
  margin-bottom: 12px;
}

.toc-list > li > a {
  font-size: 15px;
  font-weight: 600;
  color: #1F2328;
}

.toc-list > li > a:hover {
  color: #B98A3E;
}

.toc-sub {
  margin-top: 6px;
  padding-left: 12px;
}

.toc-sub li {
  margin-bottom: 4px;
}

.toc-sub li a {
  font-size: 14px;
  color: #5E6B73;
}

.toc-sub li a:hover {
  color: #B98A3E;
}

.guide-content .faq-section {
  padding: 0;
  border-top: none;
  margin-bottom: 40px;
}

.guide-content .faq-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.guide-media {
  margin: 32px 0;
}

.guide-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
}

.guide-media figcaption {
  font-size: 13px;
  color: #5E6B73;
  margin-top: 8px;
}

.guide-content .related-links {
  margin-top: 0;
}

/* 社区规则页 */
.rule-summary {
  margin-bottom: 40px;
}

.rule-summary h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1F2328;
}

.rule-summary p {
  font-size: 15px;
  color: #1F2328;
  line-height: 1.7;
  margin-bottom: 16px;
}

.rule-groups {
  margin-bottom: 40px;
}

.rule-groups h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1F2328;
}

.rule-group-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.rule-group-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2328;
  padding-bottom: 8px;
  border-bottom: 2px solid #B98A3E;
}

.rule-list li {
  font-size: 14px;
  color: #1F2328;
  line-height: 1.6;
  padding: 6px 0;
  position: relative;
  padding-left: 16px;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background-color: #B98A3E;
  border-radius: 50%;
}

.rule-enforcement {
  margin-bottom: 40px;
}

.rule-enforcement h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1F2328;
}

.enforcement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.enforcement-col {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
}

.enforcement-col h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2328;
  padding-bottom: 8px;
  border-bottom: 2px solid #B98A3E;
}

.enforcement-list li {
  font-size: 14px;
  color: #1F2328;
  line-height: 1.6;
  padding: 6px 0;
}

.update-list {
  padding: 0;
}

.update-list li {
  font-size: 14px;
  color: #5E6B73;
  line-height: 1.6;
  padding: 6px 0;
  border-bottom: 1px solid #F4F2EE;
}

.update-list li:last-child {
  border-bottom: none;
}

.update-date {
  font-weight: 600;
  color: #1F2328;
  margin-right: 8px;
}

/* 侧栏通用 */
.content-side {
  width: 280px;
  flex-shrink: 0;
}

.side-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E1D8;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.side-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2328;
  padding-bottom: 8px;
  border-bottom: 2px solid #B98A3E;
}

.side-links li {
  margin-bottom: 8px;
}

.side-links li a {
  font-size: 14px;
  color: #1F2328;
}

.side-links li a:hover {
  color: #B98A3E;
}

/* 404 页 */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-height: 60vh;
}

.error-section {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #B98A3E;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-section h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1F2328;
}

.error-lead {
  font-size: 16px;
  color: #5E6B73;
  margin-bottom: 8px;
}

.error-tip {
  font-size: 14px;
  color: #5E6B73;
  margin-bottom: 24px;
}

.error-home-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #B98A3E;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
}

.error-home-btn:hover {
  background-color: #A87A32;
  color: #FFFFFF;
}

/* ==========================================================================
   pages — 页面专属微调
   ========================================================================== */

/* 首页 */
.home-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 版块总览页 */
.page-bankuai .layout-shell {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-bankuai .layout-shell > .main-content {
  flex: 1;
  min-width: 0;
}

.page-bankuai .layout-shell > .sidebar-right {
  width: 280px;
  flex-shrink: 0;
}

/* 热门话题页 */
.page-huatirenqi .page-layout.has-sidebar {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-huatirenqi .page-layout.has-sidebar > .hot-thread-list,
.page-huatirenqi .page-layout.has-sidebar > .heat-sort {
  flex: 1;
  min-width: 0;
}

.page-huatirenqi .page-layout.has-sidebar > .related-sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* 资料档案页 */
.page-ziliaodangan .layout-shell.sidebar-right {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-ziliaodangan .layout-shell.sidebar-right > .main-content {
  flex: 1;
  min-width: 0;
}

.page-ziliaodangan .layout-shell.sidebar-right > .sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* 作品讨论页 */
.page-zuopinhuati .layout-shell {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-zuopinhuati .layout-shell > .main-content {
  flex: 1;
  min-width: 0;
}

.page-zuopinhuati .layout-shell > .sidebar-content {
  width: 280px;
  flex-shrink: 0;
}

/* 人物介绍页 */
.page-renwujieshao .layout-shell.sidebar-left {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-renwujieshao .layout-shell.sidebar-left > .sidebar {
  width: 280px;
  flex-shrink: 0;
  order: 1;
}

.page-renwujieshao .layout-shell.sidebar-left > .main-content {
  flex: 1;
  min-width: 0;
  order: 2;
}

/* 新手指南页 */
.page-xinshouzhinan .page-layout.sidebar-left {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-xinshouzhinan .page-layout.sidebar-left > .guide-toc {
  width: 280px;
  flex-shrink: 0;
  order: 1;
}

.page-xinshouzhinan .page-layout.sidebar-left > .guide-content {
  flex: 1;
  min-width: 0;
  order: 2;
}

/* 社区规则页 */
.page-shequguize .page-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-shequguize .page-layout > .content-main {
  flex: 1;
  min-width: 0;
}

.page-shequguize .page-layout > .content-side {
  width: 280px;
  flex-shrink: 0;
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

/* 平板 */
@media (max-width: 1024px) {
  .layout-shell,
  .sidebar-right,
  .sidebar-left,
  .page-layout,
  .page-layout.has-sidebar {
    gap: 24px;
  }

  .layout-shell > .sidebar-right,
  .layout-shell > .sidebar,
  .sidebar-right > .sidebar,
  .sidebar-left > .sidebar,
  .page-layout > .content-side,
  .page-layout.sidebar-left > .guide-toc,
  .page-layout.has-sidebar > .related-sidebar,
  .page-bankuai .layout-shell > .sidebar-right,
  .page-ziliaodangan .layout-shell.sidebar-right > .sidebar,
  .page-zuopinhuati .layout-shell > .sidebar-content,
  .page-renwujieshao .layout-shell.sidebar-left > .sidebar,
  .page-xinshouzhinan .page-layout.sidebar-left > .guide-toc,
  .page-shequguize .page-layout > .content-side {
    width: 240px;
  }

  .hero-figure {
    flex-basis: 360px;
    max-width: 360px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
  }

  .brand-logo {
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E1D8;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: block;
  }

  .site-nav.is-open {
    max-height: 480px;
    overflow-y: auto;
  }

  .nav-list {
    display: block;
    padding: 8px 16px;
  }

  .nav-list li a {
    padding: 12px 8px;
    border-bottom: 1px solid #F4F2EE;
    border-bottom-color: #F4F2EE;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list li a.is-current {
    border-bottom-color: #B98A3E;
  }

  .cta-btn {
    display: block;
    margin: 12px 16px;
    text-align: center;
  }

  .footer-inner {
    padding: 32px 16px 16px;
    flex-direction: column;
    gap: 24px;
  }

  .footer-group {
    flex-basis: auto;
  }

  .footer-bottom {
    margin-top: 16px;
    padding-top: 16px;
  }

  .inner-main {
    padding: 24px 16px 40px;
  }

  .home-main {
    padding: 0 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .hero-section {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }

  .hero-copy {
    order: 2;
  }

  .hero-figure {
    order: 1;
    flex-basis: auto;
    max-width: 100%;
  }

  .hero-figure img {
    height: 200px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-actions {
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }

  .path-steps {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .swatch-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .sort-dimensions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .two-col-text {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topic-example-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .enforcement-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 侧栏布局在手机端改为上下堆叠 */
  .layout-shell,
  .sidebar-right,
  .sidebar-left,
  .page-layout,
  .page-layout.has-sidebar {
    flex-direction: column;
    gap: 24px;
  }

  .layout-shell > .sidebar-right,
  .layout-shell > .sidebar,
  .sidebar-right > .sidebar,
  .sidebar-left > .sidebar,
  .page-layout > .content-side,
  .page-layout.sidebar-left > .guide-toc,
  .page-layout.has-sidebar > .related-sidebar,
  .page-bankuai .layout-shell > .sidebar-right,
  .page-ziliaodangan .layout-shell.sidebar-right > .sidebar,
  .page-zuopinhuati .layout-shell > .sidebar-content,
  .page-renwujieshao .layout-shell.sidebar-left > .sidebar,
  .page-xinshouzhinan .page-layout.sidebar-left > .guide-toc,
  .page-shequguize .page-layout > .content-side {
    width: 100%;
    order: 3;
  }

  /* 手机端侧栏放在内容之后 */
  .sidebar-left > .main-content,
  .page-layout.sidebar-left > .guide-content,
  .page-renwujieshao .layout-shell.sidebar-left > .main-content,
  .page-xinshouzhinan .page-layout.sidebar-left > .guide-content {
    order: 1;
  }

  .sidebar-left > .sidebar,
  .page-layout.sidebar-left > .guide-toc,
  .page-renwujieshao .layout-shell.sidebar-left > .sidebar,
  .page-xinshouzhinan .page-layout.sidebar-left > .guide-toc {
    order: 2;
  }

  /* 首页内容顺序 */
  .content-media-primary {
    order: 0;
  }

  /* 表格在手机端横向滚动 */
  .table-wrap {
    overflow-x: auto;
  }

  .table-wrap table {
    min-width: 560px;
  }

  /* 话题列表 */
  .topic-item {
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
  }

  .topic-item a {
    flex-basis: 100%;
  }

  .thread-item {
    padding: 14px 16px;
  }

  .thread-meta {
    gap: 8px;
  }

  /* 颜色板 */
  .swatch-color {
    height: 56px;
  }

  /* FAQ */
  .faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq-item .faq-answer {
    padding: 0 16px 14px;
  }

  /* 内容区块 */
  .content-section {
    margin-bottom: 36px;
  }

  .content-section h2 {
    font-size: 20px;
  }

  .board-directory,
  .path-section,
  .hot-topics,
  .color-swatch-section,
  .faq-section {
    padding: 32px 0;
  }

  /* 图片高度 */
  .hero-figure img,
  .content-media-primary img,
  .board-figure img,
  .page-cover img,
  .content-figure img,
  .content-media-inline img,
  .guide-media img {
    height: 180px;
  }

  /* 侧栏卡片 */
  .sidebar-card,
  .sidebar-block,
  .side-card,
  .related-group,
  .guide-toc {
    padding: 16px;
  }

  /* 错误页 */
  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .path-steps {
    grid-template-columns: 1fr;
  }

  .swatch-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }

  .topic-example-list {
    grid-template-columns: 1fr;
  }

  .sort-dimensions {
    grid-template-columns: 1fr;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .two-col-text {
    grid-template-columns: 1fr;
  }

  .enforcement-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    font-size: 15px;
  }

  .page-title {
    font-size: 22px;
  }

  .footer-group h3 {
    font-size: 14px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
