.page-home {
  --home-pad-x: 20px;
  --home-pad-y: 64px;
  --home-gap: 24px;
  --home-max: var(--container-width);
  --home-green-deep: var(--green-950);
  --home-green-main: var(--green-900);
  --home-green-light: var(--green-800);
  --home-gold: var(--gold-500);
  --home-gold-soft: var(--gold-400);
  --home-red: var(--red-700);
  --home-font-mono: var(--font-mono);
  --home-font-headline: var(--font-headline);
  background: var(--pure-white);
  color: var(--ink-black);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .breadcrumbs {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 14px var(--home-pad-x) 0;
  font-family: var(--home-font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-100);
}

.page-home .breadcrumbs .current {
  color: var(--green-900);
  font-weight: 700;
}

/* ===== 首屏 ===== */
.page-home .home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 48px var(--home-pad-x) 56px;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  background: var(--green-900);
  color: var(--pure-white);
  font-family: var(--home-font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 999px;
}

.page-home .hero-copy h1 {
  margin: 0 0 20px;
  font-family: var(--home-font-headline);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 1px;
  color: var(--ink-black);
}

.page-home .hero-copy h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 18px;
  background: var(--home-gold);
  border-radius: 2px;
}

.page-home .hero-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  max-width: 520px;
}

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

.page-home .hero-actions .btn {
  min-height: 48px;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
}

.page-home .hero-clock {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px 16px;
  padding: 18px 22px;
  border-left: 4px solid var(--home-gold);
  background: var(--cream-100);
  border-radius: 0 14px 14px 0;
}

.page-home .hero-clock-label {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  font-family: var(--home-font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-700);
}

.page-home .hero-clock-time {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  font-family: var(--home-font-mono);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--green-900);
}

.page-home .hero-clock-note {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  font-size: 13px;
  color: var(--gray-400);
}

.page-home .hero-visual {
  position: relative;
  min-height: 280px;
  height: 100%;
  background: linear-gradient(145deg, var(--home-green-deep), var(--home-green-main) 55%, var(--home-green-light));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.page-home .pitch-field {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .pitch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.6) contrast(1.05);
}

.page-home .pitch-lines {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-home .trophy-mark {
  position: absolute;
  top: 14%;
  right: 8%;
  width: 64px;
  height: 64px;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.35));
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: 18%;
  width: 140%;
  height: 2px;
  background: var(--home-gold);
  opacity: 0.45;
  transform: rotate(-8deg);
  z-index: 2;
}

/* ===== 本页目录 ===== */
.page-home .home-toc {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 16px var(--home-pad-x);
  scrollbar-width: none;
}

.page-home .home-toc::-webkit-scrollbar {
  display: none;
}

.page-home .home-toc a {
  flex: 0 0 auto;
  padding: 8px 18px;
  font-family: var(--home-font-mono);
  font-size: 13px;
  color: var(--gray-700);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-toc a:hover,
.page-home .home-toc a.is-active {
  color: var(--pure-white);
  background: var(--green-900);
  border-color: var(--green-900);
}

/* ===== 更新提示 ===== */
.page-home .home-ticker {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 32px var(--home-pad-x) 40px;
}

.page-home .ticker-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, var(--cream-100), var(--pure-white));
  border-top: 4px solid var(--home-gold);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.page-home .ticker-badge {
  justify-self: start;
  padding: 4px 12px;
  background: var(--home-red);
  color: var(--pure-white);
  font-family: var(--home-font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 999px;
}

.page-home .ticker-heading {
  margin: 0 0 6px;
  font-family: var(--home-font-headline);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ink-black);
}

.page-home .ticker-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
}

.page-home .ticker-time {
  display: inline-block;
  font-family: var(--home-font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-900);
}

.page-home .ticker-more {
  justify-self: start;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-900);
  text-decoration: none;
  border-bottom: 2px solid var(--home-gold);
}

.page-home .ticker-more:hover {
  color: var(--home-red);
}

/* ===== 比赛目录 ===== */
.page-home .home-dir {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 56px var(--home-pad-x) 72px;
}

.page-home .dir-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.page-home .dir-eyebrow {
  margin: 0 0 6px;
  font-family: var(--home-font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--home-red);
}

.page-home .dir-title {
  margin: 0 0 10px;
  font-family: var(--home-font-headline);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ink-black);
}

.page-home .dir-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
  max-width: 640px;
}

.page-home .dir-more {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-900);
  text-decoration: none;
  border-bottom: 2px solid var(--home-gold);
  padding-bottom: 2px;
}

.page-home .dir-more:hover {
  color: var(--home-red);
}

.page-home .dir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .dir-card {
  position: relative;
  display: block;
  background: var(--pure-white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-black);
  border: 1px solid var(--gray-100);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .dir-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}

.page-home .dir-card-replay:hover {
  transform: translateY(-6px) rotate(0.4deg);
}

.page-home .dir-media {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.page-home .dir-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.page-home .dir-card:hover .dir-media img {
  transform: scale(1.04);
}

.page-home .dir-body {
  position: relative;
  padding: 22px 24px 24px;
}

.page-home .dir-num {
  position: absolute;
  top: -18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--home-font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--pure-white);
  background: var(--green-900);
  border: 3px solid var(--pure-white);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.page-home .dir-body h3 {
  margin: 0 0 8px;
  font-family: var(--home-font-headline);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ink-black);
}

.page-home .dir-body p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
}

.page-home .dir-link {
  display: inline-block;
  font-family: var(--home-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--home-gold-soft);
}

.page-home .dir-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--home-gold), transparent);
}

/* ===== 红黄牌面板 ===== */
.page-home .home-panel {
  position: relative;
  max-width: var(--home-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 64px var(--home-pad-x);
}

.page-home .home-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--home-red);
}

