/* ==========================================================================
   91漫画网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --paper: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #16181C;
  --ink-soft: #5E6572;
  --accent: #D93A2B;
  --ongoing: #1F6F5B;
  --archived: #8A8578;
  --line: #E3E0D8;
  --row-hover: #FBFAF7;
  --radius: 8px;
  --shell: 1120px;
  --read: 880px;
  --font-base: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px;
  transition: padding 180ms ease;
}

.site-header.is-pinned .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent);
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 0;
}

.page-head-text,
.page-head-main,
.page-head-inner {
  flex: 1 1 auto;
  min-width: 0;
}

.page-head-desc,
.page-desc,
.page-intro,
.page-head-main p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 720px;
}

.page-head-anchors,
.page-head-links,
.page-anchors {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-link,
.page-head-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, color 160ms ease;
}

.anchor-link:hover,
.page-head-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.container {
  max-width: var(--shell);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #B92C1F;
  border-color: #B92C1F;
  color: #FFFFFF;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tag,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.tag:hover,
.tag-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tag.is-active {
  color: #FFFFFF;
  background: var(--accent);
  border-color: var(--accent);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 860px;
}

.section-title {
  font-size: 21px;
  margin-bottom: 6px;
}

.section-intro {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 860px;
  margin-bottom: 20px;
}

/* 数据表 */
.data-table,
.update-table,
.catalog-table,
.rank-table,
.template-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.data-table th,
.data-table td,
.update-table th,
.update-table td,
.catalog-table th,
.catalog-table td,
.rank-table th,
.rank-table td,
.template-table th,
.template-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.data-table thead th,
.update-table thead th,
.catalog-table thead th,
.rank-table thead th,
.template-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.update-table tbody tr:last-child td,
.catalog-table tbody tr:last-child td,
.rank-table tbody tr:last-child td,
.template-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.update-table tbody tr:hover,
.catalog-table tbody tr:hover,
.rank-table tbody tr:hover,
.template-table tbody tr:hover {
  background: var(--row-hover);
}

.data-table td.mono,
.cell-mono,
.cell-chapter,
.cell-length {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* 状态标签 */
.status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 999px;
  white-space: nowrap;
}

.status-ongoing,
.status-serializing {
  color: var(--ongoing);
  background: #EDF5F1;
  border: 1px solid #CFE4DB;
}

.status-finished {
  color: var(--archived);
  background: #F3F1EC;
  border: 1px solid var(--line);
}

/* 节奏条形图（首页） */
.rhythm-chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.rhythm-title {
  font-size: 17px;
  margin-bottom: 16px;
}

.rhythm-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  min-height: 180px;
}

.rhythm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.rhythm-item .rhythm-bar {
  display: block;
  width: 100%;
  max-width: 44px;
  min-height: 8px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}

.rhythm-item .rhythm-count {
  font-size: 12px;
  color: var(--ink-soft);
  order: -1;
}

.rhythm-item .rhythm-day {
  font-size: 12px;
  color: var(--ink-soft);
}

