.page-home {
  --home-gap: clamp(14px, 2.4vw, 26px);
  --home-pad: clamp(18px, 2.6vw, 30px);
  --home-rule: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
}

.page-home [hidden] {
  display: none !important;
}

.page-home .crumb-bar {
  padding-top: clamp(14px, 2.4vw, 26px);
}

/* ---------- 首屏海报层 ---------- */

.page-home .stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(22px, 4vw, 46px) clamp(30px, 5vw, 64px);
  border-bottom: var(--home-rule);
}

.page-home .stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(46, 74, 64, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 74, 64, 0.45) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.3) 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.3) 68%, transparent 100%);
}

.page-home .stage__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-home .stage__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-home .stage__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 88% at 16% 0%, rgba(198, 255, 61, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(7, 28, 22, 0.5) 0%, rgba(7, 28, 22, 0.92) 62%, var(--ink) 100%);
}

.page-home .stage__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.page-home .stage__title {
  margin: clamp(10px, 1.6vw, 18px) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6.2vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--paper);
  max-width: 15em;
}

.page-home .stage__lede {
  margin: clamp(12px, 1.8vw, 18px) 0 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: var(--muted);
}

.page-home .stage__grid {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(22px, 3.4vw, 42px);
}

.page-home .stage__col {
  display: grid;
  gap: var(--home-gap);
  align-content: start;
  min-width: 0;
}

@media (min-width: 920px) {
  .page-home .stage__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    align-items: start;
  }
}

/* ---------- 面板 ---------- */

.page-home .panel {
  position: relative;
  min-width: 0;
  padding: var(--home-pad);
  background: linear-gradient(180deg, rgba(14, 42, 34, 0.72), rgba(17, 22, 19, 0.94));
  border: var(--home-rule);
  border-radius: 2px;
}

.page-home .panel--search {
  border-color: rgba(198, 255, 61, 0.32);
  background: linear-gradient(180deg, rgba(198, 255, 61, 0.07), rgba(17, 22, 19, 0.94));
}

.page-home .panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  padding-bottom: 12px;
  border-bottom: var(--home-rule);
  margin-bottom: 10px;
}

.page-home .panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .panel__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.page-home .panel__body {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .panel .btn {
  margin-top: 14px;
}

/* ---------- 联赛层级树 ---------- */

.page-home .tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .tree > li {
  border-bottom: var(--home-rule);
}

.page-home .tree > li:last-child {
  border-bottom: 0;
}

.page-home .tree details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  transition: color 0.16s ease;
}

.page-home .tree details > summary::-webkit-details-marker {
  display: none;
}

.page-home .tree details > summary:hover,
.page-home .tree details > summary:focus-visible {
  color: var(--lime);
  outline: none;
}

.page-home .tree details > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lime);
}

.page-home .tree details[open] > summary::after {
  content: "−";
}

.page-home .tree__count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .tree__list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 6px;
  border-left: 1px solid var(--line);
}

.page-home .tree__link {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.page-home .tree__link:hover,
.page-home .tree__link:focus-visible {
  background: var(--panel-2);
  color: var(--paper);
  box-shadow: inset 2px 0 0 var(--lime);
  outline: none;
}

/* ---------- 检索提示 ---------- */

.page-home .search-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--panel-2);
  border: 1px solid rgba(198, 255, 61, 0.22);
  border-radius: 2px;
}

.page-home .search-hint__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.14);
}

.page-home .search-hint__text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

/* ---------- 轮次时间轴 ---------- */

.page-home .timeline {
  position: relative;
  list-style: none;
  margin: 14px 0 0;
  padding: 0 0 0 22px;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.page-home .timeline__item {
  position: relative;
  padding: 0 0 16px;
  line-height: 1.5;
}

.page-home .timeline__item:last-child {
  padding-bottom: 0;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .timeline__item[data-state="current"]::before {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.16);
}

.page-home .timeline__round {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .timeline__item[data-state="current"] .timeline__round {
  color: var(--lime);
}

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

.page-home .timeline__note {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 横向赛事带 ---------- */

.page-home .band {
  padding-block: clamp(32px, 5vw, 66px);
  border-bottom: var(--home-rule);
}

.page-home .band .section__head {
  margin-bottom: clamp(14px, 2.2vw, 20px);
}

.page-home .band__controls {
  margin-top: clamp(12px, 2vw, 18px);
}

.page-home .band__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(264px, 80vw);
  gap: var(--home-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  margin-top: clamp(14px, 2.2vw, 20px);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-home .band__rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .band__rail::-webkit-scrollbar-track {
  background: rgba(46, 74, 64, 0.35);
}

.page-home .band__rail::-webkit-scrollbar-thumb {
  background: var(--line);
}

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

@media (min-width: 680px) {
  .page-home .band__rail {
    grid-auto-columns: minmax(292px, 336px);
  }
}

.page-home .match-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
  background: var(--panel);
  border: var(--home-rule);
  border-left: 3px solid var(--line);
  border-radius: 2px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.page-home .match-card:hover {
  background: var(--panel-2);
}

.page-home .match-card[data-tags~="football"] {
  border-left-color: var(--tag-blue);
}

.page-home .match-card[data-tags~="basketball"] {
  border-left-color: var(--tag-purple);
}

.page-home .match-card[data-tags~="volleyball"] {
  border-left-color: var(--tag-clay);
}

.page-home .match-card[data-tags~="esports"] {
  border-left-color: var(--tag-purple);
}

.page-home .match-card__shot {
  position: relative;
  overflow: hidden;
}

.page-home .match-card__shot img {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  opacity: 0.6;
}

.page-home .match-card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 28, 22, 0) 20%, var(--panel) 100%);
}

.page-home .match-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: clamp(14px, 2vw, 18px);
}

