.page-home {
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
}

.page-home .btn,
.page-home .chip,
.page-home .slot,
.page-home .entry,
.page-home .rule-link {
  text-decoration: none;
}

.page-home :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(112px, 14vw, 176px) 0 clamp(52px, 7vw, 92px);
  overflow: hidden;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 12% 4%, rgba(31, 54, 82, 0.9), transparent 62%),
    linear-gradient(150deg, var(--ink-deep) 0%, var(--ink) 46%, #17304a 100%);
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: -12% -8% -12% -8%;
  background: linear-gradient(158deg, rgba(184, 57, 43, 0.72), rgba(138, 42, 32, 0.32) 58%, rgba(14, 27, 44, 0) 78%);
  clip-path: polygon(66% -10%, 118% -10%, 118% 118%, 32% 118%);
  filter: drop-shadow(-2px 0 0 rgba(217, 180, 74, 0.75));
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: grid;
  gap: clamp(30px, 5vw, 56px);
}

.page-home .hero__crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
  margin: 0 0 18px;
}

.page-home .hero__eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.08;
  font-size: clamp(36px, 8.4vw, 78px);
  color: var(--paper);
}

.page-home .hero__desc {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.85;
  color: #cdd8e4;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(217, 180, 74, 0.28);
}

.page-home .stat dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
  margin-bottom: 6px;
}

.page-home .stat dd {
  margin: 0;
  font-size: 13px;
  color: var(--paper);
}

.page-home .stat__num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--gold);
  margin-right: 4px;
}

/* 首屏右侧错位面板 */
.page-home .hero__panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(217, 180, 74, 0.38);
  aspect-ratio: 5 / 4;
  box-shadow: 0 26px 60px rgba(4, 12, 22, 0.55);
  transform: translateY(0);
}

.page-home .hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.page-home .hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.15) 0%, rgba(14, 27, 44, 0.82) 100%);
}

.page-home .ver {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  max-width: calc(100% - 32px);
}

.page-home .ver__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(217, 180, 74, 0.16);
  border: 1px solid rgba(217, 180, 74, 0.6);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-home .ver__pill::-webkit-details-marker {
  display: none;
}

.page-home .ver__pill:hover {
  background: rgba(217, 180, 74, 0.28);
  transform: translateY(-2px);
}

.page-home .ver__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--celadon);
  box-shadow: 0 0 0 3px rgba(95, 145, 130, 0.24);
}

.page-home .ver__panel {
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(8, 19, 32, 0.94);
  border: 1px solid rgba(217, 180, 74, 0.3);
}

.page-home .ver__panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #cdd8e4;
}

.page-home .ver__title {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-home .ver__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .hero__caption {
  position: absolute;
  right: 16px;
  bottom: 20px;
  z-index: 3;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 通用段落 ---------- */
.page-home .band {
  padding: clamp(52px, 8vw, 100px) 0;
}

.page-home .band--paper {
  background: var(--paper);
}

.page-home .band--ash {
  background: var(--paper-2);
}

.page-home .band--ink {
  background: var(--ink);
  color: var(--paper);
}

.page-home .home-head {
  max-width: 46rem;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-home .home-head__index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cinnabar);
}

.page-home .home-head__title {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.28;
  font-size: clamp(25px, 4.2vw, 38px);
  color: var(--text);
}

.page-home .home-head__rule {
  display: block;
  width: 68px;
  height: 2px;
  margin: 18px 0 16px;
  background: linear-gradient(90deg, var(--gold), rgba(217, 180, 74, 0));
}

.page-home .home-head__lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-head--light .home-head__index {
  color: var(--gold);
}

.page-home .home-head--light .home-head__title {
  color: var(--paper);
}

.page-home .home-head--light .home-head__lead {
  color: #b9c7d6;
}

/* ---------- 01 栏目对照 ---------- */
.page-home .cats {
  position: relative;
  overflow: hidden;
}

.page-home .cats__tex {
  position: absolute;
  top: -6%;
  right: -8%;
  width: min(560px, 62%);
  height: auto;
  opacity: 0.1;
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.page-home .cats .page-shell {
  position: relative;
  z-index: 1;
}

.page-home .cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .cat {
  background: var(--paper-2);
  border: 1px solid rgba(14, 27, 44, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.page-home .cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(14, 27, 44, 0.16);
}

.page-home .cat__num {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-home .cat__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.page-home .cat__desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .cat__slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .slot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-home .slot__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
  transition: color 0.2s ease;
}

.page-home .slot:hover,
.page-home .slot:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.page-home .slot:hover .slot__code,
.page-home .slot:focus-visible .slot__code {
  color: var(--gold);
}

/* ---------- 02 榜单预览 ---------- */
.page-home .list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .grp {
  background: var(--paper);
  border: 1px solid rgba(14, 27, 44, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 16px 8px;
}

.page-home .grp__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(14, 27, 44, 0.1);
  margin-bottom: 6px;
}

.page-home .grp__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.page-home .chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.page-home .chip--gold {
  color: var(--ink);
  background: rgba(217, 180, 74, 0.55);
}

.page-home .entry {
  display: block;
  padding: 12px 4px;
  border-top: 1px solid rgba(14, 27, 44, 0.07);
  color: var(--text);
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-home .entry:first-of-type {
  border-top: 0;
}

.page-home .entry:hover {
  transform: translateY(-2px);
}

.page-home .entry--lead {
  padding-top: 4px;
}

.page-home .entry__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.page-home .entry__code {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cinnabar);
}

.page-home .entry__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

.page-home .entry__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.page-home .lists__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 26px;
}

.page-home .lists__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 03 规则与资料 ---------- */
.page-home .rules__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .rules__sub {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-home .rule-list,
.page-home .dl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .rule-link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--ink-2);
  border: 1px solid rgba(217, 180, 74, 0.18);
  color: var(--paper);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.page-home .rule-link:hover,
.page-home .rule-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(217, 180, 74, 0.6);
  background: #23405f;
}

.page-home .rule-link__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 2px;
}

