.page-home {
  --home-section-pad: clamp(52px, 7.5vw, 100px);
  --home-organic-a: 42% 58% 36% 64% / 54% 44% 56% 46%;
  --home-organic-b: 62% 38% 44% 56% / 52% 62% 38% 48%;
  background: var(--ink);
  color: var(--bone);
}

@media (max-width: 759px) {
  .page-home {
    padding-bottom: 82px;
  }
}

/* ===================== 首屏 ===================== */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px) 0 clamp(54px, 8vw, 110px);
  background:
    radial-gradient(circle at 84% 8%, rgba(34, 223, 210, 0.18), transparent 46%),
    linear-gradient(158deg, var(--pitch) 0%, var(--ink) 62%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -24%;
  right: -18%;
  z-index: 0;
  width: min(780px, 88vw);
  height: 126%;
  background: linear-gradient(206deg, rgba(47, 74, 56, 0.92), rgba(16, 38, 28, 0) 72%);
  border-radius: var(--home-organic-a);
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: -14%;
  bottom: -28%;
  z-index: 0;
  width: min(560px, 78vw);
  height: 58%;
  background: linear-gradient(122deg, rgba(178, 86, 58, 0.36), rgba(178, 86, 58, 0) 70%);
  border-radius: var(--home-organic-b);
  transform: rotate(7deg);
  pointer-events: none;
}

.page-home .home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 54px);
  align-items: center;
}

.page-home .home-hero-copy {
  max-width: 640px;
}

.page-home .home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 15, 13, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  color: rgba(243, 238, 228, 0.86);
}

.page-home .home-hero h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8.6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.page-home .home-hero-lead {
  max-width: 46ch;
  margin: 18px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  line-height: 1.75;
  color: rgba(243, 238, 228, 0.82);
}

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

.page-home .home-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.9rem;
  color: var(--stone);
}

.page-home .home-hero-facts .num {
  margin-right: 4px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.page-home .home-hero-panel {
  display: grid;
  gap: 14px;
}

.page-home .home-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px 10px 28px 10px;
  background: var(--pitch);
}

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

.page-home .home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 223, 210, 0.26) 0%, rgba(11, 15, 13, 0.8) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-home .home-hero-board {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(16, 38, 28, 0.74);
}

.page-home .home-countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.page-home .home-countdown-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--stone);
}

.page-home .home-countdown-value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 4.8vw, 2.1rem);
  font-weight: 700;
  color: var(--signal);
  animation: home-countdown-pulse 1.8s var(--ease) infinite;
}

@keyframes home-countdown-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.page-home .home-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.page-home .home-versus-side {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--bone);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-home .home-versus-side:last-child {
  text-align: right;
}

.page-home .home-versus-slot {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--moss);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  color: var(--bone);
}

.page-home .home-versus-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.84rem;
  color: var(--stone);
}

/* ===================== 通用章节头部 ===================== */

.page-home .home-section,
.page-home .section {
  padding-top: var(--home-section-pad);
  padding-bottom: var(--home-section-pad);
}

.page-home .section-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.8vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.page-home .section-head .lead {
  max-width: 62ch;
  margin-top: 14px;
  color: rgba(243, 238, 228, 0.78);
}

/* ===================== 今日重点 ===================== */

.page-home .home-today {
  background: linear-gradient(180deg, var(--ink) 0%, rgba(16, 38, 28, 0.6) 100%);
}

.page-home .home-flow {
  counter-reset: homeflow;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.page-home .home-flow li {
  position: relative;
  flex: 1 1 190px;
  counter-increment: homeflow;
}

.page-home .home-flow li::before {
  content: "0" counter(homeflow);
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-family: var(--font-num);
  font-size: 0.78rem;
  color: var(--electric);
  pointer-events: none;
}

.page-home .home-flow a {
  display: block;
  padding: 15px 16px 15px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(47, 74, 56, 0.3);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bone);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.page-home .home-flow a:hover,
.page-home .home-flow a:focus-visible {
  border-color: var(--electric);
  background: rgba(47, 74, 56, 0.55);
  transform: translateY(-2px);
}

.page-home .home-fixtures {
  display: grid;
  gap: 12px;
}

.page-home .home-fixture {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 15, 13, 0.66);
  overflow: hidden;
}

.page-home .home-fixture-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "time state"
    "teams teams";
  align-items: center;
  gap: 8px 14px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.page-home .home-fixture-trigger:hover,
.page-home .home-fixture-trigger:focus-visible {
  background: rgba(47, 74, 56, 0.4);
}

.page-home .home-fixture-time {
  grid-area: time;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--signal);
}

.page-home .home-fixture-teams {
  grid-area: teams;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .home-fixture-state {
  grid-area: state;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  font-size: 0.82rem;
  color: var(--stone);
}

.page-home .home-fixture-panel {
  padding: 4px 18px 20px;
  border-top: 1px solid var(--line);
}

.page-home .home-fixture-panel p {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(243, 238, 228, 0.8);
}

.page-home .home-fixture-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.84rem !important;
  color: var(--stone) !important;
}

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

/* ===================== 阵容变动 ===================== */

.page-home .home-lineup {
  background: var(--ink);
}

.page-home .home-lineup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.page-home .home-lineup-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 38, 28, 0.55);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-lineup-trigger .num {
  font-family: var(--font-num);
  font-size: 0.82rem;
  color: var(--electric);
}

.page-home .home-lineup-trigger:hover,
.page-home .home-lineup-trigger:focus-visible {
  border-color: var(--electric);
  background: rgba(47, 74, 56, 0.6);
}

