.page-home {
  --home-radius: 18px;
  --home-pad: 1.25rem;
  padding-bottom: 3rem;
  overflow-x: clip;
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* ---------- 首屏封面 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.45;
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 85% at 18% 0%, rgba(232, 180, 74, 0.18), transparent 58%),
    radial-gradient(90% 70% at 88% 14%, rgba(35, 192, 138, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(5, 11, 28, 0.55) 0%, rgba(5, 11, 28, 0.9) 68%, var(--ink-950) 100%);
}

.page-home .hero-inner {
  position: relative;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--gold-500);
  text-transform: uppercase;
}

.page-home .kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta-500);
  box-shadow: 0 0 0 4px rgba(255, 61, 139, 0.16);
}

.page-home .hero h1 {
  margin: 1.1rem 0 0;
  max-width: 16ch;
}

.page-home .hero-lead {
  max-width: 44ch;
  margin: 1.35rem 0 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.page-home .hero-gates {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.page-home .gate {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "idx title"
    "idx desc";
  column-gap: 0.9rem;
  row-gap: 0.25rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: var(--glass);
  color: var(--text-100);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
    background-color 0.35s var(--ease);
}

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

.page-home .gate-idx {
  grid-area: idx;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold-500);
  padding-top: 0.25rem;
}

.page-home .gate-title {
  grid-area: title;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.page-home .gate-desc {
  grid-area: desc;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-home .hero-export {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
}

.page-home .hero-export a {
  color: var(--gold-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 180, 74, 0.45);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .hero-vnote {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ---------- 通用区块 ---------- */
.page-home .board,
.page-home .rank,
.page-home .wire,
.page-home .rules,
.page-home .help {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.page-home .sec-num {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold-500);
}

.page-home .section-head-title {
  margin: 0;
  font-size: clamp(1.4rem, 5.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
  max-width: 22ch;
}

.page-home .section-lead {
  margin: 0.9rem 0 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ---------- 今夜看板 ---------- */
.page-home .board-grid {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.page-home .board-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: 16px;
  min-width: 0;
}

.page-home .board-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.page-home .board-num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-200);
  letter-spacing: -0.01em;
}

.page-home .board-num em {
  font-style: normal;
  font-size: 0.5em;
  margin-left: 0.1em;
  color: var(--gold-500);
}

.page-home .board-label {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- 榜单速览 ---------- */
.page-home .rank-split {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.page-home .rank-figure {
  margin: 0;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--ink-700);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-950));
}

.page-home .rank-figure .figure-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.page-home .rank-figure .figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .rank-tabs {
  min-width: 0;
}

.page-home .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.page-home .tab {
  appearance: none;
  border: 1px solid var(--ink-700);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.page-home .tab[aria-selected="true"] {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--ink-950);
  font-weight: 700;
}

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

.page-home .tab-panel {
  padding: 1.15rem 1.15rem 1.25rem;
  border-left: 2px solid var(--gold-500);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 72%);
}

.page-home .tab-panel[aria-hidden="true"] {
  display: none;
}

.page-home .tab-panel h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.page-home .tab-panel p {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-home .tab-panel ul {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-home .tab-panel li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-100);
}

.page-home .tab-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--jade-500);
}

/* ---------- 资讯时间轴 ---------- */
.page-home .wire-split {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.page-home .wire-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.35rem;
  border-left: 1px solid var(--ink-700);
  display: grid;
  gap: 1.35rem;
}

.page-home .wire-item {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.35rem;
}

.page-home .wire-item::before {
  content: "";
  position: absolute;
  left: -1.62rem;
  top: 0.42rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-950);
  border: 2px solid var(--gold-500);
}

.page-home .wire-item--now::before {
  border-color: var(--magenta-500);
  box-shadow: 0 0 0 4px rgba(255, 61, 139, 0.16);
}

.page-home .wire-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-500);
}

.page-home .wire-link {
  color: var(--text-100);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.7;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

.page-home .wire-figure {
  margin: 0;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--ink-700);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-950));
}

.page-home .wire-figure .figure-media {
  aspect-ratio: 12 / 7;
  overflow: hidden;
}

.page-home .wire-figure .figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .figure-caption {
  margin: 0;
  padding: 0.85rem 1.1rem 0.95rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- 规则怎么读 ---------- */
.page-home .rule-track {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.page-home .rule-step {
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--ink-700);
  border-radius: 16px;
  background: var(--ink-800);
}

.page-home .rule-no {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--jade-500);
}

.page-home .rule-no::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--jade-500);
}

.page-home .rule-step h3 {
  margin: 0.8rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.page-home .rule-step p {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-home .rules-cta {
  margin-top: 1.75rem;
}

/* ---------- 资料导出与提问入口 ---------- */
.page-home .help-split {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.page-home .help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.35rem 1.2rem 1.45rem;
  border-radius: var(--home-radius);
}

.page-home .help-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
}

.page-home .help-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.page-home .help-link {
  margin-top: auto;
  font-size: 0.86rem;
  color: var(--gold-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 180, 74, 0.4);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .help-foot {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.page-home .help-figure {
  margin: 0;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--ink-700);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-950));
}

.page-home .help-figure .figure-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.page-home .help-figure .figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .help-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-100);
}

.page-home .help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* ---------- 渐进显示 ---------- */
.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 桌面端 ---------- */
@media (min-width: 900px) {
  .page-home .breadcrumb {
    padding-top: 2rem;
  }

  .page-home .hero {
    padding-top: 2rem;
    padding-bottom: 6rem;
  }

  .page-home .hero-kicker {
    margin-top: 4rem;
  }

  .page-home .hero-lead {
    font-size: 1.08rem;
  }

  .page-home .hero-gates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding-right: 2rem;
  }

  .page-home .gate:nth-child(2) {
    transform: translateY(20px);
  }

  .page-home .gate:hover {
    border-color: var(--gold-500);
    background: rgba(232, 180, 74, 0.08);
    transform: translateY(-3px);
  }

  .page-home .gate:nth-child(2):hover {
    transform: translateY(17px);
  }

  .page-home .hero-vnote {
    display: block;
    top: 4rem;
  }

  .page-home .board-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
  }

  .page-home .board-cell:nth-child(even) {
    transform: translateY(18px);
  }

  .page-home .rank-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
  }

  .page-home .rank-figure {
    margin-top: 2.75rem;
  }

  .page-home .wire-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
  }

  .page-home .wire-figure {
    margin-top: 1.5rem;
  }

  .page-home .rule-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
  }

  .page-home .rule-step:nth-child(2) {
    transform: translateY(22px);
  }

  .page-home .help-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .page-home .help-card--b {
    margin-top: 2.5rem;
  }

  .page-home .help-foot {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2.75rem;
    align-items: center;
    margin-top: 3rem;
  }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-home .gate,
  .page-home .tab,
  .page-home .wire-link,
  .page-home .hero-export a,
  .page-home .help-link {
    transition: none;
  }
}
</main>
