/* ==========================================================================
   sh-siji.com — 韩漫漫画 站内样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --c-bg: #f2f4f6;
  --c-panel: #ffffff;
  --c-text: #1c2530;
  --c-primary: #24405c;
  --c-accent: #c2410c;
  --c-muted: #5d6b7a;
  --c-line: #d6dbe1;
  --c-done: #2f7d5c;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  --w-container: 1100px;
  --w-main: 720px;
  --w-side: 320px;
  --gap-layout: 40px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-text);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

button {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   layout — 全站骨架
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
}

.site-header {
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  color: var(--c-primary);
  white-space: nowrap;
  padding: 8px 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--c-accent);
  text-decoration: none;
}

.primary-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.site-nav li {
  display: flex;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--c-text);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--c-primary);
  background: #eef2f6;
  text-decoration: none;
}

.site-nav a.is-current {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-primary);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

/* 内页两栏：主内容在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--w-side);
  gap: var(--gap-layout);
  align-items: start;
}

.page-layout > .page-main-col,
.page-layout > .layout-main,
.page-layout > .main-column,
.page-layout > .content-main {
  min-width: 0;
}

.page-layout > .page-side,
.page-layout > .layout-aside,
.page-layout > .side-column,
.page-layout > .content-side,
.page-layout > .content-aside {
  min-width: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--c-primary);
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-muted);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-text);
}

.page-head {
  margin-bottom: 26px;
}

.page-lead,
.page-lede,
.page-task {
  font-size: 16px;
  color: var(--c-text);
  max-width: 42em;
}

.page-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
}

.page-meta dt,
.page-meta dd {
  margin: 0;
}

.page-title-block {
  margin-bottom: 26px;
}

.page-title-block .page-lead {
  margin-bottom: 12px;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 10px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-muted);
}

.meta-bar .meta-item {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin: 0;
}

.meta-bar dt,
.meta-bar dd {
  margin: 0;
}

.meta-bar dt::after {
  content: "：";
}

.meta-item {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  font-size: 13px;
  color: var(--c-muted);
}

.page-head .page-meta .meta-item::before {
  content: "·";
  color: var(--c-line);
}

.page-head .page-meta .meta-item:first-child::before {
  content: none;
}

/* 页脚 */
.site-footer {
  background: var(--c-panel);
  border-top: 1px solid var(--c-line);
  margin-top: auto;
}

.footer-cols {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 34px 24px 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 30px;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--c-text);
}

.footer-col p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.75;
}

.footer-direct {
  border-top: 1px solid var(--c-line);
  background: #f7f9fb;
}

.footer-nav {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 16px 24px 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--c-primary);
}

.footer-note,
.footer-copy {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 6px 24px;
  font-size: 13px;
  color: var(--c-muted);
}

.footer-copy {
  padding-bottom: 18px;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--c-primary);
  color: #ffffff;
  border-color: var(--c-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #1b3149;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--c-panel);
  color: var(--c-primary);
  border-color: var(--c-line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}

/* 行内链接 */
.link-inline {
  font-size: 15px;
  font-weight: 600;
}

/* 状态徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  padding: 1px 8px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #f7f9fb;
  color: var(--c-muted);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-muted);
  flex: none;
}

.badge-done {
  color: var(--c-done);
  border-color: #cbe3d8;
  background: #f1f8f4;
}

.badge-done::before {
  background: var(--c-done);
}

.badge-progress {
  color: var(--c-accent);
  border-color: #f3d3c2;
  background: #fdf4ef;
}

.badge-progress::before {
  background: var(--c-accent);
}

.badge-wait {
  color: var(--c-muted);
}

/* 表格 */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-panel);
}

.data-table {
  min-width: 640px;
  font-size: 15px;
  background: var(--c-panel);
}

.data-table caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-line);
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.7;
}

.data-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  background: #f7f9fb;
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f7f9fb;
}

.data-table .col-date,
.data-table .cell-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-muted);
  white-space: nowrap;
}

.data-table .cell-rank {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-accent);
  white-space: nowrap;
}

/* 区块通用 */
.section {
  margin-top: 40px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--c-muted);
  max-width: 46em;
}

