/* =========================================================
   gz-qccm.com · 全站样式表
   编辑部索引册风格：浅灰目录底、蓝色链接、960px 正文宽度
   ========================================================= */

/* =========================================================
   1. Base — 重置与全站基础
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
.site-body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #1a1a1a;
  background-color: #f4f5f7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a5fb4;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: #2a6ebb;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  color: #1a1a1a;
}

h1 {
  font-size: 22px;
  font-weight: 700;
}

h2 {
  font-size: 18px;
  font-weight: 600;
}

h3 {
  font-size: 16px;
  font-weight: 600;
}

p {
  margin-bottom: 0;
}

/* 目录与辅助文字 */
.index-title,
.aside-title,
.news-title,
.sidebar-title,
.filter-title,
.footer-title,
.related-links-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

/* =========================================================
   2. Layout — 全站骨架与容器
   ========================================================= */

/* 页头 */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8eaed;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.brand-logo {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.brand-logo:hover {
  color: #1a1a1a;
}

.brand-sub {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

/* 目录按钮 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: #f4f5f7;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  min-height: 44px;
}

.nav-toggle:hover {
  background-color: #e8eaed;
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle-line {
  display: block;
  width: 16px;
  height: 2px;
  background-color: #1a1a1a;
}

/* 全屏目录索引 */
.fullscreen-index {
  position: fixed;
  inset: 0;
  background-color: #f4f5f7;
  z-index: 200;
  padding: 80px 20px 40px;
  overflow-y: auto;
  display: none;
}

.fullscreen-index.is-open {
  display: block;
}

.fullscreen-index .index-columns {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.index-column h2 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eaed;
}

.index-column ul li {
  margin-bottom: 8px;
}

.index-column ul li a {
  font-size: 14px;
  line-height: 1.6;
}

/* 主容器 */
.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  padding: 8px 0;
}

.breadcrumb a {
  color: #1a5fb4;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #6b7280;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8eaed;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-description {
  font-size: 14px;
  color: #4b5563;
  max-width: 720px;
}

/* 双栏布局 — 默认主内容在前，侧栏在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

/* 侧栏通用 */
.aside-title,
.sidebar-title,
.filter-title {
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8eaed;
}

.aside-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 12px;
  line-height: 1.6;
}

/* 页脚 */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e8eaed;
  margin-top: 48px;
}

.footer-columns {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #1a5fb4;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid #e8eaed;
}

.footer-bottom p {
  font-size: 13px;
  color: #6b7280;
}

/* 相关链接条 */
.related-links {
  margin-top: 32px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.related-links-item {
  font-size: 13px;
  padding: 4px 10px;
  background-color: #f4f5f7;
  border-radius: 4px;
  text-decoration: none;
  color: #1a5fb4;
}

.related-links-item:hover {
  background-color: #e8eaed;
}

/* 通用 section-title */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
}

/* =========================================================
   3. Components — 全站通用组件
   ========================================================= */

/* 漫画封面卡 */
.cover-card {
  display: block;
  width: 140px;
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.15s ease;
}

.cover-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cover-card img {
  width: 140px;
  height: 190px;
  object-fit: cover;
}

.cover-title {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #1a1a1a;
  text-decoration: none;
}

.cover-card:hover .cover-title {
  color: #1a5fb4;
}

/* 封面条 */
.cover-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

/* 题材标签组 */
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tags a {
  font-size: 13px;
  padding: 4px 10px;
  background-color: #f4f5f7;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  text-decoration: none;
  color: #1a5fb4;
}

.topic-tags a:hover {
  background-color: #e8eaed;
}

/* 步骤网格 — 首页与指南页共用基础 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 图片容器统一约束 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

figcaption {
  font-size: 13px;
  color: #6b7280;
  padding: 8px 2px 0;
  line-height: 1.6;
}

/* =========================================================
   4. Pages — 各页面业务模块
   ========================================================= */

/* ---------- 首页 index.html ---------- */

/* 阅读工作台 */
.workbench-section {
  padding: 32px 0 24px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: center;
}

