.page-home {
  --ph-pad: clamp(16px, 4vw, 56px);
  --ph-gap: clamp(56px, 8vw, 116px);
  --ph-line: rgba(134, 214, 174, 0.16);
  display: block;
  background: var(--ink);
  color: var(--score);
  overflow-x: hidden;
}

.page-home .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;
}

/* ---------- 页面上下文 ---------- */
.page-home .home-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px var(--ph-pad) 0;
  font-size: 13px;
  color: var(--smoke);
}

.page-home .home-context .label {
  color: var(--score);
}

.page-home .home-context-dot {
  width: 6px;
  height: 6px;
  background: var(--pitch);
  transform: rotate(45deg);
}

.page-home .home-context-season {
  font-family: var(--f-num);
  letter-spacing: 0.06em;
  color: var(--whistle);
}

/* ---------- 首屏框景 ---------- */
.page-home .hero {
  padding: clamp(20px, 3vw, 44px) var(--ph-pad) 0;
}

.page-home .hero-frame {
  position: relative;
  display: grid;
  gap: 0;
  border: 1px solid var(--ph-line);
  background:
    linear-gradient(160deg, rgba(16, 58, 92, 0.5) 0%, rgba(10, 12, 11, 0.96) 58%),
    repeating-linear-gradient(90deg, rgba(15, 122, 76, 0.075) 0 2px, transparent 2px 76px);
}

.page-home .hero-frame::before,
.page-home .hero-frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.page-home .hero-frame::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--pitch);
  border-left: 3px solid var(--pitch);
}

.page-home .hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid var(--whistle);
  border-bottom: 3px solid var(--whistle);
}

.page-home .hero-body {
  padding: clamp(22px, 4vw, 48px) clamp(18px, 3.4vw, 44px) clamp(26px, 4vw, 46px);
}

.page-home .hero-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-home .hero-pill {
  display: inline-block;
  padding: 5px 11px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--whistle);
  font-weight: 700;
}

.page-home .hero-top-num {
  font-family: var(--f-num);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: var(--score);
  font-variant-numeric: tabular-nums;
}

.page-home .hero-top-num span {
  font-size: 0.5em;
  color: var(--smoke);
  margin-left: 2px;
}

.page-home h1 {
  margin: 0 0 18px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(28px, 6.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.page-home .hero-lead {
  margin: 0 0 26px;
  max-width: 58ch;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.78;
  color: #c9d2cd;
}

.page-home .score-strip {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--ph-line);
}

.page-home .score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--ph-line);
  background: rgba(36, 48, 43, 0.34);
  transition: background var(--dur-2) var(--ease);
}

.page-home .score-row:hover,
.page-home .score-row:focus-within {
  background: rgba(15, 122, 76, 0.46);
}

.page-home .score-home {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--score);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .score-away {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 15px;
  color: #b9c3bd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .score-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-num);
  font-variant-numeric: tabular-nums;
  color: var(--score);
}

.page-home .score-val b {
  font-size: clamp(22px, 4.4vw, 32px);
  font-weight: 700;
  line-height: 1;
}

.page-home .score-val i {
  font-style: normal;
  font-size: 18px;
  color: var(--smoke);
}

.page-home .score-diff {
  justify-self: end;
  min-width: 38px;
  text-align: center;
  padding: 3px 0;
  font-family: var(--f-num);
  font-size: 13px;
  color: var(--mint);
  background: rgba(15, 122, 76, 0.5);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}

.page-home .score-row:hover .score-diff,
.page-home .score-row:focus-within .score-diff {
  opacity: 1;
  transform: translateX(0);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-media {
  position: relative;
  margin: 0;
  border-top: 1px solid var(--ph-line);
  overflow: hidden;
  background: #060807;
}

.page-home .hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) brightness(0.88);
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 12, 11, 0.05) 40%, rgba(10, 12, 11, 0.82) 100%);
}

.page-home .media-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #ccd5d0;
}

/* ---------- 赛季轮次刻度 ---------- */
.page-home .season {
  position: relative;
  margin-top: var(--ph-gap);
  padding: clamp(44px, 7vw, 92px) 0 clamp(38px, 6vw, 74px);
  background: linear-gradient(168deg, var(--ink) 0%, var(--canal) 100%);
  overflow: hidden;
}

.page-home .season-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .season-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: grayscale(0.4);
}

.page-home .season-inner {
  position: relative;
  z-index: 1;
  padding: 0 var(--ph-pad);
}

.page-home .season-head {
  max-width: 62ch;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.page-home .season-head .label {
  color: var(--mint);
}

.page-home .season h2 {
  margin: 12px 0 14px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(24px, 4.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.page-home .season-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: #bcc7c1;
}

.page-home .tick-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px 0;
  margin: 0 0 20px;
  padding: 0;
}

.page-home .tk {
  position: relative;
  height: 38px;
  border-left: 1px solid rgba(154, 165, 160, 0.28);
}

.page-home .tk::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--glass);
}

