/* ===== 页面专属：page-home ===== */
.page-home {
  --ph-title-size: clamp(2.8rem, 12vw, 7.5rem);
  --ph-subtitle-size: clamp(1rem, 3vw, 1.8rem);
  --ph-desc-size: clamp(0.875rem, 1.4vw, 1.05rem);
  --ph-card-radius: var(--radius-lg);
  --ph-gap: 2.5rem;
  --ph-section-pad: 4rem 0;
  --ph-hero-min-h: 85vh;
  --ph-grid-col: 1fr;
  --ph-team-grid-col: 1fr;
  --ph-feature-grid-col: 1fr;
  display: block;
  width: 100%;
}

/* ===== 英雄区 ===== */
.ph-hero {
  position: relative;
  min-height: var(--ph-hero-min-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.ph-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ph-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.ph-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(11, 26, 46, 0.92) 40%, rgba(15, 23, 42, 0.75) 70%, rgba(11, 26, 46, 0.88) 100%);
  pointer-events: none;
}

.ph-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 6rem;
  padding-bottom: 4rem;
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.ph-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-green);
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.ph-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ph-hero-title {
  font-family: var(--font-heading);
  font-size: var(--ph-title-size);
  font-weight: 800;
  font-style: italic;
  line-height: 0.95;
  color: var(--c-text-primary);
  margin: 0;
  text-shadow: 0 0 40px rgba(57, 255, 20, 0.15);
  letter-spacing: -0.03em;
}

.ph-hero-subtitle {
  font-family: var(--font-heading);
  font-size: var(--ph-subtitle-size);
  font-weight: 600;
  color: var(--c-accent-orange);
  margin: 0;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.ph-hero-desc {
  font-family: var(--font-body);
  font-size: var(--ph-desc-size);
  line-height: 1.6;
  color: var(--c-text-secondary);
  max-width: 32rem;
  margin: 0.5rem 0 1rem;
}

/* 战报卡片 */
.ph-match-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(57, 255, 20, 0.2);
  backdrop-filter: blur(8px);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: var(--ph-card-radius);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.06), inset 0 1px 0 rgba(57, 255, 20, 0.08);
  transition: border-color var(--transition), box-shadow var(--transition);
  max-width: 100%;
}

.ph-match-card:hover {
  border-color: rgba(57, 255, 20, 0.5);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.12), inset 0 1px 0 rgba(57, 255, 20, 0.15);
}

.ph-match-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-accent-green);
  background: rgba(57, 255, 20, 0.1);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  align-self: flex-start;
}

.ph-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ph-match-teams .ph-team-name {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--c-text-primary);
  margin: 0;
}

.ph-match-vs {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 800;
  font-style: italic;
  color: var(--c-accent-orange);
  opacity: 0.7;
  padding: 0 0.25rem;
}

.ph-match-score {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--c-accent-green);
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.25);
  letter-spacing: 0.1em;
}

.ph-match-status {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--c-text-secondary);
  text-align: center;
  letter-spacing: 0.05em;
}

.ph-match-events {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 0 0;
}

.ph-event-item {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--c-neutral-light);
  background: rgba(255, 107, 53, 0.12);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 53, 0.15);
  white-space: nowrap;
}

.ph-match-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-accent-orange);
  text-decoration: none;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition), color var(--transition);
  margin-top: 0.25rem;
}

.ph-match-link:hover {
  color: var(--c-accent-green);
  gap: 0.6rem;
}

/* 滚动字幕 */
.ph-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  overflow: hidden;
  background: rgba(11, 26, 46, 0.7);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(57, 255, 20, 0.1);
  padding: 0.55rem 0;
}

.ph-ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-accent-green);
  letter-spacing: 0.1em;
  animation: phTickerScroll 28s linear infinite;
  padding-left: 100%;
  opacity: 0.8;
}

@keyframes phTickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ===== 联赛索引区 ===== */
.ph-leagues {
  background: var(--c-surface-dark);
  padding: var(--ph-section-pad);
  border-top: 1px solid rgba(57, 255, 20, 0.06);
  border-bottom: 1px solid rgba(57, 255, 20, 0.06);
}

.ph-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  font-style: italic;
  color: var(--c-text-primary);
  margin: 0.5rem 0 0.3rem;
  line-height: 1.15;
}

.ph-section-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-text-secondary);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.ph-league-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ph-league-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 255, 20, 0.15);
  background: rgba(15, 23, 42, 0.6);
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ph-league-btn:hover {
  border-color: var(--c-accent-green);
  color: var(--c-text-primary);
  background: rgba(57, 255, 20, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(57, 255, 20, 0.1);
}

.ph-league-btn[data-active="true"] {
  border-color: var(--c-accent-orange);
  background: rgba(255, 107, 53, 0.12);
  color: var(--c-accent-orange);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.08);
}

