/* =========================================================
   91黑料网 - 整站样式表
   年轻内容社区风：青绿主色 + 明黄点缀
   ========================================================= */

/* =========================================================
   Base - 基础变量、重置、全局排版
   ========================================================= */
:root {
  --primary: #0E9F8C;
  --primary-dark: #0B6B5F;
  --primary-light: #E6F5F2;
  --accent: #F5B30B;
  --accent-light: #FDF3D8;
  --text-main: #1E293B;
  --text-secondary: #5B6B7F;
  --bg-page: #F5F7FA;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-hover: #B8C4D0;
  --radius-sm: 6px;
  --radius-md: 8px;
  --container-width: 1140px;
  --content-width: 720px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-main);
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 23px;
}

h3 {
  font-size: 18px;
}

p {
  color: var(--text-secondary);
}

figure {
  margin: 0;
}

/* =========================================================
   Layout - 全站骨架：页头、页脚、容器、面包屑
   ========================================================= */

/* 页头 */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.brand:hover .brand-name {
  color: var(--primary-dark);
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: var(--primary-dark);
  background-color: var(--primary-light);
}

.nav-list li a.is-current {
  color: var(--primary-dark);
  background-color: var(--primary-light);
  font-weight: 600;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 主内容 */
.site-main {
  flex: 1 0 auto;
}

/* 面包屑 */
.breadcrumb {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--primary-dark);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--border-hover);
}

.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* 页脚 */
.site-footer {
  background-color: var(--text-main);
  color: #CBD5E1;
  margin-top: 64px;
  flex-shrink: 0;
}

.footer-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #F1F5F9;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  font-size: 14px;
  color: #94A3B8;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #64748B;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* =========================================================
   Components - 通用组件：按钮、标签、卡片、步骤、折叠、表格
   ========================================================= */

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 159, 140, 0.25);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

a.tag:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* 更多链接 */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 8px 0;
}

.more-link::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.2s ease;
}

.more-link:hover::after {
  transform: translateX(4px);
}

/* 编号步骤条 */
.guide-step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.guide-step {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-step:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-text h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-text p {
  font-size: 14px;
  line-height: 1.6;
}

/* 折叠面板 */
.rules-accordion {
  margin-top: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rule-item {
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-card);
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.2s ease;
}

.rule-item summary::-webkit-details-marker {
  display: none;
}

.rule-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.rule-item[open] summary::after {
  transform: rotate(45deg);
}

.rule-item summary:hover {
  background-color: var(--primary-light);
}

.rule-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
}

.board-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.board-table th,
.board-table td,
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-light);
}