.section-foot {
  margin-top: 14px;
  font-size: 15px;
}

.section-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--c-muted);
}

/* 侧栏 */
.side-block,
.aside-block {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.side-title,
.aside-title,
.aside-block h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.side-links li,
.side-list li,
.aside-links li,
.aside-list li {
  border-top: 1px solid var(--c-line);
}

.side-links li:first-child,
.side-list li:first-child,
.aside-links li:first-child,
.aside-list li:first-child {
  border-top: 0;
}

.side-links a,
.side-list a,
.aside-links a,
.aside-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--c-primary);
}

/* 内容图片 */
.content-figure,
.section-media,
.stage-figure,
.batch-figure,
.feature-media,
.aside-figure,
.group-media {
  margin: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-panel);
  overflow: hidden;
}

.content-figure img,
.section-media img,
.stage-figure img,
.batch-figure img,
.feature-media img,
.aside-figure img,
.group-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #e6eaee;
}

.content-figure figcaption,
.section-media figcaption,
.stage-figure figcaption,
.batch-figure figcaption,
.feature-media figcaption,
.aside-figure figcaption,
.group-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
  background: #f7f9fb;
}

/* 编号节点 / 步骤 */
.node-list,
.process-steps {
  counter-reset: node;
  margin-top: 18px;
}

.node-item,
.step-item {
  position: relative;
  padding: 0 0 18px 44px;
  border-left: 1px solid var(--c-line);
  margin-left: 15px;
}

.node-item:last-child,
.step-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.node-item::before,
.step-item::before,
.step-no {
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-accent);
}

.node-list {
  counter-reset: node;
}

.node-item::before {
  counter-increment: node;
  content: counter(node);
}

.process-steps {
  counter-reset: step;
}

.step-item::before {
  content: none;
}

.step-item .step-no {
  position: absolute;
  left: -15px;
  top: 0;
  display: flex;
}

.node-title,
.step-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.node-item p,
.step-item p {
  font-size: 15px;
  color: var(--c-text);
}

/* FAQ */
.faq-item {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
  flex: none;
  transition: transform 0.18s ease;
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--c-line);
}

.faq-item p {
  padding: 12px 16px 16px;
  font-size: 15px;
  color: var(--c-text);
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  padding-top: 26px;
}

.hero-compare {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.hero-lead h1 {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.hero-text {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-genre-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.genre-col {
  min-width: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  background: #fbfcfd;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-col-name {
  font-size: 17px;
  color: var(--c-primary);
}

.genre-col-expect,
.genre-col-rhythm {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text);
  min-width: 0;
  overflow-wrap: break-word;
}

.genre-col-rhythm {
  color: var(--c-muted);
  font-size: 13px;
}

.genre-col-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}

.hero-visual {
  margin-top: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-panel);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
}

/* 首页专题索引条目行 */
.topic-rows {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-panel);
  overflow: hidden;
}

.topic-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1.4fr) 92px minmax(0, 1.6fr) 116px 92px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--c-line);
  border-left: 3px solid transparent;
  font-size: 14px;
}

.topic-row:first-child {
  border-top: 0;
}

.topic-row:hover {
  background: #f7f9fb;
  border-left-color: var(--c-primary);
}

.topic-batch {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-muted);
}

.topic-name {
  font-weight: 600;
  color: var(--c-text);
  min-width: 0;
}

.topic-genre {
  font-size: 13px;
  color: var(--c-primary);
}

.topic-compose,
.topic-makeup {
  color: var(--c-muted);
  min-width: 0;
}

.topic-progress {
  display: flex;
  align-items: center;
}

.topic-entry,
.topic-link {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

/* 首页大幅专题详情 */
.feature-detail {
  margin-top: 40px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.feature-body {
  padding: 22px 24px 24px;
}

.feature-body h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-body p {
  font-size: 16px;
  margin-bottom: 12px;
  max-width: 42em;
}

.feature-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}

.feature-meta-item {
  min-width: 0;
}

.feature-meta dt {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 4px;
}

.feature-meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-text);
}

/* 首页榜单维度入口 */
.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dimension-item {
  min-width: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
}

.dimension-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--c-primary);
}

.dimension-item p {
  font-size: 15px;
  color: var(--c-text);
}

