/* ============================================================
   base — reset, variables, typography, global
   ============================================================ */
:root {
  --paper: #F7F2EA;
  --ink: #1F2430;
  --red: #FF5A36;
  --blue: #2D7FF9;
  --yellow: #FFC53D;
  --line: #D8D2C7;
  --white: #FFFFFF;
  --ink-soft: #4a4f5c;
  --ink-muted: #6b6f7a;
  --card-radius: 8px;
  --container: 1240px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* 全站统一容器 */
.site-header .header-shell,
.site-main,
.related-links,
.site-footer .footer-shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   layout — header / footer / breadcrumb / page-header / layout-shell
   ============================================================ */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand-link {
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--ink);
  display: inline-block;
  padding-left: 12px;
  border-left: 4px solid var(--red);
  line-height: 1.2;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav .nav-list {
  list-style: none;
}

.nav-list li {
  position: relative;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background: var(--yellow);
  color: var(--ink);
}

.nav-list li a.is-current {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  align-items: center;
  background: var(--ink);
  border-radius: 6px;
}

.nav-toggle .toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-list {
  display: none;
}

.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;
}

/* footer */
.site-footer {
  margin-top: 80px;
  background: var(--ink);
  color: var(--paper);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-block: 56px 32px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.8;
  color: #c6c9d1;
}

.footer-brand strong {
  display: block;
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 8px;
}

.footer-nav h3,
.footer-extra h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav ul,
.footer-extra ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav li a,
.footer-extra li a {
  color: #c6c9d1;
  font-size: 14px;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.footer-nav li a:hover,
.footer-extra li a:hover {
  color: var(--yellow);
}

.copyright-line {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px;
  text-align: center;
  font-size: 13px;
  color: #9ea2ad;
  background: var(--ink);
}

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* page header */
.page-header {
  padding: 28px 0 36px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  padding-left: 16px;
  border-left: 5px solid var(--red);
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.8;
}

/* 主容器 */
.site-main {
  min-height: 60vh;
}

.inner-main {
  padding-bottom: 20px;
}

/* 通用两栏布局 */
.layout-shell.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
}

/* related links */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 56px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
}

.related-links-item {
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* ============================================================
   components — tags, buttons, cards, exit-box, etc.
   ============================================================ */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  line-height: 1.6;
  white-space: nowrap;
  background: var(--line);
  color: var(--ink);
}

.tag-hot {
  background: var(--red);
  color: var(--white);
}

.tag-love {
  background: #ff6b8a;
  color: var(--white);
}

.tag-mystery {
  background: var(--ink);
  color: var(--paper);
}

.tag-fantasy {
  background: var(--blue);
  color: var(--white);
}

.tag-romance {
  background: #ff6b8a;
  color: var(--white);
}

.tag-shonen {
  background: var(--red);
  color: var(--white);
}

/* 通用卡片 */
.comic-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}

.card-content {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-content h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.card-content p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 4px;
}

.comic-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ink);
}

.comic-card:hover .card-content {
  background: #fffaf2;
}

.comic-card:hover .card-content h3 {
  color: var(--red);
}

/* exit-box */
.exit-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--card-radius);
  padding: 18px 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.exit-box:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.exit-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}

.exit-text {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}

.exit-arrow {
  font-size: 18px;
  color: var(--blue);
  margin-left: auto;
  flex-shrink: 0;
}

/* exit-card */
.exit-card {
  display: block;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--card-radius);
  padding: 20px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.exit-card:hover {
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.exit-card-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

.exit-card-title::after {
  content: " →";
  color: var(--red);
}

.exit-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  display: block;
}

.exit-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.exit-title::after {
  content: " →";
  color: var(--red);
}

.exit-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.exit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 通用 section 标题 */
.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.section-note {
  font-size: 14px;
  color: var(--ink-soft);
}

/* inline link */
.inline-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.inline-link:hover {
  color: var(--red);
}

.inline-link::after {
  content: " →";
}

/* ============================================================
   pages — index
   ============================================================ */
.home-main {
  padding-block: 0;
}

