/* ==========================================================================
   哔咔漫画 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #1f2a33;
  background-color: #f3f6f8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: #17324d;
}

h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 17px;
}

h4 {
  font-size: 15px;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #17324d;
  text-decoration: none;
}

a:hover {
  color: #c85a3f;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #3f6f7a;
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: #5c6b76;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   2. layout
   -------------------------------------------------------------------------- */

/* 页头 */
.site-header {
  background-color: #17324d;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #ffffff;
}

.brand:hover {
  color: #ffffff;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-slogan {
  font-size: 13px;
  color: #b9cbd8;
  line-height: 1.4;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #3f6f7a;
  border-radius: 6px;
  background-color: transparent;
  color: #ffffff;
  font-size: 14px;
}

.menu-toggle:hover {
  background-color: #234560;
}

/* 主导航 */
.site-nav {
  background-color: #1d3d5b;
  border-top: 1px solid #2c5074;
}

.nav-list {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 11px 14px;
  min-height: 44px;
  color: #d3e0ea;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #ffffff;
  background-color: #234560;
}

.nav-link.is-current {
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: #c85a3f;
}

/* 页面主布局 */
.page-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.sidebar-left {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.site-main {
  min-width: 0;
}

.inner-main {
  max-width: 760px;
}

/* 左侧导航 */
.side-nav {
  position: sticky;
  top: 96px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 16px;
}

.side-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: #3f6f7a;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d7dee4;
}

.side-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-link,
.side-nav-link {
  display: block;
  padding: 9px 10px;
  min-height: 44px;
  font-size: 14px;
  color: #1f2a33;
  border-radius: 6px;
  border-left: 3px solid transparent;
}

.side-link:hover,
.side-nav-link:hover {
  background-color: #eef3f6;
  color: #17324d;
}

.side-link.is-active,
.side-nav-link.is-active {
  background-color: #e6eef2;
  color: #17324d;
  font-weight: 600;
  border-left-color: #c85a3f;
}

.side-nav-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #d7dee4;
  font-size: 13px;
  color: #5c6b76;
}

/* 页脚 */
.site-footer {
  background-color: #17324d;
  color: #c3d2dd;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 13px;
  line-height: 1.8;
  color: #b9cbd8;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  min-height: 22px;
  font-size: 13px;
  color: #c3d2dd;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-copy {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px 24px;
  font-size: 12px;
  color: #8fa5b6;
  border-top: 1px solid #2c5074;
}

/* --------------------------------------------------------------------------
   3. components
   -------------------------------------------------------------------------- */

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5c6b76;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #3f6f7a;
}

.breadcrumb a:hover {
  color: #c85a3f;
}

.breadcrumb-sep {
  color: #9aabb6;
}

.breadcrumb-current {
  color: #1f2a33;
}

/* 内页标题区 */
.page-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #d7dee4;
}

.page-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: #17324d;
}

.page-head,
.page-hero {
  margin-bottom: 26px;
}

.page-intro,
.page-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #3d4c58;
  margin-bottom: 14px;
}

/* 标签 */
.tag-row,
.page-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 11px;
  font-size: 13px;
  color: #3f6f7a;
  background-color: #e6eef2;
  border-radius: 4px;
  line-height: 1.6;
}

.tag-btn,
.filter-tag {
  display: inline-block;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 13px;
  color: #17324d;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 6px;
  line-height: 1.5;
}

.tag-btn:hover,
.filter-tag:hover {
  background-color: #e6eef2;
  border-color: #3f6f7a;
  color: #17324d;
}

/* 栏目标题组 */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.section-more {
  font-size: 13px;
  color: #3f6f7a;
  white-space: nowrap;
}

.section-more:hover {
  color: #c85a3f;
}

.section-intro,
.section-lead,
.section-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #4a5a66;
  margin: 6px 0 16px;
}

.section-note {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #4a5a66;
  background-color: #eef3f6;
  border-left: 3px solid #3f6f7a;
  border-radius: 0 6px 6px 0;
}

.section-note a {
  color: #17324d;
  font-weight: 600;
}

/* 表格 */
.table-scroll,
.table-wrap {
  overflow-x: auto;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  background-color: #ffffff;
}

.data-table,
.update-table,
.scenario-table {
  width: 100%;
  min-width: 560px;
  font-size: 13.5px;
}

.data-table caption,
.update-table caption,
.scenario-table caption {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: #5c6b76;
  border-bottom: 1px solid #d7dee4;
}

