/* ==========================================================================
   西瓜漫画 - 整站样式表
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2a2a2a;
  background: #f7f6f2;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #2a2a2a;
  text-decoration: none;
}

a:hover {
  color: #666;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  line-height: 1.35;
  font-weight: 700;
  color: #1f1f1f;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

details {
  display: block;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout - 全局骨架
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f6f2;
}

.site-header {
  background: #ffffff;
  border-bottom: 2px solid #1f1f1f;
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  color: #1f1f1f;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 13px;
  color: #666;
  border-left: 1px solid #ccc;
  padding-left: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #1f1f1f;
}

.site-nav {
  border-top: 1px solid #e0e0e0;
}

.nav-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  list-style: none;
}

.nav-list li a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid transparent;
}

.nav-list li a:hover {
  color: #1f1f1f;
  border-bottom-color: #1f1f1f;
}

.nav-list li a.is-current {
  color: #1f1f1f;
  border-bottom-color: #1f1f1f;
}

.site-main {
  flex: 1;
}

.site-footer {
  background: #1f1f1f;
  color: #bbb;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.footer-brand p {
  font-size: 15px;
  margin-bottom: 4px;
}

.footer-brand strong {
  color: #fff;
  font-size: 18px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: #bbb;
  font-size: 14px;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid #444;
  padding-top: 20px;
}

.footer-meta p {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Components - 面包屑 / 页面标题 / 通用模块
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #666;
}

.breadcrumb a:hover {
  color: #1f1f1f;
}

.breadcrumb-current {
  color: #333;
}

.page-header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1f1f1f;
}

.page-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: #555;
  max-width: 720px;
  margin-bottom: 0;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

/* 侧栏在左的布局 */
.sidebar-left .page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sidebar-left .page-layout > aside {
  grid-column: 1;
  grid-row: 1;
}

.sidebar-left .page-layout > div:not(.sidebar-inner) {
  grid-column: 2;
}

/* 首页主体双栏 */
.layout-shell.sidebar-left.home-main-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 0;
}

.sidebar-category,
.subject-tree,
.sidebar,
.page-sidebar {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 20px;
  position: sticky;
  top: 20px;
}

.sidebar-title,
.sidebar h2,
.page-sidebar h2 {
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 14px;
  color: #1f1f1f;
}

.category-tree li,
.tree-list > li {
  margin-bottom: 4px;
}

.category-tree a,
.tree-list > li > a {
  display: block;
  padding: 7px 0;
  font-size: 15px;
  color: #333;
}

.category-tree a:hover,
.tree-list > li > a:hover {
  color: #1f1f1f;
  font-weight: 600;
}

.sidebar-note {
  font-size: 13px;
  color: #999;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* --------------------------------------------------------------------------
   Components - 封面卡
   -------------------------------------------------------------------------- */
.cover-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card h3 {
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px 2px;
  margin: 0;
}

.cover-card p {
  font-size: 13px;
  color: #777;
  padding: 0 12px 12px;
  margin: 0;
}

/* 首页封面条 */
.cover-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 书架页封面网格 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cover-figure {
  position: relative;
  overflow: hidden;
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 31, 31, 0.8);
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  text-align: center;
}

.cover-info {
  padding: 12px;
}

.cover-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.cover-info p {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin: 0;
}

.meta-list div {
  font-size: 12px;
  color: #888;
}

.meta-list dt {
  font-weight: 400;
  color: #aaa;
}

.meta-list dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: #333;
}

/* --------------------------------------------------------------------------
   Components - FAQ 折叠
   -------------------------------------------------------------------------- */
.faq-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.faq-item summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  color: #1f1f1f;
  position: relative;
  padding-right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #888;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Components - 侧栏链接
   -------------------------------------------------------------------------- */
.sidebar-inner {
  position: sticky;
  top: 20px;
}

.sidebar-links li {
  margin-bottom: 2px;
}

.sidebar-links a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #444;
}

