/* ===== 首页专属样式 · 作用域 .page-home ===== */

.page-home {
  --home-grid-line: rgba(53, 224, 192, 0.08);
  --home-shadow: 0 24px 48px -32px rgba(5, 13, 12, 0.7);
}

/* ---------- 斜向网格背景 ---------- */
.page-home .section {
  position: relative;
}
.page-home .home-hero::before,
.page-home .home-refresh::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(30deg, var(--home-grid-line) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(-30deg, var(--home-grid-line) 0 1px, transparent 1px 40px);
  z-index: 0;
}
.page-home .home-hero .container,
.page-home .home-refresh .container {
  position: relative;
  z-index: 1;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding-top: 32px;
  padding-bottom: 64px;
}
.page-home .home-hero .breadcrumb {
  margin-bottom: 24px;
}
.page-home .home-hero h1 {
  max-width: 22ch;
  margin: 8px 0 20px;
}
.page-home .home-hero .lede {
  max-width: 60ch;
  margin-bottom: 40px;
}

.page-home .hero-side-note {
  display: none;
}
@media (min-width: 1280px) {
  .page-home .hero-side-note {
    display: block;
    position: absolute;
    top: 180px;
    right: 0;
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    letter-spacing: 0.24em;
    color: var(--steel);
    opacity: 0.75;
  }
}

/* 拼贴面板 */
.page-home .hero-collage {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  grid-template-areas:
    "lead"
    "help"
    "stats";
}

@media (min-width: 900px) {
  .page-home .hero-collage {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "lead help"
      "lead stats";
  }
}

.page-home .collage-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.page-home .collage-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

.page-home .collage-panel--lead {
  grid-area: lead;
  min-height: 440px;
  justify-content: flex-end;
  padding: 0;
}
.page-home .collage-panel--help { grid-area: help; background: var(--indigo); border-color: transparent; }
.page-home .collage-panel--help::after { background: var(--white); }
.page-home .collage-panel--stats { grid-area: stats; background: var(--ink-3); }

