/* ==========================================================================
   51漫画 - 整站样式表
   物流运营风：墨蓝主色 + 信号橙强调色，信息面板语法
   ========================================================================== */

/* ==========================================================================
   Base 基础层
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  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: #2b3440;
  background-color: #e8ecf1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1f3a5f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e8843c;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* 数字与时间对齐 */
.timeline-meta,
.rank-number,
.rank-value,
.heat-value,
.track-node,
.timeline-node {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Layout 布局骨架
   ========================================================================== */

/* 全站统一容器宽度 */
.header-inner,
.footer-inner,
.hero-section,
.genre-strip .strip-inner,
.rank-preview-inner,
.timeline-inner,
.dual-entrance,
.site-summary-strip .summary-inner,
.related-links,
.breadcrumb,
.page-header,
.page-layout,
.layout-shell,
.rank-section,
.rank-note-panel,
.term-index-section,
.term-cards-section,
.scene-note-section,
.step-section,
.faq-section,
.rights-section,
.work-note,
.topic-list,
.boundary-panel,
.intro-section,
.copyright-panel,
.usage-section,
.feedback-section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 站点主体 */
.site-main {
  min-height: 60vh;
}

/* 内页骨架 */
.inner-main {
  padding: 32px 0 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #5a6b7c;
  padding-top: 20px;
  padding-bottom: 8px;
}

.breadcrumb a {
  color: #1f3a5f;
}

.breadcrumb a:hover {
  color: #e8843c;
}

.breadcrumb-sep {
  color: #9aa8b5;
  user-select: none;
}

.breadcrumb-current {
  color: #5a6b7c;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding-top: 16px;
  padding-bottom: 28px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f3a5f;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: #5a6b7c;
  max-width: 720px;
}

/* 区块标题 */
.section-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #1f3a5f;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 14px;
  color: #5a6b7c;
  margin-bottom: 16px;
}

/* ==========================================================================
   Components 组件层
   ========================================================================== */

/* ---- 页头 ---- */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #e8ecf1;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #1f3a5f;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 11px;
  color: #5a6b7c;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* 导航 */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #2b3440;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #1f3a5f;
  background-color: #f0f3f7;
}

/* 当前页：轨道下划线 + 状态点 */
.nav-link.is-current {
  color: #1f3a5f;
  font-weight: 600;
}

.nav-link.is-current::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #e8843c;
  border-radius: 2px;
  margin-top: 4px;
}

.nav-link.is-current::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #e8843c;
  margin-right: 6px;
  vertical-align: middle;
}

/* 汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 4px;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1f3a5f;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- 状态标签 ---- */
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.status-updated {
  background-color: #e8f4ec;
  color: #1f7a4d;
}

.status-upcoming {
  background-color: #fff3e0;
  color: #b96a1f;
}

.status-paused {
  background-color: #fdecea;
  color: #c0392b;
}

/* ---- 信息面板 ---- */
.info-panel {
  background-color: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 24px;
}

.panel-title,
.info-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 12px;
}

.panel-text,
.info-panel-text {
  font-size: 14px;
  color: #5a6b7c;
  line-height: 1.8;
  margin-bottom: 8px;
}

.panel-text:last-child,
.info-panel-text:last-child {
  margin-bottom: 0;
}

/* ---- 相关链接 ---- */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.related-links-label {
  font-size: 13px;
  color: #5a6b7c;
  font-weight: 500;
}

.related-links-item {
  font-size: 13px;
  color: #1f3a5f;
  padding: 4px 10px;
  background-color: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  color: #e8843c;
  border-color: #e8843c;
}

/* ---- 页脚 ---- */
.site-footer {
  background-color: #1f3a5f;
  color: #c8d2de;
  margin-top: 48px;
}

.footer-inner {
  padding-top: 40px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #9fb0c2;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-col {
  flex: 1;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  font-size: 13px;
  color: #9fb0c2;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: #7e93a8;
}

/* ==========================================================================
   Pages 页面层
   ========================================================================== */

/* ========== 首页 ========== */
.home-main {
  padding-bottom: 40px;
}

/* 首屏双区 */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 32px;
  align-items: start;
}

.hero-heading {
  font-size: 28px;
  font-weight: 700;
  color: #1f3a5f;
  line-height: 1.35;
  margin-bottom: 8px;
}

.accent-text {
  color: #e8843c;
}