.sidebar-links a:hover {
  color: #1f1f1f;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pages - 首页
   -------------------------------------------------------------------------- */
.home-main {
  width: 100%;
}

/* 首屏摘要区 */
.home-hero.report-panel {
  background: #1f1f1f;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 48px 24px;
  margin-bottom: 0;
}

.home-hero .hero-text {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.home-hero .hero-text h1 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  border: none;
}

.home-hero .hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-entry {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-entry a {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  min-height: 44px;
  line-height: 1.5;
  border: 1px solid #fff;
  color: #fff;
}

.hero-entry a:first-child {
  background: #fff;
  color: #1f1f1f;
}

.hero-entry a:hover {
  background: #ccc;
  border-color: #ccc;
}

.hero-figure {
  max-width: 340px;
  justify-self: end;
  border: 6px solid #333;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-figure figcaption {
  background: #fff;
  color: #1f1f1f;
  font-size: 13px;
  padding: 8px 12px;
  text-align: center;
}

/* 主体双栏 */
.main-content-area {
  min-width: 0;
}

.home-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 24px;
  margin-bottom: 24px;
}

.home-section h2 {
  font-size: 20px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid #1f1f1f;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-intro {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
}

.section-intro a {
  color: #1f1f1f;
  font-size: 14px;
  margin-left: 8px;
}

/* 编辑书单 */
.booklist-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.booklist-item {
  border: 1px solid #e0e0e0;
  padding: 16px;
  background: #fafafa;
}

.booklist-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.booklist-item p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.more-link {
  text-align: right;
  margin: 16px 0 0;
}

.more-link a {
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
}

/* 版权条 */
.copyright-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: transparent;
}

.copyright-strip p {
  font-size: 14px;
  color: #888;
  margin: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  flex: 1;
}

.copyright-strip a {
  color: #1f1f1f;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Pages - 题材分类页
   -------------------------------------------------------------------------- */
.page-subject .page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.subject-tree {
  grid-column: 1;
  grid-row: 1;
}

.subject-content {
  grid-column: 2;
}

.tree-list > li > a {
  font-weight: 600;
}

.tree-sublist {
  padding-left: 16px;
  margin-bottom: 8px;
  border-left: 1px solid #e0e0e0;
}

.tree-sublist li a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: #888;
}

.tree-sublist li a:hover {
  color: #1f1f1f;
}

.subject-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
  align-items: start;
}

.subject-section:nth-child(even) {
  grid-template-columns: 0.6fr 1.4fr;
}

.subject-text h2 {
  font-size: 20px;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 2px solid #1f1f1f;
  margin-bottom: 12px;
}

.subject-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.subject-figure {
  border: 1px solid #e0e0e0;
}

.subject-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.subject-figure figcaption {
  font-size: 13px;
  color: #777;
  padding: 8px;
  text-align: center;
  background: #fafafa;
}

.subject-summary {
  background: #1f1f1f;
  color: #fff;
  padding: 24px;
  margin-top: 32px;
}

.subject-summary h2 {
  color: #fff;
  font-size: 18px;
  border-bottom-color: #555;
  padding-bottom: 10px;
}

.subject-summary p {
  color: #ccc;
  font-size: 14px;
}

.summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.summary-list a {
  display: inline-block;
  padding: 8px 18px;
  background: #333;
  color: #fff;
  font-size: 14px;
  border: 1px solid #555;
}

.summary-list a:hover {
  background: #fff;
  color: #1f1f1f;
}

/* --------------------------------------------------------------------------
   Pages - 新作速递页
   -------------------------------------------------------------------------- */
.update-section,
.recent-works,
.collect-note {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 24px;
  margin-bottom: 24px;
}

.update-section h2,
.recent-works h2,
.collect-note h2 {
  font-size: 20px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid #1f1f1f;
  margin-bottom: 16px;
}

.update-timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid #e0e0e0;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f1f1f;
  border: 2px solid #fff;
}

