/* ==========================================================================
   51禁漫 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #F4F5F7;
  color: #1B2130;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #1B2130;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol,
dl {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

li {
  margin: 0;
}

a {
  color: #23335A;
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: #D9452F;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #D9452F;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #5D6575;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

strong {
  font-weight: 700;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #F4F5F7;
}

/* --- 页头 --- */

.site-header {
  background-color: #23335A;
  color: #FFFFFF;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  line-height: 64px;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: #FFFFFF;
  text-decoration: none;
}

/* --- 主导航 --- */

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.nav-toggle-label {
  display: none;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
}

.nav-list > li {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0 14px;
  line-height: 64px;
  color: #D8DEEA;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.nav-link.is-current {
  color: #FFFFFF;
  box-shadow: inset 0 -3px 0 0 #D9452F;
}

.nav-sub {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  min-width: 168px;
  margin: 0;
  padding: 6px 0;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(27, 33, 48, 0.12);
  display: none;
}

.nav-item-has-sub:hover .nav-sub,
.nav-item-has-sub:focus-within .nav-sub {
  display: block;
}

.nav-sub a {
  display: block;
  padding: 10px 16px;
  color: #1B2130;
  font-size: 14px;
  text-decoration: none;
}

.nav-sub a:hover {
  background-color: #F4F5F7;
  color: #D9452F;
  text-decoration: none;
}

/* --- 主内容 --- */

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* --- 面包屑 --- */

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: #5D6575;
}

.breadcrumb ol,
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb a {
  color: #5D6575;
}

.breadcrumb a:hover {
  color: #D9452F;
}

.breadcrumb-sep,
.crumb-sep {
  color: #A9B0BE;
}

.breadcrumb-current,
.crumb-current {
  color: #1B2130;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.inner-main > .breadcrumb {
  max-width: none;
  margin: 0;
  padding: 16px 0 0;
}

/* --- 页面标题区 --- */

.page-header {
  padding: 12px 0 20px;
  border-bottom: 1px solid #DFE3EA;
  margin-bottom: 28px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: #1B2130;
}

.page-title-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 22px;
}

.site-brand-heading {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #D9452F;
}

.site-brand-heading:empty {
  display: none;
}

.page-lead {
  max-width: 900px;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.75;
  color: #5D6575;
}

.page-meta {
  margin: 0;
  font-size: 13px;
  color: #5D6575;
}

/* --- 页脚 --- */

.site-footer {
  margin-top: 8px;
  background-color: #23335A;
  color: #D8DEEA;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.footer-back {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.footer-back a {
  color: #FFFFFF;
}

.footer-back a:hover {
  color: #F2A08F;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.footer-col-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-col ul {
  margin: 0;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  color: #C6CEDE;
  font-size: 14px;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: #A9B4CA;
}

/* --- 通用两栏外壳 --- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  width: 100%;
}

.sidebar-left .page-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.sidebar-left .page-layout > .site-main {
  order: 2;
}

.sidebar-left .page-layout > aside {
  order: 1;
}

/* ==========================================================================
   components · 通用组件
   ========================================================================== */

/* --- 按钮 --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background-color: #23335A;
  border-color: #23335A;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #D9452F;
  border-color: #D9452F;
  color: #FFFFFF;
  text-decoration: none;
}

.btn-ghost {
  background-color: #FFFFFF;
  border-color: #DFE3EA;
  color: #23335A;
}

.btn-ghost:hover {
  border-color: #23335A;
  color: #D9452F;
  text-decoration: none;
}

/* --- 区块标题与导语 --- */

.section-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1B2130;
}

.section-lead {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: #5D6575;
}

.section-more {
  margin: 18px 0 0;
  font-size: 14px;
}

.section-more a {
  font-weight: 700;
}

/* --- 表格 --- */

.data-table {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  overflow: hidden;
}

.data-table caption,
.table-caption {
  caption-side: top;
  padding: 12px 14px;
  background-color: #EEF1F6;
  border-bottom: 1px solid #DFE3EA;
  font-size: 14px;
  font-weight: 700;
  color: #23335A;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #DFE3EA;
  line-height: 1.6;
}

.data-table thead th {
  background-color: #F8F9FB;
  font-size: 13px;
  font-weight: 700;
  color: #23335A;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background-color: #FAFBFC;
}