.hero-description {
  font-size: 15px;
  color: #5a6b7c;
  margin-bottom: 20px;
  max-width: 560px;
}

/* 主推画廊 */
.gallery-main {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8ecf1;
  margin-bottom: 12px;
}

.gallery-figure {
  position: relative;
}

.gallery-main-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 20px 16px;
  background: linear-gradient(to top, rgba(31, 58, 95, 0.9), transparent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumb-img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.thumb-img:hover {
  opacity: 0.8;
}

.thumb-img.is-active {
  opacity: 1;
  border-color: #e8843c;
  box-shadow: 0 0 0 1px #e8843c;
}

/* 更新轨道 */
.update-track {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 20px;
}

.track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.track-header .section-title {
  margin-bottom: 0;
}

.track-more-link {
  font-size: 13px;
  color: #1f3a5f;
  font-weight: 500;
}

.track-more-link:hover {
  color: #e8843c;
}

.track-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.track-card {
  background-color: #f7f9fb;
  border-radius: 6px;
  padding: 10px;
  transition: box-shadow 0.2s ease;
}

.track-card:hover {
  box-shadow: 0 2px 8px rgba(31, 58, 95, 0.08);
}

.track-cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.track-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 4px;
  line-height: 1.4;
}

.track-node {
  font-size: 12px;
  color: #5a6b7c;
  margin-bottom: 6px;
}

/* 题材线路标签条 */
.genre-strip {
  background-color: #ffffff;
  border-top: 1px solid #e8ecf1;
  border-bottom: 1px solid #e8ecf1;
  padding: 28px 0;
  margin-bottom: 32px;
}

.strip-description {
  font-size: 14px;
  color: #5a6b7c;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background-color: #f0f3f7;
  border: 1px solid #e8ecf1;
  border-radius: 4px;
  font-size: 13px;
  color: #1f3a5f;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag-item:hover {
  background-color: #fff3e0;
  border-color: #e8843c;
  color: #b96a1f;
}

/* 人气榜单预览 */
.rank-preview {
  padding: 32px 0;
}

.rank-preview-inner {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
}

.preview-note {
  font-size: 13px;
  color: #5a6b7c;
  margin-bottom: 16px;
}

.preview-note a {
  color: #1f3a5f;
  font-weight: 500;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 2fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background-color: #f7f9fb;
  border-radius: 4px;
}

.rank-number {
  font-size: 14px;
  font-weight: 700;
  color: #1f3a5f;
  text-align: center;
}

.rank-name {
  font-size: 14px;
  font-weight: 500;
  color: #2b3440;
}

.rank-bar {
  height: 6px;
  background-color: #e8ecf1;
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background-color: #e8843c;
  border-radius: 3px;
}

.bar-fill-90 { width: 90%; }
.bar-fill-85 { width: 85%; }
.bar-fill-78 { width: 78%; }
.bar-fill-70 { width: 70%; }
.bar-fill-65 { width: 65%; }

.rank-value {
  font-size: 13px;
  color: #5a6b7c;
  text-align: right;
}

/* 更新轨迹时间线 */
.timeline-section {
  padding: 32px 0;
}

.timeline-intro {
  font-size: 14px;
  color: #5a6b7c;
  margin-bottom: 20px;
}

.timeline-intro a {
  color: #1f3a5f;
  font-weight: 500;
}

.timeline-list {
  position: relative;
  padding-left: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background-color: #e8ecf1;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e8843c;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #e8843c;
}

.timeline-content {
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #e8ecf1;
  padding: 16px 20px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 4px;
}

.timeline-meta {
  font-size: 13px;
  color: #5a6b7c;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 13px;
  color: #5a6b7c;
  line-height: 1.6;
}

/* 双入口卡 */
.dual-entrance {
  padding: 32px 0;
}

.entrance-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.entrance-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 28px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.entrance-card:hover {
  border-color: #e8843c;
  box-shadow: 0 4px 16px rgba(31, 58, 95, 0.08);
}

.entrance-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 8px;
}

.entrance-desc {
  font-size: 14px;
  color: #5a6b7c;
  margin-bottom: 16px;
  line-height: 1.7;
}

.entrance-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #1f3a5f;
  transition: color 0.2s ease;
}

.entrance-link::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.entrance-link:hover {
  color: #e8843c;
}