.rhythm-legend {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  color: var(--ink-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease, color 160ms ease, border-color 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 继续浏览 */
.continue-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.continue-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}

.continue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.continue-list a,
.continue-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.continue-list a:hover,
.continue-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 页脚 */
.site-footer {
  margin-top: 56px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 320px;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
}

.footer-links li a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main > section {
  margin-top: 56px;
}

.home-main > section:first-child {
  margin-top: 32px;
}

.home-hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-kicker {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-lead h1 {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-table {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.hero-figure {
  margin-bottom: 16px;
}

.hero-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-table-title {
  font-size: 17px;
  margin-bottom: 12px;
}

.hero-table .data-table {
  font-size: 13px;
}

.hero-table .data-table th,
.hero-table .data-table td {
  padding: 8px 8px;
}

/* 执行摘要 */
.update-digest h2 {
  font-size: 21px;
  margin-bottom: 16px;
}

.executive-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
}

.summary-lead {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
}

.summary-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.summary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.summary-tip {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* 题材标签带 */
.genre-strip h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.genre-strip .section-desc {
  margin-bottom: 16px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 封面墙 */
.cover-wall h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.cover-wall .section-desc {
  margin-bottom: 20px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cover-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, transform 160ms ease;
}

.cover-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cover-card > a {
  display: block;
  padding: 10px;
  height: 100%;
}

.cover-figure {
  margin: 0 0 10px;
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.cover-name {
  font-size: 15px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-genre {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.cover-chapter {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}

.cover-more {
  margin-top: 16px;
}

/* 最近更新 */
.recent-updates h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.recent-updates .section-desc {
  margin-bottom: 20px;
}

.update-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-row:hover {
  background: var(--row-hover);
}

.update-thumb {
  margin: 0;
  width: 56px;
}

.update-thumb img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.update-main {
  min-width: 0;
}

.update-name {
  font-size: 15px;
  margin-bottom: 2px;
}

.update-name a {
  color: var(--ink);
}

.update-name a:hover {
  color: var(--accent);
}

.update-chapter {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.update-meta time {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* 榜单双列 */
.ranking-board h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.ranking-board .section-desc {
  margin-bottom: 20px;
}

.ranking-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rank-popular,
.rank-follow {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.rank-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.rank-method {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.rank-popular .data-table,
.rank-follow .data-table {
  font-size: 13px;
}

.rank-popular .data-table th,
.rank-popular .data-table td,
.rank-follow .data-table th,
.rank-follow .data-table td {
  padding: 8px 8px;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.ranking-more {
  margin-top: 16px;
}

/* 专题入口 */
.editor-topics h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.editor-topics .section-desc {
  margin-bottom: 20px;
}

.topic-list {
  border-top: 1px solid var(--line);
}

.topic-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.topic-lead {
  min-width: 0;
}

.topic-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.topic-name a {
  color: var(--ink);
}

.topic-name a:hover {
  color: var(--accent);
}

.topic-summary {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* 阅读与收藏说明 */
.reading-notes h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.reading-notes .section-desc {
  margin-bottom: 20px;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.note-block {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-block:nth-child(2n) {
  border-right: 0;
}

.note-block:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.note-question {
  font-size: 16px;
  margin-bottom: 10px;
}

.note-line {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 6px;
}

.note-line:last-child {
  margin-bottom: 0;
}

.note-label {
  display: inline-block;
  min-width: 48px;
  margin-right: 6px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}

.notes-more {
  margin-top: 16px;
}

/* 数据口径 */
.data-notes h2 {
  font-size: 21px;
  margin-bottom: 14px;
}

.data-list {
  display: grid;
  gap: 10px;
}

.data-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.data-key {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   pages · 更新日历
   -------------------------------------------------------------------------- */
.page-calendar .rhythm-week {
  margin-top: 24px;
}

.rhythm-week .rhythm-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  min-height: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.rhythm-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  min-width: 0;
}

.rhythm-col .rhythm-bar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 48px;
  min-height: 12px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  position: relative;
}

.rhythm-col .rhythm-value {
  position: absolute;
  top: -20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.rhythm-col .rhythm-label {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.calendar-figure {
  margin: 24px 0;
}

.calendar-figure img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.daily-tables {
  margin-top: 32px;
}

.daily-group {
  margin-bottom: 24px;
}

.daily-date {
  font-size: 17px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.update-table {
  font-size: 14px;
}

.status-note,
.time-note {
  margin-top: 32px;
}

.status-note-list {
  display: grid;
  gap: 12px;
}

.status-note-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-note-item .status-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 999px;
  white-space: nowrap;
}

.status-note-text {
  flex: 1 1 auto;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.time-note-list {
  display: grid;
  gap: 8px;
  padding-left: 4px;
}

.time-note-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.time-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--line);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   pages · 作品目录
   -------------------------------------------------------------------------- */
.filter-strip {
  position: sticky;
  top: 64px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-hint {
  flex: 0 0 auto;
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.filter-tags .tag,
.filter-status .tag {
  border-radius: 999px;
  padding: 4px 12px;
  min-height: 32px;
}

.filter-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.catalog-section {
  margin-top: 8px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.catalog-table {
  min-width: 720px;
  font-size: 14px;
}

.catalog-table .cell-cover {
  width: 64px;
  padding: 8px;
}

.cover-thumb {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 64px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.cell-title {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.genre-label {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 2px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.cell-status {
  white-space: nowrap;
}

.pick-advice {
  margin-top: 32px;
}

.advice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.advice-col {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.advice-col h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.advice-list {
  display: grid;
  gap: 8px;
}

.advice-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.advice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.field-note {
  margin-top: 32px;
}

.field-note h2 {
  font-size: 21px;
  margin-bottom: 14px;
}

.field-list {
  display: grid;
  gap: 10px;
}

.field-list li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

.field-list strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   pages · 排行榜
   -------------------------------------------------------------------------- */
.page-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.page-layout {
  display: grid;
  gap: 40px;
}

.layout-ranking {
  grid-template-columns: minmax(0, 780px) minmax(0, 300px);
  align-items: start;
  margin-top: 8px;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
}

.rank-figure {
  margin-bottom: 28px;
}

.rank-figure img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.rank-section {
  margin-bottom: 36px;
}

.rank-section h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.rank-section .section-desc {
  margin-bottom: 18px;
}

.rank-group {
  margin-bottom: 24px;
}

.rank-group h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.rank-group .rank-method {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.rank-table {
  font-size: 14px;
}

.rank-table .rank-no {
  width: 48px;
}

.rank-table-simple {
  font-size: 14px;
}

.rank-table-simple tr.is-top {
  background: var(--row-hover);
}

.rank-footnote {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.rank-aside {
  position: sticky;
  top: 88px;
}

.aside-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.aside-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.aside-list {
  display: grid;
  gap: 10px;
}

.aside-list li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.aside-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

.aside-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.aside-note a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 漫画专题
   -------------------------------------------------------------------------- */
.topic-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.topic-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.topic-head {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.topic-block-reverse .topic-head {
  grid-template-columns: 8fr 4fr;
}

.topic-figure {
  margin: 0;
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.topic-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.topic-lead {
  min-width: 0;
}

.topic-kicker {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.topic-title {
  font-size: 21px;
  margin-bottom: 12px;
}

.topic-intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.topic-body {
  margin-bottom: 24px;
}

.topic-subtitle {
  font-size: 17px;
  margin-bottom: 12px;
}

.topic-sequence {
  display: grid;
  gap: 10px;
  counter-reset: seq;
}

.topic-seq-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seq-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.seq-main {
  min-width: 0;
}

.seq-title {
  font-size: 15px;
  margin-bottom: 2px;
}

.seq-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.seq-reason {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.75;
}

.topic-extend {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-extend-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.extend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reading-order {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.order-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.order-step {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.order-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.order-step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.75;
}

.order-tail {
  font-size: 14px;
  color: var(--ink-soft);
}

.order-tail a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  margin-right: 4px;
}

.order-tail a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 阅读指南
   -------------------------------------------------------------------------- */
.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 8px;
}

/* .sidebar-left 在 body 上，本页布局容器为 .page-layout.guide-layout */
.sidebar-left .guide-layout {
  grid-template-columns: 240px minmax(0, 1fr);
}

.topic-index {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.topic-index .aside-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.topic-index .aside-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

.topic-index-list {
  display: grid;
  gap: 12px;
}

.topic-group-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.topic-sub-list {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.topic-sub-list li a {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.topic-sub-list li a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.guide-content {
  min-width: 0;
}

.guide-figure {
  margin-bottom: 28px;
}

.guide-figure img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.faq-block {
  margin-bottom: 32px;
}

.faq-block h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.faq-block .section-desc {
  margin-bottom: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-summary {
  position: relative;
  display: block;
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item[open] .faq-summary {
  border-bottom: 1px solid var(--line);
}

.faq-body {
  padding: 14px 18px 16px;
}

.faq-line {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 8px;
}

.faq-line:last-child {
  margin-bottom: 0;
}

.faq-label {
  display: inline-block;
  min-width: 48px;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.checklist-block {
  margin-top: 8px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist-block h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.checklist-block .section-desc {
  margin-bottom: 16px;
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist-item {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.checklist-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}

.checklist-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 问题反馈
   -------------------------------------------------------------------------- */
.page-container {
  max-width: var(--read);
  margin: 0 auto;
}

.issue-routing {
  margin-top: 8px;
}

.routing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.routing-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.routing-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.routing-basis,
.routing-fields {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 6px;
}

.routing-fields {
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.template-section {
  margin-top: 40px;
}

.template-figure {
  margin: 18px 0;
}

.template-figure img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.figure-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.template-table {
  font-size: 14px;
}

.table-caption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.field-name {
  width: 140px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.template-tip {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.process-section {
  margin-top: 40px;
}

.process-steps {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  counter-reset: proc;
}

.process-step {
  position: relative;
  padding: 16px 18px 16px 60px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-step .step-index {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 50%;
}

.step-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--read);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.error-panel h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.error-hints {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.error-hints h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

.error-hint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.error-hint-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.error-hint-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cover-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .layout-ranking {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .topic-head,
  .topic-block-reverse .topic-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .topic-block-reverse .topic-head .topic-figure {
    order: -1;
  }

  .guide-layout,
  .sidebar-left .guide-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .routing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    flex: 1 1 100%;
    order: 3;
    display: flex;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px;
    margin-top: 4px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 0 12px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
  }

  .inner-main {
    padding: 0 16px 40px;
  }

  .home-main {
    padding: 0 16px 40px;
  }

  .home-main > section {
    margin-top: 40px;
  }

  .page-header {
    padding: 12px 0 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-head {
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .page-head-anchors,
  .page-head-links,
  .page-anchors {
    width: 100%;
  }

  .hero-lead h1 {
    font-size: 24px;
  }

  .hero-figure img {
    height: 160px;
  }

  .hero-table {
    padding: 14px;
  }

  .hero-table .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: var(--radius);
  }

  .rhythm-bars {
    gap: 6px;
    min-height: 150px;
  }

  .rhythm-item .rhythm-bar {
    max-width: 32px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .update-row {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "thumb main"
      "meta meta";
    gap: 10px 12px;
    padding: 12px;
  }

  .update-thumb {
    grid-area: thumb;
    width: 48px;
  }

  .update-thumb img {
    width: 48px;
    height: 64px;
  }

  .update-main {
    grid-area: main;
  }

  .update-meta {
    grid-area: meta;
    justify-content: flex-start;
  }

  .ranking-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .note-block {
    border-right: 0;
  }

  .note-block:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .note-block:last-child {
    border-bottom: 0;
  }

  .data-list li {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .page-shell {
    padding: 0 16px;
  }

  .layout-ranking {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rank-aside {
    position: static;
  }

  .filter-strip {
    position: static;
    padding: 12px;
    gap: 10px;
  }

  .filter-status {
    margin-left: 0;
    width: 100%;
  }

  .filter-hint {
    width: 100%;
    flex: 1 1 100%;
  }

  .filter-tags {
    width: 100%;
  }

  .advice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-table {
    min-width: 640px;
  }

  .guide-layout,
  .sidebar-left .guide-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .topic-index {
    position: static;
  }

  .topic-sub-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .topic-sub-list li a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 12px;
    border-left: 1px solid var(--line);
  }

  .topic-sub-list li a:hover {
    border-color: var(--accent);
  }

  .topic-seq-item {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .seq-index {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .routing-grid {
    grid-template-columns: 1fr;
  }

  .template-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .field-name {
    width: auto;
  }

  .process-step {
    padding: 14px 14px 14px 54px;
  }

  .process-step .step-index {
    left: 12px;
    top: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    padding: 28px 16px 20px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: none;
  }

  .footer-bottom {
    padding: 14px 16px 20px;
    flex-direction: column;
    gap: 6px;
  }

  .continue-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .continue-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .continue-list a,
  .continue-link {
    min-height: 44px;
  }

  .error-main {
    padding: 32px 16px 48px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-code {
    font-size: 40px;
  }

  .error-panel h1 {
    font-size: 22px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .rhythm-chart {
    padding: 16px 12px;
  }

  .rhythm-week .rhythm-chart {
    padding: 16px 12px;
    gap: 6px;
  }

  .rhythm-col .rhythm-bar {
    max-width: 34px;
  }

  .rhythm-col .rhythm-label {
    font-size: 11px;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
