/* ==========================================================================
   base / 基础变量与全局重置
   ========================================================================== */

:root {
  --color-primary: #ea580c;
  --color-primary-dark: #c2410c;
  --color-secondary: #0e7490;
  --color-secondary-dark: #155e75;
  --color-bg: #fef6f0;
  --color-card: #ffffff;
  --color-text: #1c1917;
  --color-text-light: #57534e;
  --color-border: #e7e5e4;
  --color-bg-soft: #fff7ed;
  --color-bg-muted: #f5f5f4;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --font-family: "MiSans", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-width: 1200px;
  --header-height: 64px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --shadow-card: 0 1px 3px rgba(28, 25, 23, 0.06), 0 4px 12px rgba(28, 25, 23, 0.04);
  --shadow-hover: 0 4px 8px rgba(28, 25, 23, 0.08), 0 8px 24px rgba(28, 25, 23, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style-position: inside;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout / 全站骨架布局
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 13px;
  color: var(--color-text-light);
  display: none;
}

.site-nav {
  margin-left: auto;
}

.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;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  line-height: 1.4;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-list a:hover {
  background-color: var(--color-bg-soft);
  color: var(--color-primary);
}

.nav-list a.is-current {
  color: var(--color-primary);
  background-color: var(--color-bg-soft);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  background-color: var(--color-text);
  color: #d6d3d1;
  margin-top: 56px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 36px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: #fafaf9;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  color: #d6d3d1;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fafaf9;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #a8a29e;
}

.footer-copy p {
  font-size: 13px;
  color: #a8a29e;
  line-height: 1.6;
}

/* ==========================================================================
   components / 通用组件
   ========================================================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-bg-soft);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* 区块标题 */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-more {
  font-size: 14px;
  color: var(--color-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.section-more:hover {
  color: var(--color-secondary-dark);
}

/* 文本链接 */
.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
  margin-top: 12px;
}

.text-link:hover {
  color: var(--color-secondary-dark);
}

/* 状态标签 */
.status-tag,
.forum-status,
.tag-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  line-height: 1.6;
  white-space: nowrap;
}

.status-tag.hot,
.forum-status.status-hot,
.tag-status.tag-hot {
  background-color: #fff1f2;
  color: #e11d48;
}

.status-tag.new,
.forum-status.status-new,
.tag-status.tag-new {
  background-color: #ecfeff;
  color: var(--color-secondary);
}

.status-tag.normal,
.forum-status.status-normal,
.tag-status.tag-normal {
  background-color: var(--color-bg-muted);
  color: var(--color-text-light);
}

/* 面包屑 */
.breadcrumb {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 14px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-secondary);
}

.breadcrumb a:hover {
  color: var(--color-secondary-dark);
}

.breadcrumb-sep {
  color: #a8a29e;
  user-select: none;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 24px 0;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.75;
  max-width: 720px;
}

/* 内容图片 */
figure {
  margin: 0;
}

.content-media,
.tags-overview-figure,
.page-figure,
.rules-hero-image,
.hero-media,
.step-figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-muted);
}

.content-media img,
.tags-overview-figure img,
.page-figure img,
.rules-hero-image img,
.hero-media img,
.step-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  padding: 10px 14px;
  background-color: var(--color-bg-muted);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   pages / 首页
   ========================================================================== */

.home-main {
  width: 100%;
}

/* 首屏 */
.hero-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 0;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-note {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.hero-note a {
  color: var(--color-secondary);
  font-weight: 500;
}

.hero-media {
  width: 100%;
  height: 0;
  padding-bottom: 66.67%;
  position: relative;
  background-color: var(--color-bg-muted);
}

.hero-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(28, 25, 23, 0.75);
  color: #fafaf9;
  border-top: none;
}

/* 版块网格 */
.forum-grid-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px 40px;
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.forum-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.forum-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.forum-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
}

.forum-card .forum-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0;
}

.forum-card .forum-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
}

.forum-card .status-tag {
  align-self: flex-start;
}

/* 热帖列表 */
.hot-list-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px 40px;
}

.hot-list {
  list-style: none;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 8px 0;
}