.entrance-link:hover::after {
  transform: translateX(3px);
}

/* 站点说明摘要条 */
.site-summary-strip {
  background-color: #1f3a5f;
  padding: 28px 0;
}

.summary-text {
  font-size: 14px;
  color: #c8d2de;
  line-height: 1.7;
}

.summary-text strong {
  color: #ffffff;
  font-weight: 600;
}

.summary-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #e8843c;
}

.summary-link:hover {
  color: #ffffff;
}

/* ========== 题材索引页 ========== */
.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-sidebar {
  position: sticky;
  top: 88px;
}

.filter-panel {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 20px;
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8ecf1;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-item {
  position: relative;
}

.filter-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  color: #2b3440;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-link:hover {
  background-color: #f0f3f7;
  color: #1f3a5f;
}

.filter-link.is-active {
  background-color: #fff3e0;
  color: #b96a1f;
  font-weight: 500;
}

.filter-link.is-active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e8843c;
  margin-right: 8px;
  flex-shrink: 0;
}

/* 封面网格 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cover-card {
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #e8ecf1;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cover-card:hover {
  box-shadow: 0 4px 12px rgba(31, 58, 95, 0.1);
  transform: translateY(-2px);
}

.cover-card a {
  display: block;
}

.cover-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f0f3f7;
}

.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cover-card:hover .cover-figure img {
  transform: scale(1.03);
}

.cover-info {
  padding: 12px;
}

.cover-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 4px;
  line-height: 1.4;
}

.cover-genre {
  font-size: 12px;
  color: #5a6b7c;
}

/* 分页 */
.pagination {
  margin-top: 24px;
}

.pagination-list {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pagination-item {
  min-width: 36px;
  height: 36px;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 4px;
  font-size: 14px;
  color: #1f3a5f;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pagination-link:hover {
  border-color: #e8843c;
  color: #e8843c;
}

.pagination-link.is-current {
  background-color: #1f3a5f;
  color: #ffffff;
  border-color: #1f3a5f;
  font-weight: 600;
}

.pagination-link.is-current::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #e8843c;
  border-radius: 2px;
  margin-top: 2px;
}

/* 浏览指引 */
.guide-panel {
  margin-top: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
}

.guide-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 8px;
}

.guide-text {
  font-size: 14px;
  color: #5a6b7c;
  line-height: 1.7;
}

.guide-text a {
  color: #1f3a5f;
  font-weight: 500;
}

.guide-text a:hover {
  color: #e8843c;
}

/* ========== 更新轨迹页 ========== */
.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.status-sidebar {
  position: sticky;
  top: 88px;
}

.status-legend,
.update-note {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 20px;
  margin-bottom: 16px;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-text {
  font-size: 14px;
  color: #2b3440;
}

.update-note .section-desc {
  font-size: 13px;
  margin-bottom: 8px;
}

/* 更新时间线 */
.update-timeline {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
}

.update-timeline .timeline-list {
  list-style: none;
}

.update-timeline .timeline-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-node::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e8843c;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #e8843c;
  margin-top: 20px;
}

.timeline-node::after {
  content: "";
  flex: 1;
  width: 2px;
  background-color: #e8ecf1;
  margin-top: 8px;
}

.timeline-item:last-child .timeline-node::after {
  display: none;
}

.timeline-card {
  background-color: #f7f9fb;
  border-radius: 6px;
  padding: 16px;
}

.timeline-card .timeline-title {
  margin-bottom: 6px;
}

.timeline-card .timeline-meta {
  margin-bottom: 8px;
}

/* 更新周期说明 */
.cycle-note {
  margin-top: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
}

.cycle-note .section-desc {
  font-size: 13px;
  margin-bottom: 8px;
}

/* ========== 人气榜单页 ========== */
.rank-section {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
  margin-bottom: 24px;
}

.section-head {
  margin-bottom: 20px;
  border-bottom: 1px solid #e8ecf1;
  padding-bottom: 16px;
}

.section-head .section-title {
  margin-bottom: 4px;
}

/* 热度榜行 */
.rank-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.rank-row:hover {
  background-color: #f7f9fb;
}

.rank-row .rank-number {
  font-size: 18px;
  font-weight: 700;
  color: #1f3a5f;
}

.rank-row.rank-top3 .rank-number {
  color: #e8843c;
  font-size: 22px;
}

.rank-info {
  min-width: 0;
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 2px;
}

