/* ==========================================================================
   羞羞色漫 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --bg: #12131a;
  --panel: #1b1d27;
  --panel-soft: #20222e;
  --line: #2c2f3d;
  --line-strong: #3a3e50;
  --text: #eceef5;
  --text-dim: #9aa0b4;
  --text-faint: #7a8095;
  --accent: #ff5a7a;
  --accent-soft: rgba(255, 90, 122, 0.14);
  --amber: #ffc857;
  --amber-soft: rgba(255, 200, 87, 0.14);
  --ok: #4cc38a;
  --ok-soft: rgba(76, 195, 138, 0.14);
  --done: #7a8299;
  --done-soft: rgba(122, 130, 153, 0.16);
  --hiatus: #d98a4a;
  --hiatus-soft: rgba(217, 138, 74, 0.16);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --wrap: 1140px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: Consolas, "SFMono-Regular", "Menlo", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout · 站点骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(18, 19, 26, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  padding: 6px 0;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background-color: var(--accent);
  vertical-align: 2px;
}

.brand:hover {
  color: var(--accent);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list li {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list a {
  display: block;
  padding: 0 8px;
  height: 62px;
  line-height: 60px;
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-list a.is-current {
  color: var(--text);
  font-weight: 500;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 1px;
}

.nav-toggle:hover .nav-toggle-bar {
  background-color: var(--accent);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background-color: var(--panel);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list li + li {
  border-top: 1px solid var(--line);
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
  color: var(--text-dim);
}

.mobile-nav-list a.is-current {
  color: var(--accent);
  font-weight: 500;
  background-color: var(--accent-soft);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.site-footer {
  margin-top: auto;
  background-color: var(--panel);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-about p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-faint);
}

/* 内页骨架：面包屑 / 页标题区 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  margin-bottom: 16px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.inner-main section.page-title {
  margin-bottom: 24px;
}

.page-summary,
.page-lead {
  max-width: 860px;
  color: var(--text-dim);
  font-size: 15px;
}

.page-summary a,
.page-lead a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.page-meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-meta strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  font-weight: 500;
}

.meta-label {
  color: var(--text-faint);
}

.meta-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 18px 0 0;
}

.page-facts .fact {
  min-width: 160px;
}

.page-facts dt {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0;
}

.page-facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--text);
}

.page-meta .meta-item {
  min-width: 160px;
}

.page-meta dt {
  font-size: 12px;
  color: var(--text-faint);
}

.page-meta dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text);
}

/* 双栏页布局：主内容在前，aside 在后 */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.layout-main,
.content-column {
  min-width: 0;
}

.layout-aside,
.side-column {
  min-width: 0;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #16171f;
}

.btn-primary:hover {
  background-color: #ff7a93;
  border-color: #ff7a93;
  color: #16171f;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 文本链接 */

.text-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: 14px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 区块标题组 */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.section-more {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--text-dim);
}

.section-more::after {
  content: " →";
  color: var(--accent);
}

