/* ==========================================================================
   腐漫画网 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基准
   -------------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --bg-tint: #f1f5f3;
  --ink: #1f2933;
  --ink-soft: #5b6670;
  --ink-faint: #86929b;
  --line: #e3e8ec;
  --line-strong: #cfd8de;
  --green: #4c8c6b;
  --green-soft: #e8f2ec;
  --blue: #3e7cb1;
  --blue-soft: #e7f0f7;
  --orange: #d08a3e;
  --orange-soft: #faf0e2;
  --purple: #7a6ba8;
  --purple-soft: #eeeaf6;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(31, 41, 51, 0.05);
  --shadow-hover: 0 6px 16px rgba(31, 41, 51, 0.09);
  --shell: 1120px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #356b4f;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.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;
}

/* --------------------------------------------------------------------------
   2. layout —— 全站骨架：页头、导航、主容器、页脚
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(6px);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  padding: 6px 0;
}

.site-brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 6px 0 0 -2px var(--blue);
}

.site-brand:hover {
  color: var(--green);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  min-height: 40px;
  line-height: 24px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: var(--ink);
  background: var(--bg-tint);
}

.nav-list a.is-current {
  color: var(--green);
  font-weight: 700;
  background: var(--green-soft);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 15px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink);
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.section {
  padding: 44px 0 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-sub,
.section-intro,
.section-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 820px;
}

.section-sub {
  margin-top: 0;
}

.section-intro,
.section-desc {
  margin-bottom: 18px;
}

.section-more {
  margin-top: 18px;
  font-size: 15px;
}

.link-more,
.index-link,
.topic-entry,
.path-link,
.cover-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.link-more::after,
.index-link::after,
.topic-entry::after,
.path-link::after {
  content: "→";
  font-size: 13px;
  transition: transform 0.18s ease;
}

.link-more:hover::after,
.index-link:hover::after,
.topic-entry:hover::after,
.path-link:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件：按钮、标签、面包屑、卡片、表格、FAQ
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
}

.btn-primary:hover {
  background: #3d7457;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  background: var(--bg-tint);
  color: var(--ink-soft);
}

.tag-green {
  background: var(--green-soft);
  color: #356b4f;
}

.tag-blue {
  background: var(--blue-soft);
  color: #2f6390;
}

.tag-orange {
  background: var(--orange-soft);
  color: #a4691f;
}

.tag-purple {
  background: var(--purple-soft);
  color: #5d5088;
}

.tag-topic {
  background: var(--bg-tint);
  color: var(--ink-soft);
}

.tag-status {
  background: var(--blue-soft);
  color: #2f6390;
}

.tag-ing {
  background: var(--green-soft);
  color: #356b4f;
}

.tag-done {
  background: var(--bg-tint);
  color: var(--ink-soft);
}

.tag-pause {
  background: var(--orange-soft);
  color: #a4691f;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-title {
  font-size: 30px;
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 820px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cover-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.cover-media,
.cover-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-tint);
  overflow: hidden;
}

.cover-media img,
.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-body {
  padding: 12px 14px 16px;
}

.cover-title,
.cover-name {
  font-size: 15px;
  margin-bottom: 6px;
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.cover-status {
  font-size: 13px;
  color: var(--ink-faint);
}

.data-table {
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  width: 200px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-faint);
  padding-bottom: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0 18px;
}

.faq-question {
  cursor: pointer;
  padding: 14px 28px 14px 0;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 18px;
  color: var(--green);
  line-height: 1.6;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.faq-item[open] {
  border-color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   4. pages —— 首页与内页专属模块
   -------------------------------------------------------------------------- */

/* 4.1 首页 · 首屏题材焦点区 */
.hero-section {
  padding: 44px 0 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.32;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tint);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* 4.2 首页 · 题材分类方向总览 */
.topic-rows {
  border-top: 1px solid var(--line);
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 20px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.topic-row-main {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
}

.topic-name {
  font-size: 17px;
  grid-row: span 2;
}

.topic-trait {
  font-size: 15px;
  color: var(--ink);
}

.topic-org {
  font-size: 14px;
  color: var(--ink-soft);
}

.topic-entry {
  justify-self: end;
}

/* 4.3 首页 · 封面墙速览 */
.cover-wall .cover-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 4.4 首页 · 最近更新目录 */
.update-months {
  display: grid;
  gap: 20px;
}

.update-month {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 12px;
  background: var(--bg);
}

.month-label,
.month-title {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.update-list {
  display: grid;
  gap: 10px;
}

.update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  padding: 4px 0;
}

.update-date {
  font-size: 13px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  min-width: 84px;
}

.update-name {
  font-weight: 600;
}

.update-status {
  font-size: 13px;
  color: var(--ink-faint);
}

/* 4.5 首页 · 编辑推荐榜速览 */
.pick-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pick-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg-soft);
}

.pick-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.pick-basis {
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
}

.pick-list {
  display: grid;
  gap: 8px;
}

.pick-list li {
  font-size: 15px;
  padding-left: 22px;
  position: relative;
}

.pick-list li::before {
  content: counter(list-item) ".";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.85;
}

.pick-list a {
  color: var(--ink);
}

.pick-list a:hover {
  color: var(--green);
}

/* 4.6 首页 · 阅读说明与收录边界摘要 */
.brief-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.brief-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.brief-col-title {
  font-size: 17px;
  margin-bottom: 12px;
}

