/* ==========================================================================
   漫画之家 ym-shop.com  —  全站样式表
   base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base  基础重置与站点骨架
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #14161a;
  color: #f5f2ec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: #e8622c;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #ff7a44;
}

a:focus-visible {
  outline: 2px solid #e8622c;
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: #f5f2ec;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong {
  color: #f5f2ec;
  font-weight: 700;
}

/* ---- 站点骨架 ---- */

.site-body {
  min-height: 100vh;
  background-color: #14161a;
  font-size: 16px;
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #14161a;
  border-bottom: 1px solid #3a3f47;
}

.site-nav {
  display: block;
}

.site-main {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.inner-main {
  max-width: 1200px;
  padding-top: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 0 18px;
  font-size: 14px;
  color: #8b939c;
}

.breadcrumb a {
  color: #8b939c;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: #e8622c;
  border-bottom-color: #e8622c;
}

.breadcrumb-sep {
  color: #3a3f47;
}

.breadcrumb-current {
  color: #f5f2ec;
}

.page-header {
  max-width: 1080px;
  padding-bottom: 32px;
  border-bottom: 1px solid #3a3f47;
  margin-bottom: 40px;
}

.page-title {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 14px;
}

.page-description {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.8;
  color: #8b939c;
}

.page-description a {
  color: #e8622c;
}

/* ==========================================================================
   layout  布局容器
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.layout-shell {
  grid-template-columns: minmax(0, 1fr);
}

.layout-main,
.layout-content,
.main-column {
  min-width: 0;
}

.layout-aside,
.ranking-aside,
.sidebar,
.updates-index {
  min-width: 0;
}

/* 左栏日期索引：aside 在前 */
.sidebar-left {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.field-guide-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

/* ==========================================================================
   components  通用组件
   ========================================================================== */

/* ---- 顶部事实条 ---- */

.fact-bar {
  background-color: #1b1e23;
  border-bottom: 1px solid #3a3f47;
}

.fact-bar-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: #8b939c;
}

/* ---- 页头 ---- */

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #f5f2ec;
}

.brand:hover {
  color: #f5f2ec;
}

.brand-mark {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: #f5f2ec;
}

.brand-sub {
  font-size: 12px;
  line-height: 1.4;
  color: #8b939c;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #3a3f47;
  border-radius: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #f5f2ec;
  border-radius: 2px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: #f5f2ec;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #e8622c;
  background-color: #1b1e23;
}

.nav-link.is-current {
  color: #e8622c;
  border-bottom-color: #e8622c;
}

/* ---- 按钮 ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: #e8622c;
  color: #14161a;
  border-color: #e8622c;
}

.btn-primary:hover {
  background-color: #ff7a44;
  border-color: #ff7a44;
  color: #14161a;
}

.btn-ghost {
  background-color: transparent;
  color: #f5f2ec;
  border-color: #3a3f47;
}

.btn-ghost:hover {
  color: #e8622c;
  border-color: #e8622c;
}

/* ---- 区块通用 ---- */

.section {
  margin-bottom: 56px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #3a3f47;
}

.section-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: #f5f2ec;
}

.section-desc,
.section-intro {
  margin-top: 10px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: #8b939c;
}

.section-desc a,
.section-intro a {
  color: #e8622c;
}

.section-foot {
  margin-top: 20px;
  font-size: 15px;
}

.section-note {
  margin-top: 18px;
  font-size: 15px;
  color: #8b939c;
}

.section-note a {
  color: #e8622c;
}

.section-text {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.8;
  color: #d5d0c8;
  margin-bottom: 14px;
}

.more-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #e8622c;
  border-bottom: 1px solid #e8622c;
  padding-bottom: 2px;
}

.more-link:hover {
  color: #ff7a44;
  border-bottom-color: #ff7a44;
}

.subsection-title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 10px;
}

/* ---- 图片与图注 ---- */

figure {
  margin: 0;
}