.timeline-item time {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
  font-weight: 600;
}

.timeline-content p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.timeline-content strong {
  color: #1f1f1f;
}

.recent-works p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.collect-note p {
  font-size: 14px;
  color: #555;
}

.collect-note a {
  color: #1f1f1f;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Pages - 人气书单页
   -------------------------------------------------------------------------- */
.booklist-overview,
.booklist-wrap,
.pick-summary {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 24px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid #1f1f1f;
  margin-bottom: 14px;
}

.booklist-overview p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.booklist-card {
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-bottom: 20px;
  background: #fafafa;
}

.booklist-card:last-child {
  margin-bottom: 0;
}

.booklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.booklist-head h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.booklist-tag {
  display: inline-block;
  font-size: 12px;
  color: #1f1f1f;
  background: #e0e0e0;
  padding: 4px 10px;
  font-weight: 600;
}

.booklist-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.booklist-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.book-item {
  border: 1px solid #e0e0e0;
  background: #fff;
  overflow: hidden;
}

.book-item-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.book-item-info {
  padding: 10px 12px;
}

.book-item-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.book-item-info p {
  font-size: 13px;
  color: #777;
  margin: 0;
}

.booklist-reason {
  font-size: 14px;
  color: #555;
  background: #fff;
  padding: 12px;
  border-left: 3px solid #1f1f1f;
  margin: 0;
}

.booklist-reason strong {
  color: #1f1f1f;
  margin-right: 6px;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pick-card {
  border: 1px solid #e0e0e0;
  padding: 16px;
  background: #fafafa;
}

.pick-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pick-card p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.pick-more {
  margin-top: 20px;
  text-align: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.pick-more a {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #1f1f1f;
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
}

.pick-more a:hover {
  background: #1f1f1f;
  color: #fff;
}

.related-links {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.related-links-item {
  font-size: 14px;
  color: #555;
  margin-right: 4px;
}

.related-links-item:hover {
  color: #1f1f1f;
}

/* --------------------------------------------------------------------------
   Pages - 阅读指南页
   -------------------------------------------------------------------------- */
.page-guide .page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.page-guide .sidebar {
  grid-column: 1;
  grid-row: 1;
}

.page-guide .main-content {
  grid-column: 2;
  min-width: 0;
}

.page-guide .page-header {
  margin-bottom: 28px;
}

.content-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 24px;
  margin-bottom: 24px;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid #1f1f1f;
  margin-bottom: 14px;
}

.content-section > p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.content-media-inline {
  margin: 16px 0;
  border: 1px solid #e0e0e0;
}

.content-media-inline img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.content-media-inline figcaption {
  font-size: 13px;
  color: #888;
  padding: 8px 12px;
  background: #fafafa;
  text-align: center;
}

/* 步骤列表 */
.step-list {
  counter-reset: step;
  margin-top: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #1f1f1f;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* 连载状态 */
.serial-section > p {
  margin-bottom: 14px;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.status-list li {
  border: 1px solid #e0e0e0;
  padding: 14px;
  font-size: 14px;
  color: #555;
}

.status-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #1f1f1f;
}

.serial-section a {
  color: #1f1f1f;
  text-decoration: underline;
}

/* 书单管理 */
.method-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.method-item {
  border: 1px solid #e0e0e0;
  padding: 16px;
  background: #fafafa;
}

.method-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}

.method-item p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.shelf-section > p > a {
  color: #1f1f1f;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Pages - 版权说明页
   -------------------------------------------------------------------------- */
.page-copyright .page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.page-content {
  min-width: 0;
}

.content-block {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 24px;
  margin-bottom: 24px;
}

.content-block h2 {
  font-size: 18px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid #1f1f1f;
  margin-bottom: 14px;
}

.content-block p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-block .content-media-inline {
  margin-bottom: 16px;
}

.feedback-list {
  margin: 12px 0;
}

.feedback-list li {
  font-size: 14px;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.policy-steps {
  counter-reset: policy;
  margin: 12px 0;
}

.policy-steps li {
  font-size: 14px;
  color: #555;
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
}

.policy-steps li::before {
  counter-increment: policy;
  content: counter(policy);
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: #1f1f1f;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Pages - 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.error-panel {
  text-align: center;
  max-width: 520px;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 48px 32px;
}

.error-code {
  font-size: 72px;
  font-weight: 900;
  color: #1f1f1f;
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #777;
  margin-bottom: 24px;
}

.error-home-link {
  display: inline-block;
  padding: 10px 28px;
  background: #1f1f1f;
  color: #fff;
  font-size: 15px;
  min-height: 44px;
  line-height: 1.6;
}

.error-home-link:hover {
  background: #444;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .cover-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booklist-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .booklist-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-list {
    grid-template-columns: 1fr;
  }

  .subject-section,
  .subject-section:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .subject-figure {
    max-width: 280px;
  }

  .sidebar-left .page-layout,
  .page-subject .page-layout,
  .page-guide .page-layout,
  .page-copyright .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-left .page-layout > aside,
  .page-subject .subject-tree,
  .page-guide .sidebar,
  .page-copyright .page-sidebar {
    grid-column: 1;
    grid-row: auto;
    position: static;
    order: 2;
    margin-top: 24px;
  }

  .sidebar-left .page-layout > div:not(.sidebar-inner),
  .page-subject .subject-content,
  .page-guide .main-content,
  .page-copyright .page-content {
    grid-column: 1;
    order: 1;
  }

  .layout-shell.sidebar-left.home-main-grid {
    grid-template-columns: 1fr;
  }

  .home-main-grid .sidebar-category {
    grid-column: 1;
    grid-row: auto;
    position: static;
    order: 2;
    margin-top: 24px;
  }

  .home-main-grid .main-content-area {
    grid-column: 1;
    order: 1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-meta {
    grid-column: 1;
  }

  .hero-figure {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 12px 16px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    border-top: none;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 0;
    border-top: 1px solid #e0e0e0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-list li a.is-current {
    background: #f7f6f2;
  }

  .inner-main {
    padding: 16px;
  }

  .home-hero.report-panel {
    grid-template-columns: 1fr;
    padding: 32px 16px;
  }

  .home-hero .hero-text h1 {
    font-size: 28px;
  }

  .hero-figure {
    max-width: 100%;
  }

  .layout-shell.sidebar-left.home-main-grid {
    padding: 24px 16px 0;
  }

  .cover-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .booklist-row {
    grid-template-columns: 1fr;
  }

  .copyright-strip {
    padding: 0 16px 24px;
    flex-direction: column;
  }

  .home-section {
    padding: 18px;
  }

  .booklist-items {
    grid-template-columns: 1fr;
  }

  .pick-grid {
    grid-template-columns: 1fr;
  }

  .method-list {
    grid-template-columns: 1fr;
  }

  .booklist-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .booklist-card {
    padding: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .footer-content {
    padding: 28px 16px 24px;
  }
}

@media (max-width: 480px) {
  .cover-strip,
  .cover-grid {
    grid-template-columns: 1fr;
  }

  .cover-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
  }

  .cover-card img {
    aspect-ratio: 3 / 4;
    height: 100%;
    min-height: 120px;
  }

  .cover-card h3 {
    font-size: 15px;
  }

  .cover-card p {
    font-size: 13px;
  }

  .cover-figure img {
    aspect-ratio: 16 / 9;
  }

  .cover-grid .cover-card {
    display: block;
  }

  .cover-grid .cover-card img {
    aspect-ratio: 3 / 4;
    min-height: 0;
  }

  .hero-entry a {
    width: 100%;
    text-align: center;
  }

  .timeline-item::before {
    left: -26px;
  }

  .update-timeline {
    padding-left: 20px;
  }

  .step-item {
    flex-direction: column;
    gap: 8px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .error-code {
    font-size: 56px;
  }
}
