/* ==========================================================================
   羞羞漫画入口 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --c-primary: #1D6B5F;
  --c-primary-dark: #155046;
  --c-ink: #1F2A2E;
  --c-ink-soft: #4A5A5F;
  --c-ink-mute: #6E7C80;
  --c-paper: #FAF7F1;
  --c-route: #E7DCC6;
  --c-coral: #D9603A;
  --c-blue: #2F6E9E;
  --c-line: #DCD3C0;
  --c-surface: #FFFFFF;
  --c-night-bg: #17211F;
  --c-night-surface: #1F2C2A;
  --c-night-ink: #E8E4DA;
  --c-night-soft: #B4BDB8;
  --c-night-line: #32403C;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 2px 8px rgba(31, 42, 46, 0.06);
  --shadow-lift: 0 6px 18px rgba(31, 42, 46, 0.12);
  --wrap: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.75;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-blue);
  text-decoration: none;
}

a:hover {
  color: var(--c-coral);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

strong {
  font-weight: 700;
  color: var(--c-ink);
}

:focus-visible {
  outline: 2px solid var(--c-coral);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  background: var(--c-paper);
  color: var(--c-ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-primary);
  border-bottom: 3px solid var(--c-primary-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  color: #FFFFFF;
}

.brand:hover {
  color: #FFFFFF;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
}

.site-nav {
  flex: 1;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 2px;
}

.nav-link {
  display: block;
  padding: 8px 11px;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFFFFF;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.nav-link.is-current {
  color: #FFFFFF;
  font-weight: 700;
  border-bottom-color: var(--c-coral);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  border-radius: 1px;
}

.site-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

.site-footer {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.35fr;
  gap: 32px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 24px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  margin-bottom: 8px;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

.footer-title {
  margin-bottom: 10px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-tips p {
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

.footer-tips a {
  color: #F2C9B4;
}

.footer-tips a:hover {
  color: #FFFFFF;
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------------------
   layout · 内页通用
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--c-ink-mute);
}

.breadcrumb a {
  color: var(--c-blue);
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-ink-mute);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-header {
  margin-bottom: 18px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-ink);
}

.page-layout {
  display: grid;
  gap: 32px;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.page-layout.layout-main-aside {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.page-title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.page-title-text {
  flex: 1 1 320px;
  min-width: 0;
}

.page-lead {
  max-width: 720px;
  color: var(--c-ink-soft);
}

.page-tag {
  flex-shrink: 0;
  padding: 4px 12px;
  background: var(--c-route);
  border-radius: var(--radius-sm);
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}

.related-links-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-ink-mute);
}

.related-links-item {
  font-size: 14px;
  color: var(--c-blue);
}

/* 区块标题通用 */
.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
}

.section-desc,
.section-lead {
  max-width: 720px;
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14.5px;
}

.section-foot {
  margin-top: 16px;
  font-size: 14px;
}

.text-link {
  color: var(--c-blue);
  font-weight: 600;
}

.text-link::after {
  content: " →";
  font-weight: 400;
}

.text-link:hover {
  color: var(--c-coral);
}

/* --------------------------------------------------------------------------
   components · 通用
   -------------------------------------------------------------------------- */

.tag {
  display: inline-block;
  padding: 2px 9px;
  background: var(--c-route);
  border-radius: 4px;
  color: var(--c-primary-dark);
  font-size: 12.5px;
  line-height: 1.6;
}

.tag-genre {
  background: var(--c-route);
}

.tag-progress {
  background: #E4EDEA;
  color: var(--c-primary-dark);
  font-family: var(--font-mono);
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-coral);
}

/* 提示块 */
.notice,
.tip-block {
  padding: 12px 16px;
  background: #F4EEE0;
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.notice + .notice,
.tip-block + .tip-block {
  margin-top: 12px;
}

.notice a,
.tip-block a {
  color: var(--c-blue);
  font-weight: 600;
}

/* 入口卡片 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.entry-grid-two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.entry-card {
  display: block;
  padding: 16px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-card:hover {
  color: var(--c-ink);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.entry-title,
.entry-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.entry-card:hover .entry-title,
.entry-card:hover .entry-name {
  color: var(--c-coral);
}

.entry-note,
.entry-desc {
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.entry-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-coral);
}

/* 折叠问答 */
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-question {
  padding: 14px 44px 14px 18px;
  position: relative;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--c-primary);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  color: var(--c-primary-dark);
}