.hero-figure,
.content-media,
.cover-figure,
.rank-cover,
.guide-figure,
.field-diagram {
  overflow: hidden;
  border-radius: 8px;
  background-color: #1b1e23;
}

.hero-figure img,
.content-media img,
.cover-figure img,
.rank-cover img,
.guide-figure img,
.field-diagram img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

figcaption,
.hero-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #8b939c;
  background-color: #1b1e23;
}

/* ---- 表格通用 ---- */

.table-wrap,
.field-table-wrap {
  overflow-x: auto;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.data-table,
.field-table,
.compare-table {
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}

.table-caption,
.field-caption,
.compare-caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: #8b939c;
  background-color: #1b1e23;
  border-bottom: 1px solid #3a3f47;
}

.data-table th,
.data-table td,
.field-table th,
.field-table td,
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #3a3f47;
  line-height: 1.7;
}

.data-table thead th,
.field-table thead th,
.compare-table thead th {
  font-size: 14px;
  font-weight: 700;
  color: #f5f2ec;
  background-color: #1b1e23;
  white-space: nowrap;
}

.data-table tbody th,
.field-table tbody th,
.compare-table tbody th {
  font-weight: 700;
  color: #f5f2ec;
  white-space: nowrap;
}

.data-table tbody td,
.field-table tbody td,
.compare-table tbody td {
  color: #d5d0c8;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---- 字段标签 ---- */

.field-label {
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
  color: #8b939c;
}

/* ---- 页脚 ---- */

.site-footer {
  margin-top: 56px;
  background-color: #101216;
  border-top: 1px solid #3a3f47;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #8b939c;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: #8b939c;
  padding: 2px 0;
}

.footer-list a:hover {
  color: #e8622c;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid #3a3f47;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: #8b939c;
}

/* ==========================================================================
   pages  各页面业务模块
   ========================================================================== */

/* ---- 首页 ---- */

.home-main {
  padding-top: 32px;
}

/* 首屏 */

.hero-archive {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.hero-main {
  min-width: 0;
}

.hero-kicker {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #e8622c;
}

.hero-title {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.8;
  color: #d5d0c8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  aspect-ratio: 16 / 9;
}

/* 批次侧栏 */

.hero-side {
  min-width: 0;
  padding: 22px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.side-title {
  font-size: 18px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 8px;
}

.side-note {
  font-size: 14px;
  line-height: 1.8;
  color: #8b939c;
  margin-bottom: 16px;
}

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  background-color: #14161a;
  border: 1px solid #3a3f47;
  border-radius: 6px;
}

.batch-item.is-current {
  border-color: #e8622c;
}

.batch-name {
  font-size: 15px;
  font-weight: 700;
  color: #f5f2ec;
}

.batch-range {
  flex: 1 1 auto;
  font-size: 13px;
  color: #8b939c;
}

.batch-link {
  font-size: 13px;
  font-weight: 700;
  color: #e8622c;
}

/* 首屏主视觉 */

.content-media-primary {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.content-media-primary img {
  aspect-ratio: 21 / 9;
}

/* 题材方向总览 */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  border-top: 3px solid #e8622c;
}

.topic-name {
  font-size: 18px;
  font-weight: 700;
  color: #f5f2ec;
}

.topic-scope {
  font-size: 14px;
  line-height: 1.75;
  color: #d5d0c8;
}

.topic-field,
.topic-count {
  font-size: 13px;
  line-height: 1.7;
  color: #8b939c;
}

.topic-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #e8622c;
}

/* 最近更新记录 */

.update-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.update-group {
  padding: 18px 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.update-date {
  font-size: 16px;
  font-weight: 700;
  color: #e8622c;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid #3a3f47;
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-name {
  font-weight: 700;
  color: #f5f2ec;
}

.update-topic,
.update-progress,
.update-time {
  color: #8b939c;
  font-variant-numeric: tabular-nums;
}

/* 人气位次参考 */

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ranking-list-wrap {
  min-width: 0;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  counter-reset: rank;
}

.ranking-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid #3a3f47;
  font-size: 14px;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  font-size: 13px;
  font-weight: 700;
  color: #e8622c;
  font-variant-numeric: tabular-nums;
}

.rank-name {
  font-weight: 700;
  color: #f5f2ec;
}

.rank-topic,
.rank-status {
  color: #8b939c;
}

.ranking-basis {
  min-width: 0;
  padding: 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.basis-title {
  font-size: 17px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 10px;
}

.basis-text {
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
  margin-bottom: 12px;
}

/* 条目字段口径摘要 */

.field-summary .field-table-wrap {
  background-color: #1b1e23;
}

/* 查阅路径三步 */

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-color: #e8622c;
  color: #14161a;
  font-size: 15px;
  font-weight: 700;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #f5f2ec;
}

.step-text {
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
}

.step-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: #e8622c;
}

.guide-section .section-foot {
  margin-top: 20px;
}

/* 站内栏目索引 */

.index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  color: #f5f2ec;
}