.workbench-desc {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
}

.task-box {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.task-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #1a5fb4;
  background-color: #eef3fb;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.task-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.task-link {
  font-size: 13px;
}

.recent-box {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
}

.recent-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.recent-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f3;
}

.recent-list li:last-child {
  border-bottom: none;
}

.recent-list li a {
  font-size: 14px;
}

.hero-figure {
  margin-bottom: 16px;
}

.hero-figure img {
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1a5fb4;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  min-height: 44px;
  line-height: 24px;
}

.cta-button:hover {
  background-color: #2a6ebb;
  color: #ffffff;
}

/* 焦点专题与短讯 */
.focus-section {
  padding: 24px 0;
}

.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.focus-card {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
}

.focus-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.focus-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.focus-desc {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 12px;
  line-height: 1.7;
}

.focus-card > a {
  font-size: 13px;
}

.news-column {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
}

.news-title {
  margin-bottom: 12px;
}

.news-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f3;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-tag {
  flex-shrink: 0;
  font-size: 12px;
  color: #1a5fb4;
  background-color: #eef3fb;
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 2px;
}

.news-list li a {
  font-size: 14px;
  line-height: 1.5;
}

/* 题材分类流 */
.topics-stream {
  padding: 24px 0;
}

.stream-desc {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
}

.topic-group {
  margin-bottom: 24px;
}

.topic-group .topic-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.topic-group .topic-name a {
  text-decoration: none;
  color: #1a1a1a;
}

.topic-group .topic-name a:hover {
  color: #1a5fb4;
}

/* 人气榜单 */
.ranking-section {
  padding: 24px 0;
}

.ranking-list {
  counter-reset: rank;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.rank-num {
  font-size: 18px;
  font-weight: 700;
  color: #1a5fb4;
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

.ranking-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-info {
  min-width: 0;
}

.rank-tag {
  display: inline-block;
  font-size: 12px;
  color: #1a5fb4;
  background-color: #eef3fb;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.rank-info a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #1a1a1a;
  display: inline-block;
  margin: 0 8px 4px 0;
}

.rank-info a:hover {
  color: #1a5fb4;
}

.rank-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

/* 阅读指南摘要 */
.guide-summary {
  padding: 24px 0;
}

.guide-summary .steps-grid {
  margin-bottom: 20px;
}

.step-item {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
}

.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #1a5fb4;
  background-color: #eef3fb;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.step-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 8px;
}

.step-item a {
  font-size: 13px;
}

.guide-entry {
  text-align: right;
}

.guide-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background-color: #ffffff;
  border: 1px solid #1a5fb4;
  border-radius: 4px;
  text-decoration: none;
  color: #1a5fb4;
}

.guide-link:hover {
  background-color: #eef3fb;
}

/* ---------- 题材分类 topics.html ---------- */

.topic-index-list li {
  margin-bottom: 6px;
}

.topic-index-list li a {
  font-size: 14px;
  text-decoration: none;
  color: #1a5fb4;
  padding: 4px 0;
  display: inline-block;
}

.topic-index-list li a:hover {
  text-decoration: underline;
}

.topic-visual {
  margin-bottom: 24px;
}

.topic-visual img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-item {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
  scroll-margin-top: 80px;
}

.topic-item .topic-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.topic-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 10px;
}

.topic-note {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 8px;
}

.topic-note a,
.topic-links a {
  font-size: 13px;
  margin-right: 12px;
}

.topic-links {
  margin-top: 8px;
}

.cross-reference {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 20px;
  margin-top: 24px;
}

.cross-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cross-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f3;
}

.cross-list li:last-child {
  border-bottom: none;
}

.cross-list li a {
  font-size: 14px;
}

/* ---------- 今日推荐 today.html ---------- */

