/* ==========================================================================
   免费看漫画的漫画网站 · 全站样式
   分组：base / layout / components / pages / responsive
   说明：结构骨架统一，栏目模块按页面差异单独组织。
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础
   -------------------------------------------------------------------------- */
:root {
  --ink: #101722;
  --ink-soft: #1c2735;
  --paper: #f7f4ee;
  --paper-alt: #efeae1;
  --line: #cfc8bb;
  --line-strong: #b3a99a;
  --blue: #1b4dff;
  --blue-dark: #1439b8;
  --red: #d93a2b;
  --yellow: #f2c14e;
  --text: #3b4a5a;
  --text-strong: #1d2733;
  --muted: #6b7785;
  --white: #ffffff;

  --shell: 1120px;
  --read: 720px;
  --gap: 24px;
  --radius: 6px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 19px;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.35em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue-dark);
  background: rgba(27, 77, 255, 0.08);
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

strong {
  color: var(--text-strong);
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
}

/* 更新标记：文字 + 色块双重表达 */
.mark,
.entry-flag,
.rank-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid currentColor;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
  white-space: nowrap;
}

.mark-new,
.flag-new,
.rank-new {
  color: var(--red);
  background: rgba(217, 58, 43, 0.1);
}

.mark-continue,
.flag-continue,
.rank-ongoing {
  color: var(--blue-dark);
  background: rgba(27, 77, 255, 0.1);
}

.mark-done,
.flag-end,
.rank-complete {
  color: var(--text-strong);
  background: rgba(16, 23, 34, 0.08);
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--blue);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  color: var(--paper);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 0;
  letter-spacing: 0;
}

.brand:hover {
  color: var(--yellow);
  background: transparent;
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  color: var(--yellow);
  background: rgba(242, 193, 78, 0.12);
}

.site-nav a.is-current {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  border-left: 4px solid var(--yellow);
  padding-left: 8px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--paper);
}

.site-main {
  display: block;
}

.section-inner,
.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  padding-bottom: 56px;
}

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-lead,
.section-desc,
.section-note,
.page-hero-desc,
.page-hero-lead,
.page-intro,
.page-head-desc {
  max-width: var(--read);
  color: var(--text);
}

/* 内页统一：面包屑 / 页面标题区 */
.breadcrumb {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-strong);
  font-weight: 700;
}

.page-header {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 24px 8px;
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  margin: 0;
}

.page-hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 8px;
}

.page-head {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 8px;
}

/* 页脚 */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 28px 24px;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 8px;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #cfd6df;
  margin: 0 0 10px;
}

.footer-copy {
  font-size: 13px;
  color: #9aa5b1;
  margin: 0;
}

.footer-col h3 {
  font-size: 15px;
  color: var(--yellow);
  margin: 0 0 10px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0 0 6px;
}

.footer-col a {
  color: var(--paper);
  text-decoration: underline;
  font-size: 15px;
  display: inline-block;
  padding: 4px 0;
  min-height: 32px;
}

.footer-col a:hover {
  color: var(--yellow);
  background: transparent;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--blue);
  line-height: 1.4;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
}

.btn-ghost:hover {
  background: rgba(27, 77, 255, 0.1);
  color: var(--blue-dark);
}

/* 图片容器统一约束 */
figure {
  margin: 0 0 20px;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
}

figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.section-media,
.timeline-figure,
.rank-divider,
.genre-figure,
.guide-figure,
.notes-figure,
.section-figure {
  max-width: var(--shell);
}

/* --------------------------------------------------------------------------
   components · 首页模块
   -------------------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 0 0;
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 32px;
  align-items: start;
}

.hero-text h1 {
  color: var(--paper);
  font-size: 32px;
  margin-bottom: 14px;
}

.hero-lead {
  color: #d6dde6;
  font-size: 17px;
  max-width: 46ch;
}

.hero-tags {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags li {
  margin: 0;
}

.hero-tags a {
  display: inline-block;
  padding: 8px 14px;
  min-height: 44px;
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  color: var(--yellow);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.7;
}

.hero-tags a:hover {
  background: var(--yellow);
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn-ghost {
  color: var(--paper);
  border-color: var(--paper);
}

.hero-actions .btn-ghost:hover {
  background: rgba(247, 244, 238, 0.16);
  color: var(--paper);
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border: 1px solid rgba(247, 244, 238, 0.28);
  border-radius: var(--radius);
}

.hero-next {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 20px;
}

.hero-next a {
  display: inline-block;
  color: var(--yellow);
  font-size: 15px;
  padding: 8px 0;
}

.hero-next a:hover {
  color: var(--paper);
  background: transparent;
}

/* 首页栏目入口总览 */
.entry-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px;
}

.entry-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.entry-card p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