/* ===== 热门球队区 ===== */
.ph-teams {
  background: var(--c-primary-dark);
  padding: var(--ph-section-pad);
}

.ph-team-grid {
  display: grid;
  grid-template-columns: var(--ph-team-grid-col);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.ph-team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--ph-card-radius);
  border: 1px solid rgba(57, 255, 20, 0.08);
  background: rgba(15, 23, 42, 0.5);
  transition: all var(--transition);
  min-height: 200px;
}

.ph-team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(57, 255, 20, 0.05);
}

.ph-team-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.ph-team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.5s ease;
}

.ph-team-card:hover .ph-team-img img {
  transform: scale(1.05);
}

.ph-team-info {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  position: relative;
}

.ph-team-card--solid .ph-team-info {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  min-height: 200px;
}

.ph-team-card--solid[data-team="orange"] {
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.04));
  border-color: rgba(255, 107, 53, 0.15);
}

.ph-team-card--solid[data-team="white"] {
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.08), rgba(241, 245, 249, 0.02));
  border-color: rgba(241, 245, 249, 0.1);
}

.ph-team-initial {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  opacity: 0.15;
  color: var(--c-text-primary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ph-team-card .ph-team-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text-primary);
  margin: 0;
}

.ph-team-injury {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--c-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.ph-teams-cta {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ===== 平台亮点区 ===== */
.ph-features {
  background: var(--c-surface-dark);
  padding: var(--ph-section-pad);
  position: relative;
}

.ph-feature-grid {
  display: grid;
  grid-template-columns: var(--ph-feature-grid-col);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.ph-feature-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--ph-card-radius);
  border: 1px solid rgba(57, 255, 20, 0.06);
  background: rgba(11, 26, 46, 0.4);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ph-feature-card:hover {
  border-color: rgba(57, 255, 20, 0.2);
  background: rgba(11, 26, 46, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ph-feature-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.ph-feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text-primary);
  margin: 0;
}

.ph-feature-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.ph-feature-visual {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.08);
  margin-top: 1rem;
}

.ph-feature-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 300px;
}

/* ===== 信任声明 ===== */
.ph-trust {
  background: var(--c-primary-dark);
  padding: 1.75rem 0;
  border-top: 1px solid rgba(57, 255, 20, 0.06);
}

.ph-trust-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--c-text-secondary);
  text-align: center;
  margin: 0;
  opacity: 0.7;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== 桌面端 ===== */
@media (min-width: 768px) {
  .page-home {
    --ph-team-grid-col: repeat(2, 1fr);
    --ph-feature-grid-col: repeat(3, 1fr);
    --ph-section-pad: 5rem 0;
  }

  .ph-hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

  .ph-hero-text {
    flex: 1 1 45%;
    max-width: 560px;
  }

  .ph-match-card {
    flex: 1 1 42%;
    max-width: 460px;
    margin-left: auto;
  }

  .ph-match-teams .ph-team-name {
    font-size: 1.4rem;
  }

  .ph-match-score {
    font-size: 2.8rem;
  }

  .ph-team-grid {
    gap: 1.5rem;
  }

  .ph-team-img {
    height: 200px;
  }

  .ph-feature-grid {
    gap: 1.5rem;
  }

  .ph-feature-visual {
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .page-home {
    --ph-hero-min-h: 90vh;
    --ph-team-grid-col: repeat(4, 1fr);
  }

  .ph-hero-title {
    font-size: 7rem;
  }

  .ph-team-grid {
    gap: 1.5rem;
  }

  .ph-team-img {
    height: 180px;
  }

  .ph-league-grid {
    gap: 1rem;
  }

  .ph-league-btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
  }

  .ph-feature-visual {
    max-width: 60%;
  }
}

@media (min-width: 1280px) {
  .ph-hero-title {
    font-size: 7.5rem;
  }

  .ph-match-card {
    padding: 2rem 2rem;
  }

  .ph-hero-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== 确保不横向溢出 ===== */
.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .container {
  width: 100%;
  max-width: var(--w-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

/* ===== 动画减弱偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .ph-ticker-content {
    animation: none;
    padding-left: 0;
  }

  .ph-team-card:hover {
    transform: none;
  }

  .ph-feature-card:hover {
    transform: none;
  }

  .ph-team-card:hover .ph-team-img img {
    transform: none;
  }
}