.recommend-main {
  margin-bottom: 32px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.recommend-card {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tags a {
  font-size: 12px;
  color: #1a5fb4;
  background-color: #eef3fb;
  padding: 2px 8px;
  border-radius: 3px;
  text-decoration: none;
}

.card-tags a:hover {
  background-color: #dbe6f5;
}

.card-reason {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 10px;
  flex: 1;
}

.card-fit {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.card-fit strong {
  color: #1a1a1a;
  font-weight: 600;
}

.card-link {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #1a5fb4;
  align-self: flex-start;
}

.card-link:hover {
  text-decoration: underline;
}

/* 近期归档 */
.archive-block {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.archive-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.archive-list li:last-child {
  border-bottom: none;
}

.archive-list li a {
  font-size: 14px;
  text-decoration: none;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-list li a:hover {
  color: #1a5fb4;
  text-decoration: underline;
}

.archive-tag {
  flex-shrink: 0;
  font-size: 12px;
  color: #1a5fb4;
  background-color: #eef3fb;
  padding: 1px 6px;
  border-radius: 3px;
}

.cross-ref-block {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
}

.cross-links li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f3;
}

.cross-links li:last-child {
  border-bottom: none;
}

.cross-links li a {
  font-size: 14px;
}

/* ---------- 连载更新 updates.html ---------- */

.page-updates .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.latest-section,
.recent-section,
.archive-section {
  margin-bottom: 32px;
}

.update-list {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 8px 16px;
}

.update-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f1f3;
  align-items: flex-start;
}

.update-item:last-child {
  border-bottom: none;
}

.update-thumb {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  min-width: 0;
}

.update-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.update-tags a {
  font-size: 12px;
  color: #1a5fb4;
  background-color: #eef3fb;
  padding: 1px 6px;
  border-radius: 3px;
  text-decoration: none;
}

.update-status {
  font-size: 12px;
  color: #6b7280;
  background-color: #f4f5f7;
  padding: 1px 6px;
  border-radius: 3px;
  display: inline-block;
}

.update-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.update-note {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.adjust-list {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 8px 16px;
}

.adjust-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f3;
}

.adjust-item:last-child {
  border-bottom: none;
}

.adjust-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.adjust-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.adjust-note {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.archive-section .archive-list {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 8px 16px;
}

.archive-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f3;
}

.archive-item:last-child {
  border-bottom: none;
}

.archive-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.archive-meta {
  font-size: 13px;
  color: #6b7280;
}

/* 更新页侧栏 */
.sidebar {
  min-width: 0;
}

.sidebar-block {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar-block > p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 10px;
}

.status-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f3;
  font-size: 13px;
  color: #4b5563;
}

.status-list li:last-child {
  border-bottom: none;
}

.status-list li strong {
  font-weight: 600;
  color: #1a1a1a;
  margin-right: 4px;
}

.related-list li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f1f3;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list li a {
  font-size: 14px;
  text-decoration: none;
  color: #1a5fb4;
}

.related-list li a:hover {
  text-decoration: underline;
}

.notice-block p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.notice-block p a {
  font-size: 13px;
}

/* ---------- 完结作品 completed.html ---------- */

.filter-box {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
}

.filter-title {
  margin-bottom: 12px;
}

.filter-list li {
  margin-bottom: 4px;
}

.filter-list li a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  text-decoration: none;
  color: #1a5fb4;
  border-radius: 4px;
}

.filter-list li a:hover {
  background-color: #eef3fb;
  text-decoration: underline;
}

.filter-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 12px;
  line-height: 1.6;
}

.completed-groups {
  min-width: 0;
}

.completed-group {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
  scroll-margin-top: 80px;
}

.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.group-title {
  font-size: 18px;
  font-weight: 600;
}

.group-count {
  font-size: 13px;
  color: #6b7280;
}

.group-desc {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 14px;
  line-height: 1.6;
}

.completed-list {
  border-top: 1px solid #f0f1f3;
}

.completed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f3;
}

.completed-item:last-child {
  border-bottom: none;
}

.item-info {
  min-width: 0;
  flex: 1;
}

.item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.item-tag {
  font-size: 12px;
  color: #1a5fb4;
  background-color: #eef3fb;
  padding: 1px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 4px;
}

