/* ===== 首页专属样式 .page-home ===== */
.page-home {
  --color-primary: #e63946;
  --color-secondary: #f4a261;
  --color-bg-dark: #1a1a1a;
  --color-bg-card: #222;
  --color-text-light: #f8f9fa;
  --color-text-muted: #aaa;
  --color-border-subtle: #333;
  --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-numbers: 'DIN Condensed Bold', 'Impact', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

/* 面包屑 */
.page-home .breadcrumb {
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: transparent;
  position: relative;
  z-index: 10;
}
.page-home .breadcrumb a {
  color: var(--color-secondary);
  text-decoration: none;
}
.page-home .breadcrumb a:hover {
  text-decoration: underline;
}

/* 公用容器 */
.page-home .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 区块标题 */
.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--color-text-light);
}
.page-home .section-title--skew-right {
  transform: skewX(-4deg);
  transform-origin: left bottom;
}
.page-home .section-title--skew-left {
  transform: skewX(4deg);
  transform-origin: left bottom;
}
.page-home .section-title--left {
  text-align: left;
}
.page-home .gold-text {
  color: var(--color-secondary);
}
.page-home .section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}
.page-home .button {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  border: none;
  cursor: pointer;
}
.page-home .button:hover {
  background-color: #c1121f;
  transform: scale(1.03);
}
.page-home .button--secondary {
  background-color: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.page-home .button--secondary:hover {
  background-color: var(--color-secondary);
  color: #1a1a1a;
}

/* ===== 首屏 Hero ===== */
.page-home .hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--color-bg-dark);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}
.page-home .hero-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
}
.page-home .hero-left {
  flex: 0 0 auto;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid rgba(244,162,97,0.3);
}
.page-home .hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}
.page-home .hero-tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  color: var(--color-text-light);
  margin: 0 0 1.25rem;
}
.page-home .hero-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.page-home .hero-quick-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.page-home .hero-quick-link:hover {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}
.page-home .hero-right {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  min-height: 40vh;
  overflow: hidden;
  border-radius: 12px;
}
.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.45);
  transform: scale(1.05);
}
.page-home .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 20%, rgba(230,57,70,0.25) 80%);
  z-index: 1;
}
.page-home .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
}
.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 1.05;
  color: var(--color-text-light);
  margin: 0 0 0.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transform: skewX(-6deg);
  letter-spacing: -0.02em;
}
.page-home .hero-desc {
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  margin: 0 0 2rem;
  font-weight: 400;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.page-home .hero-skew-bar {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #1a1a1a 40%, #e63946 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

/* ===== 联赛导航面板 ===== */
.page-home .league-panel-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(160deg, #111 0%, #1a1a1a 50%, #0d0d0d 100%);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  margin-top: -2rem;
}
.page-home .league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.page-home .league-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  list-style: none;
}
.page-home .league-card[open] {
  background: #2a2a2a;
  border-color: var(--color-secondary);
}
.page-home .league-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(230,57,70,0.15);
}
.page-home .league-card__summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-light);
  transition: color 0.2s;
}
.page-home .league-card__summary::-webkit-details-marker {
  display: none;
}
.page-home .league-card__summary:hover {
  color: var(--color-secondary);
}
.page-home .league-card__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.page-home .league-card__name {
  flex: 1;
}
.page-home .league-card__arrow {
  font-size: 1.4rem;
  color: var(--color-secondary);
  transition: transform 0.3s var(--ease-out);
}
.page-home .league-card[open] .league-card__arrow {
  transform: rotate(90deg);
}
.page-home .league-card__drop {
  padding: 0 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: leagueDropIn 0.25s var(--ease-out);
}
@keyframes leagueDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-home .league-card__link {
  font-size: 0.85rem;
  color: var(--color-secondary);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.page-home .league-card__link:hover {
  border-bottom-color: var(--color-secondary);
}
.page-home .league-panel__cta {
  text-align: center;
  margin-top: 2rem;
}

/* ===== 实时比分板块 ===== */
.page-home .scores-section {
  padding: 5rem 0 5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2b1b0e 50%, #1a1a1a 100%);
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  margin-top: -2.5rem;
}
.page-home .scores-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.page-home .scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.page-home .score-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.page-home .score-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(244,162,97,0.12);
}
.page-home .score-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.page-home .score-card__league {
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.page-home .score-card__status {
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}
.page-home .score-card__status.live {
  background: var(--color-primary);
  color: #fff;
  animation: pulseStatus 1.8s infinite;
}
@keyframes pulseStatus {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.page-home .score-card__status.finished {
  background: #444;
  color: var(--color-text-muted);
}
.page-home .score-card__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-numbers);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  padding: 0.5rem 0;
}
.page-home .score-card__team {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  max-width: 80px;
  text-align: center;
  line-height: 1.2;
}
.page-home .score-card__number {
  font-family: var(--font-numbers);
  font-weight: 700;
  font-size: inherit;
  color: var(--color-primary);
  min-width: 1.8rem;
  text-align: center;
  transition: transform 0.3s var(--ease-bounce);
}
.page-home .score-card[data-reveal].visible .score-card__number[data-animate-score] {
  animation: numberPop 0.5s var(--ease-bounce) 0.2s both;
}
@keyframes numberPop {
  0% { transform: scale(0.6); opacity: 0.3; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.page-home .score-card__sep {
  font-family: var(--font-numbers);
  color: var(--color-text-muted);
  font-weight: 300;
}
.page-home .score-card__footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}
.page-home .score-card__hover-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--color-secondary);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s var(--ease-out), max-height 0.3s var(--ease-out);
  padding-top: 0;
}
.page-home .score-card:hover .score-card__hover-info {
  opacity: 1;
  max-height: 60px;
  padding-top: 0.75rem;
}
.page-home .scores-more {
  text-align: center;
  margin-top: 2rem;
}