.faq-answer {
  padding: 0 18px 16px;
  color: var(--c-ink-soft);
  font-size: 14.5px;
}

/* 路径步骤（首页 hero 与题材页共用结构，作用域分开） */
.hero .path-steps,
.genre-intro .path-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.hero .path-step,
.genre-intro .path-step {
  padding-left: 14px;
  border-left: 3px solid var(--c-route);
}

.hero .path-step .step-num,
.genre-intro .path-step .step-num {
  margin-right: 6px;
}

.hero .path-step .step-title,
.genre-intro .path-step .step-name {
  display: inline;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-ink);
}

.hero .path-step p,
.genre-intro .path-step p {
  margin-top: 2px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-top: 24px;
}

/* 首屏 */
.hero {
  margin-bottom: 44px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  gap: 32px;
  align-items: start;
}

.hero-main {
  min-width: 0;
}

.hero-eyebrow {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-coral);
}

.hero-main h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--c-ink);
}

.hero-lead {
  max-width: 640px;
  margin-top: 10px;
  color: var(--c-ink-soft);
  font-size: 15.5px;
}

.hero-media {
  margin-top: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-route);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 8px 14px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-mute);
  font-size: 13px;
}

.hero-side {
  min-width: 0;
  padding: 18px 20px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.side-note {
  margin-top: 6px;
  color: var(--c-ink-mute);
  font-size: 13.5px;
}

.update-mini-list {
  margin-top: 14px;
}

.update-mini-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--c-line);
}

.update-mini-item:last-child {
  border-bottom: 0;
}

.update-mini-link {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--c-ink);
  font-size: 14.5px;
}

.update-mini-link:hover {
  color: var(--c-coral);
}

.update-mini-progress {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-primary);
}

.side-cta {
  display: block;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--c-coral);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
}

.side-cta:hover {
  background: #C24F2C;
  color: #FFFFFF;
}

/* 题材地图 */
.genre-map {
  margin-bottom: 44px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-card {
  padding: 16px;
  background: var(--c-route);
  border: 1px solid #D8C9AC;
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.genre-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.genre-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.genre-name {
  margin-top: 4px;
  font-size: 16.5px;
  font-weight: 700;
}

.genre-name a {
  color: var(--c-ink);
}

.genre-name a:hover {
  color: var(--c-coral);
}

.genre-note {
  margin-top: 6px;
  color: #55605C;
  font-size: 13.5px;
}

/* 最近更新清单 */
.update-list {
  margin-bottom: 44px;
}

.update-rows {
  border-top: 1px solid var(--c-line);
}

.update-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--c-line);
}

.update-name {
  font-size: 15.5px;
  font-weight: 700;
}

.update-name a {
  color: var(--c-ink);
}

.update-name a:hover {
  color: var(--c-coral);
}

.update-progress {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-primary);
  white-space: nowrap;
}

.update-tip {
  color: var(--c-ink-soft);
  font-size: 14px;
}

/* 人气榜单 */
.ranking-preview {
  margin-bottom: 44px;
}

.rank-list {
  border-top: 1px solid var(--c-line);
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--c-line);
  transition: background 0.18s ease;
}

.rank-row:hover {
  background: rgba(231, 220, 198, 0.35);
}

.rank-num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink-mute);
  text-align: center;
}

.rank-row:nth-child(-n+3) .rank-num {
  color: var(--c-coral);
}

.rank-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-route);
}

.rank-body {
  min-width: 0;
}

.rank-name {
  font-size: 15.5px;
  font-weight: 700;
}

.rank-name a {
  color: var(--c-ink);
}

.rank-name a:hover {
  color: var(--c-coral);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.rank-progress {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-primary);
}

.rank-reason {
  margin-top: 3px;
  color: var(--c-ink-soft);
  font-size: 13.5px;
}

.subsection-title {
  margin: 30px 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
}

/* 封面墙 */
.cover-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  min-width: 0;
}

.cover-link {
  display: block;
  height: 100%;
  padding: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-link:hover {
  color: var(--c-ink);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.cover-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--c-route);
  transition: transform 0.25s ease;
}

