:root {
  --bg-page: #f6f7f9;
  --bg-card: #ffffff;
  --text-title: #1c2230;
  --text-body: #3d4657;
  --text-muted: #7a8494;
  --brand: #2f6bd8;
  --brand-dark: #2354aa;
  --status-ongoing: #d9822b;
  --line: #e3e6ec;
  --line-strong: #d3d8e0;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(28, 34, 48, 0.05);
  --shadow-hover: 0 6px 16px rgba(28, 34, 48, 0.09);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
  --container: 1100px;
}

/* ========== base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* ========== layout ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-title);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand:hover {
  color: var(--brand);
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.brand-slogan {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-title);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-item a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 0.9375rem;
  min-height: 40px;
  line-height: 24px;
}

.nav-item a:hover {
  color: var(--brand);
  background-color: #eef3fc;
}

.nav-item.is-current a,
.nav-item a.is-current {
  color: var(--brand);
  font-weight: 700;
  background-color: #eaf1fd;
}

.site-main {
  display: block;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 20px 56px;
}

/* 内页统一骨架 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-body);
}

.page-header {
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-title);
}

.page-description {
  margin-top: 12px;
  max-width: 780px;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.page-description a {
  color: var(--brand);
}

/* 通用 section 头部 */
.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-title);
}

.section-desc,
.section-intro,
.section-lead {
  margin-top: 10px;
  max-width: 760px;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.section-desc a,
.section-intro a,
.section-lead a {
  color: var(--brand);
}

/* ========== components ========== */
/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.btn-ghost {
  background-color: var(--bg-card);
  color: var(--brand);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
  background-color: #f2f6fd;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #eaf1fd;
  color: var(--brand);
  font-size: 0.75rem;
  line-height: 1.6;
  white-space: nowrap;
}

a.tag:hover {
  background-color: #dbe8fb;
  color: var(--brand-dark);
}

/* 状态标签 */
.status-ongoing,
.status-finished,
.status-completed,
.status-paused,
.status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  line-height: 1.6;
  white-space: nowrap;
}

.status-ongoing {
  color: var(--status-ongoing);
  background-color: #fdf1e3;
}

.status-finished,
.status-completed {
  color: #2f7d55;
  background-color: #e8f5ee;
}

.status-paused {
  color: var(--text-muted);
  background-color: #eef0f4;
}

.status {
  color: var(--brand);
  background-color: #eaf1fd;
}

/* 更多链接 */
.link-more {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.link-more::after {
  content: " →";
  font-weight: 400;
}

.section-more {
  margin-top: 18px;
}

/* 元信息 */
.meta-label {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.meta-value {
  color: var(--text-body);
  font-size: 0.875rem;
}

/* ========== pages: 首页 ========== */
.home-main .section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 20px 0;
}

.home-main .section:last-of-type {
  padding-bottom: 56px;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 8px;
}

.hero-media {
  order: 2;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #e9edf3;
  box-shadow: var(--shadow-card);
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-content {
  order: 1;
}

.hero-eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #eaf1fd;
  color: var(--brand);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.hero-title {
  margin-top: 14px;
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--text-title);
}

.hero-lead {
  margin-top: 14px;
  max-width: 520px;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* 题材分类总览 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.category-group {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.group-head {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.group-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-title);
}

.group-desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.entry-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.entry:hover {
  background-color: #f8fafd;
  border-color: var(--line);
  transform: translateY(-2px);
}

.entry img {
  width: 72px;
  height: 96px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: #e9edf3;
}

.entry-body {
  min-width: 0;
}

.entry-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.5;
}

.entry-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.entry-status {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--status-ongoing);
  background-color: #fdf1e3;
}

.entry-status.is-ongoing {
  color: var(--status-ongoing);
  background-color: #fdf1e3;
}

.entry-status.is-finished {
  color: #2f7d55;
  background-color: #e8f5ee;
}

/* 最近更新速览 */
.update-list {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1fr) 96px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.update-row:first-child {
  border-top: 0;
}

.update-row:hover {
  background-color: #f8fafd;
}

.update-time {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.update-work {
  color: var(--text-title);
  font-weight: 600;
  min-width: 0;
}

.update-chapter {
  color: var(--text-body);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.update-status {
  justify-self: start;
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--status-ongoing);
  background-color: #fdf1e3;
  white-space: nowrap;
}

.update-status.is-ongoing {
  color: var(--status-ongoing);
  background-color: #fdf1e3;
}

.update-status.is-finished {
  color: #2f7d55;
  background-color: #e8f5ee;
}

/* 人气榜单速览 */
.ranking-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ranking-row:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand);
  text-align: center;
}

