/* ==========================================================================
   base — 全局基础
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1F2933;
  background-color: #F4F6F8;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #3B82C4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: #1F2933;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

dl,
dt,
dd {
  margin: 0;
}

button {
  font-family: inherit;
}

/* ==========================================================================
   layout — 全站骨架布局
   ========================================================================== */

.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #D1D8E0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}

.site-brand {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  flex-shrink: 0;
}

.site-brand a {
  color: #1F2933;
}

.site-brand a:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #D1D8E0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #1F2933;
  cursor: pointer;
  min-height: 44px;
}

.nav-toggle-icon {
  display: block;
  width: 16px;
  height: 2px;
  background-color: #1F2933;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background-color: #1F2933;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle-text {
  font-size: 14px;
}

.site-nav .nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #66788C;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background-color: #F4F6F8;
  color: #1F2933;
  text-decoration: none;
}

.nav-list a.is-current {
  color: #3B82C4;
  background-color: #EDF3FA;
  font-weight: 600;
}

.site-main {
  width: 100%;
}

.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid #D1D8E0;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #66788C;
  max-width: 260px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 12px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #66788C;
}

.footer-links a:hover {
  color: #3B82C4;
}

.footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  border-top: 1px solid #F4F6F8;
  font-size: 12px;
  color: #9AA8B8;
  text-align: center;
}

/* 内页布局骨架 */
.site-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sidebar-left {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #9AA8B8;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #66788C;
}

.breadcrumb a:hover {
  color: #3B82C4;
}

.breadcrumb-sep {
  color: #D1D8E0;
}

.breadcrumb-current {
  color: #1F2933;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #1F2933;
  margin-bottom: 8px;
}

.page-description {
  font-size: 14px;
  color: #66788C;
  max-width: 680px;
  line-height: 1.7;
}

/* 内页主内容 */
.inner-main {
  min-width: 0;
  min-height: 60vh;
}

/* 侧栏导航（桌面左侧折叠导航） */
.sidebar-nav {
  background-color: transparent;
}

.sidebar-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-group {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.nav-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2933;
  padding: 12px 16px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F4F6F8;
}

.nav-group-list {
  padding: 6px 0;
}

.nav-group-list li {
  margin: 0;
}

.nav-group-list a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #66788C;
  border-left: 2px solid transparent;
}

.nav-group-list a:hover {
  background-color: #F4F6F8;
  color: #1F2933;
  text-decoration: none;
}

.nav-group-list a.is-current {
  color: #3B82C4;
  border-left-color: #3B82C4;
  background-color: #EDF3FA;
  font-weight: 600;
}

/* 右侧页面范围侧栏 */
.page-aside {
  min-width: 0;
}

.aside-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.aside-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F4F6F8;
}

.aside-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F4F6F8;
}

.aside-list li {
  font-size: 13px;
  line-height: 1.6;
  color: #66788C;
  padding-left: 12px;
  position: relative;
  margin-bottom: 8px;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #3B82C4;
}

.aside-intro {
  font-size: 13px;
  color: #66788C;
  margin-bottom: 12px;
  line-height: 1.6;
}

.aside-text {
  font-size: 13px;
  color: #66788C;
  line-height: 1.6;
  margin-bottom: 12px;
}

.aside-steps {
  padding: 0;
  counter-reset: aside-step;
}

.aside-steps li {
  font-size: 13px;
  color: #66788C;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.aside-steps li::before {
  content: counter(aside-step);
  counter-increment: aside-step;
  position: absolute;
  left: 0;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  color: #3B82C4;
}

.aside-note {
  font-size: 12px;
  color: #9AA8B8;
  line-height: 1.5;
  border-top: 1px solid #F4F6F8;
  padding-top: 12px;
  margin-top: 12px;
}

.aside-links li {
  margin-bottom: 8px;
}

.aside-links a {
  font-size: 13px;
  color: #66788C;
  line-height: 1.6;
}

.aside-links a:hover {
  color: #3B82C4;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 区块标题 */
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 14px;
  color: #66788C;
  margin-bottom: 20px;
  max-width: 720px;
}