.rank-tags {
  font-size: 12px;
  color: #5a6b7c;
  margin-bottom: 8px;
}

.heat-bar-wrap {
  height: 6px;
  background-color: #e8ecf1;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.heat-bar {
  display: block;
  height: 100%;
  background-color: #e8843c;
  border-radius: 3px;
}

.heat-bar-90 { width: 90%; }
.heat-bar-86 { width: 86%; }
.heat-bar-82 { width: 82%; }
.heat-bar-78 { width: 78%; }
.heat-bar-75 { width: 75%; }
.heat-bar-72 { width: 72%; }
.heat-bar-69 { width: 69%; }
.heat-bar-65 { width: 65%; }
.heat-bar-61 { width: 61%; }
.heat-bar-58 { width: 58%; }

.heat-value {
  font-size: 13px;
  color: #5a6b7c;
}

/* TOP3 封面 */
.rank-top3 {
  grid-template-columns: 36px 80px minmax(0, 1fr);
}

.rank-cover-wrap {
  width: 80px;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f0f3f7;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 新作关注榜 */
.new-rank-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.new-rank-card {
  background-color: #f7f9fb;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.new-rank-card:hover {
  box-shadow: 0 4px 12px rgba(31, 58, 95, 0.1);
}

.new-rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f0f3f7;
}

.new-rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-rank-info {
  padding: 12px;
  position: relative;
}

.new-rank-badge {
  position: absolute;
  top: -10px;
  right: 8px;
  background-color: #e8843c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.new-rank-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 4px;
}

.new-rank-tags {
  font-size: 12px;
  color: #5a6b7c;
  margin-bottom: 6px;
}

.watch-tag {
  display: inline-block;
  font-size: 12px;
  color: #b96a1f;
  background-color: #fff3e0;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 榜单说明 */
.rank-note-panel {
  margin-top: 8px;
}

/* ========== 术语速查页 ========== */
.term-index-section,
.term-cards-section,
.scene-note-section {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
  margin-bottom: 24px;
}

.term-index-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.index-group {
  background-color: #f7f9fb;
  border-radius: 6px;
  padding: 16px;
}

.group-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8ecf1;
}

.index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.index-list li {
  flex: 0 0 auto;
}

.index-list a {
  display: inline-block;
  padding: 4px 10px;
  background-color: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 4px;
  font-size: 13px;
  color: #1f3a5f;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.index-list a:hover {
  border-color: #e8843c;
  color: #e8843c;
}

/* 术语解释卡 */
.term-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.term-card {
  background-color: #f7f9fb;
  border-radius: 6px;
  border: 1px solid #e8ecf1;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.term-card:hover {
  border-color: #e8843c;
}

.term-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8843c;
  display: inline-block;
}

.term-definition {
  font-size: 14px;
  color: #2b3440;
  margin-bottom: 10px;
  line-height: 1.7;
}

.term-scene {
  font-size: 13px;
  color: #5a6b7c;
  line-height: 1.6;
}

.term-scene strong {
  color: #1f3a5f;
  font-weight: 500;
}

/* 场景说明 */
.scene-note-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.scene-figure {
  border-radius: 6px;
  overflow: hidden;
  background-color: #f0f3f7;
}

.scene-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.scene-figure figcaption {
  font-size: 12px;
  color: #5a6b7c;
  padding: 8px;
  text-align: center;
  background-color: #f7f9fb;
}

.scene-text p {
  font-size: 14px;
  color: #5a6b7c;
  line-height: 1.8;
  margin-bottom: 12px;
}

.scene-text p:last-child {
  margin-bottom: 0;
}

/* ========== 阅读手册页 ========== */
.step-section,
.faq-section,
.rights-section {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
  margin-bottom: 24px;
}

/* 步骤导航 */
.step-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.step-item {
  display: flex;
  gap: 12px;
  background-color: #f7f9fb;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #e8ecf1;
  position: relative;
}

.step-item.is-current {
  border-color: #e8843c;
  background-color: #fff8f0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1f3a5f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-item.is-current .step-number {
  background-color: #e8843c;
}

.step-content {
  min-width: 0;
}

.step-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: #5a6b7c;
  line-height: 1.6;
}

.step-desc a {
  color: #1f3a5f;
  font-weight: 500;
}

.step-desc a:hover {
  color: #e8843c;
}