.page-home .panel-eyebrow {
  margin: 0 0 8px;
  font-family: var(--home-font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--home-red);
}

.page-home .panel-title {
  margin: 0 0 16px;
  font-family: var(--home-font-headline);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ink-black);
}

.page-home .panel-desc {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
  max-width: 520px;
}

.page-home .panel-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.page-home .panel-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
}

.page-home .panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 2px;
  background: var(--home-gold);
}

.page-home .panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.page-home .panel-actions .btn {
  align-self: flex-start;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .panel-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
}

.page-home .panel-faq {
  font-size: 14px;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-400);
}

.page-home .panel-tip {
  margin: 0;
  font-family: var(--home-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-400);
}

.page-home .panel-visual {
  padding: 18px;
  background: linear-gradient(145deg, var(--home-green-deep), var(--home-green-main));
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transform: rotate(1.4deg);
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

.page-home .panel-visual-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.page-home .pv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.page-home .pv-title {
  font-family: var(--home-font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pure-white);
}

.page-home .pv-badge {
  padding: 4px 10px;
  background: var(--home-gold);
  color: var(--home-green-deep);
  border-radius: 999px;
  font-family: var(--home-font-mono);
  font-size: 11px;
  font-weight: 700;
}

.page-home .pv-main {
  margin-bottom: 16px;
}

.page-home .pv-league {
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.page-home .pv-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .pv-team-home,
.page-home .pv-team-away {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.page-home .pv-team-home {
  text-align: right;
}

.page-home .pv-score {
  font-family: var(--home-font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--home-gold);
}

.page-home .pv-cards-row {
  display: flex;
  gap: 10px;
}

.page-home .pv-card {
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--home-font-mono);
  font-size: 13px;
  font-weight: 700;
}

.page-home .pv-yellow {
  background: rgba(212, 175, 55, 0.18);
  color: var(--home-gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.page-home .pv-red {
  background: rgba(139, 0, 0, 0.24);
  color: #ff8a8a;
  border: 1px solid rgba(139, 0, 0, 0.5);
}

.page-home .pv-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.12);
}

.page-home .pv-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--home-font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== 两版本数据对照 ===== */
.page-home .home-compare {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 64px var(--home-pad-x) 72px;
  border-top: 1px solid var(--gray-100);
}

.page-home .compare-head {
  margin-bottom: 32px;
}

.page-home .compare-eyebrow {
  margin: 0 0 8px;
  font-family: var(--home-font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--home-gold-soft);
}

.page-home .compare-title {
  margin: 0 0 12px;
  font-family: var(--home-font-headline);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ink-black);
}

.page-home .compare-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
  max-width: 680px;
}

.page-home .compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 32px;
}

.page-home .compare-col {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--gray-100);
  background: var(--pure-white);
}

.page-home .compare-col h3 {
  margin: 0 0 10px;
  font-family: var(--home-font-headline);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ink-black);
}

.page-home .compare-col p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
}

.page-home .compare-col-dual {
  position: relative;
  background: linear-gradient(150deg, var(--green-900), var(--green-800));
  border-color: transparent;
}

.page-home .compare-col-dual h3 {
  color: var(--home-gold-soft);
}

.page-home .compare-col-dual p {
  color: rgba(255, 255, 255, 0.85);
}

.page-home .compare-col-dual::after {
  content: "推荐";
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 4px 12px;
  background: var(--home-gold);
  color: var(--green-950);
  font-family: var(--home-font-mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

.page-home .compare-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.page-home .compare-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--gray-100);
  border-radius: 999px;
}

.page-home .step-version {
  font-family: var(--home-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green-900);
}

.page-home .step-desc {
  font-size: 13px;
  color: var(--gray-700);
}

.page-home .compare-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-900);
  text-decoration: none;
  border-bottom: 2px solid var(--home-gold);
  padding-bottom: 2px;
}

/* ===== 帮助入口 ===== */
.page-home .home-help {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 8px var(--home-pad-x) 80px;
}

.page-home .help-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 32px;
  background: linear-gradient(135deg, var(--ink-black), #2a2a2a);
  border-radius: 20px;
  text-align: center;
  align-items: center;
}

.page-home .help-copy h2 {
  margin: 0 0 10px;
  font-family: var(--home-font-headline);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--pure-white);
}

.page-home .help-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
}

.page-home .help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.page-home .help-actions .btn {
  min-height: 46px;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .help-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
}

/* ===== 桌面端适配 ===== */
@media (min-width: 768px) {
  .page-home .home-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    padding-top: 64px;
  }

  .page-home .hero-visual {
    min-height: 480px;
  }

  .page-home .trophy-mark {
    width: 84px;
    height: 84px;
  }

  .page-home .home-toc {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-home .ticker-inner {
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
  }

  .page-home .ticker-time {
    font-size: 36px;
  }

  .page-home .home-panel {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
  }

  .page-home .panel-visual {
    justify-self: end;
  }

  .page-home .compare-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .page-home .dir-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .dir-more {
    flex-shrink: 0;
    margin-bottom: 4px;
  }

  .page-home .dir-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
  }

  .page-home .dir-card-league {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
  }

  .page-home .dir-card-cup {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
  }

  .page-home .dir-card-replay {
    grid-column: 8 / 13;
    grid-row: 2 / 3;
  }

  .page-home .dir-card-league .dir-media {
    height: 320px;
  }

  .page-home .dir-card-cup .dir-media,
  .page-home .dir-card-replay .dir-media {
    height: 200px;
  }

  .page-home .help-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 48px 56px;
  }

  .page-home .help-actions {
    flex-shrink: 0;
  }
}