.data-table thead th,
.update-table thead th,
.scenario-table thead th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  color: #17324d;
  background-color: #eef3f6;
  border-bottom: 1px solid #d7dee4;
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td,
.update-table tbody td,
.scenario-table tbody td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #e6ecf0;
  color: #33414c;
  vertical-align: top;
}

.data-table tbody th {
  font-weight: 600;
  color: #17324d;
  background-color: #fafcfd;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.update-table tbody tr:last-child td,
.scenario-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover,
.update-table tbody tr:hover,
.scenario-table tbody tr:hover {
  background-color: #f7fafb;
}

.update-table tbody td a {
  color: #3f6f7a;
  font-weight: 600;
}

/* 通用图片容器 */
.figure-inline,
.section-figure,
.guide-figure,
.topic-figure,
.content-figure {
  margin: 0 0 18px;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.figure-inline img,
.section-figure img,
.guide-figure img,
.topic-figure img,
.content-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.figure-inline figcaption,
.section-figure figcaption,
.guide-figure figcaption,
.topic-figure figcaption,
.content-figure figcaption {
  padding: 10px 14px;
  margin: 0;
  font-size: 13px;
  color: #5c6b76;
  background-color: #fafcfd;
  border-top: 1px solid #e6ecf0;
}

/* 定义列表 */
.def-list {
  margin: 0;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.def-list dt {
  padding: 10px 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: #17324d;
}

.def-list dd {
  margin: 0;
  padding: 6px 14px 14px;
  font-size: 14px;
  line-height: 1.8;
  color: #3d4c58;
  border-bottom: 1px solid #e6ecf0;
}

.def-list dd:last-child,
.def-list .def-item:last-child dd {
  border-bottom: none;
}

.def-list .def-item {
  padding: 12px 14px;
  border-bottom: 1px solid #e6ecf0;
}

.def-list .def-item:last-child {
  border-bottom: none;
}

.def-list .def-item dt {
  padding: 0 0 4px;
}

.def-list .def-item dd {
  padding: 0;
  border-bottom: none;
}

.def-list .def-item dd a {
  color: #3f6f7a;
  font-weight: 600;
}

/* 类型定义 */
.type-list {
  margin: 0;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.type-list dt {
  padding: 12px 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: #17324d;
}

.type-list dd {
  margin: 0;
  padding: 6px 14px 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #3d4c58;
  border-bottom: 1px solid #e6ecf0;
}

.type-list dd:last-of-type {
  border-bottom: none;
}

/* 步骤条 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 14px 16px 14px 56px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  counter-increment: step;
}

.step-item::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background-color: #3f6f7a;
  border-radius: 50%;
}

.step-name {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #3d4c58;
  margin-bottom: 6px;
}

.step-link,
.step-entry a {
  font-size: 13px;
  color: #3f6f7a;
  font-weight: 600;
}

.step-entry {
  font-size: 13px;
  color: #5c6b76;
}

.step-entry a + a {
  margin-left: 12px;
}

/* 清单 */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #3d4c58;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  background-color: #3f6f7a;
  border-radius: 50%;
}

/* 两列内容容器 */
.scene-columns,
.prepare-columns,
.check-columns,
.advice-columns,
.scope-columns,
.notes-cols,
.policy-columns,
.rank-columns {
  display: grid;
  gap: 18px;
}

.scene-columns,
.prepare-columns,
.check-columns,
.advice-columns,
.scope-columns,
.notes-cols,
.policy-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-col,
.prepare-col,
.check-col,
.advice-col,
.scope-col,
.notes-col,
.policy-col,
.rank-col {
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 16px;
}

.col-title,
.subsection-title,
.advice-col h3,
.scene-col h3,
.scope-col h3,
.notes-col h3,
.policy-head,
.rank-head {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6ecf0;
}

/* 结论侧栏 */
.decision-aside {
  margin-top: 24px;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-left: 4px solid #3f6f7a;
  border-radius: 8px;
}

.aside-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed #d7dee4;
}

.aside-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.aside-head,
.aside-item-title,
.aside-block h3 {
  font-size: 14px;
  color: #17324d;
  margin-bottom: 4px;
}

.aside-item p,
.aside-block p {
  font-size: 13.5px;
  line-height: 1.8;
  color: #4a5a66;
}

.aside-block {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed #d7dee4;
}

.aside-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.aside-links,
.advice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.aside-links a,
.advice-links a {
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 13px 40px 13px 16px;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  color: #17324d;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: #3f6f7a;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid #e6ecf0;
}

.faq-item p {
  padding: 12px 16px 14px;
  font-size: 14px;
  line-height: 1.85;
  color: #3d4c58;
}

/* 相关内容链接条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  background-color: #eef3f6;
  border-radius: 8px;
}

.related-links-label {
  font-size: 13px;
  font-weight: 600;
  color: #17324d;
}

.related-links-item {
  font-size: 13px;
  padding: 6px 12px;
  min-height: 32px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 6px;
  color: #3f6f7a;
}

.related-links-item:hover {
  border-color: #3f6f7a;
  color: #17324d;
}

/* --------------------------------------------------------------------------
   4. pages
   -------------------------------------------------------------------------- */

/* ---- 首页 ---- */

.home-main {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* 首屏工具面 */
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 22px;
}

.hero-main {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: #c85a3f;
  margin-bottom: 8px;
}

.hero-panel h1 {
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #3d4c58;
  margin-bottom: 16px;
  max-width: 640px;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-visual {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d7dee4;
  background-color: #eef3f6;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 8px 10px;
  margin: 0;
  font-size: 12px;
  color: #5c6b76;
  background-color: #ffffff;
  border-top: 1px solid #e6ecf0;
}

.hero-covers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid #e6ecf0;
}

.cover-card {
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cover-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #eef3f6;
}

.cover-title {
  font-size: 15px;
}

.cover-meta {
  font-size: 13px;
  color: #5c6b76;
  margin: 0;
}

.cover-link {
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
  margin-top: auto;
}

.cover-link:hover {
  color: #c85a3f;
}

/* 顶部对象选择 */
.object-switch {
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 20px 22px;
}

.switch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.switch-group {
  min-width: 0;
  padding: 12px 14px;
  background-color: #f7fafb;
  border: 1px solid #e6ecf0;
  border-radius: 8px;
}

.switch-head {
  font-size: 14px;
  margin-bottom: 8px;
  color: #3f6f7a;
}

.switch-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.switch-list li a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: #33414c;
}

.switch-list li a:hover {
  color: #c85a3f;
}

/* 精选漫画 */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.comic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
}

