/* ============================================================
   base — 基础变量、重置与全局排版
   ============================================================ */
:root {
  --ink: #1f2430;
  --paper: #f7f3ea;
  --card: #ffffff;
  --accent: #e8613c;
  --green: #3d7a6a;
  --gold: #f0c75e;
  --line: #d9d2c5;
  --ink-soft: #4a5160;
  --ink-faint: #6b7280;
  --header-h: 64px;
  --container-w: 1200px;
  --radius: 8px;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  color: var(--ink-soft);
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* 通用容器 */
.site-header .header-inner,
.site-main,
.site-footer .footer-inner {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 视觉隐藏，用于需要保留给读屏的标题 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 通用段落间距 */
p + p {
  margin-top: 12px;
}

/* ============================================================
   layout — 全站骨架布局
   ============================================================ */

/* 页头 */
.site-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--accent);
}

/* 主导航 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 6px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 600;
  border-color: var(--accent);
  background-color: rgba(232, 97, 60, 0.06);
}

/* 汉堡按钮（默认隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background-color: var(--card);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 页脚 */
.site-footer {
  background-color: var(--card);
  border-top: 1px solid var(--line);
  margin-top: 64px;
}

.footer-inner {
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-tagline {
  font-size: 15px;
  color: var(--ink-faint);
  margin-bottom: 24px;
  max-width: 560px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}

.footer-helper a {
  font-size: 14px;
  color: var(--ink-faint);
}

.footer-helper a:hover {
  color: var(--accent);
}

.copyright {
  font-size: 13px;
  color: var(--ink-faint);
}

/* 主内容区 */
.site-main {
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: 60vh;
}

/* 内页主容器 */
.inner-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--ink-faint);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
}

/* ============================================================
   components — 通用组件
   ============================================================ */

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background-color: var(--accent);
}

.section-intro {
  font-size: 15px;
  color: var(--ink-faint);
  margin-bottom: 24px;
  max-width: 720px;
}

/* 更多链接 */
.more-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.more-link:hover {
  background-color: var(--accent);
  color: #fff;
}

/* 题材标签 */
.tag {
  display: inline-block;
  font-size: 13px;
  color: var(--green);
  background-color: rgba(61, 122, 106, 0.1);
  border: 1px solid rgba(61, 122, 106, 0.25);
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 提示框 */
.tip-box {
  background-color: rgba(61, 122, 106, 0.08);
  border: 1px solid rgba(61, 122, 106, 0.25);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.tip-box a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.tip-box a:hover {
  border-bottom-color: var(--accent);
}

/* 相关入口卡片 */
.related-grid,
.related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(31, 36, 48, 0.08);
  transform: translateY(-2px);
}

.related-card h3,
.related-card .related-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}

.related-card p,
.related-card .related-card-desc {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
  display: block;
}

.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* 图片容器通用约束 */
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================================
   components — 首页场景选择
   ============================================================ */

.scene-select {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  background-color: var(--ink);
  padding: 56px 48px 48px;
}

.scene-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.scene-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.scene-select::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 36, 48, 0.6) 0%, rgba(31, 36, 48, 0.3) 100%);
  z-index: 1;
}

.scene-heading,
.scene-subtitle,
.scene-cards {
  position: relative;
  z-index: 2;
}

.scene-heading {
  color: #fff;
  font-size: 32px;
  margin-bottom: 8px;
}

.scene-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 640px;
}

.scene-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scene-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.scene-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(31, 36, 48, 0.15);
}

.scene-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.scene-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.scene-card-desc {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
  flex-grow: 1;
}

.scene-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.scene-link:hover {
  border-bottom-color: var(--accent);
}

/* ============================================================
   components — 首页最近更新
   ============================================================ */