/* ===== 阵容快查 ===== */
.page-home .lineup-section {
  padding: 5rem 0 5rem;
  background: linear-gradient(145deg, #0d0d0d 0%, #1a1a1a 60%, #2b1b0e 100%);
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
  margin-top: -2.5rem;
}
.page-home .lineup-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}
.page-home .lineup-text {
  flex: 1;
}
.page-home .lineup-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin: 1rem 0 1.5rem;
  max-width: 600px;
}
.page-home .lineup-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.page-home .lineup-features__item {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  padding-left: 0.25rem;
}
.page-home .lineup-visual {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
}
.page-home .lineup-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  border: 1px solid var(--color-border-subtle);
}

/* ===== 小屏体验 ===== */
.page-home .mobile-section {
  padding: 5rem 0 5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
  margin-top: -2.5rem;
}
.page-home .mobile-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}
.page-home .mobile-visual {
  flex: 0 0 auto;
  width: 100%;
  max-width: 360px;
}
.page-home .mobile-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--color-border-subtle);
}
.page-home .mobile-text {
  flex: 1;
}
.page-home .mobile-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin: 1rem 0 1.5rem;
  max-width: 600px;
}
.page-home .mobile-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.page-home .mobile-features__item {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

/* ===== 信任条 ===== */
.page-home .trust-section {
  padding: 3rem 1.5rem;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-subtle);
}
.page-home .trust-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}
.page-home .trust-item {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.page-home .trust-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.page-home .trust-link {
  font-size: 0.85rem;
  color: var(--color-secondary);
  text-decoration: none;
}
.page-home .trust-link:hover {
  text-decoration: underline;
}

/* ====== 滚动显现基础 ====== */
.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.page-home [data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== 桌面端媒体查询 ====== */
@media (min-width: 768px) {
  .page-home .container {
    padding: 0 2rem;
  }
  .page-home .hero-inner {
    flex-direction: row;
    align-items: center;
    padding: 0 2rem 3rem;
    min-height: 90vh;
  }
  .page-home .hero-left {
    flex: 0 0 28%;
    border-bottom: none;
    border-right: 1px solid rgba(244,162,97,0.2);
    padding: 2rem 2rem 2rem 0;
  }
  .page-home .hero-tagline {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
  }
  .page-home .hero-right {
    flex: 1;
    margin-top: 0;
    margin-left: 2rem;
    min-height: 60vh;
    border-radius: 16px;
  }
  .page-home .hero-title {
    font-size: clamp(4rem, 7vw, 7rem);
  }
  .page-home .hero-actions {
    justify-content: flex-start;
  }
  .page-home .hero-quick-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  .page-home .league-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .page-home .scores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .lineup-layout {
    flex-direction: row;
    align-items: center;
  }
  .page-home .lineup-visual {
    flex: 0 0 45%;
    max-width: 500px;
  }
  .page-home .mobile-layout {
    flex-direction: row-reverse;
    align-items: center;
  }
  .page-home .mobile-visual {
    flex: 0 0 35%;
    max-width: 360px;
  }
  .page-home .trust-bar {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .page-home .league-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
  .page-home .scores-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .hero-left {
    flex: 0 0 24%;
    padding-right: 2.5rem;
  }
  .page-home .hero-right {
    margin-left: 2.5rem;
  }
}

/* ====== 减少动效 ====== */
@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-home .score-card[data-reveal].visible .score-card__number[data-animate-score] {
    animation: none;
  }
  .page-home .score-card__status.live {
    animation: none;
  }
  .page-home .hero-bg-img {
    filter: blur(4px) brightness(0.5);
    transform: none;
  }
  .page-home .league-card:hover {
    transform: none;
  }
  .page-home .score-card:hover {
    transform: none;
  }
  .page-home .button:hover {
    transform: none;
  }
}
