/* ===== 页面专属：.page-home ===== */
.page-home {
  --hero-height: min(90vh, 800px);
  --card-radius: 16px;
  --tab-accent: var(--color-secondary);
  color: var(--color-text-light);
  background: var(--color-bg);
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumb {
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  z-index: 12;
  font-size: 0.8125rem;
  opacity: 0.7;
}
.page-home .breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.375rem;
}
.page-home .breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.page-home .breadcrumb a:hover {
  border-color: var(--color-primary);
}

/* ---------- 首屏英雄区 ---------- */
.page-home .hero-section {
  position: relative;
  height: var(--hero-height);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 40%, var(--color-primary) 0%, var(--color-dark) 75%);
}
.page-home .hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.page-home .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 50%;
  display: block;
}
.page-home .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(0,191,255,0.35) 0%, rgba(15,15,26,0.85) 80%);
  z-index: 2;
}
.page-home .hero-slant {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 3;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}
@media (min-width: 768px) {
  .page-home .hero-slant {
    height: 120px;
    clip-path: polygon(0 100%, 100% 100%, 70% 0, 0 0);
  }
}
.page-home .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1.5rem;
  max-width: 820px;
  width: 100%;
}
.page-home .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 9vw, 5.2rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.page-home .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1.25rem;
  letter-spacing: 0.04em;
}
.page-home .hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.75rem;
}
.page-home .hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  backdrop-filter: blur(4px);
}
.page-home .hero-cta {
  display: inline-block;
  font-size: 1.125rem;
  padding: 0.85rem 2.8rem;
  border-radius: 60px;
  text-decoration: none;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 28px rgba(255,69,0,0.35);
}
.page-home .hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(255,69,0,0.5);
}

/* ---------- 联赛速览 ---------- */
.page-home .leagues-section {
  padding: 3.5rem 0 4rem;
  background: var(--color-bg);
  position: relative;
  z-index: 4;
}
.page-home .leagues-section .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text-light);
}
.page-home .leagues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) {
  .page-home .leagues-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.page-home .league-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.page-home .league-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 36px rgba(0,191,255,0.2);
  border-color: var(--color-primary);
}
.page-home .league-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: rgba(0,191,255,0.08);
  padding: 6px;
}
@media (min-width: 640px) {
  .page-home .league-icon {
    width: 80px;
    height: 80px;
  }
}
.page-home .league-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 0.4rem;
}
.page-home .league-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.page-home .league-stats {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.page-home .league-stats .badge {
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
}
.page-home .league-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  flex-wrap: wrap;
}
.page-home .btn-small {
  font-size: 0.875rem;
  padding: 0.4rem 1.1rem;
  border-radius: 40px;
}
.page-home .btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.page-home .btn-ghost:hover {
  background: var(--color-primary);
  color: var(--color-text-dark);
}

/* ---------- 功能亮点（标签页） ---------- */
.page-home .features-section {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(0,191,255,0.04) 100%);
}
.page-home .features-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text-light);
}
.page-home .features-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.page-home .tab-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.page-home .tab-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  margin: 0 0.25rem 0.5rem;
  border-radius: 60px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  user-select: none;
}
.page-home .tab-label:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.page-home #ftab1:checked ~ .tab-label[for="ftab1"],
.page-home #ftab2:checked ~ .tab-label[for="ftab2"],
.page-home #ftab3:checked ~ .tab-label[for="ftab3"] {
  background: var(--tab-accent);
  color: #fff;
  border-color: var(--tab-accent);
  box-shadow: 0 4px 16px rgba(255,69,0,0.3);
}
.page-home .tab-panel {
  display: none;
  width: 100%;
  margin-top: 1.5rem;
  background: var(--color-card-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
}
.page-home #ftab1:checked ~ #fpanel1,
.page-home #ftab2:checked ~ #fpanel2,
.page-home #ftab3:checked ~ #fpanel3 {
  display: block;
}
.page-home .tab-content-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .page-home .tab-content-inner {
    flex-direction: row;
    align-items: center;
  }
}
.page-home .tab-text {
  flex: 1;
}
.page-home .tab-content-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: 0 0 0.6rem;
}
.page-home .tab-text p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.page-home .tab-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
@media (min-width: 720px) {
  .page-home .tab-img {
    width: 340px;
    max-width: 45%;
  }
}
.page-home .tab-text .btn-ghost {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.page-home .tab-text .btn-ghost:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* ---------- 最新动态 ---------- */
.page-home .updates-section {
  padding: 3.5rem 0 4rem;
  background: var(--color-bg);
}
.page-home .updates-section .section-title {
  text-align: center;
  margin-bottom: 2.25rem;
  color: var(--color-text-light);
}
.page-home .updates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .page-home .updates-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .page-home .updates-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.page-home .update-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.page-home .update-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,191,255,0.15);
  border-color: var(--color-primary);
}
.page-home .update-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home .update-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: rgba(255,215,0,0.12);
  padding: 0.2rem 0.7rem;
  border-radius: 30px;
  align-self: flex-start;
}
.page-home .update-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin: 0;
}
.page-home .update-summary {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin: 0 0 0.5rem;
}
.page-home .update-card .btn-ghost {
  align-self: flex-start;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.page-home .update-card .btn-ghost:hover {
  background: var(--color-primary);
  color: var(--color-text-dark);
}

/* ---------- 信任声明 ---------- */
.page-home .trust-section {
  padding: 2rem 0 2.5rem;
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
}
.page-home .trust-statement {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  max-width: 700px;
  margin-inline: auto;
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 480px) {
  .page-home .hero-title {
    letter-spacing: -0.01em;
  }
  .page-home .hero-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  .page-home .tab-label {
    font-size: 0.8125rem;
    padding: 0.45rem 1rem;
  }
  .page-home .tab-panel {
    padding: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .page-home .leagues-section {
    padding: 5rem 0;
  }
  .page-home .features-section {
    padding: 5rem 0;
  }
  .page-home .updates-section {
    padding: 5rem 0;
  }
}
/* 确保容器内联间距 */
.page-home .container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 768px) {
  .page-home .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
/* 所有图片响应式 */
.page-home img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* 标题强调色下划线（共享样式扩展） */
.page-home .section-title {
  position: relative;
  display: inline-block;
  width: 100%;
}
.page-home .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 0.5rem auto 0;
  border-radius: 4px;
}
@media (min-width: 640px) {
  .page-home .section-title::after {
    width: 80px;
  }
}
