/* ===== 页面专属：首页 ===== */
.page-home {
  --cover-min-height: 80vh;
  --step-transition: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --live-dot-size: 10px;
  position: relative;
}

/* 面包屑 */
.page-home .breadcrumb {
  padding: 0.75rem var(--container-padding, 1rem);
  font-size: 0.85rem;
  color: var(--c-text-secondary);
}
.page-home .breadcrumb__current {
  color: var(--c-primary-red);
  font-weight: 600;
}

/* ===== 封面首屏 ===== */
.page-home .cover {
  position: relative;
  min-height: var(--cover-min-height);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-home .cover__image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-home .cover__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.page-home .cover__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--c-text-light);
}
.page-home .cover__left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home .cover__intro {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
  background: rgba(0,0,0,0.3);
  display: inline-block;
  padding: 0.15rem 0.75rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
.page-home .cover__title {
  font-family: var(--font-heading-bold);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin: 0;
  color: var(--c-text-light);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}
.page-home .cover__tagline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
  max-width: 28ch;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.page-home .cover__right {
  flex-shrink: 0;
}
.page-home .cover__index {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-home .cover__index-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(230, 57, 70, 0.85);
  color: var(--c-text-light);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.page-home .cover__index-link:hover,
.page-home .cover__index-link:focus-visible {
  background: var(--c-primary-red);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(230,57,70,0.4);
}

/* ===== 数据速览 ===== */
.page-home .live-scores {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  overflow: hidden;
}
.page-home .live-scores__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}
.page-home .live-scores__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .section-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading-bold);
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  color: var(--c-primary-blue);
  letter-spacing: 0.02em;
}
.page-home .live-scores__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .page-home .live-scores__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .page-home .live-scores__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.page-home .live-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.page-home .live-score-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.page-home .live-score-card__teams {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
}
.page-home .team {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text-primary);
  white-space: nowrap;
}
.page-home .score-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--c-success);
  font-size: 0.85rem;
  font-weight: 600;
}
.page-home .live-dot {
  display: inline-block;
  width: var(--live-dot-size);
  height: var(--live-dot-size);
  border-radius: 50%;
  background: var(--c-primary-red);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}
.page-home .live-text {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.page-home .live-score-card__status {
  font-size: 0.85rem;
  color: var(--c-text-secondary);
  margin: 0;
}
.page-home .live-score-card .button {
  align-self: center;
  margin-top: auto;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  background: var(--c-primary-blue);
  color: var(--c-text-light);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.page-home .live-score-card .button:hover {
  background: var(--c-primary-red);
  transform: scale(1.05);
}

/* ===== 平台特色 ===== */
.page-home .platform-features {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--c-bg-light);
  border-radius: var(--radius) var(--radius) 0 0;
}
.page-home .steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.page-home .step {
  background: var(--c-text-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.page-home .step:hover {
  box-shadow: var(--shadow-hover);
}
.page-home .step__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  background: var(--c-bg-light);
}
.page-home .step__header:hover {
  background: #e9ecef;
}
.page-home .step__number {
  font-family: var(--font-heading-bold);
  font-size: 1.5rem;
  color: var(--c-primary-red);
  min-width: 2.5rem;
}
.page-home .step__icon {
  width: 28px;
  height: 28px;
  color: var(--c-primary-blue);
  flex-shrink: 0;
}
.page-home .step__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text-primary);
  flex: 1;
}
.page-home .step__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--step-transition);
}
.page-home .step__toggle:checked ~ .step__content {
  max-height: 800px;
}
.page-home .step__content-inner {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-home .step__image {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: var(--radius-sm);
  align-self: center;
  object-fit: contain;
}
.page-home .step__content p {
  margin: 0;
  line-height: 1.6;
  color: var(--c-text-secondary);
  font-size: 0.95rem;
}

/* ===== 用户见证 ===== */
.page-home .testimonials {
  padding: 3rem 0;
  background: var(--c-bg-dark);
  color: var(--c-text-light);
}
.page-home .testimonials .section-title {
  color: var(--c-accent-gold);
  margin-bottom: 2rem;
}
.page-home .testimonial-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-home .testimonial-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--c-text-light);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.page-home .testimonial-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--c-accent-gold);
}
.page-home .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .testimonial-card__quote {
  font-size: 1.1rem;
  line-height: 1.5;
  font-style: italic;
  margin: 0;
  quotes: none;
}
.page-home .testimonial-card__source {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--c-accent-gold);
  opacity: 0.85;
}

/* ===== 收藏按钮（浮动） ===== */
.page-home .favorite-button {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 100;
}
.page-home .fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-primary-red);
  color: var(--c-text-light);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(230,57,70,0.35);
  transition: var(--transition);
  border: none;
}
.page-home .fav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(230,57,70,0.5);
}
.page-home #fav-toggle:checked + .fav-btn {
  background: var(--c-primary-blue);
  color: var(--c-accent-gold);
  box-shadow: 0 4px 20px rgba(29,53,87,0.35);
}
.page-home #fav-toggle:checked + .fav-btn svg {
  fill: var(--c-accent-gold);
}

/* ===== 响应式微调 ===== */
@media (max-width: 599px) {
  .page-home .cover__content {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .page-home .cover__index {
    flex-direction: column;
    gap: 0.5rem;
  }
  .page-home .step__header {
    padding: 1rem;
  }
  .page-home .step__content-inner {
    padding: 0.75rem 1rem 1rem;
  }
}
@media (min-width: 768px) {
  .page-home .cover__content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .page-home .cover__left {
    flex: 1 1 60%;
  }
  .page-home .cover__right {
    flex: 0 1 auto;
  }
  .page-home .testimonial-cards {
    flex-direction: row;
    justify-content: center;
  }
}

/* 滚动显现占位（无JS时内容完整） */
.page-home [data-animate] {
  opacity: 1;
  transform: none;
}

/* 兼容 reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .page-home * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .page-home .live-dot {
    animation: none;
    background: var(--c-primary-red);
  }
}

.page-home {
  --container-padding: 1rem;
}