.rank-body {
  min-width: 0;
}

.rank-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
}

.rank-reason {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.rank-tag {
  justify-self: end;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #eaf1fd;
  color: var(--brand);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* 字段对比表 */
.table-wrap {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow-x: auto;
}

.table-caption {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 13px 20px;
  text-align: left;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  vertical-align: top;
}

.field-table thead th {
  border-top: 0;
  background-color: #f2f4f8;
  color: var(--text-title);
  font-size: 0.8125rem;
  font-weight: 700;
}

.field-table tbody th {
  color: var(--text-title);
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--text-body);
}

.field-table tbody tr:hover {
  background-color: #f8fafd;
}

.field-table tbody td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* 阅读说明入口 */
.reading-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.reading-point {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.point-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
}

.point-desc {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
}

/* ========== pages: 题材分类 ========== */
.category-switch {
  margin-bottom: 36px;
}

.switch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.switch-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: var(--bg-card);
  color: var(--text-body);
  font-size: 0.875rem;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.switch-link:hover {
  color: var(--brand);
  border-color: var(--brand);
  background-color: #f2f6fd;
}

.category-groups {
  display: grid;
  gap: 26px;
}

.category-groups .category-group {
  padding: 22px 24px;
}

.category-groups .group-title {
  font-size: 1.25rem;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.work-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fbfcfe;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.work-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.work-cover {
  width: 78px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #e9edf3;
}

.work-cover img {
  width: 78px;
  height: 104px;
  object-fit: cover;
}

.work-body {
  min-width: 0;
}

.work-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.5;
}

.work-meta {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.work-meta .meta-value {
  color: var(--text-body);
  font-family: var(--font-mono);
}

.field-note {
  margin-top: 40px;
}

.field-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.field-row {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.field-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-title);
}

.field-desc {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--text-body);
}

/* ========== pages: 最近更新 ========== */
.update-timeline-section {
  margin-bottom: 44px;
}

.update-timeline {
  position: relative;
  margin-top: 26px;
  padding-left: 26px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 18px;
}

.update-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.update-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--brand);
  box-shadow: 0 0 0 3px #eaf1fd;
}

.update-item .update-time {
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.update-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.update-body:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.update-thumb {
  width: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #e9edf3;
}

.update-thumb img {
  width: 88px;
  height: 118px;
  object-fit: cover;
}

.update-info {
  min-width: 0;
}

.update-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
}

.update-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.8125rem;
  color: var(--text-body);
}

.update-meta .status-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
}

.update-meta .status-ongoing {
  color: var(--status-ongoing);
  background-color: #fdf1e3;
}

.update-meta .status-completed {
  color: #2f7d55;
  background-color: #e8f5ee;
}

.update-meta .status-paused {
  color: var(--text-muted);
  background-color: #eef0f4;
}

.update-note {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
}

.status-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.status-note-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.status-note-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
}

.status-note-text {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
}

.status-note-foot {
  margin-top: 20px;
}

/* ========== pages: 人气榜单 ========== */
.ranking-list-section {
  margin-bottom: 44px;
}

.ranking-list-section .ranking-list {
  margin-top: 26px;
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 52px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ranking-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.ranking-item .rank-no {
  font-size: 1.25rem;
}

.rank-cover {
  width: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #e9edf3;
}

.rank-cover img {
  width: 96px;
  height: 128px;
  object-fit: cover;
}

.ranking-item .rank-body {
  min-width: 0;
}

.ranking-item .rank-title {
  font-size: 1.0625rem;
}

.ranking-item .rank-title a {
  color: var(--text-title);
}

.ranking-item .rank-title a:hover {
  color: var(--brand);
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.rank-desc {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 10px 0 0;
  font-size: 0.8125rem;
}

.rank-meta dt {
  color: var(--text-muted);
}

.rank-meta dd {
  margin: 0 10px 0 0;
  color: var(--text-body);
  font-family: var(--font-mono);
}

.rank-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.rank-link:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
  background-color: #f2f6fd;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.note-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.note-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
}

.note-card p {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
}

.tag-legend {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.tag-legend h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
}

.tag-legend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 16px;
}

.tag-legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.tag-legend-item p {
  font-size: 0.875rem;
  color: var(--text-body);
}

