/* ============================================================
   paybbq.com · 歪歪韩漫
   全站样式表 — 按 base / layout / components / pages / responsive 分组
   ============================================================ */

/* ---------- base ---------- */
:root {
  --canvas: #f4f1ec;
  --ink: #26231d;
  --accent: #c94f3d;
  --line: #ddd6ca;
  --tag-bg: #ece7df;
  --card-bg: #fbf9f5;
  --muted: #6f6a60;
  --white: #ffffff;
  --header-bg: rgba(244, 241, 236, 0.94);
  --mono: ui-monospace, "SF Mono", "Consolas", "Menlo", monospace;
}

[data-theme="dark"] {
  --canvas: #1d1c1a;
  --ink: #ece8e1;
  --accent: #e0695a;
  --line: #33302b;
  --tag-bg: #2a2824;
  --card-bg: #24221f;
  --muted: #a39c90;
  --white: #1d1c1a;
  --header-bg: rgba(29, 28, 26, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3 {
  line-height: 1.3;
  font-weight: 700;
}

h2.section-title {
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--line);
  position: relative;
}

h2.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

/* ---------- layout ---------- */
.site-main {
  min-height: 60vh;
}

.inner-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 页头 */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-name::first-letter {
  color: var(--accent);
}

.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;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-list li a:hover {
  background: var(--tag-bg);
  text-decoration: none;
  color: var(--accent);
}

.nav-list li a.is-current {
  background: var(--accent);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  position: relative;
}

.theme-toggle-icon::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 10px;
  height: 10px;
  background: var(--canvas);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

[data-theme="dark"] .theme-toggle-icon {
  border-color: var(--accent);
}

[data-theme="dark"] .theme-toggle-icon::after {
  border-color: var(--accent);
  background: var(--canvas);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 页头标题区 */
.page-header {
  padding: 32px 0 36px;
  max-width: 860px;
}

.page-description {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-intro,
.page-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand-name::first-letter {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 260px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 1180px;
  margin: 0 auto;
}

/* 通用相关链接区 */
.related-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.related-links-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.related-links-item {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* ---------- components ---------- */
/* 正文链接 */
.text-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.text-link:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* 标签 */
.tag,
.archive-genre,
.update-genre,
.batch-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--accent);
  background: var(--tag-bg);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 4px;
  line-height: 1.6;
}

/* 编号 */
.archive-index,
.work-no,
.batch-number {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* 折叠问答 */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "＋";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  content: "－";
}

.faq-item summary:hover {
  background: var(--tag-bg);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.faq-item p a {
  font-weight: 500;
}

/* ---------- pages ---------- */
/* ===== 首页 ===== */
.home-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 首屏任务路径区 */
.hero-task-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 40px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

#heroTitle {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.task-entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.task-entry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.task-entry:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.task-index {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--tag-bg);
  border-radius: 4px;
  padding: 2px 8px;
}

.task-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 题材分类索引条 */
.genre-strip-section {
  padding: 40px 0 32px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.genre-tag {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--tag-bg);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.genre-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.genre-strip-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.genre-strip-note a {
  font-weight: 500;
}

/* 大幅作品展示区 */
.spotlight-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.spotlight-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.spotlight-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.spotlight-archive {
  min-width: 0;
}

.spotlight-archive .archive-index {
  display: block;
  margin-bottom: 8px;
}

.spotlight-archive .archive-genre {
  margin-bottom: 16px;
}

#spotlightTitle {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.archive-point {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.8;
}

.archive-audience {
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.archive-audience strong {
  color: var(--accent);
}

/* 最近更新时间线 */
.updates-preview-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.updates-preview-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.update-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--card-bg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.update-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.update-type {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--tag-bg);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

.update-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.update-genre {
  margin-bottom: 8px;
}

.update-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* 编辑精选编号列表 */
.featured-list-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.featured-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--card-bg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-media {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.featured-card .archive-index {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.featured-card .archive-genre {
  margin-bottom: 10px;
}

.featured-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.featured-card .archive-point {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* 阅读路径流程节点 */
.path-steps-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.step-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--card-bg);
  position: relative;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--tag-bg);
  border-radius: 4px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 12px;
}

.step-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.path-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.path-note a {
  font-weight: 500;
}

/* 常见疑问摘要 */
.faq-summary-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

/* ===== 分类索引页 ===== */
.genre-directory {
  margin-bottom: 40px;
}

.genre-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  padding: 28px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.genre-info {
  min-width: 0;
}

.genre-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.genre-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 4px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
}

.genre-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.genre-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.genre-work {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--canvas);
  transition: transform 0.2s, box-shadow 0.2s;
}

.genre-work:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.genre-work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.genre-work figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
}

.genre-tip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--card-bg);
  margin-bottom: 40px;
}

.genre-tip .section-title {
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
}

.genre-tip p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.genre-tip p a {
  font-weight: 500;
  margin-right: 16px;
}

/* 相关卡片 */
.related-grid,
.related-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-card,
.entry-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--card-bg);
  transition: border-color 0.2s, transform 0.2s;
}

.related-card:hover,
.entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.related-card-title,
.entry-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.related-card-desc,
.entry-text {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== 精选作品页 ===== */
.editor-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--card-bg);
  margin-bottom: 40px;
}

.editor-note .section-title {
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
}

.editor-note-content p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.8;
}

.editor-note-content p:last-child {
  margin-bottom: 0;
}

.featured-list {
  margin-bottom: 40px;
}