.page-home .match-card__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--lime);
}

.page-home .match-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--paper);
}

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

.page-home .match-card__meta {
  margin: 0;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  opacity: 0.88;
}

.page-home .match-card__foot {
  padding: 0 clamp(14px, 2vw, 18px) clamp(14px, 2vw, 18px);
}

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

/* ---------- 多联赛工作台 ---------- */

.page-home .desk {
  padding-block: clamp(34px, 5vw, 70px);
  border-bottom: var(--home-rule);
  background: radial-gradient(88% 72% at 90% 10%, rgba(198, 255, 61, 0.08), transparent 62%);
}

.page-home .desk__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .desk__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }
}

.page-home .desk__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.page-home .desk__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .desk__text {
  margin: 0 0 14px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .desk__stats {
  margin: clamp(18px, 2.6vw, 26px) 0 clamp(18px, 2.6vw, 24px);
}

.page-home .desk .btn {
  margin-top: 4px;
}

/* ---------- 图注容器 ---------- */

.page-home .figure {
  margin: 0;
}

.page-home .figure__frame {
  position: relative;
  overflow: hidden;
  border: var(--home-rule);
  border-radius: 2px;
  background: var(--panel-2);
}

.page-home .figure__frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(46, 74, 64, 0.5);
  pointer-events: none;
}

.page-home .figure__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .figure__caption {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 维护日志 ---------- */

.page-home .logs {
  padding-block: clamp(34px, 5vw, 70px);
  border-bottom: var(--home-rule);
}

.page-home .log-list {
  list-style: none;
  margin: clamp(16px, 2.4vw, 24px) 0 clamp(20px, 3vw, 30px);
  padding: 0;
  border-top: var(--home-rule);
}

.page-home .log-row {
  display: grid;
  gap: 10px;
  align-items: start;
  padding: clamp(16px, 2.2vw, 22px) 0;
  border-bottom: var(--home-rule);
}

@media (min-width: 780px) {
  .page-home .log-row {
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 8px 24px;
    align-items: start;
  }
}

.page-home .log-row__when {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lime);
  padding-top: 3px;
}

.page-home .log-row__main {
  min-width: 0;
}

.page-home .log-row__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
}

.page-home .log-row__title a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.page-home .log-row__title a:hover,
.page-home .log-row__title a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
  outline: none;
}

.page-home .log-row__text {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .log-row__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  opacity: 0.9;
}

.page-home .log-row .tag {
  justify-self: start;
}

/* ---------- 安卓检索 ---------- */

.page-home .scan {
  padding-block: clamp(34px, 5vw, 70px);
  border-bottom: var(--home-rule);
}

.page-home .scan__grid {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .scan__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.page-home .scan__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.page-home .scan__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(23px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .scan__text {
  margin: 0 0 14px;
  max-width: 50ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .scan__text--small {
  font-size: 13.5px;
  color: var(--muted);
  opacity: 0.92;
}

.page-home .scan__steps {
  list-style: none;
  margin: 18px 0;
  padding: 1px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: var(--home-rule);
  border-radius: 2px;
  overflow: hidden;
}

.page-home .scan__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel);
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
}

.page-home .scan__step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

@media (min-width: 560px) {
  .page-home .scan__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .scan__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- 结尾 ---------- */

.page-home .closing {
  padding-block: clamp(32px, 5vw, 62px);
  border-bottom: var(--home-rule);
  background:
    linear-gradient(180deg, rgba(198, 255, 61, 0.06), transparent 72%),
    var(--panel);
}

.page-home .closing__inner {
  display: grid;
  gap: 22px;
}

@media (min-width: 820px) {
  .page-home .closing__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 38px;
  }
}

.page-home .closing__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page-home .closing__text {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 无障碍与动效 ---------- */

.page-home a:focus-visible,
.page-home button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