/* hero */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  padding-block: 56px 64px;
  border-bottom: 2px solid var(--ink);
  align-items: center;
}

.hero-copy h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-slogan {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}

.hero-description {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 24px;
}

.hero-quick-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.quick-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  display: inline-block;
}

.quick-chip:nth-child(2)::before {
  background: #ff6b8a;
}

.quick-chip:nth-child(3)::before {
  background: var(--ink);
}

.quick-chip:nth-child(4)::before {
  background: var(--blue);
}

.quick-chip:hover {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

.cta-link {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.hero-figure {
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 10px;
  position: relative;
}

.hero-figure::before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--yellow);
  z-index: -1;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* module block */
.module-block {
  padding-block: 48px;
  border-bottom: 1px solid var(--line);
}

/* focus grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* record list */
.record-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
}

.record-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.record-list li:hover {
  background: rgba(255, 197, 61, 0.3);
}

.record-name {
  font-weight: 700;
  font-size: 15px;
  min-width: 160px;
}

.record-desc {
  color: var(--ink-soft);
  font-size: 14px;
}

/* ranking teaser */
.teaser-rank {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
}

.teaser-rank li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.teaser-rank li:hover {
  background: rgba(45, 127, 249, 0.1);
}

.rank-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  width: 40px;
  flex-shrink: 0;
}

.teaser-rank .rank-name {
  font-weight: 700;
  font-size: 16px;
  flex: 1;
}

/* theme longpage */
.theme-longpage .theme-block {
  margin-bottom: 48px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 24px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.theme-head {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.theme-head h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.theme-head p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.theme-head img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.theme-samples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.theme-samples li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 600;
}

.anchor-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

.anchor-link::after {
  content: " →";
}

/* reader starter */
.starter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.starter-box {
  display: block;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--card-radius);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.starter-box:hover {
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.step-num {
  display: inline-block;
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 10px;
}

.starter-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.starter-box p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.guide-invite {
  margin-top: 24px;
  font-size: 15px;
}

.guide-invite a {
  color: var(--blue);
  font-weight: 700;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}

/* ============================================================
   pages — categories
   ============================================================ */
.theme-block {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.theme-heading h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.theme-heading p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.7;
}

.theme-cover {
  border: 2px solid var(--ink);
  margin-bottom: 16px;
  background: var(--white);
}

.theme-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.theme-cover figcaption {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.entry-list {
  border-top: 2px solid var(--ink);
}

.entry-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background-color 0.2s ease;
}

.entry-list li:hover {
  background: rgba(255, 197, 61, 0.25);
}

.entry-name {
  font-weight: 700;
  font-size: 15px;
}

.entry-note {
  grid-column: 2;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: -6px;
}

.entry-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: rgba(255, 90, 54, 0.1);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
}

/* exit links */
.exit-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

/* aside */
.aside-card {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 20px;
  margin-bottom: 24px;
}

.aside-card h2 {
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 16px;
}

.anchor-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.anchor-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.anchor-list li a:hover {
  border-left-color: var(--red);
  background: var(--paper);
}

.aside-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

/* ============================================================
   pages — updates
   ============================================================ */
.updates-list h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
}

.content-media {
  border: 2px solid var(--ink);
  background: var(--white);
  margin-bottom: 24px;
}

.content-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-media figcaption {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section-intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.8;
}

.record-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease;
}

.record-card:hover {
  box-shadow: 4px 4px 0 var(--line);
}

.record-body {
  flex: 1;
}

.record-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.record-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 8px;
}

.status-adjusted {
  background: var(--yellow);
}