.cover-link:hover .cover-img {
  transform: scale(1.03);
}

.cover-name {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-ink);
}

.cover-link:hover .cover-name {
  color: var(--c-coral);
}

.cover-progress {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-primary);
}

.cover-link .tag {
  margin-top: 6px;
}

/* 阅读与追更路径 */
.reading-path {
  margin-bottom: 44px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
}

.step-card .step-num {
  font-size: 15px;
}

.step-card .step-title {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.step-card p {
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

/* 常见问题 */
.faq {
  margin-bottom: 44px;
}

/* 内容说明与反馈入口 */
.notice-entry {
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */

.genre-tree {
  align-self: start;
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.tree-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.tree-parent + .tree-parent {
  margin-top: 4px;
}

.tree-link {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--c-ink);
  font-size: 14.5px;
  font-weight: 600;
}

.tree-link:hover {
  background: var(--c-route);
  color: var(--c-primary-dark);
}

.tree-link.is-current {
  background: var(--c-primary);
  color: #FFFFFF;
}

.tree-children {
  margin: 2px 0 6px 12px;
  padding-left: 10px;
  border-left: 2px solid var(--c-line);
}

.tree-children .tree-link {
  padding: 5px 8px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--c-ink-soft);
}

.tree-children .tree-link:hover {
  color: var(--c-primary-dark);
}

.genre-content {
  min-width: 0;
}

.page-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  padding: 20px 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.page-hero-text {
  flex: 1 1 320px;
  min-width: 0;
}

.page-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-coral);
}

.page-hero-lead {
  max-width: 720px;
  margin-top: 8px;
  color: var(--c-ink-soft);
  font-size: 15px;
}

.page-hero-tag {
  flex-shrink: 0;
  padding: 4px 12px;
  background: var(--c-route);
  border-radius: var(--radius-sm);
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.genre-intro,
.genre-works,
.genre-progress,
.related-entries {
  margin-bottom: 36px;
}

.genre-desc {
  max-width: 720px;
  color: var(--c-ink-soft);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.work-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.work-cover {
  margin-bottom: 10px;
}

.work-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--c-route);
}

.work-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-ink);
}

.work-tags {
  margin-top: 5px;
}

.work-progress {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-primary);
}

.work-note {
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 13.5px;
}

.notice-list {
  display: grid;
  gap: 12px;
}

.related-entries .entry-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.related-entries .entry-card {
  display: block;
}

.related-entries .entry-name {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   pages · 最近更新
   -------------------------------------------------------------------------- */

.layout-primary,
.layout-aside {
  min-width: 0;
}

.updates-group {
  margin-bottom: 34px;
}

.update-list-week .update-item,
.update-list-month .update-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}

.update-list-week .update-item:first-child,
.update-list-month .update-item:first-child {
  border-top: 1px solid var(--c-line);
}

.update-list-month .update-item {
  padding: 11px 0;
}

.update-thumb {
  width: 72px;
}

.update-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-route);
}

.update-body {
  min-width: 0;
}

.update-body .update-name {
  font-size: 15.5px;
  font-weight: 700;
}

.update-body .update-name a {
  color: var(--c-ink);
}

.update-body .update-name a:hover {
  color: var(--c-coral);
}

.update-body .genre-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  background: var(--c-route);
  border-radius: 4px;
  color: var(--c-primary-dark);
  font-size: 12.5px;
  vertical-align: 1px;
}

.update-body .update-progress {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-primary);
}