.data-table a {
  font-weight: 700;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- 状态徽标 --- */

.status,
.status-badge,
.cover-status,
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.status-ongoing,
.badge-ongoing {
  background-color: #E4F1ED;
  border-color: #BFDCD4;
  color: #22695A;
}

.status-finished,
.badge-finished,
.status-done,
.badge-done {
  background-color: #EDEFF5;
  border-color: #D3D8E4;
  color: #3B4664;
}

.status-paused,
.badge-paused {
  background-color: #FBEAE6;
  border-color: #F0C7BE;
  color: #A8341F;
}

/* --- 题材标签 --- */

.tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid #DFE3EA;
  border-radius: 4px;
  background-color: #F4F5F7;
  font-size: 12px;
  color: #5D6575;
  white-space: nowrap;
}

/* --- 封面卡 --- */

.cover-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  padding: 12px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: #C3CAD8;
  box-shadow: 0 8px 18px rgba(27, 33, 48, 0.08);
}

.cover-figure {
  margin: 0 0 10px;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background-color: #EEF1F6;
}

.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #1B2130;
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.cover-card .cover-status {
  align-self: flex-start;
}

/* --- 榜单行 --- */

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.rank-list > li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  border-bottom: 1px dashed #DFE3EA;
}

.rank-list > li:last-child {
  border-bottom: 0;
}

.rank-list > li::before {
  counter-increment: rank;
  content: counter(rank, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: #D9452F;
}

.rank-list a {
  font-weight: 700;
}

.rank-note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.6;
  color: #5D6575;
}

/* --- 术语卡 --- */

.term-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.term-card {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-left: 3px solid #23335A;
  border-radius: 6px;
  padding: 16px;
}

.term-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.term-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #5D6575;
}

.term-card a {
  font-size: 14px;
  font-weight: 700;
}

/* --- 误区速览 --- */

.myth-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
}

.myth-list > li {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  padding: 16px;
}

.myth-case {
  margin: 0 0 8px;
  font-weight: 700;
  color: #1B2130;
}

.myth-tip {
  margin: 0;
  font-size: 14px;
  color: #5D6575;
}

/* --- 侧栏区块 --- */

.side-block {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}

.side-block:last-child {
  margin-bottom: 0;
}

.side-block h2,
.side-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid #DFE3EA;
  color: #23335A;
}

.side-link-list,
.side-list,
.legend-list,
.toc-list,
.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-link-list li,
.legend-list li,
.toc-list li,
.related-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #DFE3EA;
  font-size: 14px;
}

.side-link-list li:last-child,
.legend-list li:last-child,
.toc-list li:last-child,
.related-list li:last-child {
  border-bottom: 0;
}

.side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #DFE3EA;
  font-size: 14px;
  line-height: 1.7;
  color: #5D6575;
}

.side-list li:last-child {
  border-bottom: 0;
}

.side-list strong {
  display: block;
  margin-bottom: 2px;
  color: #1B2130;
}

.side-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #DFE3EA;
  font-size: 13px;
  color: #5D6575;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- 相关内容条 --- */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 32px;
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  font-size: 14px;
}

.related-links-label {
  font-weight: 700;
  color: #5D6575;
}

.related-links-item {
  font-weight: 700;
}

/* --- 相关页面区块 --- */

.related-pages {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #DFE3EA;
}

.related-pages .related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 20px;
}

/* --- FAQ 折叠项 --- */

.faq-item {
  margin-bottom: 12px;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  padding: 0 18px;
}

.faq-item[open] {
  border-color: #C3CAD8;
}

.faq-item summary {
  padding: 15px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #1B2130;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "＋";
  flex: 0 0 auto;
  margin-right: 10px;
  color: #D9452F;
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "－";
}

.faq-item summary:hover {
  color: #D9452F;
}

.faq-item p {
  margin: 0 0 14px;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: #5D6575;
}

.faq-item p:last-child {
  margin-bottom: 16px;
}

/* --- 图片容器通用约束 --- */

.section-figure,
.catalog-figure,
.guide-figure,
.glossary-figure,
.about-figure,
.page-media {
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  background-color: #EEF1F6;
}

.section-figure img,
.catalog-figure img,
.guide-figure img,
.glossary-figure img,
.about-figure img,
.page-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-figure figcaption,
.catalog-figure figcaption,
.guide-figure figcaption,
.glossary-figure figcaption,
.about-figure figcaption,
.page-media figcaption {
  padding: 0 14px 12px;
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main > section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-bottom: 1px solid #DFE3EA;
}

.home-main > section:last-of-type {
  border-bottom: 0;
}

/* --- 首屏 --- */

.hero {
  padding-top: 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-text h1 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.35;
}

.hero-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #5D6575;
}

.period-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 12px 14px;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
}

.period-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  background-color: #F8F9FB;
  font-size: 14px;
  font-weight: 700;
  color: #23335A;
}

.period-link:hover {
  border-color: #23335A;
  color: #D9452F;
  text-decoration: none;
}