.page-home .tk--done::after {
  background: var(--pitch);
}

.page-home .tk--now::after {
  background: var(--whistle);
  height: 6px;
}

.page-home .tk--now {
  border-left-color: var(--whistle);
}

.page-home .tk--next::after {
  background: rgba(154, 165, 160, 0.3);
}

.page-home .tk-flag {
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
  font-family: var(--f-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--whistle);
  padding: 2px 6px;
  white-space: nowrap;
}

.page-home .season-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--smoke);
}

.page-home .lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-home .lg::before {
  content: "";
  width: 16px;
  height: 4px;
  background: var(--glass);
}

.page-home .lg--done::before {
  background: var(--pitch);
}

.page-home .lg--now::before {
  background: var(--whistle);
}

/* ---------- 联赛与友谊赛入口 ---------- */
.page-home .twin {
  padding: var(--ph-gap) var(--ph-pad) 0;
}

.page-home .twin-head {
  max-width: 54ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-home .twin-head .label {
  color: var(--pitch);
}

.page-home .twin h2 {
  margin: 12px 0 0;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(24px, 4.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.page-home .twin-grid {
  display: grid;
  gap: 4px;
}

.page-home .twin-card {
  display: block;
  padding: clamp(24px, 3.6vw, 44px);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}

.page-home .twin-card--league {
  background: var(--pitch);
  color: var(--score);
}

.page-home .twin-card--friendly {
  background: var(--canal);
  color: var(--score);
}

.page-home .twin-card--league:hover,
.page-home .twin-card--league:focus-visible {
  background: var(--score);
  color: var(--ink);
  border-color: var(--pitch);
}

.page-home .twin-card--friendly:hover,
.page-home .twin-card--friendly:focus-visible {
  background: var(--score);
  color: var(--ink);
  border-color: var(--canal);
}

.page-home .twin-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: rgba(10, 12, 11, 0.4);
  color: inherit;
}

.page-home .twin-card:hover .twin-tag,
.page-home .twin-card:focus-visible .twin-tag {
  background: rgba(10, 12, 11, 0.1);
}

.page-home .twin-card h3 {
  margin: 0 0 12px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(22px, 3.8vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.page-home .twin-card p {
  margin: 0 0 24px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.76;
  color: inherit;
  opacity: 0.88;
}

.page-home .twin-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.page-home .crowd-band {
  position: relative;
  margin: 4px 0 0;
  overflow: hidden;
}

.page-home .crowd-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.8);
}

.page-home .crowd-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 11, 0.86) 0%, rgba(10, 12, 11, 0.24) 62%);
  pointer-events: none;
}

.page-home .crowd-band .media-caption {
  left: var(--ph-pad);
  right: var(--ph-pad);
  bottom: 16px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(13px, 2.2vw, 18px);
  letter-spacing: 0.02em;
  color: var(--score);
  z-index: 2;
}

/* ---------- 数据速览 ---------- */
.page-home .stats {
  margin-top: var(--ph-gap);
  padding: clamp(40px, 6.4vw, 84px) var(--ph-pad);
  background: var(--score);
  color: var(--ink);
}

.page-home .stats-head {
  max-width: 60ch;
  margin-bottom: clamp(26px, 4.4vw, 46px);
}

.page-home .stats-head .label {
  color: var(--pitch);
}

.page-home .stats h2 {
  margin: 12px 0 14px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(24px, 4.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.page-home .stats-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: #3c4742;
}

.page-home .stats-grid {
  display: grid;
  gap: 26px;
}

.page-home .stats-list {
  display: grid;
  gap: 4px;
  align-content: start;
}

.page-home .stat-block {
  border: 1px solid rgba(10, 12, 11, 0.14);
  background: #fff;
}

.page-home .stat-block[open] {
  border-left: 4px solid var(--pitch);
}

.page-home .stat-block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  transition: background var(--dur-1) var(--ease);
}

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

.page-home .stat-block > summary:hover {
  background: rgba(15, 122, 76, 0.08);
}

.page-home .stat-hint {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #6c7772;
}

.page-home .rank-list {
  list-style: none;
  margin: 0;
  padding: 0 16px 12px;
}

.page-home .rank-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(10, 12, 11, 0.1);
  font-size: 14px;
}

.page-home .rank {
  font-family: var(--f-num);
  font-size: 13px;
  color: var(--smoke);
}

.page-home .who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #22282a;
}

.page-home .val {
  font-family: var(--f-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 17px;
  color: var(--canal);
}

.page-home .stats-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.page-home .stats-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05) brightness(0.86);
}