.index-card:hover {
  color: #f5f2ec;
  border-color: #e8622c;
  transform: translateY(-2px);
}

.index-name {
  font-size: 15px;
  font-weight: 700;
  color: #f5f2ec;
}

.index-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #8b939c;
}

/* ---- 题材分类页 ---- */

.section-compare,
.section-diff,
.section-track-covers,
.section-advice {
  margin-bottom: 48px;
}

.section-diff p {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.85;
  color: #d5d0c8;
  margin-bottom: 12px;
}

.track-group {
  margin-bottom: 26px;
}

.track-group:last-child {
  margin-bottom: 0;
}

.track-name {
  font-size: 17px;
  font-weight: 700;
  color: #f5f2ec;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid #3a3f47;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  overflow: hidden;
}

.cover-card:hover {
  border-color: #e8622c;
  transform: translateY(-2px);
}

.cover-figure img {
  aspect-ratio: 3 / 4;
}

.cover-title {
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #f5f2ec;
}

.cover-meta {
  padding: 0 14px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #8b939c;
}

.cover-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  font-size: 12px;
  color: #e8622c;
  background-color: #14161a;
  border: 1px solid #3a3f47;
  border-radius: 4px;
}

.advice-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.advice-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.advice-heading {
  grid-column: 2;
  font-size: 16px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 6px;
}

.advice-item p {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
}

.advice-index {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: #e8622c;
  color: #14161a;
  font-size: 15px;
  font-weight: 700;
}

/* 题材分类页右侧速览 */

.aside-block {
  padding: 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  margin-bottom: 20px;
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 10px;
}

.aside-text {
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
  margin-bottom: 12px;
}

.aside-stat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #3a3f47;
  font-size: 14px;
}

.aside-stat:last-child {
  border-bottom: 0;
}

.stat-label {
  color: #8b939c;
}

.stat-value {
  color: #f5f2ec;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-link-list a {
  display: inline-block;
  font-size: 14px;
  color: #e8622c;
  padding: 2px 0;
}

/* ---- 最近更新页 ---- */

.updates-index {
  padding: 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.index-title {
  font-size: 16px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 8px;
}

.index-note {
  font-size: 13px;
  line-height: 1.75;
  color: #8b939c;
  margin-bottom: 14px;
}

.index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.index-item a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 13px;
  color: #f5f2ec;
  background-color: #14161a;
  border: 1px solid #3a3f47;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.index-item a:hover {
  color: #e8622c;
  border-color: #e8622c;
}

.updates-fields,
.updates-log,
.updates-scope,
.updates-related {
  margin-bottom: 48px;
}

.updates-fields .section-desc {
  margin-bottom: 18px;
}

.updates-log .update-group {
  margin-bottom: 20px;
}

.updates-log .update-group:last-child {
  margin-bottom: 0;
}

.group-date {
  font-size: 16px;
  font-weight: 700;
  color: #e8622c;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.update-row .update-cover {
  width: 56px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background-color: #14161a;
}