.field-list {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 14px;
}

.field-list dt {
  font-weight: 600;
  color: var(--ink);
}

.field-list dd {
  color: var(--ink-soft);
}

.brief-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* 4.7 首页 · 站内页面索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.index-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-card);
}

.index-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.index-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* 4.8 内页 · 题材分类页 */
.topic-table {
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-table th,
.topic-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.topic-table thead th {
  background: var(--bg-soft);
  font-size: 14px;
}

.topic-table tbody th {
  width: 150px;
  background: var(--bg-soft);
}

.topic-table tbody tr:last-child th,
.topic-table tbody tr:last-child td {
  border-bottom: 0;
}

.topic-pick-group {
  margin-bottom: 26px;
}

.topic-pick-group:last-child {
  margin-bottom: 0;
}

.subsection-title {
  font-size: 17px;
  margin-bottom: 12px;
}

.topic-pick-group .cover-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-pick-group .cover-title {
  padding: 12px 14px 0;
}

.topic-pick-group .cover-tags {
  padding: 0 14px;
  margin-top: 6px;
}

.topic-pick-group .cover-link {
  margin: 8px 14px 14px;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.path-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg);
}

.path-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.path-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.guide-body {
  display: grid;
  gap: 12px;
  max-width: 820px;
  font-size: 15px;
  color: var(--ink-soft);
}

.section-related .related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-list a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}

.related-list a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

/* 4.9 内页 · 作品索引页 */
.works-filter .filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--bg);
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.wall-zone {
  margin-bottom: 32px;
}

.wall-zone:last-child {
  margin-bottom: 0;
}

.zone-title {
  font-size: 18px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--green);
}

.wall-zone .cover-link {
  display: block;
  color: inherit;
  padding-bottom: 14px;
}

.wall-zone .cover-link:hover {
  color: inherit;
}

.wall-zone .cover-name {
  padding: 12px 14px 0;
}

.wall-zone .cover-tags {
  padding: 0 14px;
  margin-top: 6px;
}

.wall-zone .cover-status {
  padding: 0 14px;
  margin-top: 4px;
}

.status-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.status-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.status-item .tag {
  flex: 0 0 auto;
  margin-top: 3px;
}

.back-action {
  margin-top: 14px;
}

/* 4.10 内页 · 最近更新页 */
.update-month .update-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.update-month .update-list .update-item:last-child {
  border-bottom: 0;
}

.update-month .update-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
}

.update-body {
  min-width: 0;
}

.update-meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.update-month .update-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.update-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.status-guide .status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--bg);
}

.status-row dt {
  margin-bottom: 8px;
}

.status-row dd {
  font-size: 14px;
  color: var(--ink-soft);
}

.status-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.month-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-tint);
}

.month-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.month-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.month-note p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 820px;
  margin-bottom: 12px;
}

.topic-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-link-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg-soft);
}

.topic-link-item a {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.topic-link-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 4.11 内页 · 阅读说明页 */
.page-layout {
  display: block;
}

.page-main {
  min-width: 0;
}

.section-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-tint);
}

.section-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.section-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.fields-table tbody th {
  width: 180px;
}

.tags-table tbody th {
  width: 160px;
}

.section-scope > p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 820px;
  margin-bottom: 18px;
}

.scope-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.scope-column {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg);
}

.scope-column-in {
  border-top: 3px solid var(--green);
}

.scope-column-out {
  border-top: 3px solid var(--orange);
}

.scope-list {
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.scope-list li {
  padding-left: 18px;
  position: relative;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.scope-column-out .scope-list li::before {
  background: var(--orange);
}

.scope-note,
.tags-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-more .more-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.more-list a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}

.more-list a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

/* 4.12 404 页 */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.error-hero {
  padding: 64px 0 40px;
  max-width: 640px;
}

.error-code {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.error-hero h1 {
  font-size: 30px;
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-paths {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.error-paths h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.error-list a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}

.error-list a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

/* --------------------------------------------------------------------------
   5. footer —— 全站统一页脚
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  margin-top: 56px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  max-width: 320px;
}

.footer-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-group ul {
  display: grid;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-group a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   6. responsive —— 断点适配（1024px / 768px / 480px）
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 58px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--line);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 10px 4px;
    border-radius: 0;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 16px 48px;
  }

  .section {
    padding-top: 32px;
  }

  .section-title {
    font-size: 19px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .topic-row-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .topic-name {
    grid-row: auto;
  }

  .topic-entry {
    justify-self: start;
  }

  .cover-grid,
  .cover-wall .cover-grid,
  .topic-pick-group .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .pick-columns,
  .brief-columns,
  .scope-columns,
  .path-list,
  .topic-link-list,
  .section-more .more-list,
  .error-list,
  .section-related .related-list,
  .status-guide .status-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 16px 24px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-copy {
    padding: 14px 16px;
  }

  .data-table,
  .topic-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .data-table tbody th,
  .topic-table tbody th {
    width: auto;
  }

  .error-hero {
    padding: 40px 0 28px;
  }

  .error-hero h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .cover-grid,
  .cover-wall .cover-grid,
  .topic-pick-group .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-item {
    gap: 8px;
  }

  .update-date {
    min-width: 0;
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 0;
  }

  .field-list dd {
    margin-bottom: 8px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}