.page-home .stats-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(16, 58, 92, 0.3) 0%, rgba(10, 12, 11, 0.72) 100%);
  pointer-events: none;
}

.page-home .stats-media .media-caption {
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #d7dfda;
  z-index: 2;
}

/* ---------- 工具入口 ---------- */
.page-home .tools {
  padding: var(--ph-gap) var(--ph-pad) 0;
}

.page-home .tools-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4.6vw, 48px);
}

.page-home .tools-head .label {
  color: var(--whistle);
}

.page-home .tools h2 {
  margin: 12px 0 14px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(24px, 4.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.page-home .tools-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: #bcc7c1;
}

.page-home .tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--ph-line);
}

.page-home .tool-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas:
    "idx title"
    "idx desc"
    "idx link";
  gap: 6px 16px;
  padding: 20px 14px;
  border-bottom: 1px solid var(--ph-line);
  background: rgba(36, 48, 43, 0.22);
  transition: background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.page-home .tool-item:hover {
  background: rgba(15, 122, 76, 0.22);
  transform: translateX(4px);
}

.page-home .tool-idx {
  grid-area: idx;
  font-family: var(--f-num);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--whistle);
  font-variant-numeric: tabular-nums;
}

.page-home .tool-item h3 {
  grid-area: title;
  margin: 0;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--score);
}

.page-home .tool-item p {
  grid-area: desc;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #aeb8b2;
}

.page-home .tool-link {
  grid-area: link;
  justify-self: start;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 214, 174, 0.45);
  padding-bottom: 2px;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.page-home .tool-link:hover,
.page-home .tool-link:focus-visible {
  color: var(--whistle);
  border-color: var(--whistle);
}

/* ---------- 最近更新与署名 ---------- */
.page-home .latest {
  margin-top: var(--ph-gap);
  padding: clamp(34px, 5.4vw, 70px) var(--ph-pad) clamp(46px, 7vw, 92px);
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
  border-top: 1px solid var(--ph-line);
}

.page-home .latest-grid {
  display: grid;
  gap: 30px;
}

.page-home .latest .label {
  color: var(--red);
}

.page-home .latest h2 {
  margin: 12px 0 22px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

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

.page-home .latest-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--ph-line);
  align-items: center;
}

.page-home .latest-tag {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.page-home .latest-tag--league {
  background: var(--pitch);
  color: var(--score);
}

.page-home .latest-tag--friendly {
  background: var(--canal);
  color: var(--score);
}

.page-home .latest-tag--story {
  background: var(--whistle);
}

.page-home .latest-text {
  font-size: 15px;
  line-height: 1.6;
  color: #d2dad5;
}

.page-home .latest-time {
  grid-column: 2;
  font-family: var(--f-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}

.page-home .byline {
  align-self: start;
  padding: clamp(22px, 3vw, 32px);
  background: rgba(36, 48, 43, 0.5);
  border-left: 4px solid var(--pitch);
  backdrop-filter: blur(6px);
}

.page-home .byline-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--smoke);
}

.page-home .byline-name {
  margin: 0 0 14px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(19px, 3vw, 24px);
  color: var(--score);
}

.page-home .byline-note {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.76;
  color: #b6c0ba;
}

.page-home .byline-meta {
  margin: 0 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ph-line);
  font-family: var(--f-num);
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 700;
  color: var(--whistle);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.page-home .byline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.page-home .byline-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 214, 174, 0.4);
  padding-bottom: 2px;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.page-home .byline-links a:hover,
.page-home .byline-links a:focus-visible {
  color: var(--whistle);
  border-color: var(--whistle);
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 720px) {
  .page-home .tick-track {
    grid-template-columns: repeat(15, minmax(0, 1fr));
  }

  .page-home .twin-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .page-home .stats-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
  }

  .page-home .tool-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "idx title link"
      "idx desc link";
    align-items: start;
    padding: 24px 18px;
  }

  .page-home .tool-link {
    align-self: center;
    margin-top: 0;
  }

  .page-home .latest-list li {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .page-home .latest-time {
    grid-column: 3;
  }
}

@media (min-width: 1000px) {
  .page-home .hero-frame {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .page-home .hero-media {
    border-top: 0;
    border-left: 1px solid var(--ph-line);
  }

  .page-home .hero-media img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 460px;
  }

  .page-home .hero-body {
    padding: clamp(36px, 3.4vw, 56px) clamp(30px, 3vw, 54px);
  }

  .page-home .crowd-band img {
    aspect-ratio: 21 / 6;
  }

  .page-home .stats-media img {
    aspect-ratio: 1 / 1;
    min-height: 380px;
  }

  .page-home .latest-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 46px;
  }
}
</main>