/* 阅读场景图 */
.reading-scene {
  margin: 0 0 24px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f0f3f7;
}

.reading-scene .scene-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.scene-caption {
  font-size: 13px;
  color: #5a6b7c;
  padding: 10px 16px;
  background-color: #f7f9fb;
  text-align: center;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #f7f9fb;
  border-radius: 6px;
  border: 1px solid #e8ecf1;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #1f3a5f;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: #e8843c;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question {
  background-color: #fff8f0;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #5a6b7c;
  line-height: 1.7;
}

/* 版权分层表 */
.rights-table-wrap {
  overflow-x: auto;
}

.rights-table {
  width: 100%;
  font-size: 14px;
}

.table-caption {
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #1f3a5f;
  padding: 12px 0;
  caption-side: top;
}

.rights-table th,
.rights-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8ecf1;
  vertical-align: top;
}

.rights-table thead th {
  background-color: #1f3a5f;
  color: #ffffff;
  font-weight: 500;
  font-size: 13px;
}

.rights-table tbody th {
  background-color: #f7f9fb;
  font-weight: 500;
  color: #1f3a5f;
  width: 160px;
}

.rights-table tbody td {
  color: #2b3440;
  line-height: 1.7;
}

.rights-note {
  font-size: 13px;
  color: #5a6b7c;
  margin-top: 16px;
}

.rights-note a {
  color: #1f3a5f;
  font-weight: 500;
}

.rights-note a:hover {
  color: #e8843c;
}

/* ========== 编辑手记页 ========== */
.work-note,
.topic-list {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
  margin-bottom: 24px;
}

.section-intro {
  font-size: 14px;
  color: #5a6b7c;
  margin-bottom: 20px;
  max-width: 720px;
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.work-card {
  background-color: #f7f9fb;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #e8ecf1;
  transition: border-color 0.2s ease;
}

.work-card:hover {
  border-color: #e8843c;
}

.work-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8843c;
  display: inline-block;
}

.work-card-text {
  font-size: 13px;
  color: #5a6b7c;
  line-height: 1.7;
}

/* 专题书单 */
.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.topic-card {
  background-color: #f7f9fb;
  border-radius: 6px;
  border: 1px solid #e8ecf1;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 4px 12px rgba(31, 58, 95, 0.1);
}

.topic-figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f0f3f7;
}

.topic-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-content {
  padding: 16px;
}

.topic-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 6px;
}

.topic-desc {
  font-size: 13px;
  color: #5a6b7c;
  line-height: 1.6;
  margin-bottom: 12px;
}

.topic-link {
  font-size: 13px;
  font-weight: 500;
  color: #1f3a5f;
}

.topic-link:hover {
  color: #e8843c;
}

/* 内容边界面板 */
.boundary-panel {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
}

.boundary-panel .info-panel-text a {
  color: #1f3a5f;
  font-weight: 500;
}

.boundary-panel .info-panel-text a:hover {
  color: #e8843c;
}

/* ========== 站点说明页 ========== */
.intro-section,
.copyright-panel,
.usage-section,
.feedback-section {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 24px;
  margin-bottom: 24px;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
}

.intro-text p {
  font-size: 14px;
  color: #5a6b7c;
  line-height: 1.8;
  margin-bottom: 12px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-figure {
  border-radius: 6px;
  overflow: hidden;
  background-color: #f0f3f7;
}

.intro-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.intro-figure figcaption {
  font-size: 12px;
  color: #5a6b7c;
  padding: 8px;
  text-align: center;
  background-color: #f7f9fb;
}

/* 分层表 */
.table-shell {
  overflow-x: auto;
}

.layer-table {
  width: 100%;
  font-size: 14px;
}

.layer-table th,
.layer-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8ecf1;
  vertical-align: top;
}

.layer-table thead th {
  background-color: #1f3a5f;
  color: #ffffff;
  font-weight: 500;
  font-size: 13px;
}

.layer-table tbody th {
  background-color: #f7f9fb;
  font-weight: 500;
  color: #1f3a5f;
  width: 160px;
}

.layer-table tbody td {
  color: #2b3440;
  line-height: 1.7;
}

/* 反馈面板 */
.feedback-panel p {
  font-size: 14px;
  color: #5a6b7c;
  line-height: 1.8;
  margin-bottom: 12px;
}

.feedback-panel p:last-child {
  margin-bottom: 0;
}