.section-desc {
  font-size: 14px;
  color: #66788C;
  margin-bottom: 20px;
  max-width: 720px;
}

/* 内容媒体（内页配图） */
.content-media {
  margin-bottom: 24px;
}

.content-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #D1D8E0;
}

.content-media-inline {
  max-width: 720px;
}

.content-media figcaption {
  font-size: 12px;
  color: #9AA8B8;
  line-height: 1.5;
  padding: 8px 4px 0;
}

/* 通用更多链接 */
.more-link {
  display: inline-block;
  font-size: 14px;
  color: #3B82C4;
  font-weight: 500;
  margin-top: 16px;
}

.more-link:hover {
  text-decoration: underline;
}

/* FAQ 通用 */
.faq-item {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1F2933;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
}

.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;
  color: #3B82C4;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background-color: #F4F6F8;
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
}

.faq-item p a {
  display: inline;
}

.faq-more-link {
  display: inline;
  color: #3B82C4;
  font-size: 14px;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 双通道首屏 */
.hero-section {
  padding: 48px 0 40px;
}

.hero-copy {
  margin-bottom: 32px;
}

.hero-title {
  font-size: 24px;
  font-weight: 600;
  color: #1F2933;
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 640px;
}

.hero-lead {
  font-size: 15px;
  color: #66788C;
  line-height: 1.7;
  max-width: 640px;
}

.hero-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.entrance-panel .channel-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.entrance-panel .channel-card:hover {
  border-color: #3B82C4;
  box-shadow: 0 2px 12px rgba(59, 130, 196, 0.08);
}

.channel-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.channel-card .channel-title {
  font-size: 18px;
  padding: 20px 20px 8px;
}

.channel-desc {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  padding: 0 20px;
  flex-grow: 1;
}

.channel-link {
  display: inline-block;
  margin: 16px 20px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #3B82C4;
}

/* 题材封面墙 */
.genre-wall-section {
  padding: 40px 0;
}

.genre-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.genre-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.genre-card:hover {
  border-color: #3B82C4;
  box-shadow: 0 2px 12px rgba(59, 130, 196, 0.08);
  text-decoration: none;
}

.genre-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.genre-card .genre-name {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  padding: 12px 14px 4px;
}

.genre-audience {
  font-size: 13px;
  color: #66788C;
  line-height: 1.5;
  padding: 0 14px 12px;
}

/* 更新 + 榜单双栏 */
.update-top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px 0;
}

.update-panel,
.top-panel {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 24px;
}

.update-list {
  margin-top: 8px;
}

.update-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F4F6F8;
}

.update-item:last-child {
  border-bottom: none;
}

.update-date {
  font-size: 13px;
  color: #9AA8B8;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

.update-tag {
  font-size: 13px;
  color: #3B82C4;
  background-color: #EDF3FA;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  width: fit-content;
}

.update-status {
  font-size: 12px;
  color: #9AA8B8;
}

.update-link {
  font-size: 14px;
  color: #66788C;
}

.update-link:hover {
  color: #3B82C4;
}

.top-list {
  margin-top: 8px;
}

.top-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F4F6F8;
}

.top-item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 16px;
  font-weight: 600;
  color: #3B82C4;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

.top-genre {
  font-size: 14px;
  font-weight: 600;
  color: #1F2933;
}

.top-tag {
  font-size: 12px;
  color: #66788C;
  background-color: #F4F6F8;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
}

.top-link {
  font-size: 13px;
  color: #3B82C4;
}

/* 阅读路径三段 */
.reading-path-section {
  padding: 40px 0;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-step {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.path-step:hover {
  border-color: #3B82C4;
  box-shadow: 0 2px 12px rgba(59, 130, 196, 0.08);
}

.step-number {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #3B82C4;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  background-color: #EDF3FA;
  border-radius: 4px;
  padding: 2px 10px;
  margin-bottom: 12px;
}

.path-step .step-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  margin-bottom: 12px;
}

.step-link {
  font-size: 14px;
  font-weight: 600;
  color: #3B82C4;
}

/* FAQ 摘要 */
.faq-summary-section {
  padding: 40px 0;
}

.faq-summary-section .faq-item {
  margin-bottom: 12px;
}

/* ==========================================================================
   pages — 新读者指南 guide
   ========================================================================== */

.content-section {
  margin-bottom: 40px;
}

/* 编号步骤 */
.path-section .path-steps {
  grid-template-columns: 1fr;
  gap: 16px;
}

.path-section .path-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
}