.recent-updates {
  margin-bottom: 48px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-item {
  display: flex;
  align-items: stretch;
  gap: 24px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.15s ease;
}

.update-item:hover {
  border-color: var(--accent);
}

.update-date {
  flex-shrink: 0;
  width: 88px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  padding-top: 4px;
  line-height: 1.4;
}

.update-content {
  display: flex;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.update-content img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.update-info {
  min-width: 0;
}

.update-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.update-info .tag {
  margin-bottom: 8px;
}

.update-desc {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ============================================================
   components — 首页题材索引
   ============================================================ */

.topic-index {
  margin-bottom: 48px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.topic-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.topic-desc {
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
  flex-grow: 1;
}

.topic-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.topic-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

/* ============================================================
   components — 首页榜单预览
   ============================================================ */

.rank-preview {
  margin-bottom: 48px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 20px;
  transition: border-color 0.15s ease;
}

.rank-item:hover {
  border-color: var(--accent);
}

.rank-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  width: 48px;
  flex-shrink: 0;
  text-align: center;
  font-style: italic;
}

.rank-item:first-child .rank-number {
  color: var(--accent);
}

.rank-item img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.rank-info .tag {
  margin-bottom: 4px;
}

.rank-desc {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ============================================================
   components — 首页阅读提示
   ============================================================ */

.reading-tip {
  margin-bottom: 48px;
  background-color: rgba(61, 122, 106, 0.06);
  border: 1px solid rgba(61, 122, 106, 0.2);
  border-radius: var(--radius);
  padding: 32px;
}

.tip-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tip-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.step-desc {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ============================================================
   components — 首页编辑部摘要
   ============================================================ */

.editor-pick {
  margin-bottom: 48px;
}

.editor-note {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 760px;
}

.note-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.note-date {
  display: block;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.note-excerpt {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ============================================================
   components — 首页反馈条
   ============================================================ */

.feedback-strip {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.feedback-strip .section-title {
  margin-bottom: 0;
}

.feedback-text {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 640px;
}

.feedback-strip .more-link {
  margin-top: 0;
  flex-shrink: 0;
}

/* ============================================================
   pages — 新作速递
   ============================================================ */

.timeline-section {
  margin-bottom: 40px;
}

.timeline-list {
  position: relative;
  padding-left: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--card);
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-content {
  display: flex;
  gap: 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.timeline-cover {
  width: 88px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.timeline-info {
  flex: 1;
  min-width: 0;
}

.timeline-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.timeline-tags {
  font-size: 13px;
  color: var(--green);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* 追更提示 */
.follow-tip {
  margin-bottom: 40px;
}

.follow-tip .tip-box p {
  margin-bottom: 8px;
}

.follow-tip .tip-box p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   pages — 题材书库
   ============================================================ */

.tag-wall {
  margin-bottom: 40px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-block;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.tag-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(232, 97, 60, 0.05);
}

.category-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.category-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  scroll-margin-top: 80px;
}

.category-head {
  margin-bottom: 16px;
}

.category-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.category-desc {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cover-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cover-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}

.cover-item figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* 题材页阅读提示 */
.reading-tip {
  margin-bottom: 40px;
}

/* ============================================================
   pages — 热度榜单
   ============================================================ */

.rank-list-section {
  margin-bottom: 40px;
}

.rank-list-section .rank-number {
  width: 56px;
  font-size: 28px;
}

.rank-cover {
  flex-shrink: 0;
}

.rank-cover img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
}

.rank-topic {
  display: inline-block;
  font-size: 13px;
  color: var(--green);
  background-color: rgba(61, 122, 106, 0.1);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.rank-note-section {
  margin-bottom: 40px;
}

.rank-note-content {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.rank-note-content .tip-box {
  margin-top: 16px;
}

/* ============================================================
   pages — 阅读说明
   ============================================================ */

.scene-steps {
  margin-bottom: 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.step-card p {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
  flex-grow: 1;
}

.step-card p a {
  color: var(--accent);
  font-weight: 600;
}

.step-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.step-link:hover {
  border-bottom-color: var(--accent);
}

/* 栏目对应表 */
.column-map {
  margin-bottom: 40px;
}

.table-wrap {
  overflow-x: auto;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-wrap table {
  min-width: 560px;
}

.table-wrap th {
  text-align: left;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--paper);
  border-bottom: 2px solid var(--line);
}

.table-wrap td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

/* FAQ */
.faq {
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 阅读说明配图 */
.reading-figure {
  margin-top: 32px;
}

.reading-figure img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.reading-figure figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
  text-align: center;
}

/* ============================================================
   pages — 编辑部
   ============================================================ */

.editorial-policy {
  margin-bottom: 40px;
}

.editorial-policy > p {
  max-width: 760px;
  margin-bottom: 16px;
}

.policy-figure {
  margin-top: 20px;
}

.policy-figure img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

.policy-figure figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* 编辑手记列表 */
.notes-list {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.note-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.note-meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.note-item > p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}

.note-item > a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.note-item > a:hover {
  border-bottom-color: var(--accent);
}

/* 整理流程 */
.workflow {
  margin-bottom: 40px;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  counter-reset: workflow;
}

.workflow-step {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  position: relative;
  padding-left: 72px;
}

.workflow-step::before {
  counter-increment: workflow;
  content: counter(workflow);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.workflow-step p {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ============================================================
   pages — 版权与反馈
   ============================================================ */

.stance-section,
.source-section,
.feedback-section {
  margin-bottom: 40px;
}

.stance-section p,
.source-section p,
.feedback-section > p {
  max-width: 760px;
  margin-bottom: 12px;
}

.source-figure {
  margin: 20px 0;
}

.source-figure img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.source-figure figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
}

.feedback-steps {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: feedback-step;
}

.feedback-steps li {
  position: relative;
  padding-left: 48px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  counter-increment: feedback-step;
}

.feedback-steps li::before {
  content: counter(feedback-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-steps strong {
  color: var(--ink);
}

.feedback-note {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.error-content {
  text-align: center;
  max-width: 480px;
  padding: 40px 24px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.error-content h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.error-tip {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.error-home-btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}

.error-home-btn:hover {
  background-color: #cf532f;
  color: #fff;
}

/* ============================================================
   responsive — 响应式
   ============================================================ */

@media (max-width: 1024px) {
  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .scene-select {
    padding: 40px 32px 32px;
  }
}

@media (max-width: 768px) {
  /* 页头 */
  .header-inner {
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(31, 36, 48, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 6px;
  }

  /* 主内容 */
  .site-main {
    padding-top: 24px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  /* 首页场景 */
  .scene-select {
    padding: 32px 20px 24px;
    margin-bottom: 32px;
  }

  .scene-heading {
    font-size: 26px;
  }

  .scene-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scene-card {
    padding: 16px;
  }

  .scene-card img {
    height: 140px;
  }

  /* 最近更新 */
  .update-item {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .update-date {
    width: auto;
  }

  .update-content {
    flex-direction: column;
    gap: 12px;
  }

  .update-content img {
    width: 100%;
    height: 160px;
  }

  /* 题材索引 */
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .topic-covers {
    grid-template-columns: 1fr 1fr;
  }

  /* 榜单 */
  .rank-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }

  .rank-number {
    width: 36px;
    font-size: 20px;
  }

  .rank-item img,
  .rank-cover img {
    width: 48px;
    height: 64px;
  }

  .rank-info {
    flex: 1 1 100%;
  }

  /* 阅读提示 */
  .reading-tip {
    padding: 24px 20px;
  }

  .tip-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 反馈条 */
  .feedback-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .feedback-strip .more-link {
    margin-top: 8px;
  }

  /* 时间线 */
  .timeline-list {
    padding-left: 16px;
  }

  .timeline-item::before {
    left: -16px;
    width: 10px;
    height: 10px;
  }

  .timeline-content {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .timeline-cover {
    width: 100%;
    height: 160px;
  }

  /* 题材书库 */
  .tag-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .tag-item {
    flex-shrink: 0;
  }

  .category-block {
    padding: 20px 16px;
  }

  .category-covers {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 相关入口 */
  .related-grid,
  .related-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 阅读说明 */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-card {
    padding: 20px;
  }

  /* 编辑部 */
  .workflow-step {
    padding-left: 20px;
    padding-top: 72px;
  }

  .workflow-step::before {
    left: 20px;
    top: 20px;
  }

  /* 反馈步骤 */
  .feedback-steps li {
    padding-left: 0;
    padding-top: 44px;
  }

  .feedback-steps li::before {
    top: 0;
  }

  /* 页脚 */
  .footer-inner {
    padding-top: 32px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 18px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* ============================================================
   motion — 动效（不影响初始可见性）
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .scene-card,
  .update-item,
  .topic-block,
  .rank-item,
  .tip-step,
  .step-card,
  .category-block,
  .note-item,
  .workflow-step,
  .related-card {
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