.work-archive {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--card-bg);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}

.work-archive:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.work-media {
  border-radius: 6px;
  overflow: hidden;
}

.work-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-info {
  min-width: 0;
}

.work-no {
  display: block;
  margin-bottom: 8px;
}

.work-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.work-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.work-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.8;
}

.work-fit {
  font-size: 0.88rem;
  color: var(--ink);
}

.work-fit strong {
  color: var(--accent);
}

/* ===== 更新日志页 ===== */
.updates-intro {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  background: var(--card-bg);
  margin-bottom: 32px;
}

.updates-intro .section-title {
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.updates-intro p {
  font-size: 0.9rem;
  color: var(--muted);
}

.updates-timeline {
  margin-bottom: 40px;
}

.batch-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  margin-bottom: 20px;
  overflow: hidden;
}

.batch-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--tag-bg);
  border-bottom: 1px solid var(--line);
}

.batch-number {
  font-size: 1rem;
  font-weight: 600;
}

.batch-type {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 10px;
}

.batch-list {
  padding: 16px 24px;
}

.batch-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.batch-entry:last-child {
  border-bottom: none;
}

.batch-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.batch-info {
  min-width: 0;
}

.batch-work {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.batch-tag {
  display: inline-block;
  margin-bottom: 4px;
}

.batch-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== 读者手册页 ===== */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.path-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.path-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.path-media {
  overflow: hidden;
}

.path-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.path-content {
  padding: 20px;
}

.path-number {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.path-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.path-content p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.path-content p a {
  font-weight: 500;
}

.path-content .text-link {
  margin-top: 4px;
}

.guide-correspondence {
  margin-bottom: 40px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.correspondence-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
}

.correspondence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.correspondence-table th {
  background: var(--tag-bg);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid var(--line);
  color: var(--ink);
}

.correspondence-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

.correspondence-table tr:last-child td {
  border-bottom: none;
}

.correspondence-table tr:hover td {
  background: var(--tag-bg);
}

.table-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
}

.guide-boundary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  background: var(--card-bg);
  margin-bottom: 40px;
}

.guide-boundary .section-title {
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.guide-boundary p {
  font-size: 0.9rem;
  color: var(--muted);
}

.guide-related .related-links {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* ===== 问题排查页 ===== */
.faq-topic-nav {
  margin-bottom: 32px;
}

.faq-topic-nav .section-title {
  font-size: 1.1rem;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-list li a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--tag-bg);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}

.topic-list li a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.faq-sections {
  margin-bottom: 40px;
}

.faq-group {
  margin-bottom: 32px;
}

.group-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.troubleshoot-flow {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--card-bg);
  margin-bottom: 40px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--canvas);
}

.flow-step .step-num {
  margin-bottom: 10px;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--muted);
}

.flow-step p a {
  font-weight: 500;
}

.flow-media {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.flow-media img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.flow-media figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--tag-bg);
}

.feedback-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  background: var(--card-bg);
  margin-bottom: 32px;
}

.feedback-note .section-title {
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.feedback-note p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== 收录说明页 ===== */
.about-location {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.about-location .section-title {
  grid-column: 1 / -1;
}

.location-copy p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-figure figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--tag-bg);
}

.scope-section {
  margin-bottom: 40px;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.scope-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--card-bg);
}

.scope-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  position: relative;
}

.scope-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.scope-include h3 {
  color: var(--accent);
}

.scope-list li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.6;
}

.scope-include .scope-list li::before {
  content: "＋";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--accent);
}

.scope-exclude .scope-list li::before {
  content: "－";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--muted);
}

.organize-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  background: var(--card-bg);
  margin-bottom: 40px;
}

.organize-note .section-title {
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.organize-note p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.organize-note p:last-child {
  margin-bottom: 0;
}

.related-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--card-bg);
  transition: border-color 0.2s, transform 0.2s;
}

.related-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.related-link-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.related-link-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== 404 页 ===== */
.error-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.error-panel {
  text-align: center;
  padding: 80px 24px;
  max-width: 640px;
  margin: 0 auto;
}

.error-code {
  font-family: var(--mono);
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.error-back {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 24px;
  min-height: 48px;
  line-height: 24px;
}

.error-back:hover {
  text-decoration: none;
  opacity: 0.9;
}

.error-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .updates-preview-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .genre-row {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .genre-works {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-archive {
    grid-template-columns: 300px 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .hero-task-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 32px;
  }

  .spotlight-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .path-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .paths-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .genre-works {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-archive {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-location {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-location .section-title {
    grid-column: 1;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-shell {
    height: auto;
    min-height: 64px;
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .theme-toggle {
    order: 1;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 14px 16px;
    border-radius: 6px;
  }

  .inner-main,
  .home-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-header {
    padding: 28px 0 28px;
  }

  #heroTitle {
    font-size: 1.8rem;
  }

  .genre-works {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .updates-preview-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-grid,
  .related-entry-grid,
  .related-pair {
    grid-template-columns: 1fr;
  }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  .batch-entry {
    align-items: flex-start;
  }

  .batch-thumb {
    width: 56px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.2rem;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .task-entry-list {
    flex-direction: column;
  }

  .task-entry {
    width: 100%;
  }

  .genre-works {
    grid-template-columns: 1fr;
  }

  .genre-row {
    padding: 20px;
  }

  .work-archive {
    padding: 16px;
  }

  .batch-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  .correspondence-table-wrap {
    margin: 0 -4px;
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-panel {
    padding: 48px 16px;
  }
}