.page-home .home-lineup-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.page-home .home-lineup-list .accordion-panel p {
  margin: 12px 0 0;
  padding: 0 18px 4px;
  max-width: 60ch;
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(243, 238, 228, 0.78);
}

.page-home .home-lineup-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px 28px 10px 28px;
  background: var(--pitch);
}

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

.page-home .home-lineup-media .media-caption {
  padding: 12px 16px;
  background: rgba(11, 15, 13, 0.86);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--stone);
}

/* ===================== 赛后战报 ===================== */

.page-home .home-recap {
  background: linear-gradient(180deg, var(--ink) 0%, var(--pitch) 100%);
}

.page-home .home-recap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.page-home .home-recap-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(158deg, rgba(16, 38, 28, 0.92), rgba(11, 15, 13, 0.92));
}

.page-home .home-recap-league {
  margin: 0;
  font-family: var(--font-num);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}

.page-home .home-recap-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
}

.page-home .home-recap-score .is-win { color: var(--electric); }
.page-home .home-recap-score .is-lose { color: var(--stone); }

.page-home .home-recap-sep {
  color: rgba(124, 133, 127, 0.6);
  font-size: 0.7em;
}

.page-home .home-recap-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(243, 238, 228, 0.8);
}

.page-home .home-recap-time {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 0.76rem;
  color: var(--stone);
}

.page-home .home-recap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ===================== 球队资料库（米白反底） ===================== */

.page-home .home-archive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bone);
  color: var(--ink);
}

.page-home .home-archive-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .home-archive-kicker,
.page-home .home-archive .kicker {
  color: var(--clay);
}

.page-home .home-archive .section-head h2 {
  color: var(--ink);
}

.page-home .home-archive-lead {
  color: rgba(11, 15, 13, 0.74) !important;
}

.page-home .home-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.page-home .home-archive-step {
  padding: 22px 20px;
  border: 1px solid rgba(11, 15, 13, 0.16);
  border-radius: var(--radius-md);
  background: rgba(243, 238, 228, 0.86);
}

.page-home .home-archive-step-num {
  margin: 0;
  font-family: var(--font-num);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--clay);
}

.page-home .home-archive-step h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .home-archive-step p:last-child {
  margin: 10px 0 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: rgba(11, 15, 13, 0.76);
}

.page-home .home-archive-foot {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 15, 13, 0.16);
}

.page-home .home-archive-foot p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(11, 15, 13, 0.82);
}

.page-home .home-archive-foot .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--clay);
}

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

.page-home .home-archive-actions .btn-ghost {
  border-color: rgba(11, 15, 13, 0.28);
  color: var(--ink);
}

/* ===================== 费用与权益速览 ===================== */

.page-home .home-plan {
  background: var(--ink);
}

.page-home .home-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.page-home .home-plan-card {
  display: grid;
  gap: 12px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(162deg, rgba(47, 74, 56, 0.55), rgba(11, 15, 13, 0.9));
}

.page-home .home-plan-tag {
  margin: 0;
}

.page-home .home-plan-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--bone);
}

.page-home .home-plan-card > p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(243, 238, 228, 0.78);
}

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

.page-home .home-plan-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(243, 238, 228, 0.86);
}

.page-home .home-plan-list li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--electric);
}

.page-home .home-plan-strips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-home .home-plan-strip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid rgba(227, 183, 91, 0.42);
  border-radius: 999px;
  font-size: 0.86rem;
  color: rgba(243, 238, 228, 0.86);
}

.page-home .home-plan-strip .num {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--gold);
}

.page-home .home-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ===================== 手机端与本地支持 ===================== */

.page-home .home-mobile {
  background: linear-gradient(180deg, var(--ink) 0%, rgba(16, 38, 28, 0.7) 100%);
}

.page-home .home-mobile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.page-home .home-mobile-main .section-head .lead .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--signal);
}

.page-home .home-mobile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-mobile-stats .stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 15, 13, 0.6);
}

.page-home .home-mobile-stats .stat-value {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--bone);
}

.page-home .home-mobile-note {
  max-width: 62ch;
  margin: 24px 0 0;
  font-size: 0.94rem;
  line-height: 1.78;
  color: rgba(243, 238, 228, 0.78);
}

.page-home .home-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-mobile-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px 8px 26px 8px;
  background: var(--pitch);
}

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

.page-home .home-mobile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 106, 26, 0.16), rgba(11, 15, 13, 0.66));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.page-home .home-mobile-media .media-caption {
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  background: rgba(11, 15, 13, 0.86);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--stone);
}

/* ===================== 移动端吸底行动条 ===================== */

.page-home .home-sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 15, 13, 0.88), var(--ink));
  backdrop-filter: blur(8px);
}

.page-home .home-sticky .btn {
  flex: 1 1 0;
  padding: 13px 12px;
  font-size: 0.95rem;
}

/* ===================== 响应式 ===================== */

@media (min-width: 620px) {
  .page-home .home-fixture-trigger {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "time teams state";
    gap: 16px;
  }

  .page-home .home-fixture-state {
    justify-self: end;
  }

  .page-home .home-recap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-archive-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

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

  .page-home .home-lineup-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .home-mobile-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 72px);
  }

  .page-home .home-hero-panel {
    align-self: stretch;
  }
}

@media (min-width: 760px) {
  .page-home .home-sticky {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-countdown-value {
    animation: none;
  }

  .page-home .home-flow a,
  .page-home .home-fixture-trigger,
  .page-home .home-lineup-trigger {
    transition: none;
  }
}
