/* ==========================================================================
   漫画免费看 fanqiejishi.com
   全站样式表
   base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base —— 变量、重置、排版基线
   -------------------------------------------------------------------------- */

:root {
  --paper: #F7F6F1;
  --ink: #15171B;
  --slate: #5A6068;
  --indigo: #24405E;
  --brick: #B4552F;
  --rule: #DAD6CD;
  --paper-deep: #EFEDE6;
  --shell: 1200px;
  --gutter: 24px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

.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;
}

/* --------------------------------------------------------------------------
   layout —— 页头、导航、主容器、面包屑、页脚
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-name:hover {
  text-decoration: none;
  color: var(--indigo);
}

.brand-slogan {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
}

.primary-nav.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 6px 2px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--indigo);
  text-decoration: none;
  border-bottom-color: var(--rule);
}

.nav-list a.is-current {
  color: var(--indigo);
  border-bottom-color: var(--indigo);
  font-weight: 600;
}

.genre-index {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}

.genre-index-list {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.genre-index-list a {
  font-size: 13px;
  color: var(--slate);
}

.genre-index-list a:hover {
  color: var(--brick);
  text-decoration: none;
}

.site-main {
  display: block;
}

.home-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--gutter) 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--slate);
}

.breadcrumb a:hover {
  color: var(--indigo);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}

.page-hero {
  margin-bottom: 40px;
}

.page-head {
  margin-bottom: 40px;
}

.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
  max-width: 760px;
  margin-bottom: 12px;
}

.page-meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
  margin: 0;
}

.page-eyebrow,
.section-eyebrow {
  font-size: 13px;
  color: var(--brick);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.site-footer {
  background: var(--ink);
  color: #C9C6BE;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px 40px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #F7F6F1;
  margin: 0 0 8px;
}

.footer-brand-slogan {
  font-size: 14px;
  color: #B7B4AC;
  margin: 0 0 12px;
}

.footer-brand-note {
  font-size: 13px;
  line-height: 1.7;
  color: #8E8B84;
  margin: 0;
}

.footer-col-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: #F7F6F1;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 13px;
  color: #B7B4AC;
  overflow-wrap: anywhere;
}

.footer-list a:hover {
  color: #F7F6F1;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #2C2F35;
}

.footer-bottom p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter) 28px;
  font-size: 13px;
  line-height: 1.7;
  color: #8E8B84;
}

/* --------------------------------------------------------------------------
   components —— 通用区块、标题、列表、表格、链接、标签
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 56px;
}

.section-head {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.section-num {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-index {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.section-title {
  font-size: 24px;
  color: var(--ink);
}

.section-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  max-width: 760px;
  margin: 10px 0 0;
}

.section-summary,
.section-sub {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  margin: 10px 0 0;
  max-width: 760px;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--indigo);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.text-link:hover {
  text-decoration: none;
  border-bottom-color: var(--indigo);
}

.related-links {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  border-top: 1px solid var(--rule);
}

.related-links-label {
  font-size: 13px;
  color: var(--brick);
  letter-spacing: 0.06em;
}

.related-links-item {
  font-size: 14px;
  color: var(--indigo);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.related-list a {
  font-size: 14px;
  color: var(--indigo);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--brick);
}

.table-wrap {
  overflow-x: auto;
}

.entry-table,
.data-table,
.field-table,
.caliber-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.7;
}

.entry-table caption,
.data-table caption,
.field-table caption,
.caliber-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--slate);
  padding-bottom: 10px;
}

.entry-table th,
.entry-table td,
.data-table th,
.data-table td,
.field-table th,
.field-table td,
.caliber-table th,
.caliber-table td {
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.entry-table thead th,
.data-table thead th,
.field-table thead th,
.caliber-table thead th {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}

.entry-table tbody tr:hover,
.data-table tbody tr:hover,
.caliber-table tbody tr:hover {
  background: #F1EFE8;
}

.entry-table tbody th,
.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.field-table-caption {
  font-size: 13px;
  color: var(--slate);
}

.threshold-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--brick);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 8px;
  margin: 0;
}

.genre-label {
  display: inline-block;
  font-size: 12px;
  color: var(--brick);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 6px;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 26px 14px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 18px;
  color: var(--brick);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  color: var(--indigo);
}

.faq-item p,
.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  margin: 0 0 14px;
}

.faq-answer {
  padding-bottom: 6px;
}

.faq-answer a {
  color: var(--indigo);
}

.boundary,
.boundary-note,
.boundary-strip,
.boundary-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
  padding: 24px 0;
  margin-bottom: 48px;
}

.boundary h2,
.boundary-note h2,
.boundary-strip h2,
.boundary-band h2,
.boundary-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.boundary-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  max-width: 860px;
  margin: 0 0 12px;
}

.boundary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
}

.boundary-links a {
  font-size: 14px;
  color: var(--indigo);
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.method-item {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.method-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.method-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 8px;
}

.method-item .method-note {
  font-size: 13px;
  color: var(--brick);
  margin: 0;
}

.misread-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.misread-item {
  border-left: 2px solid var(--brick);
  padding-left: 16px;
}

.misread-wrong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.misread-fix {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  margin: 0;
}

.content-figure {
  margin-top: 28px;
}

.content-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-deep);
}

.content-figure figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   pages —— 首页
   -------------------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: #F7F6F1;
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px var(--gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #C9A98F;
  margin: 0 0 14px;
}

.hero-text h1 {
  font-size: 40px;
  color: #F7F6F1;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #C9C6BE;
  max-width: 560px;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--radius);
  min-height: 44px;
  line-height: 1.6;
}

.btn-primary {
  background: var(--indigo);
  color: #F7F6F1;
  border: 1px solid var(--indigo);
}

.btn-primary:hover {
  text-decoration: none;
  background: #1B3149;
}

.btn-ghost {
  color: #F7F6F1;
  border: 1px solid #4A4E56;
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: #F7F6F1;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #24272D;
}

.mainlines,
.genre-wall,
.recent,
.reading-flow,
.faq {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}

.mainline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.mainline-item {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
  min-width: 0;
}

.mainline-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.mainline-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.mainline-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 12px;
}

.genre-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.genre-card {
  min-width: 0;
}

.genre-card-media {
  margin-bottom: 14px;
  overflow: hidden;
}

.genre-card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-deep);
  transition: transform 0.35s ease;
}

.genre-card:hover .genre-card-media img {
  transform: scale(1.03);
}

.genre-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.genre-card h3 a {
  color: var(--ink);
}

.genre-card:hover h3 a {
  color: var(--indigo);
  text-decoration: underline;
}

.genre-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 10px;
}

.recent-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.recent-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.recent-aside {
  min-width: 0;
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}

.recent-aside h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.recent-aside p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 14px;
}

.reading-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}

.reading-flow-methods {
  min-width: 0;
}

.reading-flow-side {
  min-width: 0;
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}

.reading-flow-media {
  margin-bottom: 20px;
}

.reading-flow-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   pages —— 内页通用布局（目录 / 阅读顺序 / 整理标准）
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-sidebar,
.layout-side,
.sidebar {
  min-width: 0;
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}

.sidebar-block,
.side-block {
  margin-bottom: 36px;
}

.sidebar-block:last-child,
.side-block:last-child {
  margin-bottom: 0;
}

.sidebar-title,
.side-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.sidebar-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 16px;
}

.threshold-group {
  margin-bottom: 18px;
}

.threshold-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.threshold-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.threshold-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}

.side-field-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-field-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.side-field-name {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.side-link-list,
.sidebar-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-link-list a,
.sidebar-link-list a {
  font-size: 14px;
  color: var(--indigo);
}

.boundary-strip {
  margin: 56px 0 0;
  padding: 24px 0;
}

.boundary-strip .boundary-links {
  margin: 0;
}

/* 总目录页 */

