.page-home {
  --hero-slant: -4deg;
  background: var(--phx-mist);
  overflow-x: hidden;
}

.page-home .phx-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--phx-red);
}

.page-home .phx-section-label::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--grad-gold);
  transform: skewX(-24deg);
  flex: none;
}

/* ===== 视觉封面区 ===== */
.page-home .phx-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding: 110px 0 112px;
  background: var(--phx-blue);
  overflow: hidden;
  color: #fff;
}

.page-home .phx-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}

.page-home .phx-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11,29,58,.96) 0%, rgba(11,29,58,.82) 52%, rgba(230,57,70,.55) 100%);
}

.page-home .phx-hero__swoosh {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 180px;
  z-index: 1;
  pointer-events: none;
}

.page-home .phx-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .phx-hero .phx-section-label {
  color: var(--phx-gold);
}

.page-home .phx-hero__title {
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  transform: skewX(var(--hero-slant));
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
}

.page-home .phx-hero__title-gold {
  background: linear-gradient(135deg, #FFB347 8%, #FF6B35 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--phx-gold);
}

.page-home .phx-hero__lead {
  max-width: 660px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
  margin-bottom: 40px;
}

.page-home .phx-hero__index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 780px;
}

.page-home .phx-hero__index-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.page-home .phx-hero__index-item:hover,
.page-home .phx-hero__index-item:focus,
.page-home .phx-hero__index-item.is-active {
  background: var(--grad-fire);
  border-color: transparent;
  transform: translateY(-2px);
}

.page-home .phx-hero__index-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--phx-gold);
  letter-spacing: .08em;
}

.page-home .phx-hero__index-item strong {
  font-size: 16px;
  font-weight: 800;
}

.page-home .phx-hero__index-item small {
  font-size: 12px;
  opacity: .7;
}

.page-home .phx-hero__index-item.is-active .phx-hero__index-num {
  color: #fff;
}

/* ===== 追比分电脑版 ===== */
.page-home .phx-score {
  position: relative;
  padding: 100px 0;
  background: var(--phx-paper);
}

.page-home .phx-score__grid {
  display: grid;
  gap: 48px;
}

.page-home .phx-score__body h2,
.page-home .phx-league h2,
.page-home .phx-cases h2,
.page-home .phx-download h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--phx-ink);
}

.page-home .phx-score__lead,
.page-home .phx-league__lead,
.page-home .phx-cases__lead,
.page-home .phx-download__lead {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(26,26,46,.74);
  line-height: 1.7;
  font-size: 16px;
}

.page-home .phx-score__points {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.page-home .phx-score__points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border-left: 4px solid var(--phx-red);
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(11,29,58,.06);
}

.page-home .phx-score__point-icon {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--grad-gold);
  transform: rotate(45deg);
  flex: none;
}

.page-home .phx-score__points strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 800;
}

.page-home .phx-score__points p {
  margin: 0;
  font-size: 14px;
  color: rgba(26,26,46,.6);
  line-height: 1.6;
}

.page-home .phx-score__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .phx-score__visual {
  position: relative;
}

.page-home .phx-score__figure {
  position: relative;
  margin: 0;
  padding: 14px 14px 18px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 48px rgba(11,29,58,.14);
  transform: rotate(1.2deg);
}

.page-home .phx-score__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.page-home .phx-score__figure figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px 4px;
  font-size: 13px;
  color: rgba(26,26,46,.64);
}

.page-home .phx-score__flyout {
  position: absolute;
  top: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: var(--phx-blue);
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(11,29,58,.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 2;
}

.page-home .phx-score__flyout-title {
  font-size: 13px;
  font-weight: 800;
}

.page-home .phx-score__flyout-sub {
  font-size: 11px;
  color: var(--phx-gold);
}

.page-home .phx-score__visual:hover .phx-score__flyout,
.page-home .phx-score__visual:focus-within .phx-score__flyout {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 联赛专题 ===== */
.page-home .phx-league {
  position: relative;
  padding: 100px 0;
  background: var(--phx-mist);
  overflow: hidden;
}

.page-home .phx-league::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: 24px;
  width: 360px;
  height: 160px;
  background: repeating-linear-gradient(-32deg, rgba(230,57,70,.14) 0 2px, transparent 2px 18px);
  transform: skewX(-12deg);
  pointer-events: none;
}

.page-home .phx-league__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-home .phx-league__select {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 0 30px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(11,29,58,.12);
  box-shadow: 0 4px 14px rgba(11,29,58,.05);
}

.page-home .phx-league__select summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--phx-ink);
}

.page-home .phx-league__select summary::-webkit-details-marker {
  display: none;
}

.page-home .phx-league__select summary::after {
  content: "▾";
  font-size: 12px;
  color: var(--phx-red);
  transition: transform .2s;
}