.period-link.is-current {
  background-color: #23335A;
  border-color: #23335A;
  color: #FFFFFF;
}

.period-link.is-current:hover {
  color: #FFFFFF;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-media {
  margin: 0;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  overflow: hidden;
  background-color: #EEF1F6;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px 12px;
  background-color: #FFFFFF;
}

/* --- 题材标签条 --- */

.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.genre-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  background-color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  color: #23335A;
}

.genre-list a:hover {
  border-color: #D9452F;
  color: #D9452F;
  text-decoration: none;
}

/* --- 编辑推荐封面墙 --- */

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* --- 最近更新表 --- */

.update-table {
  margin-bottom: 22px;
}

.update-table:last-of-type {
  margin-bottom: 0;
}

.update-table .group-row th {
  background-color: #EEF1F6;
  font-size: 13px;
  color: #23335A;
  border-bottom: 1px solid #DFE3EA;
}

/* --- 榜单两列 --- */

.rank-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rank-col {
  min-width: 0;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  padding: 18px;
}

.rank-col-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #DFE3EA;
  font-size: 16px;
  color: #23335A;
}

/* --- 浏览方式对照表 --- */

.compare-table th[scope="row"] {
  background-color: #F8F9FB;
  font-weight: 700;
  color: #23335A;
}

/* --- 内容说明摘要 --- */

.site-note p {
  max-width: 900px;
  color: #5D6575;
}

/* ==========================================================================
   pages · 漫画目录
   ========================================================================== */

.catalog-body {
  min-width: 0;
}

.catalog-intro {
  margin-bottom: 32px;
}

.catalog-intro p {
  max-width: 820px;
  color: #5D6575;
}

.catalog-table-section {
  margin-bottom: 36px;
}

.catalog-table {
  width: 100%;
  min-width: 640px;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  overflow: hidden;
}

.catalog-table caption {
  caption-side: top;
  padding: 12px 14px;
  background-color: #EEF1F6;
  border-bottom: 1px solid #DFE3EA;
  font-size: 14px;
  font-weight: 700;
  color: #23335A;
  text-align: left;
}

.catalog-table th,
.catalog-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #DFE3EA;
  line-height: 1.6;
}

.catalog-table thead th {
  background-color: #F8F9FB;
  font-size: 13px;
  font-weight: 700;
  color: #23335A;
  white-space: nowrap;
}

.catalog-table .group-head th {
  background-color: #EEF1F6;
  font-size: 14px;
  color: #23335A;
}

.catalog-table tbody tr:hover {
  background-color: #FAFBFC;
}

.catalog-status-read {
  margin-bottom: 36px;
}

.status-read-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.status-read-card {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  padding: 16px;
}

.status-read-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.status-read-card p {
  margin: 0;
  font-size: 14px;
  color: #5D6575;
}

.catalog-order .order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.catalog-order .order-list > li {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-left: 3px solid #23335A;
  border-radius: 6px;
  padding: 16px;
}

.catalog-order .order-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.catalog-order .order-list p {
  margin: 0;
  font-size: 14px;
  color: #5D6575;
}

/* ==========================================================================
   pages · 题材分类
   ========================================================================== */

.themes-body {
  min-width: 0;
}

.theme-overview {
  margin-bottom: 36px;
}

.theme-block {
  padding: 28px 0;
  border-top: 1px solid #DFE3EA;
}

.theme-block h2 {
  margin: 0 0 18px;
  font-size: 20px;
  color: #23335A;
}

.theme-block-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.theme-desc {
  min-width: 0;
}

.theme-desc h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1B2130;
}

.theme-desc p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #5D6575;
}

.theme-desc p:last-child {
  margin-bottom: 0;
}

.theme-entries {
  min-width: 0;
}

.theme-entries h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #23335A;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-combo {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #DFE3EA;
}

.combo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.combo-item {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  padding: 16px;
}

.combo-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.combo-item p {
  margin: 0;
  font-size: 14px;
  color: #5D6575;
}

/* ==========================================================================
   pages · 更新与榜单
   ========================================================================== */

.ranking-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  width: 100%;
}

.ranking-main {
  min-width: 0;
}

.update-section {
  margin-bottom: 36px;
}

.update-section .update-table {
  margin-bottom: 24px;
}

.update-section .update-table:last-of-type {
  margin-bottom: 0;
}

.rank-section {
  margin-bottom: 36px;
}

.rank-section .rank-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rank-section .rank-col {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  padding: 18px;
}

.rank-section .rank-col-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #DFE3EA;
  font-size: 16px;
  color: #23335A;
}