.section-usage {
  margin-bottom: 48px;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.usage-card {
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.usage-card-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.usage-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}

.section-group {
  margin-bottom: 48px;
}

.group-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.group-summary-item {
  min-width: 0;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.group-summary-media {
  margin-bottom: 12px;
}

.group-summary-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-deep);
}

.group-summary-body {
  min-width: 0;
}

.group-summary-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.group-summary-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 10px;
}

.group-summary-body a {
  font-size: 14px;
  color: var(--indigo);
}

/* 题材分类页 */

.genre-system,
.genre-groups,
.filter-section,
.genre-advice {
  margin-bottom: 56px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.system-item {
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.system-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.system-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}

.genre-block {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}

.genre-block-reverse .genre-text {
  order: 2;
}

.genre-block-reverse .genre-figure {
  order: 1;
}

.genre-text {
  min-width: 0;
}

.genre-text h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.genre-def {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 12px;
}

.genre-feature,
.genre-scene {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 12px;
}

.genre-anchor {
  display: inline-block;
  font-size: 14px;
  color: var(--indigo);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.genre-anchor:hover {
  text-decoration: none;
  border-bottom-color: var(--indigo);
}

.genre-figure {
  min-width: 0;
}

.genre-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.filter-col {
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.filter-col h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.filter-col p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 12px;
}

.filter-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-values li {
  font-size: 13px;
  color: var(--brick);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 10px;
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}

.advice-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

.advice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--brick);
}

/* 阅读顺序页 */

.content-section {
  margin-bottom: 56px;
}

.pace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.pace-advice,
.pace-checklist {
  min-width: 0;
}

.pace-advice h3,
.pace-checklist h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.pace-checklist .check-list {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}

/* 条目对比页 */

.section-dimensions,
.section-example,
.section-scenarios,
.section-flow,
.section-related {
  margin-bottom: 56px;
}