.board-table thead th,
.compare-table thead th {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.board-table tbody tr,
.compare-table tbody tr {
  transition: background-color 0.2s ease;
}

.board-table tbody tr:hover,
.compare-table tbody tr:hover {
  background-color: #F8FAFC;
}

.board-table tbody tr:last-child td,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* 图片容器 */
.content-figure,
.rank-figure,
.guide-figure,
.boundary-figure,
.topic-media,
.hero-figure,
.entry-figure,
.about-figure {
  margin: 32px 0;
}

.content-figure img,
.rank-figure img,
.guide-figure img,
.boundary-figure img,
.topic-media img,
.hero-figure img,
.entry-figure img,
.about-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.content-figure figcaption,
.rank-figure figcaption,
.guide-figure figcaption,
.boundary-figure figcaption,
.topic-media figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* =========================================================
   Pages - 首页
   ========================================================= */

/* Hero 区 */
.hero-section {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.hero-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

/* 版块总览卡片区 */
.section-board-overview {
  padding: 56px 0 0;
}

.section-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 23px;
  margin-bottom: 8px;
}

.section-heading p {
  font-size: 15px;
  max-width: 640px;
}

.board-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.board-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.board-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.board-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.board-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.board-card .tag {
  margin-bottom: 12px;
}

.board-card a {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.board-card a:hover {
  text-decoration: underline;
}

/* 热帖排行 + 话题广场双栏 */
.section-hot-topic-square {
  padding: 56px 0 0;
}

.dual-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hot-topics-preview,
.topic-square-entry {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
}

.hot-topics-preview h2,
.topic-square-entry h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.hot-topics-preview > p,
.topic-square-entry > p {
  font-size: 14px;
  margin-bottom: 20px;
}

.hot-topic-list {
  margin-bottom: 20px;
}

.hot-topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.hot-topic-item:last-child {
  border-bottom: none;
}

.topic-label {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.topic-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
  min-width: 120px;
}

.reply-tag {
  font-size: 12px;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  padding: 2px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.heat-level {
  font-size: 12px;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 2px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.hot-topic-item a {
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.entry-figure {
  margin: 0 0 16px;
}

.entry-figure img {
  aspect-ratio: 16 / 9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-row .tag {
  font-size: 13px;
}

/* 发帖指南步骤区 */
.section-posting-guide {
  padding: 56px 0 0;
}

/* 社区规则折叠摘要 */
.section-rules-summary {
  padding: 56px 0 0;
}

/* 站点说明与反馈双卡 */
.section-about-feedback {
  padding: 56px 0 0;
}

.dual-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.info-card h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* =========================================================
   Pages - 内页通用
   ========================================================= */

.inner-main {
  padding-bottom: 48px;
}

/* 页面标题区 */
.page-header {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-description {
  font-size: 15px;
  line-height: 1.8;
  max-width: 720px;
}

/* 内页正文容器 */
.page-content,
.content-wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 内页区块标题 */
.section-title {
  font-size: 21px;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 720px;
}

/* 相关链接 */
.related-links {
  margin-top: 48px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border-light);
}

.related-links .section-title,
.related-title {
  font-size: 19px;
  margin-bottom: 16px;
}

.related-links ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.related-links ul li:last-child {
  border-bottom: none;
}

.related-links ul li a {
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

.related-links ul li span,
.related-links ul li p,
.related-links ul li .related-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: block;
}

/* =========================================================
   Pages - 版块总览页
   ========================================================= */

.question-list-section {
  margin-bottom: 48px;
}

.question-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.question-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.question-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.question-text {
  font-size: 14px;
  line-height: 1.6;
}

.board-compare-section {
  margin-bottom: 48px;
}

.check-steps-section {
  margin-bottom: 48px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 10px;
}

.step-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   Pages - 话题广场页
   ========================================================= */

.page-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-main .breadcrumb {
  padding: 20px 0 0;
}

.content-main .page-header {
  padding: 24px 0;
}

/* 筛选标签 */
.filter-section {
  margin-bottom: 24px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-tags li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-tags li a:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

/* 话题分组 */
.topic-group-section {
  margin-top: 32px;
}

.topic-group {
  margin-bottom: 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.group-title {
  font-size: 17px;
  color: var(--primary-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.topic-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.topic-list li:last-child {
  border-bottom: none;
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topic-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
  min-width: 140px;
}

.topic-link:hover {
  color: var(--primary-dark);
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topic-meta .reply-tag,
.topic-meta .heat-tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
}

.heat-tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
}

.heat-stable {
  color: var(--primary-dark);
  background-color: var(--primary-light);
}

.heat-active {
  color: var(--accent);
  background-color: var(--accent-light);
}

.heat-concentrated {
  color: #C2410C;
  background-color: #FFF7ED;
}

/* 右侧参与指南 */
.content-aside {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 84px;
}

.guide-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.guide-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.guide-steps {
  margin-bottom: 20px;
}

.guide-steps .guide-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  background: none;
  border-radius: 0;
}

.guide-steps .guide-step:last-child {
  border-bottom: none;
}

.guide-steps .step-num {
  width: 28px;
  height: 28px;
  font-size: 13px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.step-body h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 13px;
  line-height: 1.6;
}

.guide-note {
  font-size: 13px;
  line-height: 1.6;
  padding: 12px;
  background-color: var(--primary-light);
  border-radius: var(--radius-sm);
}

.guide-note a {
  font-weight: 600;
}

/* =========================================================
   Pages - 热帖排行页
   ========================================================= */

.rank-intro {
  margin-bottom: 32px;
}

.rank-intro h2 {
  font-size: 21px;
  margin-bottom: 8px;
}

.rank-intro p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 720px;
}

.rank-list-section {
  margin-bottom: 48px;
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.rank-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.rank-board {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.rank-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 8px;
}

.rank-tag-hot {
  color: var(--accent);
  background-color: var(--accent-light);
}

.rank-tag-normal {
  color: var(--primary-dark);
  background-color: var(--primary-light);
}

.rank-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.rank-link:hover {
  text-decoration: underline;
}

/* 参与路径 */
.join-path {
  margin-bottom: 48px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.path-step {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.path-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 10px;
}

.path-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.path-step p {
  font-size: 14px;
  line-height: 1.6;
}

.join-note {
  font-size: 14px;
  line-height: 1.7;
  padding: 16px 20px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
}

.join-note a {
  font-weight: 600;
}

/* =========================================================
   Pages - 发帖指南页
   ========================================================= */

.guide-section {
  margin-bottom: 48px;
}

/* 准备清单 */
.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-text h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.check-text p {
  font-size: 14px;
  line-height: 1.6;
}

/* 写作对照 */
.writing-compare {
  display: grid;
  gap: 24px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-col {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.compare-good {
  border-left: 3px solid var(--primary);
}

.compare-weak {
  border-left: 3px solid var(--accent);
}

.compare-col h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.compare-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-left: 16px;
}

.compare-list li:last-child {
  border-bottom: none;
}

.compare-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 700;
}

/* 发布步骤 */
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.steps-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 10px;
}

.steps-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.steps-item p {
  font-size: 14px;
  line-height: 1.6;
}

/* FAQ 折叠 */
.faq-panel {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-card);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background-color: var(--primary-light);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =========================================================
   Pages - 社区规则页
   ========================================================= */

.rule-summary {
  margin-bottom: 48px;
}

.summary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.summary-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.summary-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.summary-text {
  font-size: 14px;
  line-height: 1.6;
}

.rules-compare {
  margin-bottom: 48px;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
}

.compare-table td {
  font-size: 14px;
  line-height: 1.6;
}

.violation-process {
  margin-bottom: 48px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-step {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.process-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 10px;
}

.step-body .step-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.step-body .step-text {
  font-size: 14px;
  line-height: 1.6;
}

.boundary-section {
  margin-bottom: 48px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.boundary-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.boundary-item-title {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.boundary-item-text {
  font-size: 14px;
  line-height: 1.6;
}

.boundary-guide {
  font-size: 14px;
  line-height: 1.7;
  padding: 16px 20px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
}

.boundary-guide a {
  font-weight: 600;
}

/* 相关链接（社区规则页） */
.related-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.related-item:last-child {
  border-bottom: none;
}

.related-item a {
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

.related-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   Pages - 站点说明页
   ========================================================= */

.about-section {
  margin-bottom: 40px;
}

.about-section .section-title {
  margin-bottom: 12px;
}

.section-text {
  font-size: 15px;
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-item {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  border-radius: 999px;
}

/* 栏目导航列表 */
.nav-entry-list {
  display: grid;
  gap: 12px;
}

.nav-entry-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nav-entry-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.nav-entry-item a {
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

.entry-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   Pages - 404 页
   ========================================================= */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1;
}

.error-panel {
  text-align: center;
  max-width: 480px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 48px 40px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-action {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  background-color: var(--primary);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.error-action:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
}

/* =========================================================
   Responsive - 响应式断点
   ========================================================= */

/* 平板：1024px */
@media (max-width: 1024px) {
  .board-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .guide-step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机：768px */
@media (max-width: 768px) {
  .header-shell {
    height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
  }

  /* Hero */
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 32px;
  }

  .hero-title {
    font-size: 26px;
  }

  /* 双栏变单栏 */
  .dual-column,
  .dual-card {
    grid-template-columns: 1fr;
  }

  /* 版块卡片 */
  .board-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .board-card {
    padding: 20px;
  }

  /* 话题广场布局 */
  .layout-shell {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    margin-top: 32px;
  }

  /* 步骤条 */
  .guide-step-list {
    grid-template-columns: 1fr 1fr;
  }

  /* 内页容器 */
  .page-content,
  .content-wrap,
  .page-shell,
  .section-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-header {
    padding: 24px 16px 20px;
  }

  .breadcrumb {
    padding: 16px 16px 0;
  }

  /* 问题清单 */
  .question-list {
    grid-template-columns: 1fr;
  }

  .steps-list {
    grid-template-columns: 1fr 1fr;
  }

  .path-steps {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  /* 写作对照 */
  .compare-row {
    grid-template-columns: 1fr;
  }

  /* 准备清单 */
  .check-list {
    grid-template-columns: 1fr;
  }

  /* 规则摘要 */
  .summary-list {
    grid-template-columns: 1fr;
  }

  /* 边界列表 */
  .boundary-list {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  /* 站点说明标签 */
  .tag-list {
    gap: 8px;
  }

  .tag-item {
    font-size: 13px;
    padding: 4px 12px;
  }
}

/* 小手机：480px */
@media (max-width: 480px) {
  .board-card-grid {
    grid-template-columns: 1fr;
  }

  .guide-step-list {
    grid-template-columns: 1fr;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .hot-topic-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .topic-name {
    min-width: 0;
  }

  .topic-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .topic-link {
    min-width: 0;
  }

  .rank-item {
    flex-direction: column;
    gap: 12px;
  }

  .rank-order {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 48px;
  }
}