.section-desc {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.section-lead {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

/* 题材标签 */

.genre-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--panel-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
  white-space: nowrap;
}

a.genre-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 状态徽标 */

.status,
.status-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-ongoing,
.status-serial {
  color: var(--ok);
  background-color: var(--ok-soft);
  border-color: rgba(76, 195, 138, 0.32);
}

.status-finished,
.status-completed,
.status-done {
  color: var(--done);
  background-color: var(--done-soft);
  border-color: rgba(122, 130, 153, 0.34);
}

.status-hiatus,
.status-paused {
  color: var(--hiatus);
  background-color: var(--hiatus-soft);
  border-color: rgba(217, 138, 74, 0.34);
}

/* 数据表格 */

.data-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table caption {
  text-align: left;
}

.data-table thead th {
  padding: 10px 14px;
  background-color: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-align: left;
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  font-weight: 500;
}

.data-table tbody tr:hover {
  background-color: rgba(255, 90, 122, 0.06);
}

.data-table .num,
.cell-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* 内容配图 */

.content-media,
.section-media,
.section-figure,
.guide-figure,
.page-figure,
.genre-media {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  overflow: hidden;
}

.content-media img,
.section-media img,
.section-figure img,
.guide-figure img,
.page-figure img,
.genre-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-media figcaption,
.section-media figcaption,
.section-figure figcaption,
.guide-figure figcaption,
.page-figure figcaption,
.genre-media figcaption {
  padding: 10px 14px;
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.content-media-inline {
  margin-top: 24px;
}

/* 状态说明条 */

.status-legend {
  margin-bottom: 32px;
  padding: 18px 20px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-legend h2 {
  font-size: 17px;
  margin-bottom: 14px;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
}

.legend-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item p {
  font-size: 13px;
  color: var(--text-dim);
}

/* 提示列表 */

.tip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tip-item {
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tip-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.tip-item p {
  font-size: 14px;
  color: var(--text-dim);
}

/* 继续浏览入口 */

.continue-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.continue-links h2 {
  font-size: 17px;
  margin-bottom: 14px;
}

.continue-links ul,
.continue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.continue-links a,
.continue-list a {
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.continue-links a:hover,
.continue-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 返回顶部 */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background-color: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-to-top::before {
  content: "↑";
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

/* 首屏 */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--panel);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-body {
  min-width: 0;
}

.hero-body h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-points {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--amber);
}

/* 题材锚点条 */

.genre-anchor-bar {
  padding: 28px 0 8px;
}

.genre-anchor-bar .section-title {
  font-size: 20px;
  margin-bottom: 14px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tags .genre-tag {
  padding: 6px 14px;
  font-size: 13px;
}

.genre-tags .genre-tag.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.genre-anchor-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
}

.genre-anchor-note a {
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-strong);
}

/* 更新速览表 */

.update-table {
  padding: 32px 0 8px;
}

/* 人气榜精选 */

.rank-feature {
  padding: 32px 0 8px;
}

.rank-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.rank-card {
  position: relative;
  padding: 16px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.rank-card:hover {
  border-color: var(--accent);
}

.rank-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.rank-card .rank-no {
  position: absolute;
  top: 26px;
  left: 26px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background-color: rgba(18, 19, 26, 0.86);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 13px;
  line-height: 26px;
  text-align: center;
}

.rank-card .rank-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.rank-card .rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rank-card .rank-note {
  font-size: 13px;
  color: var(--text-dim);
}

.rank-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background-color: rgba(255, 90, 122, 0.06);
}

.rank-row .rank-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--text-faint);
}

.rank-row:nth-child(-n + 3) .rank-no {
  color: var(--accent);
  font-weight: 500;
}

.rank-row a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

/* 封面墙 */

.cover-wall {
  padding: 32px 0 8px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.cover-card:hover {
  border-color: var(--accent);
}

.cover-card > a {
  display: block;
  overflow: hidden;
}

.cover-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.cover-card:hover img {
  transform: scale(1.03);
}

.cover-name {
  padding: 12px 14px 0;
  font-size: 15px;
  font-weight: 500;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 0;
}

.cover-progress {
  padding: 8px 14px 14px;
  font-size: 13px;
  color: var(--text-dim);
}

/* 阅读动线 */

.reading-path {
  padding: 32px 0 8px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-step {
  padding: 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.path-step p {
  font-size: 14px;
  color: var(--text-dim);
}

.path-more {
  margin-top: 18px;
}

/* 站点说明摘要条 */

.site-note-strip {
  margin-top: 32px;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-note-strip .section-title {
  font-size: 17px;
  flex: 1 1 100%;
}

.site-note-text {
  flex: 1 1 420px;
  font-size: 14px;
  color: var(--text-dim);
}

.site-note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

/* ==========================================================================
   pages · 内页
   ========================================================================== */

/* 锚点导航条 */

.anchor-bar {
  position: sticky;
  top: 62px;
  z-index: 30;
  margin-bottom: 28px;
  padding: 10px 0;
  background-color: rgba(18, 19, 26, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--panel);
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}

.anchor-list a:hover,
.anchor-list a.is-current {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

/* 漫画目录 */

.genre-section {
  margin-bottom: 40px;
  scroll-margin-top: 130px;
}

.genre-head {
  margin-bottom: 14px;
}

.genre-head h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.genre-head p {
  font-size: 14px;
  color: var(--text-dim);
}

.genre-section .genre-media {
  margin: 0 0 18px;
}

.genre-section .genre-media img {
  aspect-ratio: 21 / 9;
}

.entry-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-table caption {
  padding: 0;
  text-align: left;
  font-size: 13px;
  color: var(--text-faint);
}

.entry-table thead th {
  padding: 10px 14px;
  background-color: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-align: left;
  white-space: nowrap;
}

.entry-table tbody th,
.entry-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  color: var(--text);
  vertical-align: middle;
}

.entry-table tbody th {
  font-weight: 500;
}

.entry-table tbody tr:last-child th,
.entry-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-table tbody tr:hover {
  background-color: rgba(255, 90, 122, 0.06);
}

.entry-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  white-space: nowrap;
}

.reading-note {
  margin-top: 8px;
  padding: 20px 22px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reading-note h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

.note-list {
  display: grid;
  gap: 10px;
}

.note-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--accent);
}

/* 题材导航 */

.content-section {
  margin-bottom: 36px;
}

.content-section h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.content-section > p {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.genre-table tbody th {
  white-space: nowrap;
}

.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.combo-card {
  padding: 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.combo-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.combo-card p {
  font-size: 14px;
  color: var(--text-dim);
}

.combo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rules-list {
  display: grid;
  gap: 12px;
}

.rules-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--amber);
}

.aside-block {
  padding: 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.aside-block h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

.tag-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aside-links {
  display: grid;
  gap: 10px;
}

.aside-links a {
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.aside-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 更新速览 */

.update-group {
  margin-bottom: 36px;
}

.group-header {
  margin-bottom: 12px;
}

.group-header h2 {
  font-size: 19px;
  margin-bottom: 4px;
}

.group-note {
  font-size: 13px;
  color: var(--text-faint);
}

.update-table .cell-title {
  white-space: nowrap;
}

.following-tips {
  margin-top: 8px;
}

.following-tips h2 {
  font-size: 19px;
  margin-bottom: 16px;
}

/* 人气榜 */

.top-three {
  margin-bottom: 40px;
}

.top-three h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.top-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.top-three-grid .rank-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.top-three-grid .rank-card--first {
  border-color: var(--accent);
}

.top-three-grid .rank-cover {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.top-three-grid .rank-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.top-three-grid .rank-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--amber);
}

.top-three-grid .rank-card--first .rank-no {
  color: var(--accent);
}

.top-three-grid .rank-name {
  font-size: 17px;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-three-grid .rank-note {
  font-size: 13px;
  color: var(--text-dim);
}

.overall-rank {
  margin-bottom: 40px;
}

.overall-rank h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.rank-table .rank-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  white-space: nowrap;
}

.rank-table tbody tr:nth-child(-n + 3) .rank-no {
  color: var(--accent);
  font-weight: 500;
}

.genre-boards {
  margin-bottom: 40px;
}

.genre-boards h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.genre-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.genre-board {
  padding: 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-board-title {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mini-rank {
  display: grid;
  gap: 10px;
}

.mini-rank li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.mini-rank .mini-no {
  flex: 0 0 auto;
  width: 22px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text-faint);
}

.rank-criteria {
  margin-bottom: 8px;
}

.rank-criteria h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.criteria-list li {
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.criteria-list h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.criteria-list p {
  font-size: 14px;
  color: var(--text-dim);
}

/* 阅读指引 */

.reading-path {
  margin-bottom: 36px;
}

.reading-path h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.step-list {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-dim);
}

.field-guide {
  margin-bottom: 36px;
}

.field-guide h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.field-guide > p {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.field-guide .status-legend {
  margin: 20px 0 0;
  background-color: var(--panel-soft);
}

.field-guide .status-legend h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.page-usage {
  margin-bottom: 36px;
}

.page-usage h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.page-usage > p {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.mobile-tips {
  margin-bottom: 8px;
}

.mobile-tips h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.mobile-tips > p {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.side-block {
  padding: 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.side-block h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

.side-flow {
  display: grid;
  gap: 10px;
}

.side-flow a {
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.side-flow a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.side-status-list {
  display: grid;
  gap: 10px;
}

.side-status-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.side-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 站点说明 */

.section-positioning .section-body {
  max-width: 860px;
  margin-bottom: 20px;
}

.section-positioning .section-body p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.section-positioning .section-body p:last-child {
  margin-bottom: 0;
}

.section-rules .section-lead,
.section-correction .section-lead {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.rules-table tbody th {
  white-space: nowrap;
}

.correction-steps {
  display: grid;
  gap: 16px;
}

.correction-step {
  padding: 18px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.correction-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.correction-step p {
  font-size: 14px;
  color: var(--text-dim);
}

.correction-step a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.note-strip {
  margin-top: 20px;
  padding: 18px 20px;
  background-color: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-strip h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.note-strip p {
  font-size: 14px;
  color: var(--text-dim);
}

.note-strip a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.section-continue {
  margin-bottom: 0;
}

/* 常见问题 */

.qa-group {
  margin-bottom: 36px;
}

.qa-group h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.qa-group .section-lead {
  margin-bottom: 18px;
}

.qa-item {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.qa-item summary {
  position: relative;
  padding: 15px 46px 15px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}

.qa-item[open] summary::after {
  content: "−";
}

.qa-item summary:hover {
  color: var(--accent);
}

.qa-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.more-help {
  margin-bottom: 8px;
  padding: 20px 22px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.more-help h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.more-help p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.entry-links a {
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.entry-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 404 */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 20px 64px;
}

.error-panel {
  padding: 40px 32px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.error-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-text {
  max-width: 620px;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-help h2 {
  font-size: 19px;
  margin-bottom: 14px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.error-links a {
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.error-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .layout-aside,
  .side-column {
    order: 2;
  }

  .layout-main,
  .content-column {
    order: 1;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .cover-grid,
  .rank-cards,
  .path-steps,
  .combo-grid,
  .criteria-list,
  .tip-list,
  .top-three-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 56px;
    gap: 12px;
  }

  .nav-list {
    display: none;
  }

  .nav-list.is-open {
    display: block;
  }

  .site-nav {
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .anchor-bar {
    top: 56px;
    padding: 8px 0;
    margin-bottom: 22px;
  }

  .anchor-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .anchor-list li {
    flex: 0 0 auto;
  }

  .page-title {
    font-size: 22px;
  }

  .inner-main {
    padding: 18px 16px 44px;
  }

  .home-main {
    padding: 0 16px 44px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 16px 22px;
  }

  .footer-bottom p {
    padding: 14px 16px;
  }

  .hero {
    padding: 24px 0 28px;
  }

  .hero-body h1 {
    font-size: 22px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .section-title {
    font-size: 19px;
  }

  .section-head {
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .cover-grid,
  .rank-cards,
  .path-steps,
  .combo-grid,
  .criteria-list,
  .tip-list,
  .top-three-grid,
  .genre-board-grid,
  .legend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 14px;
  }

  .rank-row a {
    white-space: normal;
  }

  .rank-row .status {
    grid-column: 3;
  }

  /* 表格窄屏堆叠 */

  .data-table,
  .entry-table {
    display: block;
    border: 0;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .data-table thead,
  .entry-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tbody,
  .entry-table tbody {
    display: grid;
    gap: 12px;
  }

  .data-table tbody tr,
  .entry-table tbody tr {
    display: block;
    padding: 12px 14px;
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .data-table tbody th,
  .data-table tbody td,
  .entry-table tbody th,
  .entry-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

  .data-table tbody tr th:last-child,
  .data-table tbody tr td:last-child,
  .entry-table tbody tr th:last-child,
  .entry-table tbody tr td:last-child {
    border-bottom: 0;
  }

  .data-table tbody tr:hover,
  .entry-table tbody tr:hover {
    background-color: var(--panel);
  }

  .data-table tbody th::before,
  .data-table tbody td::before,
  .entry-table tbody th::before,
  .entry-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-faint);
  }

  .update-table .cell-title {
    white-space: normal;
  }

  .step-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .step-num {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-code {
    font-size: 34px;
  }

  .error-panel h1 {
    font-size: 22px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .brand {
    font-size: 17px;
  }

  .hero-body h1 {
    font-size: 21px;
  }

  .section-title,
  .content-section h2,
  .reading-path h2,
  .field-guide h2,
  .page-usage h2,
  .mobile-tips h2,
  .top-three h2,
  .overall-rank h2,
  .genre-boards h2,
  .rank-criteria h2,
  .qa-group h2,
  .genre-head h2 {
    font-size: 18px;
  }

  .site-note-strip {
    padding: 18px 16px;
  }

  .rank-card {
    padding: 14px;
  }

  .rank-card .rank-no {
    top: 22px;
    left: 22px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