/* exit section */
.exit-section {
  margin-top: 32px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.exit-section > p {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* dist card */
.dist-card,
.note-card {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 20px;
  margin-bottom: 24px;
}

.dist-card h2,
.note-card h2 {
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
}

.dist-card p,
.note-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}

.dist-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dist-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dist-name {
  font-size: 13px;
  font-weight: 700;
  width: 60px;
  flex-shrink: 0;
}

.dist-bar {
  display: block;
  height: 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.bar-shonen {
  background: var(--red);
  width: 90%;
}

.bar-romance {
  background: #ff6b8a;
  width: 75%;
}

.bar-mystery {
  background: var(--ink);
  width: 60%;
}

.bar-fantasy {
  background: var(--blue);
  width: 70%;
}

/* ============================================================
   pages — ranking
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.rank-block {
  margin-bottom: 48px;
}

.rank-block h2 {
  font-size: 24px;
  font-weight: 800;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  margin-bottom: 8px;
}

.block-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.7;
}

.rank-list {
  border-top: 2px solid var(--ink);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.rank-item:hover {
  background: rgba(45, 127, 249, 0.08);
}

.rank-item .rank-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--red);
  width: 44px;
  flex-shrink: 0;
}

.rank-media {
  width: 56px;
  flex-shrink: 0;
}

.rank-media img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.rank-info {
  flex: 1;
}

.rank-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.rank-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* category rank grid */
.category-rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.category-rank-card {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 20px;
}

.category-rank-card h3 {
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 12px;
}

.mini-rank-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-rank-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px dashed var(--line);
}

.mini-rank-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--blue);
  width: 24px;
  flex-shrink: 0;
}

.mini-rank-list li span:last-child {
  font-size: 14px;
  font-weight: 600;
}

.theme-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-left: auto;
}

/* rank exit */
.rank-exit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  border-top: 2px solid var(--ink);
  padding-top: 32px;
}