.page-home .rule-link__body {
  display: block;
}

.page-home .rule-link__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.page-home .rule-link__desc {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .dl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 13px 4px;
  border-bottom: 1px dashed rgba(217, 180, 74, 0.28);
}

.page-home .dl__name {
  font-size: 14.5px;
  color: var(--paper);
}

.page-home .dl__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-home .rules__note {
  margin: 18px 0 20px;
  font-size: 13px;
  line-height: 1.8;
  color: #b9c7d6;
}

/* ---------- 04 收藏路径 ---------- */
.page-home .route {
  position: relative;
  overflow: hidden;
}

.page-home .route .page-shell {
  position: relative;
  z-index: 1;
}

.page-home .route__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 4px 0 8px;
}

.page-home .route__line {
  display: none;
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 40px;
  color: rgba(14, 27, 44, 0.22);
}

.page-home .node {
  background: var(--paper-2);
  border: 1px solid rgba(14, 27, 44, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.page-home .node__step {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.page-home .node__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.page-home .node__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .paths {
  margin-top: 26px;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: rgba(230, 225, 213, 0.6);
  border-left: 3px solid var(--cinnabar);
}

.page-home .paths__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cinnabar);
}

.page-home .paths__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.page-home .path {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  word-break: break-word;
  -webkit-user-select: all;
  user-select: all;
}

.page-home .path__code {
  display: inline-block;
  min-width: 4.6em;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.page-home .paths__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .route__bg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 24px;
  border-radius: var(--radius-lg);
  opacity: 0.5;
}

/* ---------- 05 联系 ---------- */
.page-home .reach__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 22px 50px rgba(14, 27, 44, 0.22);
}

.page-home .reach__title {
  margin: 10px 0 0;
  font-size: clamp(23px, 3.6vw, 32px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--paper);
}

.page-home .reach__lead {
  margin: 16px 0 22px;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.85;
  color: #b9c7d6;
}

.page-home .reach__btn {
  color: var(--gold);
  border-color: rgba(217, 180, 74, 0.6);
}

.page-home .reach__channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}

.page-home .channel {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--ink-2);
  border: 1px solid rgba(217, 180, 74, 0.2);
}

.page-home .channel dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  margin-bottom: 8px;
}

.page-home .channel dd {
  margin: 0;
}

.page-home .channel__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  word-break: break-all;
}

.page-home .channel__hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--mist);
}

/* ---------- 媒体查询 ---------- */
@media (min-width: 600px) {
  .page-home .hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .reach__channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
  }

  .page-home .route__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .page-home .route__line {
    display: block;
  }

  .page-home .rules__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
  }

  .page-home .reach__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 34px;
  }
}

@media (min-width: 1024px) {
  .page-home .cat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home .cat {
    padding: 16px 12px 12px;
  }

  .page-home .cat__title {
    font-size: 16px;
  }

  .page-home .slot {
    padding: 7px 8px;
    font-size: 13px;
  }

  .page-home .list-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .cat,
  .page-home .slot,
  .page-home .entry,
  .page-home .rule-link,
  .page-home .ver__pill {
    transition: none;
  }

  .page-home .cat:hover,
  .page-home .slot:hover,
  .page-home .slot:focus-visible,
  .page-home .entry:hover,
  .page-home .rule-link:hover,
  .page-home .rule-link:focus-visible,
  .page-home .ver__pill:hover {
    transform: none;
  }
}