.page-home .collage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.72) contrast(1.05);
}
.page-home .collage-panel--lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 31, 27, 0.15) 0%, rgba(11, 31, 27, 0.55) 45%, rgba(5, 13, 12, 0.92) 100%);
}
.page-home .collage-panel--lead .collage-body {
  position: relative;
  z-index: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .collage-h3 {
  font-size: var(--fs-24);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.page-home .collage-panel--help p,
.page-home .collage-panel--stats p {
  font-size: var(--fs-16);
  line-height: 1.7;
  color: var(--steel);
  margin: 0;
}
.page-home .collage-panel--help p { color: rgba(247, 250, 249, 0.82); }

.page-home .collage-title {
  font-size: var(--fs-32);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-home .collage-meta {
  list-style: none;
  padding: 0;
  margin: 8px 0 4px;
  display: grid;
  gap: 6px;
  font-size: var(--fs-14);
  color: var(--steel);
}
.page-home .collage-meta .numeric {
  color: var(--cyan);
  font-weight: 600;
}

/* 标签页（首屏 + 缺阵） */
.page-home .tabs {
  margin-top: 4px;
}
.page-home .tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.page-home .tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--steel);
  font: inherit;
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.page-home .tab:hover { color: var(--white); }
.page-home .tab[aria-selected="true"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.page-home .tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.page-home .tab-panel {
  padding-top: 16px;
  animation: home-fade var(--dur) var(--ease);
}
.page-home .tab-panel[hidden] { display: none; }
.page-home .tab-panel p {
  margin: 0;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: rgba(247, 250, 249, 0.86);
}
.page-home .home-absence .tab-panel p { color: rgba(247, 250, 249, 0.86); }

@keyframes home-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 倒计时卡片 ---------- */
.page-home .home-refresh {
  padding-top: 56px;
  padding-bottom: 56px;
}
.page-home .refresh-card {
  position: relative;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding: 40px 28px;
  background:
    linear-gradient(135deg, var(--ink-3) 0%, var(--ink-2) 55%, var(--ink) 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  box-shadow: var(--home-shadow);
}
@media (min-width: 1024px) {
  .page-home .refresh-card {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    padding: 48px;
    margin-left: -32px;
    margin-right: -32px;
    gap: 48px;
  }
}
.page-home .refresh-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-home .refresh-main h2 {
  margin: 0;
  max-width: 20ch;
}
.page-home .refresh-main p {
  margin: 0;
  max-width: 46ch;
  color: var(--steel);
  line-height: 1.75;
}
.page-home .refresh-meta {
  margin: 0;
  display: grid;
  gap: 0;
  align-content: start;
}
.page-home .refresh-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.page-home .refresh-meta > div:first-child { border-top: 1px solid var(--line); }
.page-home .refresh-meta dt {
  font-size: var(--fs-12);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--steel);
}
.page-home .refresh-meta dd {
  margin: 0;
  font-size: var(--fs-16);
  color: var(--white);
}
.page-home .refresh-meta > div:first-child dd { color: var(--orange); }

/* ---------- 主客场并排：角球与替补 ---------- */
.page-home .home-duel .section-head {
  max-width: 64ch;
  margin-bottom: 40px;
}
.page-home .duel-media {
  margin: 0 0 48px;
}
.page-home .duel-board {
  border: 1px solid var(--ink-3);
  background: var(--white);
  padding: 24px;
}
@media (min-width: 768px) {
  .page-home .duel-board { padding: 32px; }
}
.page-home .duel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(11, 31, 27, 0.16);
}
.page-home .duel-span {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.05em;
  color: #4E5A56;
  text-align: center;
}
.page-home .duel-label {
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.page-home .duel-label--home { color: #1B7A69; }
.page-home .duel-label--away { color: #C15616; }

.page-home .duel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(11, 31, 27, 0.1);
}
.page-home .duel-row:last-of-type { border-bottom: 0; }
.page-home .duel-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(11, 31, 27, 0.14);
}
.page-home .duel-cell {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.page-home .duel-cell--away {
  justify-content: flex-end;
  text-align: right;
}
.page-home .duel-cell .stat-label {
  font-size: var(--fs-14);
  color: #4E5A56;
  letter-spacing: 0.02em;
}
.page-home .duel-cell .stat-value {
  font-size: var(--fs-32);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.page-home .duel-cell .stat-value--cyan { color: #17806C; }
.page-home .duel-cell .stat-value--orange { color: #C15616; }
.page-home .duel-cell .stat-unit {
  font-size: var(--fs-12);
  font-family: var(--font-mono);
  color: #6B7672;
  letter-spacing: 0.04em;
}
.page-home .duel-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 31, 27, 0.16);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: #4E5A56;
}

.page-home .duel-chart {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid rgba(11, 31, 27, 0.16);
  background: rgba(255, 255, 255, 0.55);
}
.page-home .chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-home .chart-head h3 {
  margin: 0;
  font-size: var(--fs-18);
  font-weight: 600;
}
.page-home .chart-key {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.05em;
  color: #4E5A56;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-home .key-dot {
  display: inline-block;
  width: 10px;
  height: 2px;
}
.page-home .key-dot--cyan { background: #0B1F1B; }
.page-home .key-dot--orange { background: #FF7A34; }
.page-home .duel-chart-svg {
  display: block;
  width: 100%;
  height: 160px;
}

/* ---------- 伤停与号码变更 ---------- */
.page-home .home-absence .section-head { margin-bottom: 40px; }
.page-home .home-absence .grid {
  row-gap: 48px;
}
.page-home .home-absence .lede {
  margin-bottom: 28px;
  color: rgba(247, 250, 249, 0.84);
}

.page-home .absence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.page-home .absence-list li {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
.page-home .absence-list li:hover {
  background: rgba(53, 224, 192, 0.05);
}
.page-home .absence-region {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--steel);
}
.page-home .absence-team {
  font-size: var(--fs-16);
  color: var(--white);
}
.page-home .absence-count {
  font-size: var(--fs-14);
  color: var(--cyan);
  font-weight: 600;
}

.page-home .num-change {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(122, 46, 59, 0.22) 0%, rgba(11, 31, 27, 0.4) 100%);
  padding: 28px;
}
.page-home .num-change .panel-label {
  display: inline-block;
  margin-bottom: 10px;
}
.page-home .num-change-title {
  margin: 0 0 20px;
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--white);
}
.page-home .change-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(247, 250, 249, 0.14);
}
.page-home .change-list li {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 250, 249, 0.1);
}
.page-home .change-from,
.page-home .change-to {
  font-size: var(--fs-24);
  font-weight: 700;
  line-height: 1;
}
.page-home .change-from { color: var(--steel); text-decoration: line-through; text-decoration-thickness: 1px; }
.page-home .change-to { color: var(--cyan); }
.page-home .change-arrow {
  color: var(--orange);
  font-size: var(--fs-14);
}
.page-home .change-note {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--steel);
  letter-spacing: 0.04em;
  text-align: right;
}

/* ---------- 球迷组织到场 ---------- */
.page-home .home-supporters .section-head {
  max-width: 60ch;
  margin-bottom: 36px;
}
.page-home .support-media {
  margin: 0 0 40px;
}
.page-home .support-mirror {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .page-home .support-mirror {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 0;
  }
}
.page-home .support-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-home .support-side--home { text-align: left; }
@media (min-width: 768px) {
  .page-home .support-side--home { padding-right: 32px; }
  .page-home .support-side--away { padding-left: 32px; text-align: right; }
}
.page-home .parent-note-never,
.page-home .support-divider {
  display: none;
}
@media (min-width: 768px) {
  .page-home .support-divider {
    display: block;
    background: var(--line);
  }
}
.page-home .side-label {
  display: inline-flex;
  align-self: flex-start;
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border: 1px solid var(--line);
}
.page-home .support-side--away .side-label { align-self: flex-start; }
@media (min-width: 768px) {
  .page-home .support-side--away .side-label { align-self: flex-end; }
}
.page-home .side-label--home { color: var(--cyan); border-color: rgba(53, 224, 192, 0.5); }
.page-home .side-label--away { color: var(--orange); border-color: rgba(255, 122, 52, 0.5); }

.page-home .support-meta {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.page-home .support-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.page-home .support-side--away .support-meta > div {
  flex-direction: row-reverse;
}
@media (min-width: 768px) {
  .page-home .support-side--away .support-meta > div {
    flex-direction: row-reverse;
  }
}
.page-home .support-meta dt {
  font-size: var(--fs-14);
  color: var(--steel);
  letter-spacing: 0.02em;
}
.page-home .support-meta dd {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--white);
}

/* ---------- 刷新节奏 ---------- */
.page-home .home-timing .section-head { margin-bottom: 36px; }
.page-home .home-timing h2 { margin: 0 0 16px; }
.page-home .home-timing .col-4 p {
  margin: 0 0 12px;
  line-height: 1.75;
}
.page-home .home-timing .aside-note {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: #4E5A56;
}
@media (min-width: 1024px) {
  .page-home .home-timing .col-4 {
    padding-right: 32px;
    border-right: 1px solid rgba(11, 31, 27, 0.16);
  }
  .page-home .home-timing .col-8 { padding-left: 8px; }
}
.page-home .timing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(11, 31, 27, 0.16);
}
.page-home .timing-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(11, 31, 27, 0.16);
  transition: background-color var(--dur) var(--ease);
}
.page-home .timing-list li:hover {
  background: rgba(53, 224, 192, 0.08);
}
.page-home .timing-num {
  font-size: var(--fs-24);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #17806C;
  line-height: 1;
}