.comic-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #eef3f6;
}

.comic-title {
  font-size: 15px;
}

.comic-tags {
  font-size: 13px;
  color: #5c6b76;
  margin: 0;
}

.comic-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
}

.comic-link:hover {
  color: #c85a3f;
}

/* 最近更新 */
.update-table-section {
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 20px 22px;
}

/* 阅读榜单摘要 */
.rank-summary {
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 20px 22px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-list li {
  font-size: 14px;
  line-height: 1.7;
  color: #33414c;
  padding: 7px 0;
  border-bottom: 1px dashed #e6ecf0;
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-list li a {
  color: #17324d;
  font-weight: 600;
}

.rank-list li a:hover {
  color: #c85a3f;
}

/* 题材分类矩阵 */
.genre-matrix {
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 20px 22px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.genre-card {
  min-width: 0;
  padding: 14px;
  background-color: #f7fafb;
  border: 1px solid #e6ecf0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.genre-name {
  font-size: 15px;
}

.genre-for,
.genre-desc,
.genre-rep {
  font-size: 13.5px;
  line-height: 1.75;
  color: #4a5a66;
  margin: 0;
}

.genre-rep a,
.genre-link {
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
}

.genre-link {
  margin-top: auto;
}

.genre-link:hover,
.genre-rep a:hover {
  color: #c85a3f;
}

/* 阅读路径 */
.reading-path {
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 20px 22px;
}

/* 专题策划入口 */
.topic-entry {
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 20px 22px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background-color: #f7fafb;
  border: 1px solid #e6ecf0;
  border-radius: 8px;
}

.topic-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #eef3f6;
}

.topic-name {
  font-size: 15px;
}

.topic-scene,
.topic-theme {
  font-size: 13.5px;
  line-height: 1.75;
  color: #4a5a66;
  margin: 0;
}

.topic-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
}

.topic-link:hover {
  color: #c85a3f;
}

/* 版权与反馈摘要 */
.policy-summary {
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 20px 22px;
}

.policy-summary h2 {
  margin-bottom: 14px;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.policy-list li {
  font-size: 14px;
  line-height: 1.8;
  color: #3d4c58;
  padding-left: 16px;
  position: relative;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  background-color: #c85a3f;
  border-radius: 50%;
}

.policy-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #4a5a66;
  margin: 10px 0 0;
}

.policy-link {
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
}

/* ---- 题材分类页 ---- */
.page-tcdt .filter-block,
.page-tcdt .genre-overview,
.page-tcdt .compare-block,
.page-tcdt .genre-detail,
.page-tcdt .scene-block {
  margin-bottom: 30px;
}

.filter-block h2,
.genre-overview h2,
.compare-block h2,
.genre-detail h2,
.scene-block h2 {
  margin-bottom: 6px;
}

.filter-group {
  margin-bottom: 12px;
}

.filter-group-label,
.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
  margin-bottom: 8px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  margin-bottom: 14px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  scroll-margin-top: 110px;
}