.hot-item {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.hot-item:last-child {
  border-bottom: none;
}

.hot-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.hot-title:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.hot-forum {
  font-size: 13px;
  color: var(--color-text-light);
  background-color: var(--color-bg-muted);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.hot-time {
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
  font-weight: 500;
}

/* 公告与规则 */
.announce-rules-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.announce-block,
.rules-preview {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.announce-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.announce-item {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.announce-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-bg-soft);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.6;
}

.announce-text {
  font-size: 15px;
  line-height: 1.6;
}

.rules-preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.rule-preview-item {
  list-style: none;
  padding-left: 0;
}

.rule-preview-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.rule-preview-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 参与引导 */
.participate-guide {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px 24px;
}

.participate-guide .section-title {
  margin-bottom: 24px;
}

.step-indicator {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.step-item {
  list-style: none;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-item.is-done {
  border-top: 3px solid var(--color-secondary);
}

.step-item.is-current {
  border-top: 3px solid var(--color-primary);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--color-bg-muted);
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.step-item.is-done .step-num {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.step-item.is-current .step-num {
  background-color: var(--color-primary);
  color: #ffffff;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.step-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ==========================================================================
   pages / 内页公共
   ========================================================================== */

.inner-main {
  width: 100%;
}

/* 版块导航页 */
.forum-groups,
.participate-tip,
.tags-overview,
.tag-sections,
.participate-note,
.progress-nav,
.guide-steps,
.posting-tips,
.faq-link-block,
.rule-list,
.violation-process,
.related-resources {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.forum-groups {
  padding-top: 24px;
  padding-bottom: 32px;
}

.content-media-inline {
  margin: 20px 0 28px;
  width: 100%;
  height: 260px;
}

.content-media-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forum-group {
  margin-bottom: 32px;
}

.forum-group-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-bg-soft);
}

.forum-group-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forum-row {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.forum-row:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.forum-row-info {
  flex: 1;
  min-width: 0;
}

.forum-row-info .forum-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.forum-row-info .forum-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participate-tip {
  padding-bottom: 48px;
}

.participate-tip .section-title {
  margin-bottom: 12px;
}

.participate-tip p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.participate-tip a {
  font-weight: 500;
}

/* 话题标签页 */
.tags-overview {
  padding-top: 24px;
  padding-bottom: 16px;
}

.tags-overview-figure {
  margin-top: 20px;
  height: 240px;
}

.tags-overview-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-sections {
  padding-top: 24px;
  padding-bottom: 32px;
}

.tag-block {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.tag-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.tag-name {
  font-size: 20px;
  font-weight: 600;
}

.tag-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.tag-posts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-posts li {
  list-style: none;
}

.tag-posts a {
  display: block;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.tag-posts a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tag-forum-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
}

.participate-note {
  padding-bottom: 48px;
}

.participate-note .section-title {
  margin-bottom: 12px;
}

.participate-note p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.participate-note a {
  font-weight: 500;
}

/* 新手指南页 */
.progress-nav {
  padding-top: 24px;
  padding-bottom: 16px;
}

.progress-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.progress-step {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.progress-step.is-done {
  border-color: var(--color-secondary);
}

.progress-step.is-current {
  border-color: var(--color-primary);
  background-color: var(--color-bg-soft);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--color-bg-muted);
  color: var(--color-text-light);
  flex-shrink: 0;
}

.progress-step.is-done .step-index {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.progress-step.is-current .step-index {
  background-color: var(--color-primary);
  color: #ffffff;
}

.step-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.guide-steps {
  padding-top: 16px;
  padding-bottom: 32px;
}

.guide-step-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.step-text h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.step-text a {
  font-weight: 500;
}

.step-figure {
  height: 200px;
}

.step-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.posting-tips {
  padding-bottom: 32px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.tip-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.tip-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tip-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.faq-link-block {
  padding-bottom: 48px;
}

.faq-link-block .section-title {
  margin-bottom: 12px;
}

.faq-link-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.faq-link-block a {
  font-weight: 500;
}

/* 社区规则页 */
.rules-hero-image {
  max-width: var(--container-width);
  margin: 24px auto 0;
  height: 240px;
  padding-left: 24px;
  padding-right: 24px;
}

.rules-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.rule-list {
  padding-top: 32px;
  padding-bottom: 32px;
}

.rule-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.rule-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.rule-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.rule-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-item li {
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
  padding-left: 18px;
  position: relative;
}

.rule-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.violation-process {
  padding-bottom: 32px;
}

.process-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-step {
  list-style: none;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.process-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-top: 32px;
  position: relative;
}

.process-step h3::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-bg-soft);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

.process-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.related-resources {
  padding-bottom: 32px;
}

.related-resources p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.related-resources a {
  font-weight: 500;
}

.related-links {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 8px 24px 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.related-links-item {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.related-links-item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* 帮助与反馈页 */
.page-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.page-layout .content-main {
  min-width: 0;
}

.page-layout .breadcrumb {
  padding: 16px 0 0;
  max-width: none;
}

.page-layout .page-header {
  padding: 24px 0 0;
  max-width: none;
}

.page-figure {
  margin: 24px 0;
  height: 220px;
}

.page-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-section {
  margin-top: 8px;
}

.faq-category {
  margin-bottom: 28px;
}

.faq-category h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-bg-soft);
}

.faq-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-light);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary {
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding: 0 18px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.related-help {
  margin-top: 8px;
}

.help-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.help-link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.help-link-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.help-link-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.help-link-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.content-side {
  min-width: 0;
}

.side-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.side-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.side-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.channel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.channel-list li {
  list-style: none;
}

.channel-list h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.channel-list p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.side-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   pages / 404
   ========================================================================== */

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.error-inner {
  text-align: center;
  max-width: 480px;
}

.error-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.error-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  min-height: 44px;
  transition: background-color var(--transition-fast);
}

.error-action:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

/* ==========================================================================
   responsive / 响应式
   ========================================================================== */

@media (min-width: 769px) {
  .brand-slogan {
    display: inline;
  }
}

@media (max-width: 1024px) {
  .forum-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-indicator {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .content-side {
    order: 2;
  }

  .guide-step-item {
    grid-template-columns: 1fr;
  }

  .step-figure {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    width: 100%;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  .nav-list a.is-current {
    background-color: var(--color-bg-soft);
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-media {
    padding-bottom: 66.67%;
  }

  .forum-grid-section,
  .hot-list-section,
  .announce-rules-section,
  .participate-guide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .forum-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .forum-card img {
    height: 120px;
  }

  .hot-item {
    gap: 8px;
  }

  .hot-title {
    min-width: 100%;
    order: 1;
  }

  .hot-forum {
    order: 2;
  }

  .hot-time {
    order: 3;
  }

  .announce-rules-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-indicator {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-actions .btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 28px;
  }

  .footer-col.footer-copy {
    order: 3;
  }

  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-description {
    font-size: 15px;
  }

  .forum-groups,
  .participate-tip,
  .tags-overview,
  .tag-sections,
  .participate-note,
  .progress-nav,
  .guide-steps,
  .posting-tips,
  .faq-link-block,
  .rule-list,
  .violation-process,
  .related-resources {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-media-inline {
    height: 200px;
  }

  .forum-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .forum-row-info .forum-desc {
    white-space: normal;
  }

  .tags-overview-figure {
    height: 180px;
  }

  .tag-block {
    padding: 16px;
  }

  .progress-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rule-item {
    padding: 16px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-links {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-layout {
    padding-left: 16px;
    padding-right: 16px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-layout .breadcrumb {
    padding-left: 0;
    padding-right: 0;
  }

  .page-layout .page-header {
    padding-left: 0;
    padding-right: 0;
  }

  .page-figure {
    height: 180px;
  }

  .help-links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .content-side {
    order: 2;
  }

  .rules-hero-image {
    padding-left: 16px;
    padding-right: 16px;
    height: 180px;
  }

  .guide-step-item {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .step-figure {
    height: 160px;
  }

  .error-main {
    padding: 40px 16px;
  }

  .error-title {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .brand-slogan {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .section-title {
    font-size: 20px;
  }

  .hot-item {
    padding: 10px 14px;
  }

  .announce-block,
  .rules-preview {
    padding: 16px;
  }

  .forum-card {
    padding: 14px;
  }

  .tag-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .step-num {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .process-step h3 {
    padding-top: 28px;
  }
}