/* 校验用 hidden 兜底（由 site.js 控制） */
.page-home .tab-panel[data-tab-panel][hidden] { display: none; }
.page-home .timing-body h3 {
  margin: 0 0 6px;
  font-size: var(--fs-18);
  font-weight: 600;
}
.page-home .timing-body p {
  margin: 0;
  font-size: var(--fs-16);
  line-height: 1.7;
  color: #4E5A56;
}

/* ---------- 帮助入口 ---------- */
.page-home .home-entry .entry-card {
  padding: 40px 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(53, 224, 192, 0.22), transparent 55%),
    linear-gradient(160deg, #3B3270 0%, var(--indigo) 60%, #2E2657 100%);
  border: 1px solid rgba(247, 250, 249, 0.16);
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .page-home .home-entry .entry-card {
    padding: 56px;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: end;
    column-gap: 48px;
  }
  .page-home .home-entry .eyebrow,
  .page-home .home-entry h2,
  .page-home .home-entry p { grid-column: 1; }
  .page-home .home-entry .entry-actions { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: end; }
}
.page-home .home-entry h2 {
  margin: 0;
  color: var(--white);
}
.page-home .home-entry p {
  margin: 0;
  max-width: 46ch;
  color: rgba(247, 250, 249, 0.86);
  line-height: 1.75;
}
.page-home .entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- 尾部城市图 ---------- */
.page-home .home-skyline {
  padding: 0 0 32px;
}
.page-home .home-skyline .media-frame {
  margin: 0;
  filter: saturate(0.65);
}
.page-home .home-skyline .media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 13, 12, 0.85) 100%);
  pointer-events: none;
}

/* ---------- 图片通用约束（页面作用域内） ---------- */
.page-home img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-home .duel-media img,
.page-home .support-media img,
.page-home .home-skyline img {
  width: 100%;
  object-fit: cover;
}

/* ---------- 窄屏防溢出 ---------- */
@media (max-width: 520px) {
  .page-home .duel-row {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  .page-home .duel-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
  .page-home .duel-cell--away {
    justify-content: flex-start;
    text-align: left;
  }
  .page-home .absence-list li {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }
  .page-home .absence-region { grid-column: 1 / -1; }
  .page-home .change-list li {
    grid-template-columns: auto auto auto;
  }
  .page-home .change-note {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .tab-panel {
    animation: none;
  }
  .page-home .refresh-card,
  .page-home .duel-board,
  .page-home .support-mirror,
  .page-home .num-change,
  .page-home .entry-card {
    transition: none;
  }
}