.page-home .phx-league__select[open] summary::after {
  transform: rotate(180deg);
}

.page-home .phx-league__select-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(11,29,58,.1);
}

.page-home .phx-league__select-list li + li {
  border-top: 1px solid rgba(11,29,58,.06);
}

.page-home .phx-league__select-list a {
  display: block;
  padding: 11px 16px;
  color: var(--phx-ink);
  text-decoration: none;
  font-size: 14px;
}

.page-home .phx-league__select-list a:hover {
  background: var(--phx-mist);
  color: var(--phx-red);
}

.page-home .phx-league__list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.page-home .phx-league__item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 0 8px 8px 0;
  border-left: 4px solid var(--phx-red);
  box-shadow: 0 4px 22px rgba(11,29,58,.06);
}

.page-home .phx-league__cover {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
}

.page-home .phx-league__num {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--phx-red);
}

.page-home .phx-league__meta h3 {
  margin: 8px 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.page-home .phx-league__meta p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(26,26,46,.64);
}

.page-home .phx-league__round {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--phx-red);
}

/* ===== 案例合集 ===== */
.page-home .phx-cases {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--phx-blue) 0%, #102549 100%);
  color: #fff;
  overflow: hidden;
}

.page-home .phx-cases::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--grad-gold);
}

.page-home .phx-cases__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

.page-home .phx-cases h2 {
  color: #fff;
}

.page-home .phx-cases .phx-section-label {
  color: var(--phx-gold);
}

.page-home .phx-cases__lead {
  color: rgba(255,255,255,.8);
}

.page-home .phx-cases__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.page-home .phx-cases__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 84px;
  padding: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
}

.page-home .phx-cases__stats strong {
  font-size: 28px;
  color: var(--phx-gold);
  font-weight: 900;
}

.page-home .phx-cases__stats span {
  font-size: 13px;
  color: rgba(255,255,255,.72);
}

.page-home .phx-cases__recent {
  margin-bottom: 28px;
}

.page-home .phx-cases__recent-title {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.page-home .phx-cases__recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .phx-cases .phx-tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}

.page-home .phx-cases__cover {
  position: relative;
  justify-self: center;
  max-width: 340px;
  margin: 0;
  transform: rotate(-2deg);
}

.page-home .phx-cases__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
}

.page-home .phx-cases__cover figcaption {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,.72);
}

/* ===== 资源下载 ===== */
.page-home .phx-download {
  position: relative;
  padding: 100px 0;
  background: var(--phx-paper);
}

.page-home .phx-download__head {
  max-width: 720px;
  margin-bottom: 38px;
}

.page-home .phx-download__grid {
  display: grid;
  gap: 18px;
}

.page-home .phx-download__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 24px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 8px 30px rgba(11,29,58,.08);
  position: relative;
  overflow: hidden;
}

.page-home .phx-download__card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.page-home .phx-download__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.page-home .phx-download__card .phx-tag {
  align-self: flex-start;
}

.page-home .phx-download__card--paper {
  background: #fff;
  color: var(--phx-ink);
}

.page-home .phx-download__card--dark {
  background: var(--phx-blue);
  color: #fff;
}

.page-home .phx-download__card--dark p {
  color: rgba(255,255,255,.72);
}

.page-home .phx-download__card--red {
  background: var(--grad-fire);
  color: #fff;
}

.page-home .phx-download__card--red p {
  color: rgba(255,255,255,.84);
}

.page-home .phx-download__card--dark .phx-tag,
.page-home .phx-download__card--red .phx-tag {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

.page-home .phx-download__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ===== 响应式布局 ===== */
@media (min-width: 680px) {
  .page-home .phx-hero__index {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (min-width: 860px) {
  .page-home .phx-score__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .page-home .phx-hero {
    min-height: 640px;
    padding: 120px 0 128px;
  }

  .page-home .phx-league__item {
    grid-template-columns: 140px 1fr;
    padding: 20px 24px;
  }

  .page-home .phx-league__cover {
    width: 140px;
    height: 100px;
  }

  .page-home .phx-cases__grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: center;
  }

  .page-home .phx-cases__cover {
    justify-self: end;
  }

  .page-home .phx-download__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home .phx-league__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-home .phx-league__item:nth-child(3) {
    grid-column: 1 / -1;
    grid-template-columns: 200px 1fr;
  }

  .page-home .phx-league__item:nth-child(3) .phx-league__cover {
    width: 200px;
    height: 130px;
  }

  .page-home .phx-download__grid {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .phx-hero__title {
    transform: none;
  }

  .page-home .phx-score__figure,
  .page-home .phx-cases__cover {
    transform: none;
  }

  .page-home .phx-hero__index-item,
  .page-home .phx-score__flyout {
    transition: none;
  }
}