.rank-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-no {
  font-size: 13px;
  font-weight: 700;
  color: #D9452F;
}

.rank-link {
  font-weight: 700;
}

.choose-section {
  margin-bottom: 8px;
}

.choose-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.choose-col {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  padding: 18px;
}

.choose-col-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #DFE3EA;
  font-size: 16px;
  color: #23335A;
}

.choose-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.choose-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #DFE3EA;
  font-size: 14px;
  line-height: 1.7;
  color: #5D6575;
}

.choose-list li:last-child {
  border-bottom: 0;
}

.ranking-side {
  min-width: 0;
}

/* ==========================================================================
   pages · 阅读指南
   ========================================================================== */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
  width: 100%;
}

.guide-body {
  min-width: 0;
  max-width: 760px;
}

.guide-step {
  margin-bottom: 36px;
}

.guide-step .step-list {
  display: grid;
  gap: 16px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.guide-step .step-item {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  padding: 16px 18px 16px 56px;
  position: relative;
}

.guide-step .step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 18px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #23335A;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.guide-step .step-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.guide-step .step-item p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: #5D6575;
}

.guide-step .step-item p:last-child {
  margin-bottom: 0;
}

.guide-rhythm {
  margin-bottom: 36px;
}

.rhythm-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rhythm-col {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  padding: 18px;
}

.rhythm-col h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #DFE3EA;
  font-size: 16px;
  color: #23335A;
}

.rhythm-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rhythm-list li {
  padding: 7px 0;
  border-bottom: 1px dashed #DFE3EA;
  font-size: 14px;
  line-height: 1.7;
  color: #5D6575;
}

.rhythm-list li:last-child {
  border-bottom: 0;
}

.guide-progress {
  margin-bottom: 8px;
}

.progress-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: progress;
}

.progress-item {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px dashed #DFE3EA;
  font-size: 14px;
  line-height: 1.75;
  color: #5D6575;
}

.progress-item:last-child {
  border-bottom: 0;
}

.progress-item::before {
  counter-increment: progress;
  content: counter(progress);
  position: absolute;
  top: 12px;
  left: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #DFE3EA;
  border-radius: 50%;
  background-color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  color: #23335A;
}

.progress-note {
  margin: 0;
  font-size: 14px;
  color: #5D6575;
}

.guide-side {
  min-width: 0;
}

.guide-side .side-toc,
.guide-side .side-related {
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}

.guide-side .side-related {
  margin-bottom: 0;
}

/* ==========================================================================
   pages · 术语索引
   ========================================================================== */

.glossary-main {
  min-width: 0;
  max-width: 900px;
}

.mark-table {
  margin-bottom: 36px;
}

.term-list {
  margin-bottom: 36px;
}

.term-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}

.term-item {
  padding: 14px 0;
  border-bottom: 1px solid #DFE3EA;
}

.term-item dt {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #23335A;
}

.term-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5D6575;
}

.confuse-pair {
  margin-bottom: 36px;
}

.confuse-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
}

.confuse-side h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #23335A;
}

.confuse-side p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5D6575;
}

.confuse-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed #DFE3EA;
  font-size: 14px;
  color: #1B2130;
}

.local-record {
  margin-top: 20px;
  padding: 18px;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
}

.local-record h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.local-record p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #5D6575;
}

.record-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  background-color: #F8F9FB;
  font-size: 14px;
  font-weight: 700;
  color: #23335A;
}

.record-clear:hover {
  border-color: #D9452F;
  color: #D9452F;
}

.record-empty {
  margin: 10px 0 0;
  font-size: 13px;
  color: #5D6575;
}

.glossary-figure {
  margin-top: 32px;
}

/* ==========================================================================
   pages · 常见误区
   ========================================================================== */

.anchor-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.anchor-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  background-color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  color: #23335A;
}

.anchor-bar a:hover {
  border-color: #D9452F;
  color: #D9452F;
  text-decoration: none;
}

.faq-group {
  margin-bottom: 32px;
}

.faq-group h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #23335A;
}

.next-read {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #DFE3EA;
}

.next-read h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.next-read p {
  color: #5D6575;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  font-weight: 700;
}

/* ==========================================================================
   pages · 内容说明
   ========================================================================== */

.about-body {
  min-width: 0;
  max-width: 760px;
}

.scope-rule {
  margin-bottom: 32px;
}

.scope-rule p {
  color: #5D6575;
}

.mark-method {
  margin-bottom: 32px;
}

.mark-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mark-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #DFE3EA;
  font-size: 14px;
  line-height: 1.75;
  color: #5D6575;
}

.mark-list li:last-child {
  border-bottom: 0;
}

