.page-home {
  --tl-rule: rgba(22, 35, 58, 0.14);
  --tl-soft: #55657c;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 1.25rem clamp(2rem, 5vw, 3.5rem);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(63, 208, 212, 0.12), transparent 62%),
    radial-gradient(ellipse at 105% 105%, rgba(255, 122, 26, 0.12), transparent 58%);
}

.page-home .hero-wrap {
  position: relative;
  z-index: 1;
}

.page-home .hero-coord {
  margin: 0.5rem 0 0;
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.page-home .hero-head {
  max-width: 42rem;
  padding-block: clamp(1.5rem, 3vw, 2.4rem) clamp(1.25rem, 2.5vw, 1.9rem);
}

.page-home .hero-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.32rem 0.7rem;
  border: 2px solid var(--line-cy);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: rgba(63, 208, 212, 0.08);
}

.page-home .hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--snow);
}

.page-home .hero-lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 拼贴 ---------- */
.page-home .collage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.page-home .collage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 11rem;
  padding: 1rem;
  overflow: hidden;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--board);
  color: var(--mist);
}

.page-home .collage-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .collage-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  height: 100%;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.page-home .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-home .collage-card--focus {
  padding: 0;
  min-height: 22rem;
  color: var(--snow);
}

.page-home .collage-card--focus::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 88% 6%, rgba(255, 122, 26, 0.22), transparent 52%),
    linear-gradient(196deg, rgba(11, 27, 51, 0.22) 0%, rgba(7, 18, 31, 0.94) 76%);
}

.page-home .focus-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--snow);
}

.page-home .focus-vs {
  display: inline-block;
  padding-inline: 0.45em;
  font-family: var(--font-mono);
  font-size: 0.42em;
  vertical-align: 0.22em;
  color: var(--orange);
}

.page-home .focus-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  margin: 0;
  padding: 0.75rem 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.page-home .focus-facts .fact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-home .focus-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--mist-dim);
}

.page-home .focus-facts dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.page-home .focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.page-home .focus-hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--mist-dim);
}

.page-home .cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.page-home .cc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--snow);
}

.page-home .mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-home .mini-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--mist);
}

.page-home .mini-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .mini-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .mini-time {
  color: var(--cyan);
  font-size: 0.82rem;
}

.page-home .collage-card--injure {
  color: var(--snow);
  justify-content: flex-end;
}

.page-home .collage-card--injure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 18, 31, 0.55) 0%, rgba(7, 18, 31, 0.93) 72%);
}

.page-home .collage-card--injure .collage-inner {
  justify-content: flex-start;
  gap: 0.35rem;
}

.page-home .injure-num {
  margin: 0.15rem 0 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.page-home .injure-label {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .link-more {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid var(--line-cy);
  padding-bottom: 1px;
  width: fit-content;
}

.page-home .link-more:hover,
.page-home .link-more:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.page-home .collage-card--enter {
  justify-content: space-between;
  gap: 0.6rem;
  background: var(--orange);
  color: #12203a;
  border-color: var(--edge);
}

.page-home .collage-card--enter .cc-title {
  color: #10203a;
}

.page-home .collage-card--enter p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #1d2c44;
}

.page-home .collage-card--enter .btn {
  align-self: flex-start;
}

/* ---------- 日历双栏 ---------- */
.page-home .calendar {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.page-home .board-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

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

.page-home .tl-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0.35rem;
  border-top: 2px solid var(--tl-rule);
  transition: background-color 200ms var(--ease);
}

.page-home .tl-item:first-child {
  border-top: 0;
}

.page-home .tl-item:hover {
  background: rgba(63, 208, 212, 0.1);
}

.page-home .tl-date {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .tl-dow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--tl-soft);
}

.page-home .tl-body {
  min-width: 0;
}

.page-home .tl-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.page-home .tl-match {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .tl-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--tl-soft);
}

.page-home .tl-foot {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 2px solid var(--tl-rule);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--tl-soft);
}

/* ---------- 右侧窄条 ---------- */
.page-home .rail-sticky {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--night);
}

.page-home .rail-media {
  margin: 0;
  line-height: 0;
}

.page-home .rail-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .rail-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 0.95rem 1.15rem;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(63, 208, 212, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(63, 208, 212, 0.14) 0%, rgba(18, 41, 74, 0.98) 42%, rgba(11, 27, 51, 1) 100%);
  color: var(--mist);
}

.page-home .rail-code {
  margin: 0;
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.page-home .rail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--snow);
}

.page-home .rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.page-home .rail-list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: baseline;
  font-size: 0.84rem;
  line-height: 1.6;
}

.page-home .rail-k {
  font-size: 0.7rem;
  color: var(--cyan);
}

.page-home .rail-note {
  margin: 0.2rem 0 0;
  padding-left: 0.7rem;
  border-left: 2px solid var(--line-cy);
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--mist-dim);
}

/* ---------- 权益与规则 ---------- */
.page-home .rights {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.page-home .duo {
  align-items: stretch;
}

.page-home .duo-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.page-home .duo-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--snow);
}

.page-home .duo-tail {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--mist-dim);
}

.page-home .duo-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- 联赛线图例 ---------- */
.page-home .lines {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.page-home .legend-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.page-home .legend-media {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.page-home .legend-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
}

.page-home .legend-body {
  min-width: 0;
}

.page-home .legend-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.page-home .legend-item {
  display: grid;
  grid-template-columns: 0.85rem auto minmax(0, 1fr);
  grid-template-areas:
    "sw chip name"
    "sw meta meta";
  align-items: center;
  gap: 0.15rem 0.6rem;
  padding: 0.85rem 0.4rem;
  border-bottom: 2px solid var(--tl-rule);
  transition: background-color 200ms var(--ease);
}

.page-home .legend-item:first-child {
  border-top: 2px solid var(--tl-rule);
}

.page-home .legend-item:hover {
  background: rgba(232, 179, 58, 0.18);
}

.page-home .legend-swatch {
  grid-area: sw;
  align-self: start;
  margin-top: 0.42rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--edge);
  border-radius: 2px;
}

.page-home .legend-swatch--l1 { background: var(--cyan); }
.page-home .legend-swatch--l2 { background: var(--yellow); }
.page-home .legend-swatch--l3 { background: var(--red); }
.page-home .legend-swatch--l4 { background: var(--green); }

.page-home .legend-item .code-chip {
  grid-area: chip;
}

.page-home .legend-name {
  grid-area: name;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .legend-meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--tl-soft);
}

.page-home .legend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin-top: 1.25rem;
}

/* ---------- 桌面 ---------- */
@media (min-width: 860px) {
  .page-home .collage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(11rem, auto);
    gap: 1rem;
  }

  .page-home .collage-card--focus {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .page-home .collage-card--today {
    grid-column: 3 / 5;
    grid-row: 1;
  }

  .page-home .collage-card--injure {
    grid-column: 3;
    grid-row: 2;
  }

  .page-home .collage-card--enter {
    grid-column: 4;
    grid-row: 2;
  }
}

@media (min-width: 900px) {
  .page-home .board-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 1.75rem;
    align-items: start;
  }

  .page-home .rail-sticky {
    position: sticky;
    top: 5.5rem;
  }

  .page-home .legend-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.75rem;
  }
}

@media (max-width: 480px) {
  .page-home .collage-card,
  .page-home .duo-card {
    box-shadow: var(--shadow-sm);
  }

  .page-home .tl-item {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .tl-item,
  .page-home .legend-item {
    transition: none;
  }
}