.path-section .step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background-color: #3B82C4;
  color: #FFFFFF;
  border-radius: 6px;
  margin: 0;
}

.step-content h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
}

/* 术语表 */
.term-list {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 8px 20px;
}

.term-list li {
  padding: 12px 0;
  border-bottom: 1px solid #F4F6F8;
}

.term-list li:last-child {
  border-bottom: none;
}

.term-list h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 4px;
}

.term-list p {
  font-size: 14px;
  color: #66788C;
  line-height: 1.6;
}

/* 入口卡片 */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.entry-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px;
  display: block;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.entry-card:hover {
  border-color: #3B82C4;
  box-shadow: 0 2px 12px rgba(59, 130, 196, 0.08);
  text-decoration: none;
}

.entry-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 6px;
}

.entry-card p {
  font-size: 13px;
  color: #66788C;
  line-height: 1.6;
}

/* ==========================================================================
   pages — 最近更新 update
   ========================================================================== */

.update-section {
  margin-bottom: 40px;
}

.update-group {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.update-period {
  font-size: 16px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F4F6F8;
}

.update-section .update-item {
  grid-template-columns: 76px 1fr auto auto;
}

.update-section .update-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 500;
}

.update-section .update-status {
  font-size: 12px;
}

.update-note {
  font-size: 12px;
  color: #9AA8B8;
}

.update-media {
  margin-bottom: 40px;
}

.update-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #D1D8E0;
}

.update-media figcaption {
  font-size: 12px;
  color: #9AA8B8;
  padding: 8px 4px 0;
}

/* 追更建议 */
.follow-section {
  margin-bottom: 40px;
}

.follow-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.follow-tip {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px;
}

.follow-tip h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 6px;
}

.follow-tip p {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
}

/* 相关卡片 */
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px;
}

.related-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
  color: #66788C;
  line-height: 1.6;
  margin-bottom: 12px;
}

.related-card a {
  font-size: 14px;
  font-weight: 600;
  color: #3B82C4;
}

/* 底部相关链接 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #D1D8E0;
  margin-top: 24px;
}

.related-links-label {
  font-size: 13px;
  color: #9AA8B8;
  margin-right: 8px;
}

.related-links-item {
  font-size: 13px;
  color: #3B82C4;
  background-color: #EDF3FA;
  padding: 4px 12px;
  border-radius: 4px;
}

.related-links-item:hover {
  background-color: #D1E3F5;
  text-decoration: none;
}

/* ==========================================================================
   pages — 题材分类 genre
   ========================================================================== */

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-shell .page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 32px 0 0;
}

/* 侧栏导航 */
.sidebar-nav-group {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.sidebar-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2933;
  padding: 12px 16px;
  border-bottom: 1px solid #F4F6F8;
}

.sidebar-nav-list {
  padding: 6px 0;
}

.sidebar-nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #66788C;
  border-left: 2px solid transparent;
}

.sidebar-nav-list a:hover {
  background-color: #F4F6F8;
  color: #1F2933;
  text-decoration: none;
}

.sidebar-nav-list a.is-current {
  color: #3B82C4;
  border-left-color: #3B82C4;
  background-color: #EDF3FA;
  font-weight: 600;
}

/* 内容包装 */
.content-wrap {
  min-width: 0;
}

/* 题材网格 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.genre-grid .genre-card {
  position: relative;
}

.genre-grid .genre-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.genre-card-caption {
  padding: 12px 14px;
}

.genre-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 4px;
}

.genre-card-audience {
  font-size: 13px;
  color: #66788C;
  line-height: 1.5;
}

/* 题材详细说明 */
.genre-item {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.genre-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 8px;
}

.genre-item-intro {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  margin-bottom: 12px;
}

.genre-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 0;
}

.genre-meta-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.genre-meta-row dt {
  color: #9AA8B8;
  flex-shrink: 0;
  min-width: 4em;
}