.rank-exit .exit-box {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rank-exit .exit-box p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.rank-exit .exit-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

.rank-exit .exit-link::after {
  content: " →";
}

/* side cards */
.side-card {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 20px;
  margin-bottom: 24px;
}

.side-card h2 {
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
}

.side-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.card-link {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

/* ============================================================
   pages — guide
   ============================================================ */
.guide-figure {
  border: 2px solid var(--ink);
  background: var(--white);
  margin-bottom: 40px;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.path-steps {
  margin-bottom: 48px;
}

.path-steps h2,
.faq-section h2,
.glossary-section h2,
.next-steps h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.step-item {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--card-radius);
  padding: 18px 16px;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.step-item:hover {
  box-shadow: 4px 4px 0 var(--ink);
}

.step-item .step-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

.step-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* faq */
.faq-section {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.faq-item summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  border-radius: 4px;
  flex-shrink: 0;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  background: var(--paper);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] p {
  padding: 0 24px 20px 64px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.faq-item p a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

/* glossary */
.glossary-section {
  margin-bottom: 56px;
}

.glossary-table {
  border: 2px solid var(--ink);
  background: var(--white);
}

.glossary-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 12px 20px;
}

.glossary-table tbody th,
.glossary-table tbody td {
  padding: 12px 20px;
  font-size: 14px;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.glossary-table tbody th {
  font-weight: 700;
  width: 160px;
  background: var(--paper);
}

.glossary-table tbody td {
  color: var(--ink-soft);
  line-height: 1.7;
}

/* next steps */
.next-steps {
  margin-bottom: 40px;
}

/* ============================================================
   pages — copyright
   ============================================================ */
.policy-section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.policy-section > h2 {
  font-size: 24px;
  font-weight: 800;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  margin-bottom: 14px;
}

.policy-section > p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 760px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.policy-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--card-radius);
  padding: 20px;
}

.policy-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.policy-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.image-policy-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.policy-figure {
  border: 2px solid var(--ink);
  background: var(--white);
}

.policy-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.policy-figure figcaption {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.policy-list li {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.policy-list h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.policy-list p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* browse back */
.browse-back {
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 28px;
  margin-bottom: 40px;
}

.browse-back > p {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.browse-back .exit-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   pages — 404
   ============================================================ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  padding-block: 60px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 56px 48px;
  position: relative;
}

.error-panel::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--yellow);
  z-index: -1;
}

.error-code {
  font-size: 72px;
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid var(--ink);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
}

.button-secondary:hover {
  box-shadow: 3px 3px 0 var(--ink);
}

.error-help {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .layout-shell.with-aside,
  .layout-shell,
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-figure {
    max-width: 480px;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-shell {
    flex-wrap: wrap;
    min-height: auto;
    padding-block: 12px;
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 3;
  }

  .mobile-nav-list {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    width: 100%;
    border-top: 2px solid var(--ink);
    padding-top: 8px;
    margin-top: 4px;
  }

  .mobile-nav-list.is-open {
    display: flex;
  }

  .mobile-nav-list li a {
    padding: 12px 8px;
    font-size: 16px;
  }

  .layout-shell.with-aside,
  .layout-shell,
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .layout-aside,
  .side-content {
    order: 2;
  }

  .layout-main,
  .main-content {
    order: 1;
  }

  /* aside 转折叠卡 */
  .aside-card,
  .dist-card,
  .note-card,
  .side-card {
    margin-bottom: 16px;
  }

  .category-rank-grid {
    grid-template-columns: 1fr;
  }

  .rank-exit {
    grid-template-columns: 1fr;
  }

  .exit-grid,
  .starter-grid {
    grid-template-columns: 1fr;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .image-policy-compare {
    grid-template-columns: 1fr;
  }

  .browse-back .exit-links {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 14px 16px;
  }

  .step-item .step-num {
    margin-bottom: 0;
    grid-row: 1 / span 2;
  }

  .step-item h3 {
    margin-bottom: 0;
  }

  .step-item p {
    grid-column: 2;
  }

  .theme-head {
    grid-template-columns: 1fr;
  }

  .theme-head img {
    max-width: 300px;
  }

  .hero-section {
    padding-block: 32px 40px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 40px 24px;
  }

  .page-header {
    padding: 20px 0 28px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 26px;
  }

  .module-block {
    padding-block: 36px;
  }

  .section-heading h2 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .site-main,
  .site-header .header-shell,
  .related-links,
  .site-footer .footer-shell {
    padding-inline: 16px;
  }

  .hero-copy h1 {
    font-size: 27px;
    line-height: 1.3;
  }

  .hero-slogan {
    font-size: 17px;
  }

  .hero-quick-entry {
    gap: 8px;
  }

  .quick-chip {
    padding: 7px 12px;
    font-size: 13px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .record-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-block: 16px;
  }

  .record-name {
    min-width: 0;
  }

  .record-desc {
    font-size: 13px;
  }

  .teaser-rank li {
    gap: 10px;
  }

  .rank-num {
    font-size: 20px;
    width: 32px;
  }

  .theme-samples {
    grid-template-columns: 1fr;
  }

  .theme-samples li {
    font-size: 14px;
  }

  .theme-block {
    padding: 14px;
  }

  .theme-block .theme-head h3 {
    font-size: 20px;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-item[open] p {
    padding: 0 16px 16px 56px;
    font-size: 14px;
  }

  .glossary-table thead th,
  .glossary-table tbody th,
  .glossary-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .glossary-table tbody th {
    width: 110px;
  }

  .entry-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .entry-note {
    grid-column: 1;
    margin-top: 0;
  }

  .record-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .rank-item {
    gap: 12px;
    padding: 12px 8px;
  }

  .rank-media {
    width: 44px;
  }

  .rank-media img {
    width: 44px;
    height: 58px;
  }

  .rank-info h3 {
    font-size: 15px;
  }

  .rank-note {
    font-size: 12px;
  }

  .rank-item .rank-num {
    font-size: 22px;
    width: 36px;
  }

  .rank-exit .exit-box {
    padding: 14px 16px;
  }

  .exit-box {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .exit-arrow {
    margin-left: 0;
  }

  .error-panel {
    padding: 40px 24px;
  }

  .error-code {
    font-size: 56px;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-nav-list li a {
    font-size: 15px;
  }

  .page-description {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .footer-brand strong {
    font-size: 18px;
  }

  .footer-nav h3,
  .footer-extra h3 {
    font-size: 15px;
  }

  .related-links {
    gap: 10px 16px;
  }

  .related-links-label {
    width: 100%;
  }
}