.update-row .update-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.updates-log .update-row {
  grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  align-items: center;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.update-chapter {
  font-size: 13px;
  color: #8b939c;
  font-variant-numeric: tabular-nums;
}

.scope-body p {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.85;
  color: #d5d0c8;
  margin-bottom: 12px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.related-link {
  font-size: 15px;
  font-weight: 700;
  color: #e8622c;
}

.related-note {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.7;
  color: #8b939c;
}

/* ---- 人气位次页 ---- */

.ranking-list-section,
.ranking-observe-section,
.back-path-section {
  margin-bottom: 48px;
}

.ranking-list-section .ranking-list {
  border-top: 1px solid #3a3f47;
}

.ranking-list .ranking-row {
  grid-template-columns: 44px 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #3a3f47;
}

.rank-cover {
  width: 64px;
  height: 86px;
  border-radius: 6px;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rank-meta {
  font-size: 13px;
  line-height: 1.7;
  color: #8b939c;
}

.observe-block {
  margin-bottom: 22px;
}

.observe-block:last-child {
  margin-bottom: 0;
}

.observe-block p {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.85;
  color: #d5d0c8;
}

.back-path-section .section-desc {
  margin-bottom: 16px;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.path-item a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  color: #e8622c;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.path-item a:hover {
  border-color: #e8622c;
}

.ranking-aside .aside-block {
  margin-bottom: 20px;
}

.ranking-aside .aside-block:last-child {
  margin-bottom: 0;
}

.ranking-aside .aside-block p {
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
  margin-bottom: 12px;
}

.aside-note {
  border-left: 3px solid #e8622c;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e8622c;
}

/* ---- 条目字段说明页 ---- */

.content-section {
  margin-bottom: 48px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.field-diagram {
  margin-bottom: 20px;
}

.field-diagram img {
  aspect-ratio: 16 / 7;
}

.field-table {
  display: block;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 0;
  border-bottom: 1px solid #3a3f47;
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row-head {
  background-color: #1b1e23;
}

.field-cell {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #d5d0c8;
  border-right: 1px solid #3a3f47;
  min-width: 0;
}

.field-cell:last-child {
  border-right: 0;
}

.field-row-head .field-cell {
  font-size: 13px;
  font-weight: 700;
  color: #f5f2ec;
  white-space: nowrap;
}

.field-name {
  font-weight: 700;
  color: #f5f2ec;
}

.field-sample {
  font-variant-numeric: tabular-nums;
  color: #8b939c;
}

.field-misread {
  color: #8b939c;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-card {
  padding: 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.compare-title {
  font-size: 17px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 10px;
}

.compare-text {
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
  margin-bottom: 12px;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
}

.compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e8622c;
}

.missing-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.missing-item {
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.missing-item strong {
  display: block;
  margin-bottom: 4px;
  color: #f5f2ec;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feedback-card {
  padding: 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.feedback-title {
  font-size: 17px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 10px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e8622c;
}

.feedback-text {
  font-size: 15px;
  line-height: 1.8;
  color: #d5d0c8;
}

.feedback-entry a {
  font-weight: 700;
  color: #e8622c;
}

/* ---- 查阅指引页 ---- */

.guide-faq,
.guide-scope,
.guide-feedback {
  margin-bottom: 48px;
}

.guide-figure {
  margin-bottom: 22px;
}

.guide-figure img {
  aspect-ratio: 16 / 8;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.step-item .step-title {
  grid-column: 2;
  font-size: 16px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 6px;
}

.step-item .step-text {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
}

.step-item .step-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.step-item .step-links a {
  color: #e8622c;
  font-weight: 700;
}

.step-index {
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: #e8622c;
  color: #14161a;
  font-size: 15px;
  font-weight: 700;
}

.faq-item {
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #f5f2ec;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  font-size: 18px;
  line-height: 1.4;
  color: #e8622c;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-question:hover {
  color: #e8622c;
}

.faq-answer {
  padding: 14px 18px 16px;
  font-size: 14px;
  line-height: 1.85;
  color: #d5d0c8;
  border-top: 1px solid #3a3f47;
}

.feedback-item a {
  display: block;
  padding: 11px 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #e8622c;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.feedback-item:last-child a {
  margin-bottom: 0;
}

.feedback-item a:hover {
  border-color: #e8622c;
}

.side-block {
  padding: 20px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  margin-bottom: 20px;
}

.side-block:last-child {
  margin-bottom: 0;
}

.side-block .side-title {
  font-size: 16px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 10px;
}

.side-block .side-text {
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-item {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #d5d0c8;
}

.side-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e8622c;
}

/* ---- 404 页 ---- */

.error-main {
  padding-top: 56px;
}

.error-hero {
  max-width: 720px;
  margin-bottom: 48px;
}

.error-hero h1 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.85;
  color: #d5d0c8;
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-paths {
  margin-bottom: 44px;
}

.error-paths h2,
.error-note h2 {
  font-size: 22px;
  font-weight: 700;
  color: #f5f2ec;
  margin-bottom: 16px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.error-path-item {
  padding: 18px;
  background-color: #1b1e23;
  border: 1px solid #3a3f47;
  border-radius: 8px;
}

.error-path-item a {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #e8622c;
}

.error-path-item p {
  font-size: 13px;
  line-height: 1.75;
  color: #8b939c;
}

.error-note {
  max-width: 780px;
}

.error-note p {
  font-size: 15px;
  line-height: 1.85;
  color: #d5d0c8;
}

/* ==========================================================================
   responsive  响应式
   ========================================================================== */

/* 中等屏幕：收起多栏 */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .error-path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) {
  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .page-layout.field-guide-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .sidebar-left {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .layout-aside {
    position: sticky;
    top: 84px;
  }
}

/* 移动端 */

@media (max-width: 768px) {
  .site-main {
    padding: 0 18px 48px;
  }

  .inner-main {
    padding-top: 18px;
  }

  .fact-bar-text {
    padding: 8px 18px;
  }

  .header-inner {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid #3a3f47;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    border-radius: 4px;
  }

  .nav-link.is-current {
    border-bottom-color: transparent;
    border-left-color: #e8622c;
  }

  .page-title,
  .hero-title,
  .error-hero h1 {
    font-size: 26px;
  }

  .page-header {
    padding-bottom: 22px;
    margin-bottom: 28px;
  }

  .hero-archive,
  .ranking-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .content-media-primary img {
    aspect-ratio: 16 / 9;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 12px;
  }

  .update-name {
    grid-column: 1 / -1;
  }

  .updates-log .update-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .updates-log .update-row .update-info {
    grid-column: 2;
  }

  .updates-log .update-row .update-topic,
  .updates-log .update-row .update-progress,
  .updates-log .update-row .update-time {
    grid-column: 2;
  }

  .guide-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-grid,
  .missing-list,
  .feedback-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-cell {
    border-right: 0;
    border-bottom: 1px solid #3a3f47;
  }

  .field-cell:last-child {
    border-bottom: 0;
  }

  .field-row-head {
    display: none;
  }

  .field-name {
    background-color: #1b1e23;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 18px 24px;
  }

  .footer-bottom {
    padding: 14px 18px 24px;
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-aside,
  .ranking-aside,
  .sidebar,
  .updates-index {
    position: static;
  }

  .section {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 21px;
  }
}

/* 小屏手机 */

@media (max-width: 480px) {
  .site-main {
    padding: 0 14px 40px;
  }

  .fact-bar-text,
  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .index-grid,
  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-name {
    grid-column: 1;
  }

  .advice-item,
  .step-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .advice-heading,
  .advice-item p,
  .step-item .step-title,
  .step-item .step-text,
  .step-item .step-links {
    grid-column: 1;
  }

  .advice-index,
  .step-index {
    grid-row: auto;
  }

  .footer-inner {
    padding: 28px 14px 20px;
  }

  .footer-bottom {
    padding: 12px 14px 22px;
  }
}