.mark-list strong {
  display: block;
  margin-bottom: 2px;
  color: #1B2130;
}

.mark-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.not-provided {
  margin-bottom: 32px;
}

.boundary-table {
  min-width: 520px;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  overflow: hidden;
}

.boundary-table caption {
  caption-side: top;
  padding: 12px 14px;
  background-color: #EEF1F6;
  border-bottom: 1px solid #DFE3EA;
  font-size: 14px;
  font-weight: 700;
  color: #23335A;
  text-align: left;
}

.boundary-table th,
.boundary-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #DFE3EA;
  line-height: 1.6;
  font-size: 14px;
}

.boundary-table thead th {
  background-color: #F8F9FB;
  font-size: 13px;
  color: #23335A;
  white-space: nowrap;
}

.boundary-table tbody th {
  background-color: #F8F9FB;
  font-weight: 700;
  color: #23335A;
}

.boundary-table tbody tr:last-child th,
.boundary-table tbody tr:last-child td {
  border-bottom: 0;
}

.about-side {
  min-width: 0;
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 80px;
}

.error-inner {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.error-code {
  margin: 0 0 6px;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: #D9452F;
}

.error-desc {
  margin: 0 0 24px;
  color: #5D6575;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.error-btn-primary,
.error-btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.error-btn-primary {
  background-color: #23335A;
  border-color: #23335A;
  color: #FFFFFF;
}

.error-btn-primary:hover {
  background-color: #D9452F;
  border-color: #D9452F;
  color: #FFFFFF;
  text-decoration: none;
}

.error-btn-plain {
  background-color: #FFFFFF;
  border-color: #DFE3EA;
  color: #23335A;
}

.error-btn-plain:hover {
  border-color: #23335A;
  color: #D9452F;
  text-decoration: none;
}

.error-tips {
  padding: 20px;
  background-color: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 6px;
  text-align: left;
}

.error-tips h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #23335A;
}

.error-tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-tips li {
  padding: 6px 0;
  border-bottom: 1px dashed #DFE3EA;
  font-size: 14px;
}

.error-tips li:last-child {
  border-bottom: 0;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .page-layout,
  .ranking-body,
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .theme-block-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .guide-body,
  .about-body,
  .glossary-main {
    max-width: none;
  }

  .guide-side .side-toc {
    margin-bottom: 0;
  }
}

@media (max-width: 900px) {
  .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-columns,
  .rank-section .rank-split,
  .choose-split,
  .rhythm-columns,
  .confuse-block {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding: 0 16px;
  }

  .brand {
    margin-right: auto;
    line-height: 56px;
  }

  .site-header .header-inner {
    min-height: 56px;
  }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
  }

  .nav-toggle-label span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 1px;
  }

  .primary-nav {
    flex: 1 0 100%;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0 4px;
    line-height: 44px;
  }

  .nav-link.is-current {
    box-shadow: inset 3px 0 0 0 #D9452F;
    padding-left: 12px;
  }

  .nav-sub {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 6px 12px;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-sub a {
    padding: 0 4px;
    line-height: 44px;
    color: #D8DEEA;
  }

  .nav-sub a:hover {
    background-color: transparent;
    color: #FFFFFF;
  }

  .inner-main,
  .breadcrumb,
  .breadcrumb-inner,
  .page-title-inner,
  .footer-inner,
  .home-main > section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .inner-main > .breadcrumb {
    padding-left: 0;
    padding-right: 0;
  }

  .page-title,
  .hero-text h1 {
    font-size: 22px;
  }

  .section-title,
  .theme-block h2,
  .faq-group h2,
  .next-read h2 {
    font-size: 18px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .term-dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-scroll,
  .catalog-table-section .table-scroll {
    overflow-x: auto;
  }

  .data-table,
  .catalog-table,
  .boundary-table {
    min-width: 560px;
  }

  .compare-table,
  .update-table {
    min-width: 520px;
  }

  .error-main {
    padding: 48px 16px 64px;
  }
}

@media (max-width: 560px) {
  .genre-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .genre-list a {
    flex: 0 0 auto;
  }

  .period-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .period-link {
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .term-cards,
  .myth-list,
  .status-read-grid,
  .catalog-order .order-list,
  .combo-list,
  .related-pages .related-list,
  .link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-links {
    align-items: flex-start;
  }

  .error-code {
    font-size: 44px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-btn-primary,
  .error-btn-plain {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .wall-grid,
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cover-card {
    padding: 10px;
  }

  .guide-step .step-item {
    padding: 14px 14px 14px 48px;
  }

  .guide-step .step-item::before {
    top: 14px;
    left: 14px;
  }
}