.update-body .update-note,
.update-body .update-tip {
  margin-top: 5px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.update-list-month .update-thumb img {
  height: 84px;
}

.updates-aside {
  align-self: start;
  padding: 18px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.aside-title {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.aside-block + .aside-block,
.aside-block + .tip-block,
.tip-block + .aside-block {
  margin-top: 16px;
}

.aside-subtitle {
  margin-bottom: 5px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-ink);
}

.aside-block p {
  color: var(--c-ink-soft);
  font-size: 14px;
}

.aside-list {
  margin-top: 6px;
}

.aside-list li {
  position: relative;
  padding-left: 14px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.aside-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--c-primary);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   pages · 人气榜单
   -------------------------------------------------------------------------- */

.ranking-notice {
  margin-bottom: 26px;
}

.notice-block {
  padding: 18px 20px;
  background: #F4EEE0;
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.notice-block p {
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.notice-points {
  margin-top: 10px;
}

.notice-points li {
  position: relative;
  padding-left: 16px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.notice-points li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--c-coral);
  font-weight: 700;
}

.ranking-list {
  margin-bottom: 36px;
}

.rank-rows {
  margin-top: 18px;
  border-top: 1px solid var(--c-line);
}

.rank-rows .rank-row {
  grid-template-columns: 48px 72px minmax(0, 1fr);
  align-items: start;
  padding: 14px 4px;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink-mute);
  text-align: center;
}

.rank-rows .rank-row:nth-child(-n+3) .rank-no {
  color: var(--c-coral);
}

.rank-cover {
  width: 72px;
}

.rank-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-route);
}

.rank-rows .rank-body {
  min-width: 0;
}

.rank-rows .rank-name {
  font-size: 16px;
  font-weight: 700;
}

.rank-rows .rank-name a {
  color: var(--c-ink);
}

.rank-rows .rank-name a:hover {
  color: var(--c-coral);
}