.genre-group-text {
  min-width: 0;
}

.genre-group-text h3 {
  margin-bottom: 8px;
}

.genre-group-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #3d4c58;
}

.genre-group-list {
  min-width: 0;
}

.genre-group-list h4 {
  font-size: 14px;
  color: #3f6f7a;
  margin-bottom: 8px;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-list li {
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #33414c;
  background-color: #f7fafb;
  border: 1px solid #e6ecf0;
  border-radius: 6px;
}

.item-list li a {
  font-weight: 600;
  color: #17324d;
}

.item-list li a:hover {
  color: #c85a3f;
}

.scene-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-list li {
  font-size: 14px;
  line-height: 1.8;
  color: #3d4c58;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e6ecf0;
}

.scene-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.scene-list li a {
  font-weight: 600;
  color: #3f6f7a;
}

/* ---- 最近更新页 ---- */
.page-gxjd .update-filter,
.page-gxjd .update-timeline,
.page-gxjd .update-types,
.page-gxjd .update-steps,
.page-gxjd .update-rhythm,
.page-gxjd .update-faq {
  margin-bottom: 30px;
}

.update-filter h2,
.update-timeline h2,
.update-types h2,
.update-steps h2,
.update-rhythm h2,
.update-faq h2 {
  margin-bottom: 6px;
}

.update-rhythm p {
  font-size: 14px;
  line-height: 1.85;
  color: #3d4c58;
}

/* ---- 阅读榜单页 ---- */
.page-ydbd .anchor-nav,
.page-ydbd .rank-section,
.page-ydbd .dimension-table,
.page-ydbd .advice-block {
  margin-bottom: 30px;
}

.anchor-nav h2,
.rank-section h2,
.dimension-table h2,
.advice-block h2 {
  margin-bottom: 10px;
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-link {
  display: inline-block;
  padding: 9px 16px;
  min-height: 42px;
  font-size: 13.5px;
  font-weight: 600;
  color: #17324d;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 6px;
}

.anchor-link:hover {
  border-color: #3f6f7a;
  background-color: #e6eef2;
}

.rank-section {
  scroll-margin-top: 110px;
}

.rank-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
}

.rank-cover {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #eef3f6;
}

.rank-cover img {
  width: 84px;
  height: 112px;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-body h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.rank-meta {
  font-size: 13px;
  color: #5c6b76;
  margin-bottom: 6px;
}

.rank-reason {
  font-size: 13.5px;
  line-height: 1.8;
  color: #3d4c58;
}

.advice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.advice-list li {
  font-size: 14px;
  line-height: 1.8;
  color: #3d4c58;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e6ecf0;
}

.advice-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.advice-list li a {
  font-weight: 600;
  color: #3f6f7a;
}

.decision-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.decision-list li {
  font-size: 13.5px;
  line-height: 1.8;
  color: #4a5a66;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d7dee4;
}

.decision-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.decision-list strong {
  display: block;
  font-size: 14px;
  color: #17324d;
  margin-bottom: 2px;
}

.decision-cta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e6ecf0;
}

.decision-cta a {
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
}

/* ---- 阅读指南页 ---- */
.page-ydzn .section {
  margin-bottom: 30px;
}

.page-ydzn .section h2 {
  margin-bottom: 6px;
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stage-card {
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-name {
  font-size: 15px;
}

.stage-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: #3d4c58;
  margin: 0;
}

.stage-entry {
  margin: 0;
}

.stage-entry a {
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- 专题策划页 ---- */
.page-ztch .overview,
.page-ztch .topic-detail,
.page-ztch .scenarios,
.page-ztch .topic-notes {
  margin-bottom: 30px;
}

.overview h2,
.topic-detail h2,
.scenarios h2,
.topic-notes h2 {
  margin-bottom: 6px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-block {
  padding: 18px;
  margin-bottom: 14px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  scroll-margin-top: 110px;
}

.topic-block h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6ecf0;
}

.topic-block-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topic-items,
.topic-order {
  min-width: 0;
}

.topic-items-label,
.topic-order-label {
  font-size: 13px;
  font-weight: 600;
  color: #3f6f7a;
  margin-bottom: 8px;
}

.topic-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-item-list li {
  padding: 9px 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #33414c;
  background-color: #f7fafb;
  border: 1px solid #e6ecf0;
  border-radius: 6px;
}

.topic-item-list li a {
  font-weight: 600;
  color: #17324d;
}

.topic-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: order;
}

.topic-order-list li {
  position: relative;
  padding-left: 28px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #3d4c58;
  counter-increment: order;
}

.topic-order-list li::before {
  content: counter(order);
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background-color: #3f6f7a;
  border-radius: 50%;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-list li {
  font-size: 14px;
  line-height: 1.8;
  color: #3d4c58;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e6ecf0;
}

.notes-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notes-feedback {
  margin-top: 14px;
  font-size: 13.5px;
  color: #4a5a66;
}

.notes-feedback a {
  font-weight: 600;
  color: #3f6f7a;
}

/* ---- 版权与反馈页 ---- */
.page-bqfk .section {
  margin-bottom: 30px;
}

.section-title {
  margin-bottom: 6px;
}

/* ---- 404 ---- */
.site-error .site-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

.error-block {
  text-align: left;
  margin-bottom: 34px;
}

.error-code {
  font-size: 56px;
  font-weight: 700;
  color: #c85a3f;
  line-height: 1;
  margin-bottom: 12px;
}

.error-block h1 {
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  line-height: 1.85;
  color: #3d4c58;
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 11px 18px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #17324d;
}

.btn-primary {
  background-color: #17324d;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #234560;
  color: #ffffff;
}

.btn-ghost {
  background-color: #ffffff;
  color: #17324d;
}

.btn-ghost:hover {
  background-color: #e6eef2;
}

.error-hint {
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
}

.error-hint h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.hint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint-list li a {
  font-size: 14px;
  color: #3f6f7a;
  font-weight: 600;
}

.hint-list li a:hover {
  color: #c85a3f;
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

/* 1024px 断点 */
@media (max-width: 1024px) {
  .page-layout {
    padding: 20px 16px 34px;
  }

  .sidebar-left {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .switch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 22px;
  }
}

/* 768px 断点：侧栏转为抽屉，主内容在前 */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 12px 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    border-bottom: 1px solid #2c5074;
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: #2c5074;
    border-left-color: #c85a3f;
  }

  .page-layout,
  .sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px 14px 30px;
  }

  .hero-panel,
  .object-switch,
  .update-table-section,
  .rank-summary,
  .genre-matrix,
  .reading-path,
  .topic-entry,
  .policy-summary {
    padding: 16px;
  }

  .hero-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hero-visual img {
    min-height: 180px;
    height: 210px;
  }

  .hero-covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .switch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comic-grid,
  .topic-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-columns {
    grid-template-columns: 1fr;
  }

  .stage-list {
    grid-template-columns: 1fr;
  }

  .genre-group,
  .topic-block-cols {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 26px 16px 16px;
  }

  .footer-copy {
    padding: 14px 16px 22px;
  }

  /* 移动端：主内容在前，侧栏与结论条在后 */
  .side-nav {
    position: static;
    order: 2;
  }

  .site-main {
    order: 1;
  }

  .decision-aside {
    order: 3;
    margin-top: 0;
  }
}

/* 480px 断点 */
@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }

  .brand-bar {
    padding: 10px 14px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-slogan {
    font-size: 12px;
  }

  .hero-covers,
  .switch-grid,
  .comic-grid,
  .topic-grid,
  .overview-grid,
  .genre-grid,
  .scene-columns,
  .prepare-columns,
  .check-columns,
  .advice-columns,
  .scope-columns,
  .notes-cols,
  .policy-columns {
    grid-template-columns: 1fr;
  }

  .figure-inline img,
  .section-figure img,
  .guide-figure img,
  .topic-figure img,
  .content-figure img {
    height: 190px;
  }

  .cover-card img,
  .comic-card img,
  .topic-card img {
    height: 180px;
  }

  .rank-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-cover img {
    width: 68px;
    height: 92px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .step-item {
    padding: 12px 14px 12px 50px;
  }

  .step-item::before {
    left: 14px;
    top: 12px;
  }

  .error-code {
    font-size: 44px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