.dimension-table th[scope="row"] {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.compare-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.compare-col {
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  background: #FBFAF6;
}

.compare-col-a {
  border-top: 3px solid var(--indigo);
}

.compare-col-b {
  border-top: 3px solid var(--brick);
}

.compare-col-title {
  font-size: 18px;
  margin-bottom: 14px;
}

.compare-figure {
  margin-bottom: 16px;
}

.compare-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-deep);
}

.compare-fields {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-fields dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.04em;
}

.compare-fields dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.compare-conclusion {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  border-left: 2px solid var(--ink);
  padding-left: 16px;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.scenario-item {
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.scenario-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.scenario-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.flow-step {
  display: flex;
  gap: 16px;
  min-width: 0;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.flow-num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--brick);
  line-height: 1.3;
}

.flow-body {
  min-width: 0;
}

.flow-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.flow-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}

/* 阅读说明页 */

.usage-flow,
.reading-setup,
.scope-note,
.faq-section {
  margin-bottom: 56px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.usage-flow .flow-step {
  display: block;
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.usage-flow .step-no {
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.usage-flow .step-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.usage-flow .step-action {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0 0 8px;
}

.usage-flow .step-action a {
  color: var(--indigo);
}

.usage-flow .step-result {
  font-size: 13px;
  line-height: 1.7;
  color: var(--brick);
  margin: 0;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}

.setup-text {
  min-width: 0;
}

.setup-subtitle {
  font-size: 18px;
  margin-bottom: 14px;
}

.setup-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-list li {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.setup-item-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.setup-list p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}

.setup-figure {
  min-width: 0;
}

.setup-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
}

.setup-figure figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
  margin-top: 10px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.scope-col {
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.scope-subtitle {
  font-size: 17px;
  margin-bottom: 12px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--brick);
}

.scope-more {
  margin: 20px 0 0;
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--rule);
}

/* 整理标准页 */

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.content-column {
  min-width: 0;
}

.standards-principles,
.standards-caliber,
.standards-check,
.standards-rights {
  margin-bottom: 56px;
}

.principles-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.principle-item {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

.principle-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.principles-figure {
  min-width: 0;
}

.principles-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-deep);
}

.principles-figure figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
  margin-top: 10px;
}

.caliber-table th[scope="row"] {
  font-weight: 600;
  color: var(--ink);
}

.check-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.check-step {
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.check-num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.check-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.check-step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}

.rights-body {
  min-width: 0;
}

.rights-body > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

.rights-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.rights-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

.rights-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--brick);
}

.content-boundary-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin: 0;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.summary-list dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.04em;
}

.summary-list dd {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

/* 404 */

.site-error .error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 80px var(--gutter) 40px;
}

.error-block {
  max-width: 640px;
}

.error-code {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--brick);
  line-height: 1;
  margin: 0 0 16px;
}

.error-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.error-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 12px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-btn-primary {
  display: inline-block;
  font-size: 14px;
  padding: 11px 22px;
  min-height: 44px;
  line-height: 1.6;
  border-radius: var(--radius);
  background: var(--indigo);
  border: 1px solid var(--indigo);
  color: #F7F6F1;
}

.error-btn-primary:hover {
  text-decoration: none;
  background: #1B3149;
}

/* --------------------------------------------------------------------------
   responsive —— 1024 / 768 / 480
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 48px var(--gutter) 40px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .mainline-grid,
  .genre-wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-layout,
  .reading-flow-layout,
  .page-layout,
  .layout-shell,
  .setup-layout,
  .principles-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .recent-aside,
  .reading-flow-side,
  .layout-sidebar,
  .layout-side,
  .sidebar {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 24px;
  }

  .pace-checklist .check-list {
    border-left: 0;
    padding-left: 0;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .check-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .primary-nav.site-nav {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 12px;
  }

  .nav-list {
    gap: 2px 16px;
  }

  .nav-list a {
    padding: 8px 2px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .page-title {
    font-size: 28px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 22px;
  }

  .mainline-grid,
  .genre-wall-grid,
  .usage-grid,
  .system-grid,
  .group-summary-list,
  .advice-list,
  .scenario-list,
  .compare-pair,
  .scope-columns,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .genre-block-reverse .genre-text,
  .genre-block-reverse .genre-figure {
    order: 0;
  }

  .flow-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-steps,
  .check-steps,
  .filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .inner-main {
    padding: 20px 16px 48px;
  }

  .header-inner,
  .genre-index-list,
  .hero-inner,
  .mainlines,
  .genre-wall,
  .recent,
  .reading-flow,
  .faq,
  .related-links,
  .footer-inner,
  .footer-bottom p,
  .site-error .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .error-title {
    font-size: 26px;
  }

  .compare-col {
    padding: 18px;
  }

  .entry-table,
  .data-table,
  .field-table,
  .caliber-table {
    font-size: 13px;
  }

  .entry-table th,
  .entry-table td,
  .data-table th,
  .data-table td,
  .field-table th,
  .field-table td,
  .caliber-table th,
  .caliber-table td {
    padding: 10px 8px;
  }
}