.item-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.item-advice {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.item-link {
  flex-shrink: 0;
  font-size: 13px;
  text-decoration: none;
  color: #1a5fb4;
  padding: 6px 10px;
  border: 1px solid #1a5fb4;
  border-radius: 4px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.item-link:hover {
  background-color: #eef3fb;
}

.content-media-inline {
  margin-top: 16px;
}

.content-media-inline img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.reading-notes {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 20px;
  margin-top: 24px;
}

.reading-notes-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.note-card {
  background-color: #f4f5f7;
  border-radius: 6px;
  padding: 14px;
}

.note-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.note-text {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

/* 完结作品相关推荐 */
.completed-related {
  margin-top: 24px;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.related-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.related-card:hover .related-card-title {
  color: #1a5fb4;
}

.related-card-text {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

/* ---------- 阅读指南 guide.html ---------- */

.steps-section {
  margin-bottom: 32px;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 20px;
}

.step-number {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #1a5fb4;
  background-color: #eef3fb;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-text {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 10px;
}

.step-link {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #1a5fb4;
}

.step-link:hover {
  text-decoration: underline;
}

/* 目录说明 */
.directory-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.directory-copy {
  min-width: 0;
}

.directory-intro {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
}

.directory-table-wrap {
  overflow-x: auto;
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
}

.directory-table th,
.directory-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f1f3;
  vertical-align: top;
}

.directory-table th {
  background-color: #f4f5f7;
  font-weight: 600;
  font-size: 13px;
  color: #1a1a1a;
}

.directory-table td {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.directory-table tr:last-child td {
  border-bottom: none;
}

.directory-media {
  margin-top: 8px;
}

.directory-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* 反馈区 */
.feedback-section {
  margin-bottom: 32px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.feedback-card {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 20px;
}

.feedback-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feedback-card p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.feedback-card p a {
  font-size: 13px;
}

.feedback-tip {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 14px 16px;
}

/* ---------- 常见问题 faq.html ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.faq-index-aside {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 16px;
}

.faq-index-list li {
  margin-bottom: 4px;
}

.faq-index-list li a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  text-decoration: none;
  color: #1a5fb4;
  border-radius: 4px;
}

.faq-index-list li a:hover {
  background-color: #eef3fb;
  text-decoration: underline;
}

.faq-index-figure {
  margin-top: 16px;
}

.faq-index-figure img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.faq-list {
  min-width: 0;
}

.faq-list .section-title {
  margin-top: 24px;
}

.faq-list .section-title:first-child {
  margin-top: 0;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item details {
  padding: 0 16px;
}

.faq-item summary {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 16px;
  color: #1a5fb4;
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 16px;
}

.faq-answer p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
}

.unresolved-note {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 20px;
  margin-top: 24px;
}

.unresolved-note h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.unresolved-note p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
}

.unresolved-note p a {
  font-size: 14px;
  margin-right: 12px;
}

/* ---------- 版权与反馈 boundary.html ---------- */

.boundary-statement {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.boundary-media {
  margin-bottom: 20px;
}

.boundary-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.boundary-statement h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.boundary-item {
  background-color: #f4f5f7;
  border-radius: 6px;
  padding: 16px;
}

.boundary-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.boundary-item p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.feedback-path {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.feedback-path h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.feedback-path .feedback-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feedback-note {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  background-color: #f4f5f7;
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 16px;
}

.boundary-related {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 20px;
}

.boundary-related h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.boundary-related .related-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f3;
}

.boundary-related .related-list li:last-child {
  border-bottom: none;
}

.boundary-related .related-list li a {
  font-size: 14px;
  text-decoration: none;
  color: #1a5fb4;
}

.boundary-related .related-list li a:hover {
  text-decoration: underline;
}

/* ---------- 404 页面 ---------- */

.error-main {
  padding-top: 48px;
  padding-bottom: 48px;
}

.error-panel {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 40px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.error-code {
  font-size: 48px;
  font-weight: 700;
  color: #1a5fb4;
  line-height: 1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
}

.error-home {
  display: inline-block;
  padding: 10px 24px;
  background-color: #1a5fb4;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  min-height: 44px;
  line-height: 24px;
}

.error-home:hover {
  background-color: #2a6ebb;
  color: #ffffff;
}

.error-links {
  background-color: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  padding: 24px;
}

.error-links h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.error-links ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin-bottom: 16px;
}

.error-links ul li a {
  font-size: 14px;
  text-decoration: none;
  color: #1a5fb4;
}

.error-links ul li a:hover {
  text-decoration: underline;
}

.error-help {
  font-size: 14px;
  color: #4b5563;
  border-top: 1px solid #f0f1f3;
  padding-top: 16px;
}

.error-help a {
  font-size: 14px;
  margin-right: 12px;
}

/* =========================================================
   5. Responsive — 1024 / 768 / 480 三档断点
   ========================================================= */

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
  .page-layout,
  .page-updates .page-layout,
  .faq-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .fullscreen-index .index-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }

  .site-main {
    padding: 0 16px;
  }

  .inner-main {
    padding-top: 16px;
  }

  /* 单栏布局，侧栏在正文之后 */
  .page-layout,
  .page-layout.sidebar-left,
  .page-updates .page-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 侧栏降级为普通区块 */
  .topic-index-aside,
  .archive-aside,
  .sidebar,
  .filter-aside,
  .faq-index-aside {
    order: 2;
  }

  /* 首页模块降级 */
  .workbench-grid,
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .workbench-right {
    order: -1;
  }

  .hero-figure img {
    width: 100%;
    height: 200px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .directory-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .directory-media img {
    height: 160px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feedback-path .feedback-grid {
    grid-template-columns: 1fr;
  }

  .boundary-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .fullscreen-index {
    padding: 70px 16px 32px;
  }

  .fullscreen-index .index-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .error-links ul {
    grid-template-columns: 1fr;
  }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  .header-inner {
    padding: 10px 12px;
    min-height: 56px;
  }

  .brand-logo {
    font-size: 18px;
  }

  .nav-toggle {
    padding: 6px 10px;
    font-size: 12px;
  }

  .site-main {
    padding: 0 12px;
  }

  .workbench-section {
    padding: 20px 0 16px;
  }

  .workbench-grid,
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-figure img {
    height: 160px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .focus-card img {
    height: 140px;
  }

  .cover-card {
    width: 120px;
  }

  .cover-card img {
    width: 120px;
    height: 164px;
  }

  .ranking-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .ranking-item img {
    width: 40px;
    height: 54px;
  }

  .rank-num {
    font-size: 16px;
    width: 22px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 16px 16px;
  }

  .footer-bottom {
    padding: 12px 16px 20px;
  }

  .page-header {
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 20px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .recommend-card .card-media img {
    height: 120px;
  }

  .update-item {
    gap: 10px;
  }

  .update-thumb {
    width: 48px;
    height: 64px;
  }

  .completed-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .item-link {
    align-self: flex-start;
  }

  .directory-table {
    font-size: 13px;
  }

  .directory-table th,
  .directory-table td {
    padding: 8px 6px;
  }

  .faq-item summary {
    font-size: 14px;
  }

  .boundary-statement,
  .feedback-path {
    padding: 16px;
  }

  .boundary-media img {
    height: 140px;
  }

  .error-panel {
    padding: 28px 16px;
  }

  .error-code {
    font-size: 36px;
  }
}

/* ---------- 动效增强（不影响初始可见性） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cover-card,
  .recommend-card,
  .step-card,
  .step-item,
  .focus-card,
  .topic-item,
  .completed-group,
  .boundary-item,
  .feedback-card {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
  }

  .cover-card:hover,
  .recommend-card:hover,
  .step-card:hover,
  .step-item:hover,
  .focus-card:hover,
  .topic-item:hover,
  .completed-group:hover,
  .boundary-item:hover,
  .feedback-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
}