/* 首页阅读路径入口 */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-item {
  min-width: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-item h3 {
  font-size: 17px;
}

.path-item p {
  font-size: 15px;
  color: var(--c-text);
}

.path-item p + p {
  color: var(--c-muted);
  font-size: 14px;
}

.path-item .link-inline {
  margin-top: auto;
}

/* 首页内容标准 */
.standard-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.standard-item {
  min-width: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 18px;
}

.standard-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.standard-item p {
  font-size: 15px;
  color: var(--c-text);
}

/* 首页相关链接条 */
.related-links {
  margin-top: 40px;
  padding: 14px 18px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.related-links-label {
  font-size: 13px;
  color: var(--c-muted);
}

.related-links-item {
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   pages — 内页通用模块
   ========================================================================== */

/* 专题索引页：批次分组 */
.batch-group {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  margin-bottom: 24px;
}

.batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.batch-head h2 {
  font-size: 22px;
}

.batch-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-muted);
}

.batch-desc {
  font-size: 15px;
  color: var(--c-text);
  margin-bottom: 16px;
  max-width: 42em;
}

.batch-figure {
  margin-bottom: 16px;
}

.batch-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.batch-group .topic-rows {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.batch-group .topic-row {
  grid-template-columns: 76px minmax(0, 1.3fr) 88px minmax(0, 1.5fr) 108px 72px;
}

/* 专题选择建议 */
.topic-advice {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.topic-advice h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.topic-advice > p {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.advice-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--c-line);
}

.advice-list li:first-child {
  border-top: 0;
}

.advice-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-accent);
}

.advice-list p {
  font-size: 15px;
}

.advice-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* 题材分类页 */
.genre-table-section > h2,
.genre-combo-section > h2,
.genre-boundary-section > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.genre-table-section > p,
.genre-combo-section > p,
.genre-boundary-section > p {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.genre-table {
  min-width: 720px;
}

.combo-item {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.combo-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--c-primary);
}

.combo-item p {
  font-size: 15px;
}

.combo-entry {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.boundary-list li {
  min-width: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-muted);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.boundary-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.boundary-list p {
  font-size: 14px;
  color: var(--c-muted);
}

.aside-figure {
  margin-top: 4px;
}

.aside-figure img {
  aspect-ratio: 4 / 3;
}

/* 榜单页 */
.ranking-dims > h2,
.ranking-list > h2,
.update-log > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.ranking-dims > p,
.ranking-list > p,
.update-log > p {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.dim-list {
  counter-reset: dim;
  display: grid;
  gap: 12px;
}

.dim-item {
  position: relative;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 58px;
}

.dim-item::before {
  counter-increment: dim;
  content: counter(dim, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-accent);
}

.dim-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.dim-item p {
  font-size: 15px;
}

.dim-effect {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-muted);
}

.ranking-dims + .section-media {
  margin-top: 20px;
}

.section-media img {
  aspect-ratio: 16 / 6;
}

.ranking-list,
.update-log {
  margin-top: 34px;
}

.ranking-table {
  min-width: 660px;
}

.update-table {
  min-width: 640px;
}

.table-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
}

.update-log h3 {
  font-size: 17px;
  margin: 20px 0 8px;
}

.update-log h3 + p {
  font-size: 15px;
  margin-bottom: 10px;
  max-width: 42em;
}

/* 阅读路径页 */
.path-stage {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  margin-bottom: 24px;
}

.stage-head {
  margin-bottom: 10px;
}

.stage-head h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.stage-head p {
  font-size: 15px;
  color: var(--c-muted);
}

.stage-figure {
  margin-bottom: 16px;
}

.stage-figure img {
  aspect-ratio: 16 / 5;
}

.path-table {
  min-width: 640px;
  font-size: 15px;
}

.path-table caption {
  padding: 0 0 8px;
  font-size: 13px;
  color: var(--c-muted);
}

.path-table th,
.path-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.7;
}

.path-table thead th {
  font-size: 13px;
  color: var(--c-muted);
  background: #f7f9fb;
  white-space: nowrap;
}

.path-table tbody th {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-accent);
  white-space: nowrap;
}

