/* ============================================================
   qipaoa.cn — 全站样式表
   视觉方向：开源项目风 / 社区 README
   ============================================================ */

/* ------------------------------------------------------------
   Base — 基础变量、重置、全局元素
   ------------------------------------------------------------ */
:root {
  --bg: #faf9f7;
  --text: #1f2328;
  --accent: #b45309;
  --accent-dark: #92400e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --code-bg: #f3f4f6;
  --white: #ffffff;
  --radius: 8px;
  --container: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

p {
  margin-bottom: 0.5rem;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 等宽字体辅助类 */
.mono,
.board-status,
.reply-count,
.timeline-date,
.post-rank,
.step-num,
.step-number,
.related-links-label {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

/* 视觉隐藏 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  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-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.home-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

.inner-main {
  padding-top: 24px;
  padding-bottom: 64px;
}

/* 内页布局壳 */
.layout-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.layout-shell.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}

.layout-shell.sidebar-right {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

/* 页面标题区 */
.page-header {
  padding: 24px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.page-title {
  font-size: 30px;
  color: var(--text);
  margin-bottom: 8px;
}

.page-description {
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 8px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #d1d5db;
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--text);
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* 图片容器 */
.content-media {
  margin: 20px 0;
}

.content-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.content-media figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0 0;
  line-height: 1.5;
}

.content-media-primary {
  margin: 24px 0;
}

.content-media-primary img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.content-media-inline {
  margin: 16px 0 24px;
}

.content-media-inline img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* 相关链接条 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.related-links-label {
  color: var(--muted);
  font-size: 13px;
}

.related-links-item {
  color: var(--accent);
  padding: 4px 10px;
  background: var(--code-bg);
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  background: #e5e7eb;
  color: var(--accent-dark);
}

/* ------------------------------------------------------------
   Components — 通用组件
   ------------------------------------------------------------ */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 页头 */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 12px;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  min-height: 44px;
}

.nav-toggle-icon {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text);
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-list li {
  flex-shrink: 0;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background: var(--code-bg);
  color: var(--accent);
}

.nav-list a.is-current {
  background: var(--code-bg);
  color: var(--accent);
  font-weight: 500;
}

/* 页脚 */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-boundary p:last-child {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: var(--container);
  margin: 0 auto;
}

/* 版块卡片 */
.board-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.board-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.board-name {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
}

.board-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.board-status {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 折叠问答 */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* 提示条 */
.boundary-tip {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.tip-mark {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* 步骤条（首页） */
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}

.step-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.step-num {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.step-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* 时间线 */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.timeline-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------
   Pages — 首页
   ------------------------------------------------------------ */

/* 首屏 */
.hero-section {
  margin-bottom: 40px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero-intro h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-boards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero-figure {
  margin: 32px 0 0;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* 最新话题流 */
.latest-topics {
  margin-bottom: 48px;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.topic-item:hover {
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.topic-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.topic-title a {
  color: var(--text);
}

.topic-title a:hover {
  color: var(--accent);
}

.topic-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.reply-count {
  font-size: 12px;
  color: var(--accent);
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 科普入口 */
.kepu-entry {
  margin-bottom: 48px;
}

.kepu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kepu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.kepu-card:hover {
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.kepu-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}

.kepu-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* 参与流程 */
.howto-steps {
  margin-bottom: 48px;
}

/* 更新记录 */
.changelog {
  margin-bottom: 48px;
}

/* FAQ 摘选 */
.faq-preview {
  margin-bottom: 48px;
}

.faq-all-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* ------------------------------------------------------------
   Pages — 话题版块 huati
   ------------------------------------------------------------ */
.page-huati .layout-shell.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.group-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.group-nav-list a:hover {
  background: var(--code-bg);
  color: var(--accent);
}

.board-section {
  margin-bottom: 36px;
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.participation-note {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.participation-note p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.participation-note p + p {
  margin-top: 8px;
}

/* ------------------------------------------------------------
   Pages — 热帖精选 retic
   ------------------------------------------------------------ */
.rank-note {
  margin-bottom: 28px;
}

.rank-note p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.hot-list-section {
  margin-bottom: 32px;
}

.hot-list-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.hot-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hot-post-item {
  list-style: none;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.post-rank {
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  min-width: 32px;
  line-height: 1.3;
}

.post-content {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.post-title a {
  color: var(--text);
}

.post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.post-board {
  font-size: 12px;
  color: var(--accent);
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.post-replies {
  font-size: 12px;
  color: var(--muted);
}

.join-prompt {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.join-prompt h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.join-prompt p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.join-prompt p + p {
  margin-top: 8px;
}

.join-prompt a {
  font-weight: 500;
}

.btn-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-link:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ------------------------------------------------------------
   Pages — 主题科普 kepu
   ------------------------------------------------------------ */
.page-kepu .layout-shell {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.layout-main {
  min-width: 0;
}

.science-section {
  margin-bottom: 40px;
}

.science-section > h2 {
  font-size: 22px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.science-section > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.science-block {
  margin-top: 20px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.science-block h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.science-block p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.myth-section {
  margin-bottom: 40px;
}

.myth-section > h2 {
  font-size: 22px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.myth-section > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.myth-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.myth-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.myth-list h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.myth-list li p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.myth-list .verify-method {
  font-size: 13px;
  color: var(--accent);
  background: var(--code-bg);
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.6;
}

.related-boards {
  margin-top: 32px;
}

.related-boards h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.related-boards > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.board-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.board-link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.board-link-card:hover {
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.board-link-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.board-link-desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.layout-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.aside-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-list a {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.aside-list a:hover {
  background: var(--code-bg);
  color: var(--accent);
}

/* ------------------------------------------------------------
   Pages — 参与指南 zhinan
   ------------------------------------------------------------ */
.guide-flow {
  margin-bottom: 40px;
}

.guide-flow > h2 {
  font-size: 22px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.section-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-head h3 {
  font-size: 16px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
  margin-left: 40px;
}

.step-note {
  font-size: 13px;
  color: var(--accent);
  background: var(--code-bg);
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.6;
  margin-left: 40px;
}

.step-link {
  display: inline-block;
  margin-left: 40px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* 发帖前边界提示 */
.boundary-tip .tip-banner {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.tip-text {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.tip-link {
  font-size: 14px;
  font-weight: 500;
}

/* 相关链接卡片 */
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.related-card-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.related-card-desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Pages — 社区边界 bianjie
   ------------------------------------------------------------ */
.page-figure {
  margin: 0 0 24px;
}

.page-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.page-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0 0;
}

.page-bianjie .layout-shell.sidebar-left {
  grid-template-columns: 1fr;
}

.boundary-rules {
  margin-bottom: 40px;
}

.boundary-rules > h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.rule-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rule-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.rule-col h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.rule-col-allow h3 {
  color: #166534;
}

.rule-col-forbid h3 {
  color: #b91c1c;
}

.rule-col-handle h3 {
  color: var(--accent);
}

.rule-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-col li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.rule-col li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.handle-flow {
  margin-bottom: 40px;
}

.handle-flow > h2 {
  font-size: 22px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.section-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.handle-flow .flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.handle-flow .flow-step {
  padding: 20px;
}

.handle-flow .step-num {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.handle-flow .step-body h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.handle-flow .step-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.related-entry {
  margin-bottom: 24px;
}

.related-entry > h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.entry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.entry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.entry-card:hover {
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.entry-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.entry-desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Pages — 常见问题 faq
   ------------------------------------------------------------ */
.page-faq .page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.faq-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.faq-catalog {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-catalog a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-catalog a:hover {
  background: var(--code-bg);
  color: var(--accent);
}

.faq-sidebar-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 16px;
}

.faq-content {
  min-width: 0;
}

.faq-section {
  margin-bottom: 32px;
}

.faq-section > h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.faq-uncovered {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.faq-uncovered h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.faq-uncovered p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.text-link {
  font-size: 14px;
  font-weight: 500;
}

/* ------------------------------------------------------------
   Pages — 反馈建议 fankui
   ------------------------------------------------------------ */
.page-fankui .layout-shell.sidebar-right {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.feedback-process {
  margin-bottom: 40px;
}

.feedback-process .section-title {
  font-size: 22px;
}

.feedback-process .section-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process-step .step-number {
  flex-shrink: 0;
}

.process-step .step-body {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.process-note {
  font-size: 13px;
  color: var(--muted);
  background: var(--code-bg);
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 16px;
  line-height: 1.6;
}

.feedback-checklist {
  margin-bottom: 40px;
}

.feedback-checklist .section-title {
  font-size: 22px;
}

.feedback-checklist .section-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.check-icon {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.check-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.result-note {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.result-note h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.result-note p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.result-note a {
  font-weight: 500;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-card h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.sidebar-card a {
  font-size: 13px;
  font-weight: 500;
}

.feedback-figure {
  margin: 0;
  padding: 0 24px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.feedback-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ------------------------------------------------------------
   Pages — 404 错误页
   ------------------------------------------------------------ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-wrap {
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.error-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-wrap h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.error-btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.error-more {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* ------------------------------------------------------------
   Responsive — 响应式断点
   ------------------------------------------------------------ */

/* 1024px */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 480px;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    padding: 12px 8px;
    font-size: 15px;
    border-radius: 0;
    white-space: normal;
  }

  .nav-list a.is-current {
    background: var(--code-bg);
    border-radius: 4px;
  }

  .brand-slogan {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kepu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-list {
    grid-template-columns: 1fr 1fr;
  }

  .rule-columns {
    grid-template-columns: 1fr;
  }

  .handle-flow .flow-steps {
    grid-template-columns: 1fr;
  }

  .page-faq .page-layout.sidebar-left {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    display: none;
  }

  .page-kepu .layout-shell {
    grid-template-columns: 1fr;
  }

  .layout-aside {
    display: none;
  }

  .page-fankui .layout-shell.sidebar-right {
    grid-template-columns: 1fr;
  }

  .sidebar-content {
    display: none;
  }

  .page-huati .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
  }

  .sidebar-groups {
    display: none;
  }

  .layout-shell.sidebar-left,
  .layout-shell.sidebar-right {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* 768px */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .site-main {
    padding: 0 16px;
  }

  .home-main {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .inner-main {
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .page-title {
    font-size: 28px;
  }

  .hero-intro h1 {
    font-size: 28px;
  }

  .kepu-grid {
    grid-template-columns: 1fr;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .related-cards {
    grid-template-columns: 1fr;
  }

  .entry-cards {
    grid-template-columns: 1fr;
  }

  .board-links {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  .breadcrumb {
    padding-top: 12px;
  }

  .page-header {
    padding-top: 16px;
  }

  .content-media-inline {
    margin: 12px 0 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .post-card {
    flex-direction: column;
    gap: 8px;
  }

  .post-rank {
    min-width: auto;
  }

  .process-step {
    flex-direction: column;
    gap: 8px;
  }

  .step-desc,
  .step-note,
  .step-link {
    margin-left: 0;
  }

  .flow-step {
    padding: 16px;
  }

  .rule-col {
    padding: 16px;
  }

  .feedback-figure {
    padding: 0 16px 16px;
  }
}

/* 480px */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  body {
    font-size: 14px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle-text {
    display: none;
  }

  .nav-toggle {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .header-inner {
    height: 56px;
  }

  .site-nav {
    top: 56px;
  }

  .hero-section {
    margin-bottom: 24px;
  }

  .hero-intro h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-boards {
    grid-template-columns: 1fr;
  }

  .board-card {
    padding: 16px;
  }

  .topic-item {
    padding: 14px 16px;
  }

  .post-card {
    padding: 14px 16px;
  }

  .join-prompt,
  .participation-note,
  .faq-uncovered,
  .result-note {
    padding: 16px;
  }

  .faq-item summary {
    padding: 14px 16px;
    padding-right: 36px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 16px 12px;
    font-size: 13px;
  }

  .timeline-item {
    padding-left: 16px;
  }

  .related-links {
    gap: 8px;
    padding: 16px 0;
  }

  .related-links-item {
    padding: 4px 8px;
    font-size: 12px;
  }

  .science-block,
  .myth-list li,
  .flow-step,
  .rule-col {
    padding: 14px 16px;
  }

  .myth-list .verify-method {
    font-size: 12px;
  }

  .checklist-item {
    padding: 12px 14px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-wrap h1 {
    font-size: 20px;
  }
}