/* 最近更新条目行 */
.update-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.update-title {
  font-weight: 700;
  color: var(--text-strong);
}

.update-genre {
  font-size: 14px;
  color: var(--muted);
}

.update-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.update-link {
  font-size: 14px;
  text-align: right;
}

.section-more {
  margin: 16px 0 0;
}

/* 题材分类矩阵 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.genre-group h3 {
  margin-bottom: 6px;
}

.genre-scope,
.group-scope {
  font-size: 15px;
  color: var(--text);
}

.genre-samples {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  flex: 1 1 auto;
}

.genre-samples li {
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.genre-link,
.group-foot a {
  font-weight: 700;
}

/* 榜单双列 */
.ranking-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ranking-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 20px;
}

.ranking-basis {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rank;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.ranking-list .rank-num {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
}

.ranking-list .rank-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.ranking-list .rank-note {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* 专题入口行 */
.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.topic-name {
  font-weight: 700;
  color: var(--text-strong);
}

.topic-rule {
  font-size: 15px;
  color: var(--text);
}

.topic-link {
  font-size: 14px;
  text-align: right;
}

/* 阅读三步流程 */
.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: flow;
}

.flow-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0;
}

.flow-step h3 {
  font-size: 18px;
}

.flow-goal,
.flow-prep,
.flow-check {
  font-size: 15px;
  margin: 0 0 8px;
}

.flow-prep {
  color: var(--muted);
}

.flow-check {
  color: var(--text-strong);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

/* 说明与反馈入口 */
.notes-section p {
  max-width: var(--read);
}

.notes-links a {
  margin-right: 18px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   components · 内页通用模块
   -------------------------------------------------------------------------- */

/* 双栏外壳：主内容在前，aside 在后 */
.page-layout,
.layout-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.layout-main,
.content-column {
  min-width: 0;
}

.layout-side,
.side-column {
  min-width: 0;
}

.side-block,
.aside-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}

.side-block h2,
.aside-block h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.aside-links,
.side-links ul,
.genre-anchor ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-links li,
.side-links li,
.genre-anchor li {
  margin: 0 0 4px;
}

.aside-links a,
.side-links a,
.genre-anchor a {
  display: inline-block;
  padding: 6px 0;
  min-height: 32px;
  font-size: 15px;
}

/* 条目字段说明 */
.field-list {
  margin: 0;
}

.field-list dt {
  font-weight: 700;
  color: var(--text-strong);
  margin-top: 10px;
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--text);
}

/* 条目表 */
.entry-table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.entry-table caption {
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
}

.entry-table th,
.entry-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}

.entry-table thead th {
  background: var(--paper-alt);
  color: var(--text-strong);
  font-size: 14px;
}

.entry-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-table .entry-title {
  font-weight: 700;
  color: var(--text-strong);
}

/* 通用三列入口 */
.next-step-grid,
.evergreen-grid,
.path-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.next-step-item,
.evergreen-card,
.path-card,
.related-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.next-step-item p,
.evergreen-card p,
.path-card p,
.related-col p {
  font-size: 15px;
  margin-bottom: 10px;
}

.next-step-link,
.related-link {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   pages · 各内页模块
   -------------------------------------------------------------------------- */

/* 题材分类页 */
.genre-groups .genre-group {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  display: block;
}

.genre-groups .genre-group:last-child {
  border-bottom: 0;
}

.scope-compare .compare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px;
}

.compare-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.compare-item p {
  font-size: 15px;
  margin: 0;
}

.genre-visual {
  margin-top: 32px;
}

.genre-tail {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px 48px;
}

.genre-tail p {
  max-width: var(--read);
}