.path-table tbody tr:last-child th,
.path-table tbody tr:last-child td {
  border-bottom: 0;
}

.stage-tail {
  margin-top: 14px;
  font-size: 15px;
}

.follow-rhythm {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
}

.follow-rhythm h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.follow-rhythm > p {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.rhythm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rhythm-list li {
  min-width: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fbfcfd;
}

.rhythm-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--c-primary);
}

.rhythm-list p {
  font-size: 14px;
}

.path-faq-link {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.path-faq-link h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.path-faq-link p {
  font-size: 15px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-muted);
}

/* 编辑团队页 */
.content-section {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  margin-bottom: 24px;
}

.content-section > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.content-section > p {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.content-section > p + .table-scroll {
  margin-bottom: 12px;
}

.content-section > .table-scroll + p {
  font-size: 14px;
  color: var(--c-muted);
}

.content-section .content-figure {
  margin-bottom: 18px;
}

.content-section .content-figure img {
  aspect-ratio: 16 / 6;
}

/* 参与与反馈页 */
.section-block {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  margin-bottom: 24px;
}

.section-block > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-block > p {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.feedback-scope-list li {
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
}

.feedback-scope-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.scope-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--c-primary);
}

.scope-item p {
  font-size: 15px;
}

.section-block .content-figure {
  margin-bottom: 18px;
}

.section-block .content-figure img {
  aspect-ratio: 16 / 6;
}

.excluded-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.excluded-item {
  min-width: 0;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-muted);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fbfcfd;
}

.excluded-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.excluded-item p {
  font-size: 14px;
  color: var(--c-muted);
}

.section-tail {
  margin-top: 16px;
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* 常见问题页 */
.page-hero {
  margin-bottom: 26px;
}

.page-hero .page-lede {
  font-size: 16px;
  max-width: 42em;
  margin-bottom: 12px;
}

.faq-group {
  margin-bottom: 34px;
}

.faq-group > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.group-intro {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 14px;
  max-width: 42em;
}

.group-media {
  margin-bottom: 16px;
}

.group-media img {
  aspect-ratio: 16 / 5;
}

/* 404 */
.error-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 48px;
}

.error-block {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 34px 30px;
  max-width: 640px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.error-block h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.error-text {
  font-size: 16px;
  color: var(--c-muted);
  margin-bottom: 10px;
  max-width: 40em;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.error-links {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 640px;
}

.error-links h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-layout > .page-side,
  .page-layout > .layout-aside,
  .page-layout > .side-column,
  .page-layout > .content-side,
  .page-layout > .content-aside {
    width: 100%;
  }

  .hero-compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-genre-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-grid,
  .path-grid,
  .standard-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    width: 100%;
    margin-left: 0;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-top: 1px solid var(--c-line);
    padding: 6px 0 10px;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0 6px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .site-nav a.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--c-accent);
    background: #fdf4ef;
  }

  .site-main {
    padding: 20px 16px 44px;
  }

  .page-title {
    font-size: 24px;
  }

  .error-block h1 {
    font-size: 24px;
  }

  .hero-lead h1 {
    font-size: 24px;
  }

  .hero-compare {
    padding: 20px 16px;
  }

  .hero-genre-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
  }

  .feature-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-grid,
  .path-grid,
  .standard-list,
  .boundary-list,
  .rhythm-list,
  .excluded-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-row,
  .batch-group .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 16px;
  }

  .topic-entry,
  .topic-link {
    text-align: left;
  }

  .advice-list li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .advice-list .advice-link {
    grid-column: 2;
  }

  .batch-group,
  .topic-advice,
  .path-stage,
  .follow-rhythm,
  .content-section,
  .section-block,
  .path-faq-link {
    padding: 16px 16px 18px;
  }

  .dim-item {
    padding: 14px 16px 14px 16px;
  }

  .dim-item::before {
    position: static;
    display: inline-block;
    margin-bottom: 4px;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 16px 20px;
    gap: 22px;
  }

  .footer-nav,
  .footer-note,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-nav ul {
    gap: 2px 16px;
  }

  .error-main {
    padding-top: 28px;
  }

  .error-block,
  .error-links {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .faq-item summary::before {
    transition: none;
  }
}