.note-foot {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

/* ========== pages: 阅读说明 ========== */
.guide-section {
  margin-bottom: 46px;
}

.guide-figure {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-card);
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 18px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.guide-figure-secondary {
  margin-top: 26px;
}

.flow-timeline {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.flow-details {
  width: 100%;
}

.flow-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.flow-summary::-webkit-details-marker {
  display: none;
}

.flow-index {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: #eaf1fd;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.flow-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
}

.flow-summary::after {
  content: "+";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1;
}

.flow-details[open] .flow-summary::after {
  content: "−";
}

.flow-body {
  padding: 0 20px 18px 64px;
}

.flow-body p {
  font-size: 0.875rem;
  color: var(--text-body);
  max-width: 720px;
}

.field-table-wrap {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow-x: auto;
}

.field-table-caption {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.field-table-wrap .field-table th,
.field-table-wrap .field-table td {
  padding: 13px 20px;
  text-align: left;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  vertical-align: top;
}

.field-table-wrap .field-table thead th {
  border-top: 0;
  background-color: #f2f4f8;
  color: var(--text-title);
  font-size: 0.8125rem;
  font-weight: 700;
}

.field-table-wrap .field-table tbody th {
  color: var(--text-title);
  font-weight: 600;
  white-space: nowrap;
}

.field-table-wrap .field-table tbody td {
  color: var(--text-body);
}

.field-table-wrap .field-table tbody td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.field-note {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.875rem;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.feedback-checklist,
.feedback-steps {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.subsection-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
}

.check-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.check-item {
  position: relative;
  padding-left: 24px;
  font-size: 0.875rem;
  color: var(--text-body);
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.step-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #eaf1fd;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

.step-text {
  font-size: 0.875rem;
  color: var(--text-body);
  padding-top: 3px;
}

.faq-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-title);
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.875rem;
  color: var(--text-body);
  max-width: 760px;
}

/* ========== pages: 404 ========== */
.error-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 20px 64px;
}

.error-panel {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.error-title {
  margin-top: 14px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-title);
}

.error-text {
  margin-top: 12px;
  max-width: 620px;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-hint {
  margin-top: 36px;
}

.error-hint-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-title);
}

.error-hint-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-hint-list li {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  font-size: 0.9375rem;
}

/* ========== footer ========== */
.site-footer {
  margin-top: 56px;
  background-color: #1c2230;
  color: #c3c9d6;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #9aa3b4;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  min-height: 24px;
  font-size: 0.8125rem;
  color: #9aa3b4;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy {
  font-size: 0.75rem;
  color: #7f889a;
}

/* ========== responsive ========== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-media {
    order: 1;
  }

  .hero-content {
    order: 2;
  }

  .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .reading-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 10px;
    padding: 10px 16px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    padding: 12px 8px;
    min-height: 44px;
    line-height: 20px;
  }

  .inner-main {
    padding: 16px 16px 44px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .home-main .section {
    padding: 32px 16px 0;
  }

  .hero {
    padding: 26px 16px 6px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-media img {
    max-height: 260px;
    aspect-ratio: 16 / 10;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 16px;
  }

  .update-row .update-time {
    order: 1;
  }

  .update-row .update-work {
    order: 2;
  }

  .update-row .update-chapter {
    order: 3;
  }

  .update-row .update-status {
    order: 4;
    justify-self: start;
  }

  .ranking-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .ranking-row .rank-tag {
    grid-column: 2;
    justify-self: start;
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .reading-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-note-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-legend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-timeline {
    padding-left: 18px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .update-item::before {
    left: -27px;
    top: 8px;
  }

  .update-item .update-time {
    padding-top: 0;
  }

  .update-body {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .update-thumb {
    width: 72px;
  }

  .update-thumb img {
    width: 72px;
    height: 96px;
  }

  .ranking-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .rank-cover {
    grid-column: 2;
    width: 84px;
  }

  .rank-cover img {
    width: 84px;
    height: 112px;
  }

  .ranking-item .rank-body {
    grid-column: 2;
  }

  .ranking-item .rank-link {
    grid-column: 2;
    justify-self: start;
  }

  .feedback-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-body {
    padding: 0 18px 16px 62px;
  }

  .error-main {
    padding: 32px 16px 44px;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-hint-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 30px 16px 22px;
  }

  .footer-bottom {
    padding: 14px 16px 22px;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .entry {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .entry img {
    width: 62px;
    height: 84px;
  }

  .work-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .work-cover {
    width: 68px;
  }

  .work-cover img {
    width: 68px;
    height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