.feedback-panel a {
  color: #1f3a5f;
  font-weight: 500;
}

.feedback-panel a:hover {
  color: #e8843c;
}

/* ========== 404 页 ========== */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  min-height: 60vh;
}

.error-panel {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  padding: 48px;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #1f3a5f;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.error-title {
  font-size: 22px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: #5a6b7c;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background-color: #1f3a5f;
  color: #ffffff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: #2a4d7a;
  color: #ffffff;
}

.error-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background-color: #f0f3f7;
  color: #1f3a5f;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.error-link:hover {
  background-color: #e8ecf1;
}

.error-suggest {
  text-align: left;
  background-color: #f7f9fb;
  border-radius: 6px;
  padding: 16px;
}

.suggest-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f3a5f;
  margin-bottom: 12px;
}

.suggest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggest-list a {
  font-size: 13px;
  color: #1f3a5f;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: block;
}

.suggest-list a:hover {
  background-color: #ffffff;
  color: #e8843c;
}

/* ==========================================================================
   Responsive 响应式
   ========================================================================== */

/* 平板：1024px */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .track-scroll {
    grid-template-columns: repeat(3, 1fr);
    max-height: none;
    overflow-y: visible;
  }

  .cover-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .new-rank-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .term-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
  }

  .status-sidebar {
    position: static;
    order: 2;
  }

  .timeline-main {
    order: 1;
  }
}

/* 手机：768px */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 2px solid #e8ecf1;
    box-shadow: 0 8px 16px rgba(31, 58, 95, 0.08);
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    gap: 0;
  }

  .nav-list.is-open {
    max-height: none;
  }

  .site-nav .nav-list {
    display: flex;
  }

  .nav-item {
    border-bottom: 1px solid #f0f3f7;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
  }

  .nav-link.is-current::before {
    margin-right: 8px;
  }

  /* 首页 */
  .hero-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .gallery-main-img {
    height: 260px;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumb-img {
    height: 56px;
  }

  .track-scroll {
    grid-template-columns: repeat(2, 1fr);
  }

  .entrance-cards {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 24px minmax(0, 1fr) minmax(80px, 1.5fr) 32px;
    gap: 8px;
  }

  /* 内页布局 */
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-item {
    flex: 0 0 auto;
  }

  .filter-link.is-active::before {
    display: none;
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links {
    gap: 24px;
  }

  /* 榜单 */
  .rank-top3 {
    grid-template-columns: 28px 60px minmax(0, 1fr);
  }

  .rank-cover-wrap {
    width: 60px;
  }

  .new-rank-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 术语 */
  .term-index-group {
    grid-template-columns: 1fr;
  }

  .term-card-grid {
    grid-template-columns: 1fr;
  }

  .scene-note-panel {
    grid-template-columns: 1fr;
  }

  .scene-image {
    height: 180px;
  }

  /* 阅读手册 */
  .step-nav {
    grid-template-columns: 1fr;
  }

  /* 编辑手记 */
  .work-cards {
    grid-template-columns: 1fr;
  }

  .topic-cards {
    grid-template-columns: 1fr;
  }

  /* 站点说明 */
  .intro-layout {
    grid-template-columns: 1fr;
  }

  .intro-figure img {
    height: 200px;
  }

  /* 404 */
  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 56px;
  }

  /* 时间线 */
  .update-timeline .timeline-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .timeline-node::before {
    margin-top: 16px;
  }
}

/* 小屏手机：390px */
@media (max-width: 480px) {
  .brand-name {
    font-size: 19px;
  }

  .brand-slogan {
    font-size: 10px;
  }

  .rank-item {
    grid-template-columns: 24px minmax(0, 1fr) 28px;
  }

  .rank-bar {
    display: none;
  }

  .rank-value {
    font-size: 12px;
  }

  .cover-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cover-info {
    padding: 10px;
  }

  .cover-title {
    font-size: 13px;
  }

  .track-scroll {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .track-cover {
    height: 100px;
  }

  .new-rank-grid {
    gap: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .pagination-list {
    flex-wrap: wrap;
  }

  .rights-table th,
  .rights-table td,
  .layer-table th,
  .layer-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .rights-table tbody th,
  .layer-table tbody th {
    width: 100px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-btn,
  .error-link {
    width: 100%;
    justify-content: center;
  }
}