.genre-meta-row dd {
  margin: 0;
  color: #66788C;
}

/* 工具路径 */
.tool-path-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-path-item {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-path-step {
  font-size: 14px;
  font-weight: 600;
  color: #3B82C4;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

.tool-path-text {
  font-size: 14px;
  color: #1F2933;
}

/* 相关链接 */
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-link-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px;
  display: block;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-link-card:hover {
  border-color: #3B82C4;
  box-shadow: 0 2px 12px rgba(59, 130, 196, 0.08);
  text-decoration: none;
}

.related-link-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 6px;
}

.related-link-desc {
  font-size: 13px;
  color: #66788C;
  line-height: 1.6;
}

/* ==========================================================================
   pages — 完结作品 complete
   ========================================================================== */

.complete-genres-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.complete-genre-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px 24px;
}

.complete-genre-card .genre-name {
  font-size: 16px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 8px;
}

.genre-desc {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  margin-bottom: 12px;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: #3B82C4;
}

/* 完结阅读建议 */
.tips-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.tip-item {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 12px;
}

.tip-number {
  font-size: 20px;
  font-weight: 600;
  color: #3B82C4;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  flex-shrink: 0;
}

.tip-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 6px;
}

.tip-body p {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
}

/* 完结 vs 追更对比 */
.compare-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px 24px;
}

.compare-finished {
  border-left: 3px solid #3B82C4;
}

.compare-serial {
  border-left: 3px solid #D1D8E0;
}

.compare-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 12px;
}

.compare-list li {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.compare-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #3B82C4;
  font-weight: 700;
}

/* ==========================================================================
   pages — 热门题材榜 top
   ========================================================================== */

.rank-article {
  min-width: 0;
}

.rank-list {
  counter-reset: rank;
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 8px 24px;
  margin-bottom: 24px;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #F4F6F8;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-number {
  font-size: 20px;
  font-weight: 600;
  color: #3B82C4;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

.rank-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
}

.heat-tag {
  font-size: 12px;
  color: #66788C;
  background-color: #F4F6F8;
  border-radius: 4px;
  padding: 2px 8px;
}

.rank-desc {
  font-size: 13px;
  color: #9AA8B8;
}

.rank-item .text-link {
  font-size: 13px;
}

/* 热度说明 */
.rank-note p {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 路径卡片 */
.path-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.path-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px;
}

.path-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 6px;
}

.path-card p {
  font-size: 13px;
  color: #66788C;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ==========================================================================
   pages — 阅读说明与FAQ faq
   ========================================================================== */

.faq-group {
  margin-bottom: 40px;
}

.faq-group-title {
  font-size: 18px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 12px;
}

.faq-group-intro p {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ 更多链接 */
.faq-more-links {
  margin-bottom: 40px;
}

.faq-more-title {
  font-size: 18px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 8px;
}

.faq-more-desc {
  font-size: 14px;
  color: #66788C;
  margin-bottom: 20px;
}

.faq-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-more-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-more-card:hover {
  border-color: #3B82C4;
  box-shadow: 0 2px 12px rgba(59, 130, 196, 0.08);
  text-decoration: none;
}

.faq-more-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
}

.faq-more-card-desc {
  font-size: 13px;
  color: #66788C;
  line-height: 1.6;
}

/* ==========================================================================
   pages — 版权与反馈 feedback
   ========================================================================== */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}

.content-article {
  min-width: 0;
}

.content-article .content-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 12px;
}

.content-article .content-section p {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  margin-bottom: 12px;
}

.point-list {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 8px 24px;
  margin-bottom: 16px;
}

.point-list li {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid #F4F6F8;
  padding-left: 16px;
  position: relative;
}

.point-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #3B82C4;
  font-weight: 700;
}

.point-list li:last-child {
  border-bottom: none;
}

/* 步骤列表 */
.step-list {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 8px 24px;
}

.step-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #F4F6F8;
}

.step-list li:last-child {
  border-bottom: none;
}

.step-num {
  font-size: 16px;
  font-weight: 600;
  color: #3B82C4;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  flex-shrink: 0;
}