/* 最近更新页 */
.update-timeline {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.timeline-segment {
  margin-bottom: 32px;
}

.timeline-segment h3 {
  font-size: 19px;
  border-left: 5px solid var(--blue);
  padding-left: 10px;
}

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.entry-row .entry-title {
  font-weight: 700;
  color: var(--text-strong);
}

.entry-row .entry-genre {
  font-size: 14px;
  color: var(--muted);
}

.entry-row .entry-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.entry-row .entry-link {
  font-size: 14px;
  text-align: right;
}

.flag-guide,
.evergreen-entry {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.flag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flag-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.flag-item p {
  margin: 0;
  font-size: 15px;
}

.evergreen-entry {
  padding-bottom: 24px;
}

.related-links {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.related-links-label {
  font-size: 15px;
  color: var(--muted);
}

.related-links-item {
  font-size: 15px;
  font-weight: 700;
}

/* 榜单页 */
.rank-block {
  max-width: 880px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.rank-basis {
  font-size: 15px;
  color: var(--muted);
  max-width: var(--read);
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.rank-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 4px;
  font-weight: 700;
}

.rank-title {
  font-size: 18px;
  margin: 0 0 4px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 6px;
}

.rank-why {
  font-size: 15px;
  margin: 0;
}

.rank-divider {
  max-width: 880px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.rank-divider img {
  height: 180px;
}

.rank-standard,
.browse-paths,
.related-entry {
  max-width: 880px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.standard-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.standard-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  margin: 0;
}

.related-entry p {
  max-width: var(--read);
}

/* 专题中心页 */
.topics-list,
.topic-adjust,
.related-entry {
  max-width: 880px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.topic-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 20px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.topic-item-main {
  min-width: 0;
}

.topic-item-side {
  text-align: right;
}

.topic-standard,
.topic-order {
  font-size: 15px;
  margin: 0 0 6px;
}

.field-label {
  color: var(--text-strong);
  font-weight: 700;
}

.topic-enter {
  display: inline-block;
  padding: 10px 16px;
  min-height: 44px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}

.topic-enter:hover {
  background: var(--blue);
  color: var(--white);
}

.topic-adjust-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.adjust-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.adjust-block p {
  font-size: 15px;
  margin: 0;
}

/* 阅读指南页 */
.guide-prep,
.guide-steps,
.guide-check,
.guide-faq {
  max-width: var(--read);
  margin: 0 auto 36px;
  padding: 0 24px;
}

.prep-list,
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prep-list li,
.check-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.prep-list h3,
.check-list h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.prep-list p,
.check-list p {
  font-size: 15px;
  margin: 0;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: guide;
}

.step-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.step-block h3 {
  font-size: 18px;
}

.step-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 6px 14px;
}

.step-meta dt {
  font-weight: 700;
  color: var(--text-strong);
  font-size: 15px;
}

.step-meta dd {
  margin: 0;
  font-size: 15px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 10px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-strong);
  font-size: 17px;
  padding: 4px 0;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 15px;
}

.guide-aside {
  max-width: var(--read);
  margin: 0 auto 48px;
  padding: 0 24px;
}

/* 站点说明页 */
.notes-block {
  max-width: var(--read);
  margin: 0 auto 36px;
}

.notes-subblock {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.notes-subblock h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.notes-subblock p {
  font-size: 15px;
  margin: 0;
}

.rules-table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.rules-table caption {
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
}

.rules-table th,
.rules-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}

.rules-table thead th {
  background: var(--paper-alt);
  color: var(--text-strong);
  font-size: 14px;
}

.rules-table tbody tr:last-child td {
  border-bottom: 0;
}

.boundary-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 16px 36px;
}

.boundary-list li {
  font-size: 15px;
  padding: 6px 0;
}

.notes-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: notes;
}

.notes-steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.notes-steps h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.notes-steps p {
  font-size: 15px;
  margin: 0;
}

/* 404 */
.error-main {
  padding: 60px 0;
}

.error-panel {
  max-width: var(--read);
  margin: 0 auto;
  padding: 0 24px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 8px;
}

.error-text {
  font-size: 17px;
  max-width: var(--read);
}

.error-hints {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.error-hints li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  margin: 0;
}

.hint-path {
  font-family: var(--font-mono);
  color: var(--text-strong);
  font-weight: 700;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   responsive · 断点
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: 300px;
  }

  .entry-grid,
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-side,
  .side-column {
    order: 2;
  }
}

@media (max-width: 768px) {
  h1,
  .hero-text h1,
  .page-title {
    font-size: 26px;
  }

  h2 {
    font-size: 21px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 0 100%;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 12px;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(247, 244, 238, 0.2);
  }

  .site-nav a.is-current {
    border-left-width: 5px;
  }

  .section-inner,
  .inner-main,
  .breadcrumb,
  .page-header,
  .page-hero,
  .page-head,
  .page-layout,
  .layout-shell,
  .update-timeline,
  .flag-guide,
  .evergreen-entry,
  .related-links,
  .rank-block,
  .rank-divider,
  .rank-standard,
  .browse-paths,
  .related-entry,
  .topics-list,
  .topic-adjust,
  .guide-prep,
  .guide-steps,
  .guide-check,
  .guide-faq,
  .guide-aside,
  .error-panel,
  .genre-tail {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 32px 0;
  }

  .ranking-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-list,
  .next-step-grid,
  .evergreen-grid,
  .path-grid,
  .related-grid,
  .scope-compare .compare-list,
  .topic-adjust-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-item-side {
    text-align: left;
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 16px;
  }

  .entry-grid,
  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row,
  .entry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-link,
  .entry-row .entry-link {
    text-align: left;
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .topic-link {
    text-align: left;
  }

  .step-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .step-meta dt {
    margin-top: 6px;
  }

  .hero-media img {
    height: 220px;
  }

  .error-code {
    font-size: 44px;
  }
}
