/* ============================================================
   汗汗漫画 · 全站样式表 ctystjq.com
   视觉方向：新粗野风 / 低圆角 / 高对比 / 米白底 + 深色页脚
   分组：base / layout / components / pages / responsive
   ============================================================ */

/* ---------- base ---------- */
:root {
  --bg: #f6f5f0;
  --ink: #1a1a1a;
  --red: #e5484d;
  --yellow: #f2a900;
  --dark: #171614;
  --line: 2px solid var(--ink);
  --line-red: 2px solid var(--red);
  --radius: 6px;
  --shadow: 4px 4px 0 rgba(26, 26, 26, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- layout: 全站公共骨架 ---------- */
.site-header {
  background: var(--bg);
  border-bottom: var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--red);
  font-weight: 600;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  line-height: 1.4;
}

.nav-list li a:hover {
  border-color: var(--ink);
}

.nav-list li a.is-current {
  background: var(--ink);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.site-main {
  flex: 1;
}

.site-footer {
  background: var(--dark);
  color: #c8c6bf;
  margin-top: 48px;
  border-top: 4px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 14px;
  color: #e8e6df;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #9a988f;
}

.footer-links-title {
  font-size: 15px;
  font-weight: 700;
  color: #e8e6df;
  margin-bottom: 12px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.footer-nav li a {
  color: #b0aea6;
  font-size: 14px;
}

.footer-nav li a:hover {
  color: var(--yellow);
}

.footer-note {
  border-top: 1px solid #3a3833;
  padding-top: 16px;
  grid-column: 1 / -1;
}

.footer-note-text {
  font-size: 13px;
  color: #8a887f;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 12px;
  color: #6f6d66;
}

/* 内页统一骨架 */
.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
  width: 100%;
  flex: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  color: #6f6d66;
}

.breadcrumb a {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb-sep {
  color: #b0aea6;
}

.breadcrumb-current {
  color: var(--red);
  font-weight: 600;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: var(--line);
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #4a4a46;
  max-width: 720px;
}

/* ---------- components: 链接箭头 ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 0;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- components: 标签 ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 2px;
  line-height: 1.6;
}

.tag-hot {
  background: var(--red);
  color: #fff;
}

/* ---------- components: 规则块 ---------- */
.rule-block {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.rule-block .section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.rule-block p {
  font-size: 15px;
  margin-bottom: 10px;
}

.rule-block p:last-child {
  margin-bottom: 0;
}

.rule-block a {
  color: var(--red);
  font-weight: 700;
  border-bottom: 1px solid var(--red);
}

/* ---------- components: 折叠面板 ---------- */
details {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1;
}

details[open] summary {
  border-bottom: 1px solid #e0ded6;
}

details[open] summary::after {
  content: "−";
}

details .faq-answer,
details .faq-fold-body {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3a36;
}

details p {
  margin-bottom: 8px;
}

details p:last-child {
  margin-bottom: 0;
}

/* ---------- components: 图片容器 ---------- */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 13px;
  color: #6f6d66;
  padding-top: 8px;
  line-height: 1.5;
}

/* ---------- components: 相关链接 ---------- */
.related-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid #e0ded6;
  margin-top: 24px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: #6f6d66;
  margin-right: 4px;
}

.related-links-item {
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 4px 12px;
}

.related-links-item:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- components: 文本链接 ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid var(--red);
  padding: 2px 0;
}

.text-link::after {
  content: "→";
}

/* ---------- pages: index ---------- */
.home-main {
  padding-bottom: 0;
}

/* hero 封面墙 */
.hero-wall {
  border-bottom: var(--line);
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.hero-feature {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.feature-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: var(--line);
}

.feature-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.feature-caption {
  padding: 16px;
}

.feature-caption .tag {
  margin-bottom: 8px;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin: 8px 0 8px;
}

.hero-desc {
  font-size: 15px;
  color: #4a4a46;
  margin-bottom: 12px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-updates,
.hero-ranking {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 16px;
  flex: 1;
}

.side-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d8d5cc;
}

.update-list li {
  padding: 7px 0;
  border-bottom: 1px dashed #d8d5cc;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.update-list li:last-child {
  border-bottom: none;
}

.update-list li a {
  font-weight: 500;
}

.update-list li a:hover {
  color: var(--red);
}

.rank-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #d8d5cc;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  counter-increment: rank-counter;
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-list li::before {
  content: counter(rank-counter, decimal-leading-zero);
  font-weight: 800;
  color: var(--red);
  font-size: 13px;
  flex-shrink: 0;
}

.hero-ranking .rank-list {
  counter-reset: rank-counter;
}

.hero-ranking .rank-list li {
  counter-increment: rank-counter;
}

.side-more {
  display: block;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-top: 8px;
}

/* 双路径入口 */
.path-section {
  padding: 36px 0 0;
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.path-card {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.path-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(26, 26, 26, 0.12);
}

.path-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.path-card-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--yellow);
  flex-shrink: 0;
}

.path-card-desc {
  font-size: 14px;
  color: #4a4a46;
  margin-bottom: 14px;
}

/* 分类排行摘要 */
.top-categories {
  padding: 36px 0 0;
}

.cat-rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.cat-rank-col {
  border: 1px solid #d8d5cc;
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.cat-rank-tag {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: var(--line);
}

.cat-rank-list {
  counter-reset: cat-rank;
}

.cat-rank-list li {
  counter-increment: cat-rank;
  padding: 6px 0;
  border-bottom: 1px dashed #e0ded6;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.cat-rank-list li::before {
  content: counter(cat-rank, decimal-leading-zero);
  font-weight: 800;
  color: var(--red);
  font-size: 13px;
  flex-shrink: 0;
}

.cat-rank-list li:last-child {
  border-bottom: none;
}

.cat-rank-more {
  margin-top: 16px;
  text-align: right;
}

/* 精选合集入口 */
.collection-entry {
  padding: 36px 0 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.collection-card {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.collection-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: var(--line);
}

.collection-card-body {
  padding: 16px;
}

.collection-card-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.collection-card-desc {
  font-size: 14px;
  color: #4a4a46;
  margin-bottom: 10px;
}

.collection-card-body a {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

/* 编辑推荐榜 */
.editor-picks {
  padding: 36px 0 0;
}

.editor-list {
  border-top: var(--line);
}

.editor-item {
  display: flex;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: var(--line);
  align-items: flex-start;
}

.editor-rank {
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.2;
  flex-shrink: 0;
  min-width: 36px;
}

.editor-info {
  flex: 1;
}

.editor-name {
  font-size: 17px;
  font-weight: 800;
  display: inline-block;
  margin-right: 8px;
}

.editor-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 1px 8px;
  vertical-align: 2px;
}

.editor-reason {
  font-size: 14px;
  color: #4a4a46;
  margin-top: 4px;
}

/* FAQ 摘要 */
.faq-summary {
  padding: 36px 0 0;
}

.faq-fold-list {
  margin-bottom: 14px;
}

/* 规则摘要 */
.rule-summary {
  padding: 36px 0 0;
}

.rule-text {
  font-size: 15px;
  line-height: 1.8;
}

.rule-text a {
  color: var(--red);
  font-weight: 700;
  border-bottom: 1px solid var(--red);
  margin: 0 4px;
}

/* ---------- pages: category ---------- */
.page-layout {
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 24px;
  flex: 1;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  align-self: flex-start;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: var(--line);
}

.topic-tree {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tree-item {
  border: 1px solid #e0ded6;
  border-radius: var(--radius);
  padding: 10px 12px;
}

.tree-parent {
  display: block;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 6px;
}

.tree-children {
  padding-left: 4px;
}

.tree-children li {
  padding: 3px 0;
}

.tree-children li a {
  font-size: 13px;
  color: #4a4a46;
}

.tree-children li a:hover {
  color: var(--red);
}

.page-layout .inner-main {
  flex: 1;
  padding-top: 0;
  max-width: none;
}

/* 筛选按钮组 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 40px;
  line-height: 1.4;
}

.filter-btn:hover {
  background: var(--yellow);
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

/* 题材卡片 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.topic-card {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.topic-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: var(--line);
}

.topic-card .card-body {
  padding: 14px;
}

.topic-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.topic-desc {
  font-size: 14px;
  color: #4a4a46;
  margin-bottom: 10px;
}

.topic-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: var(--yellow);
  border-radius: 2px;
  padding: 1px 8px;
}

/* 编辑整理说明 */
.editor-note {
  margin-bottom: 24px;
}

.editor-note p {
  font-size: 15px;
  margin-bottom: 10px;
  max-width: 720px;
}

/* ---------- pages: updates ---------- */
.week-summary,
.updates-timeline {
  margin-bottom: 28px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.summary-card {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.summary-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #e0ded6;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.summary-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.summary-card p {
  font-size: 14px;
  color: #4a4a46;
  margin-bottom: 8px;
}

.summary-card a {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

/* 时间线 */
.timeline-group {
  margin-bottom: 24px;
}

.timeline-date {
  font-size: 18px;
  font-weight: 800;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  display: inline-block;
  margin-bottom: 14px;
}

.timeline-list {
  border-left: var(--line);
  margin-left: 10px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #e0ded6;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.timeline-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  border: 1px solid #e0ded6;
}

.timeline-content h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.timeline-tags {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-note {
  font-size: 13px;
  color: #6f6d66;
}

/* 布局壳：时间线 + 侧栏规则 */
.layout-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.updates-aside {
  position: sticky;
  top: 84px;
}

.rules-block {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.rules-block .section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.rules-block p {
  font-size: 14px;
  margin-bottom: 12px;
}

.rules-list {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 12px;
}

.rules-list li {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.rules-block a {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

/* 相关入口 */
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.related-item {
  border: 1px solid #d8d5cc;
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.related-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.related-desc {
  display: block;
  font-size: 13px;
  color: #6f6d66;
}

/* ---------- pages: ranking ---------- */
.section-block {
  margin-bottom: 32px;
}

.editor-picks-list {
  border-top: var(--line);
}

.rank-item {
  display: flex;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: var(--line);
  align-items: flex-start;
}

.rank-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.2;
  flex-shrink: 0;
  min-width: 40px;
}

.rank-content {
  flex: 1;
}

.rank-name {
  font-size: 18px;
  font-weight: 800;
  display: inline-block;
  margin-right: 10px;
}

.rank-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 1px 8px;
  vertical-align: 2px;
}

.rank-reason {
  font-size: 14px;
  color: #4a4a46;
  margin-top: 4px;
}

.content-media {
  margin: 24px 0;
}

.content-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: var(--line);
  border-radius: var(--radius);
}

.content-media figcaption {
  margin-top: 8px;
}

.ranking-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.ranking-col {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.col-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: var(--line);
}

.ranking-col .rank-list {
  counter-reset: rank-counter;
}

.ranking-col .rank-list li {
  counter-increment: rank-counter;
  padding: 7px 0;
  border-bottom: 1px dashed #e0ded6;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.ranking-col .rank-list li::before {
  content: counter(rank-counter, decimal-leading-zero);
  font-weight: 800;
  color: var(--red);
  font-size: 13px;
  flex-shrink: 0;
}

.ranking-col .rank-list li:last-child {
  border-bottom: none;
}

.ranking-summary .rule-block {
  padding: 24px;
}

.link-pair {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- pages: collection ---------- */
.collection-grid-section,
.collection-detail-section,
.other-collections-section {
  margin-bottom: 36px;
}

.collection-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: var(--line);
}

.collection-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-detail {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.detail-block {
  margin-bottom: 18px;
}

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-heading {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
}

.detail-text {
  font-size: 15px;
  line-height: 1.8;
  color: #3a3a36;
}

.other-collections-list {
  border-top: var(--line);
}

.other-collection-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid #e0ded6;
  flex-wrap: wrap;
}

.other-collection-name {
  font-size: 16px;
  font-weight: 800;
  min-width: 160px;
}

.other-collection-desc {
  font-size: 14px;
  color: #4a4a46;
  flex: 1;
  min-width: 220px;
}

.other-collection-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.related-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.related-link {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
}

.related-link:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- pages: guide ---------- */
.quick-nav {
  margin-bottom: 32px;
}

.quick-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-nav-list li a {
  display: block;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
}

.quick-nav-list li a:hover {
  background: var(--ink);
  color: var(--bg);
}

.guide-section {
  margin-bottom: 36px;
  border-top: var(--line);
  padding-top: 24px;
}

.section-lead {
  font-size: 15px;
  color: #4a4a46;
  margin-bottom: 16px;
  max-width: 720px;
}

.preparation-list {
  list-style: disc;
  padding-left: 20px;
}

.preparation-list li {
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.7;
}

.preparation-list strong {
  font-weight: 800;
}

.steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  align-items: flex-start;
}

.step-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  flex-shrink: 0;
  min-width: 40px;
  line-height: 1.3;
}

.step-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 15px;
  color: #3a3a36;
  line-height: 1.7;
}

.step-desc a {
  color: var(--red);
  font-weight: 700;
}

.step-tip {
  font-size: 14px;
  background: #f0ede4;
  border-left: 3px solid var(--yellow);
  padding: 8px 12px;
  margin-top: 8px;
}

.step-tip strong {
  font-weight: 800;
}

.guide-figure {
  margin: 20px 0;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #6f6d66;
  border-top: 1px solid #e0ded6;
}

.checkpoint-list {
  list-style: none;
}

.checkpoint-list li {
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px dashed #d8d5cc;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.checkpoint-list li::before {
  content: "✓";
  color: var(--red);
  font-weight: 800;
  flex-shrink: 0;
}

.checkpoint-list strong {
  font-weight: 800;
}

.next-actions-list {
  list-style: none;
}

.next-actions-list li {
  margin-bottom: 10px;
}

.next-actions-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid var(--red);
  padding: 2px 0;
}

.next-actions-list a::after {
  content: "→";
}

/* ---------- pages: faq ---------- */
.faq-group {
  margin-bottom: 32px;
}

.faq-group .section-title {
  margin-bottom: 14px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-media {
  margin: 28px 0;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.faq-media img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.faq-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #6f6d66;
  border-top: 1px solid #e0ded6;
}

.faq-more {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  margin-top: 28px;
}

.faq-more .section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.faq-more p {
  font-size: 14px;
  color: #4a4a46;
  margin-bottom: 12px;
}

.faq-more-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.faq-more-links a {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
}

.faq-more-links a:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- pages: about ---------- */
.about-section {
  margin-bottom: 32px;
  border-top: var(--line);
  padding-top: 24px;
}

.about-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.about-lead p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 760px;
}

.about-method-list,
.about-rule-list,
.about-boundary-list {
  list-style: disc;
  padding-left: 20px;
}

.about-method-list li,
.about-rule-list li,
.about-boundary-list li {
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.7;
  max-width: 720px;
}

.about-feedback {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.about-feedback p {
  font-size: 15px;
  margin-bottom: 10px;
}

.about-feedback p:last-child {
  margin-bottom: 0;
}

.about-feedback a {
  color: var(--red);
  font-weight: 700;
  border-bottom: 1px solid var(--red);
}

/* ---------- pages: 404 ---------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error-container {
  max-width: 680px;
}

.error-panel {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 40px;
  text-align: left;
  box-shadow: var(--shadow);
}

.error-code {
  font-size: 64px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #4a4a46;
  margin-bottom: 20px;
}

.button {
  display: inline-block;
  border: var(--line);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
  background: var(--ink);
  color: var(--bg);
}

.button:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.error-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
  padding: 2px 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell {
    grid-template-columns: 1fr;
  }

  .updates-aside {
    position: static;
  }

  .sidebar {
    width: 220px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 8px;
    border-bottom: 1px solid #e0ded6;
    border-radius: 0;
    font-size: 16px;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .cat-rank-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .ranking-columns {
    grid-template-columns: 1fr;
  }

  .page-layout {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    width: 100%;
    position: static;
    max-height: none;
    order: 2;
  }

  .page-layout .inner-main {
    order: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-note {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .inner-main {
    padding: 16px 14px 0;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .hero-grid {
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero-title {
    font-size: 22px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .editor-item {
    gap: 10px;
  }

  .editor-rank {
    font-size: 20px;
    min-width: 28px;
  }

  .timeline-list {
    margin-left: 4px;
    padding-left: 12px;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .other-collection-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .other-collection-name {
    min-width: 0;
  }

  .other-collection-desc {
    min-width: 0;
  }

  .step-item {
    flex-direction: column;
    gap: 8px;
  }

  .step-number {
    min-width: 0;
  }

  .error-panel {
    padding: 24px;
  }

  .error-code {
    font-size: 48px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .detail-block {
    margin-bottom: 14px;
  }

  .collection-detail {
    padding: 16px;
  }

  .rule-block {
    padding: 16px;
  }

  .content-media img {
    aspect-ratio: 16 / 9;
  }

  .guide-figure img {
    aspect-ratio: 16 / 9;
  }

  .faq-media img {
    aspect-ratio: 16 / 9;
  }
}