.step-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  margin-bottom: 0;
}

/* 链接卡片 */
.link-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.link-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 20px;
  display: block;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
  border-color: #3B82C4;
  box-shadow: 0 2px 12px rgba(59, 130, 196, 0.08);
  text-decoration: none;
}

.link-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 6px;
}

.link-card p {
  font-size: 13px;
  color: #66788C;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-panel {
  background-color: #FFFFFF;
  border: 1px solid #D1D8E0;
  border-radius: 8px;
  padding: 48px;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 48px;
  font-weight: 600;
  color: #3B82C4;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  line-height: 1.2;
  margin-bottom: 8px;
}

.error-title {
  font-size: 20px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: #66788C;
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.error-home,
.error-genre {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.error-home {
  background-color: #3B82C4;
  color: #FFFFFF;
}

.error-home:hover {
  background-color: #2F6CA8;
  text-decoration: none;
}

.error-genre {
  background-color: #FFFFFF;
  color: #3B82C4;
  border: 1px solid #3B82C4;
}

.error-genre:hover {
  background-color: #EDF3FA;
  text-decoration: none;
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .genre-wall-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 8px 16px;
    min-height: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    display: block;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid #F4F6F8;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* 侧栏布局切换为单列 */
  .sidebar-left,
  .page-shell .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 16px 0;
  }

  .sidebar-nav,
  .sidebar,
  .page-aside {
    order: 2;
  }

  .inner-main {
    order: 1;
  }

  .page-aside {
    margin-top: 8px;
  }

  .aside-card {
    margin-bottom: 12px;
  }

  /* 首页模块 */
  .hero-section {
    padding: 32px 0 24px;
  }

  .hero-channels {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-wall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .update-top-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .path-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reading-path-section,
  .faq-summary-section {
    padding: 24px 0;
  }

  /* 内页模块 */
  .entry-cards,
  .related-links-grid,
  .tool-path-list,
  .faq-more-grid,
  .link-card-list {
    grid-template-columns: 1fr;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .genre-meta {
    grid-template-columns: 1fr;
  }

  .follow-tips,
  .compare-block {
    grid-template-columns: 1fr;
  }

  .tips-list {
    grid-template-columns: 1fr;
  }

  .complete-genres-grid {
    grid-template-columns: 1fr;
  }

  .related-cards,
  .path-cards {
    grid-template-columns: 1fr;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-layout .page-aside {
    order: 2;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  .footer-copy {
    padding: 12px 16px;
  }

  .error-panel {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 8px 12px;
  }

  .site-brand {
    font-size: 17px;
  }

  .nav-toggle-text {
    display: none;
  }

  .genre-wall-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .genre-img {
    height: 110px;
  }

  .genre-card .genre-name {
    font-size: 14px;
    padding: 10px 10px 4px;
  }

  .genre-audience {
    font-size: 12px;
    padding: 0 10px 10px;
  }

  .update-item {
    grid-template-columns: 64px 1fr;
    gap: 8px;
  }

  .update-status {
    display: none;
  }

  .top-item {
    grid-template-columns: 24px 1fr;
    gap: 8px;
  }

  .top-tag {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-desc {
    max-width: none;
  }

  .rank-item {
    grid-template-columns: 32px 1fr;
    gap: 8px;
  }

  .rank-desc {
    display: none;
  }

  .update-section .update-item {
    grid-template-columns: 64px 1fr;
  }

  .update-note {
    display: none;
  }

  .genre-grid {
    grid-template-columns: 1fr;
  }

  .genre-grid .genre-card {
    display: flex;
    align-items: center;
  }

  .genre-grid .genre-card img {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
  }

  .genre-card-caption {
    padding: 12px 16px;
  }

  .page-title {
    font-size: 18px;
  }

  .page-description {
    font-size: 13px;
  }

  .section-title {
    font-size: 16px;
  }
}

@media (max-width: 390px) {
  .site-inner {
    padding: 0 12px;
  }

  .home-main {
    padding: 0 12px;
  }

  .genre-wall-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .genre-img {
    height: 100px;
  }

  .channel-img {
    height: 150px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-home,
  .error-genre {
    width: 100%;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