.rank-rows .rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.rank-rows .rank-reason {
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.ranking-change {
  margin-bottom: 36px;
}

.change-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.change-card {
  padding: 16px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.change-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.change-card p {
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.related-entry {
  margin-bottom: 12px;
}

.entry-block {
  display: block;
  padding: 16px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  color: var(--c-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.entry-block:hover {
  color: var(--c-ink);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.entry-block .entry-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.entry-block:hover .entry-name {
  color: var(--c-coral);
}

.entry-block .entry-desc {
  display: block;
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 阅读指南
   -------------------------------------------------------------------------- */

.guide-steps,
.guide-legend,
.guide-faq {
  margin-bottom: 36px;
}

.guide-figure {
  margin: 18px 0 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-route);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 8px 14px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-mute);
  font-size: 13px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.step-item .step-num {
  font-size: 15px;
}

.step-item .step-name {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.step-item .step-desc {
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.legend-table {
  margin-top: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.legend-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr);
  border-bottom: 1px solid var(--c-line);
}

.legend-row:last-child {
  border-bottom: 0;
}

.legend-head {
  background: var(--c-route);
}

.legend-cell {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--c-ink-soft);
}

.legend-head .legend-cell {
  color: var(--c-primary-dark);
  font-weight: 700;
}

.legend-name {
  border-right: 1px solid var(--c-line);
  color: var(--c-ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 阅读排错
   -------------------------------------------------------------------------- */

.trouble-figure {
  margin-bottom: 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-route);
}

.trouble-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.trouble-figure figcaption {
  padding: 8px 14px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-mute);
  font-size: 13px;
}

.trouble-groups,
.trouble-table-section,
.trouble-feedback {
  margin-bottom: 36px;
}

.trouble-groups h2,
.trouble-table-section h2,
.trouble-feedback h2,
.related-entry h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.trouble-card {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-primary);
  border-radius: var(--radius);
}

.trouble-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.trouble-steps {
  margin-top: 10px;
  counter-reset: trouble-step;
}

.trouble-steps li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
  counter-increment: trouble-step;
}

.trouble-steps li::before {
  content: counter(trouble-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-coral);
}

.trouble-result {
  margin-top: 10px;
  padding: 10px 14px;
  background: #F4EEE0;
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-ink-soft);
  font-size: 13.5px;
}

.trouble-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.trouble-table caption {
  padding: 10px 14px;
  color: var(--c-ink-mute);
  font-size: 13.5px;
  text-align: left;
}

.trouble-table th,
.trouble-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.trouble-table th {
  background: var(--c-route);
  color: var(--c-primary-dark);
  font-weight: 700;
  white-space: nowrap;
}

.trouble-table td {
  color: var(--c-ink-soft);
}

.trouble-table tbody tr:last-child td {
  border-bottom: 0;
}

.feedback-list {
  margin-top: 14px;
}

.feedback-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.feedback-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--c-primary);
  border-radius: 50%;
}

.feedback-list strong {
  margin-right: 4px;
}

.trouble-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: #F4EEE0;
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.related-card {
  display: block;
  padding: 16px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  color: var(--c-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover {
  color: var(--c-ink);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.related-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.related-card:hover .related-title {
  color: var(--c-coral);
}

.related-desc {
  display: block;
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 内容说明
   -------------------------------------------------------------------------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.page-head-text {
  flex: 1 1 340px;
  min-width: 0;
}

.page-head-lead {
  max-width: 720px;
  color: var(--c-ink-soft);
}

.page-head-tag {
  flex-shrink: 0;
  padding: 4px 12px;
  background: var(--c-route);
  border-radius: var(--radius-sm);
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.notice-figure {
  margin-bottom: 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-route);
}

.notice-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.notice-figure figcaption {
  padding: 8px 14px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-mute);
  font-size: 13px;
}

.notice-section {
  margin-bottom: 34px;
  max-width: 880px;
}

.notice-section h2 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
}

.notice-section > p {
  margin-bottom: 10px;
  color: var(--c-ink-soft);
}

.notice-section .notice-points {
  margin-top: 12px;
}

.notice-section .notice-points li {
  margin-bottom: 8px;
}

.notice-glossary {
  margin: 14px 0;
  border-top: 1px solid var(--c-line);
}

.notice-glossary dt {
  padding-top: 12px;
  color: var(--c-primary-dark);
  font-size: 15px;
  font-weight: 700;
}

.notice-glossary dd {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-size: 14px;
}

.notice-note {
  padding: 12px 16px;
  background: #F4EEE0;
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.notice-scope {
  margin-top: 12px;
}

.notice-scope li {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-route);
  border-radius: var(--radius-sm);
  color: var(--c-ink-soft);
  font-size: 14px;
}

.notice-links h2 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
}

.notice-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.notice-link-card {
  display: block;
  padding: 16px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  color: var(--c-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.notice-link-card:hover {
  color: var(--c-ink);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.notice-link-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.notice-link-card:hover .notice-link-name {
  color: var(--c-coral);
}

.notice-link-desc {
  display: block;
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-panel {
  width: 100%;
  max-width: 620px;
  padding: 32px 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 5px solid var(--c-coral);
  border-radius: var(--radius);
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--c-coral);
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--c-ink);
}

.error-desc {
  margin-top: 10px;
  color: var(--c-ink-soft);
}

.error-list {
  margin-top: 18px;
  text-align: left;
}

.error-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

.error-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--c-primary);
  font-weight: 700;
}

.error-list a {
  color: var(--c-blue);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-block;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.btn-primary {
  background: var(--c-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
}

.btn-ghost:hover {
  background: var(--c-route);
  color: var(--c-primary-dark);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1160px) {
  .cover-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genre-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 0 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 4px;
    min-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 16px;
  }

  .nav-link.is-current {
    border-bottom-color: rgba(255, 255, 255, 0.14);
    color: #FFE3D6;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-main h1 {
    font-size: 26px;
  }

  .page-layout.sidebar-left,
  .page-layout.layout-main-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .genre-tree {
    order: 0;
  }

  .genre-content {
    order: 1;
  }

  .layout-primary {
    order: 0;
  }

  .updates-aside {
    order: 1;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .change-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .update-row .update-name {
    grid-column: 1;
  }

  .update-row .update-progress {
    grid-column: 2;
    text-align: right;
  }

  .update-row .tag-genre {
    grid-column: 1;
  }

  .update-row .update-tip {
    grid-column: 1 / -1;
  }

  .step-list,
  .trouble-grid,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-main {
    padding: 20px 16px 44px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 18px;
  }

  .footer-copy {
    padding: 14px 16px 20px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-main h1 {
    font-size: 23px;
  }

  .section-title {
    font-size: 18px;
  }

  .cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .step-grid,
  .change-grid,
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-row {
    grid-template-columns: 36px 56px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-thumb {
    width: 56px;
    height: 56px;
  }

  .rank-rows .rank-row {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .rank-rows .rank-cover {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 6px;
  }

  .rank-rows .rank-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .rank-rows .rank-body {
    grid-column: 1 / -1;
  }

  .update-list-week .update-item,
  .update-list-month .update-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .update-thumb,
  .update-thumb img {
    width: 64px;
  }

  .update-thumb img {
    height: 86px;
  }

  .legend-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend-name {
    border-right: 0;
    border-bottom: 1px dashed var(--c-line);
  }

  .trouble-table th,
  .trouble-table td {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  .error-panel {
    padding: 26px 18px;
  }

  .error-code {
    font-size: 28px;
  }

  .error-actions .btn {
    flex: 1 1 140px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 17px;
  }

  .brand-slogan {
    font-size: 12px;
  }

  .hero-side {
    padding: 16px;
  }

  .update-mini-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero,
  .notice-block,
  .updates-aside {
    padding: 16px;
  }

  .trouble-table {
    display: block;
    overflow-x: auto;
  }
}

/* 夜间阅读 */
body.is-night {
  background: var(--c-night-bg);
  color: var(--c-night-ink);
}

body.is-night h1,
body.is-night h2,
body.is-night h3,
body.is-night strong {
  color: var(--c-night-ink);
}

body.is-night .site-header {
  background: #123B34;
  border-bottom-color: #0D2C27;
}

body.is-night .site-footer {
  background: #0F2B26;
}

body.is-night .hero-side,
body.is-night .genre-tree,
body.is-night .updates-aside,
body.is-night .faq-item,
body.is-night .step-card,
body.is-night .step-item,
body.is-night .work-card,
body.is-night .cover-link,
body.is-night .entry-card,
body.is-night .entry-block,
body.is-night .change-card,
body.is-night .trouble-card,
body.is-night .related-card,
body.is-night .notice-link-card,
body.is-night .legend-table,
body.is-night .trouble-table,
body.is-night .error-panel,
body.is-night .page-hero {
  background: var(--c-night-surface);
  border-color: var(--c-night-line);
  color: var(--c-night-ink);
}

body.is-night .hero-lead,
body.is-night .section-desc,
body.is-night .section-lead,
body.is-night .page-lead,
body.is-night .page-hero-lead,
body.is-night .page-head-lead,
body.is-night .genre-desc,
body.is-night .update-tip,
body.is-night .rank-reason,
body.is-night .work-note,
body.is-night .faq-answer,
body.is-night .step-card p,
body.is-night .step-item .step-desc,
body.is-night .entry-note,
body.is-night .entry-desc,
body.is-night .change-card p,
body.is-night .trouble-card p,
body.is-night .related-desc,
body.is-night .notice-link-desc,
body.is-night .aside-block p,
body.is-night .aside-list li,
body.is-night .legend-cell,
body.is-night .trouble-table td,
body.is-night .feedback-list li,
body.is-night .notice-section > p,
body.is-night .notice-glossary dd,
body.is-night .notice-scope li,
body.is-night .page-head-lead {
  color: var(--c-night-soft);
}

body.is-night .update-name a,
body.is-night .rank-name a,
body.is-night .work-name,
body.is-night .cover-name,
body.is-night .entry-title,
body.is-night .entry-name,
body.is-night .related-title,
body.is-night .notice-link-name,
body.is-night .change-card h3,
body.is-night .trouble-card h3,
body.is-night .step-card .step-title,
body.is-night .step-item .step-name,
body.is-night .genre-name a,
body.is-night .error-panel h1 {
  color: var(--c-night-ink);
}

body.is-night .update-row,
body.is-night .rank-row,
body.is-night .update-list-week .update-item,
body.is-night .update-list-month .update-item,
body.is-night .update-mini-item,
body.is-night .legend-row,
body.is-night .notice-glossary dd,
body.is-night .trouble-table th,
body.is-night .trouble-table td {
  border-color: var(--c-night-line);
}

body.is-night .trouble-table th,
body.is-night .legend-head,
body.is-night .tag,
body.is-night .tag-genre,
body.is-night .genre-card,
body.is-night .page-tag,
body.is-night .page-hero-tag,
body.is-night .page-head-tag {
  background: #2A3A36;
  color: var(--c-night-ink);
}

body.is-night .notice,
body.is-night .tip-block,
body.is-night .trouble-result,
body.is-night .trouble-note,
body.is-night .notice-note,
body.is-night .notice-block {
  background: #243330;
  color: var(--c-night-soft);
}

body.is-night .rank-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* 动效：进入视口淡入上移（默认可见，仅作增强） */
@media (prefers-reduced-motion: no-preference) {
  .genre-card,
  .cover-card,
  .step-card,
  .work-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
