/* ===== 页面专属：首页 .page-home ===== */
.page-home {
  --ph-primary: #FF6B1A;
  --ph-accent: #00BFFF;
  --ph-dark: #1A1A1A;
  --ph-gray: #2C2C2C;
  --ph-light: #FFFFFF;
  --ph-text: #1A1A1A;
  --ph-text-muted: #666666;
  --ph-border: #e0e0e0;
  --ph-font-heading: 'Impact', 'Arial Black', sans-serif;
  --ph-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ph-gap: 1.5rem;
  width: 100%;
  overflow-x: hidden;
}

/* ---- 首屏封面 ---- */
.page-home .hero-cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ph-dark);
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
}

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

.page-home .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.2) contrast(1.1);
}

.page-home .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255,107,26,0.35) 0%, rgba(26,26,26,0.85) 70%);
  z-index: 1;
}

.page-home .hero-speed-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    105deg,
    transparent 0px,
    transparent 40px,
    rgba(255,255,255,0.04) 40px,
    rgba(255,255,255,0.04) 42px
  );
  pointer-events: none;
}

.page-home .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 1100px;
  width: 100%;
}

.page-home .hero-badge {
  display: inline-block;
  background: var(--ph-primary);
  color: var(--ph-light);
  font-family: var(--ph-font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.page-home .hero-heading {
  font-family: var(--ph-font-heading);
  font-size: clamp(2.8rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--ph-light);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.page-home .hero-sub {
  font-family: var(--ph-font-body);
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.page-home .hero-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.page-home .hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.2rem 1.8rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--ph-light);
  font-family: var(--ph-font-body);
  min-width: 140px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform var(--transition-normal, 0.3s), box-shadow var(--transition-normal, 0.3s), border-color var(--transition-normal, 0.3s);
  cursor: pointer;
}

.page-home .hero-card:hover,
.page-home .hero-card:focus-visible {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: var(--ph-primary);
}

.page-home .hero-card--primary {
  background: rgba(255,107,26,0.55);
}

.page-home .hero-card--accent {
  background: rgba(0,191,255,0.35);
}

.page-home .hero-card--dark {
  background: rgba(44,44,44,0.7);
}

.page-home .hero-card-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .hero-card-icon svg {
  width: 100%;
  height: 100%;
}

.page-home .hero-card-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.page-home .hero-card-meta {
  font-size: 0.72rem;
  opacity: 0.7;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-home .hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.5);
  font-family: var(--ph-font-body);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: ph-bounce-down 2s ease-in-out infinite;
}

@keyframes ph-bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- 面板通用 ---- */
.page-home .panel-updates,
.page-home .panel-guide,
.page-home .panel-history,
.page-home .panel-events {
  padding: 3rem 1rem;
}

.page-home .panel-header {
  margin-bottom: 2rem;
}

.page-home .panel-title {
  font-family: var(--ph-font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--ph-dark);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.page-home .panel-title-accent {
  color: var(--ph-primary);
}

.page-home .panel-desc {
  font-family: var(--ph-font-body);
  font-size: 1rem;
  color: var(--ph-text-muted);
  max-width: 640px;
  line-height: 1.6;
  margin: 0;
}

/* ---- 本月新内容 ---- */
.page-home .updates-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.page-home .update-card {
  background: var(--ph-light);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--ph-border);
  transition: transform var(--transition-normal, 0.3s), box-shadow var(--transition-normal, 0.3s);
  display: flex;
  flex-direction: column;
}

.page-home .update-card:hover,
.page-home .update-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.page-home .update-card--featured {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .page-home .updates-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .update-card--featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.page-home .update-card-img {
  overflow: hidden;
  background: var(--ph-gray);
}

.page-home .update-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal, 0.3s);
}

.page-home .update-card:hover .update-card-img img {
  transform: scale(1.04);
}

.page-home .update-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.page-home .update-card-tag {
  display: inline-block;
  font-family: var(--ph-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-primary);
  border: 1px solid var(--ph-primary);
  border-radius: 1rem;
  padding: 0.15rem 0.7rem;
  align-self: flex-start;
}

.page-home .update-card-title {
  font-family: var(--ph-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ph-dark);
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-home .update-card-text {
  font-family: var(--ph-font-body);
  font-size: 0.88rem;
  color: var(--ph-text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.page-home .update-card-link {
  font-family: var(--ph-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ph-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-fast, 0.2s);
}

.page-home .update-card-link:hover,
.page-home .update-card-link:focus-visible {
  gap: 0.6rem;
  text-decoration: underline;
}

.page-home .link-arrow {
  transition: transform var(--transition-fast, 0.2s);
}

/* ---- 会员中心帮助指南 ---- */
.page-home .guide-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .page-home .guide-layout {
    grid-template-columns: 1fr 1.2fr;
  }
}

.page-home .guide-visual {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium, 0 4px 16px rgba(0,0,0,0.12));
  background: var(--ph-gray);
}

.page-home .guide-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.page-home .guide-compare-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--ph-primary);
  color: var(--ph-light);
  font-family: var(--ph-font-body);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  box-shadow: 0 2px 12px rgba(255,107,26,0.4);
}

.page-home .guide-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.page-home .guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .guide-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-family: var(--ph-font-body);
  font-size: 0.95rem;
  color: var(--ph-text);
  line-height: 1.5;
}

.page-home .guide-item-num {
  font-family: var(--ph-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ph-primary);
  line-height: 1;
  min-width: 2rem;
  text-align: right;
}

.page-home .guide-item-text {
  flex: 1;
}

.page-home .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ph-primary);
  color: var(--ph-light);
  font-family: var(--ph-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.6rem;
  border-radius: 2rem;
  text-decoration: none;
  border: 2px solid var(--ph-primary);
  transition: background var(--transition-fast, 0.2s), transform var(--transition-fast, 0.2s);
  align-self: flex-start;
}

.page-home .btn-primary:hover,
.page-home .btn-primary:focus-visible {
  background: #e05500;
  transform: scale(1.02);
}

.page-home .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--ph-primary);
  font-family: var(--ph-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  border: 2px solid var(--ph-primary);
  transition: background var(--transition-fast, 0.2s), color var(--transition-fast, 0.2s);
}

.page-home .btn-outline:hover,
.page-home .btn-outline:focus-visible {
  background: var(--ph-primary);
  color: var(--ph-light);
}

/* ---- 历史交锋 ---- */
.page-home .history-timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .page-home .history-timeline {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.page-home .timeline-bg {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--ph-gray);
  max-height: 500px;
}

.page-home .timeline-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .timeline-track {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--ph-primary);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-home .timeline-item {
  position: relative;
  padding-left: 1rem;
}

.page-home .timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ph-primary);
  border: 3px solid var(--ph-light);
  box-shadow: 0 0 0 3px var(--ph-primary);
  transform: translateX(-50%);
}

.page-home .timeline-content {
  background: var(--ph-light);
  border: 1px solid var(--ph-border);
  border-radius: 0.8rem;
  padding: 1.2rem;
  transition: box-shadow var(--transition-normal, 0.3s), transform var(--transition-normal, 0.3s);
}

.page-home .timeline-content:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateX(4px);
}

.page-home .timeline-tag {
  display: inline-block;
  font-family: var(--ph-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-accent);
  background: rgba(0,191,255,0.08);
  border-radius: 1rem;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.3rem;
}

.page-home .timeline-title {
  font-family: var(--ph-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ph-dark);
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}

.page-home .timeline-text {
  font-family: var(--ph-font-body);
  font-size: 0.85rem;
  color: var(--ph-text-muted);
  line-height: 1.5;
  margin: 0;
}

.page-home .history-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* ---- 赛事速览 ---- */
.page-home .events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-home .filter-btn {
  font-family: var(--ph-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border: 2px solid var(--ph-border);
  border-radius: 2rem;
  background: transparent;
  color: var(--ph-text-muted);
  cursor: pointer;
  transition: border-color var(--transition-fast, 0.2s), color var(--transition-fast, 0.2s), background var(--transition-fast, 0.2s);
}

.page-home .filter-btn:hover,
.page-home .filter-btn:focus-visible {
  border-color: var(--ph-primary);
  color: var(--ph-primary);
}

.page-home .filter-btn--active {
  border-color: var(--ph-primary);
  background: var(--ph-primary);
  color: var(--ph-light);
}

.page-home .events-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .page-home .events-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .page-home .events-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.page-home .event-card {
  background: var(--ph-light);
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--ph-border);
  transition: transform var(--transition-normal, 0.3s), box-shadow var(--transition-normal, 0.3s);
  display: flex;
  flex-direction: column;
}

.page-home .event-card:hover,
.page-home .event-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.page-home .event-card-img {
  position: relative;
  overflow: hidden;
  background: var(--ph-gray);
  height: 140px;
}

.page-home .event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal, 0.3s);
}

.page-home .event-card:hover .event-card-img img {
  transform: scale(1.06);
}

.page-home .event-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--ph-primary);
  color: var(--ph-light);
  font-family: var(--ph-font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 0.3rem;
}

.page-home .event-card-body {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.page-home .event-card-title {
  font-family: var(--ph-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ph-dark);
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-home .event-card-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--ph-font-body);
  font-size: 0.72rem;
  color: var(--ph-text-muted);
}

.page-home .event-card-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-family: var(--ph-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ph-dark);
}

.page-home .team-vs {
  font-family: var(--ph-font-heading);
  color: var(--ph-primary);
  font-size: 0.9rem;
}

.page-home .event-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: auto;
}

.page-home .stat-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  font-size: 0;
  position: relative;
}

.page-home .stat-bar--home {
  background: var(--ph-primary);
}

.page-home .stat-bar--away {
  background: var(--ph-accent);
}

.page-home .events-footer {
  text-align: center;
  margin-top: 1.5rem;
}

/* ---- 信任声明 ---- */
.page-home .trust-statement-block {
  padding: 2rem 1rem;
  background: var(--ph-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
}

.page-home .trust-text {
  font-family: var(--ph-font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

/* ---- 响应式微调 ---- */
@media (max-width: 479px) {
  .page-home .hero-heading {
    font-size: 2.8rem;
  }
  .page-home .hero-card {
    min-width: 100px;
    padding: 0.8rem 1.2rem;
  }
  .page-home .hero-card-label {
    font-size: 0.85rem;
  }
  .page-home .panel-updates,
  .page-home .panel-guide,
  .page-home .panel-history,
  .page-home .panel-events {
    padding: 2rem 0.5rem;
  }
  .page-home .guide-layout {
    gap: 1.5rem;
  }
  .page-home .timeline-track {
    padding-left: 1rem;
  }
  .page-home .timeline-marker {
    left: -1rem;
    width: 10px;
    height: 10px;
  }
}

@media (min-width: 1200px) {
  .page-home .panel-updates,
  .page-home .panel-guide,
  .page-home .panel-history,
  .page-home .panel-events {
    padding: 4rem 0;
  }
  .page-home .hero-content {
    padding: 3rem 2rem;
  }
}

/* ---- data-reveal 动画 (渐进增强) ---- */
.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-home [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.page-home [data-reveal="fade-left"] {
  transform: translateX(-20px);
}

.page-home [data-reveal="fade-left"].revealed {
  transform: translateX(0);
}

/* ---- 容器复用 ---- */
.page-home .container {
  max-width: var(--content-max-width, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* ---- 卡片悬停信息展示 (渐进增强) ---- */
.page-home .event-card {
  cursor: pointer;
}

.page-home .event-card:focus-visible {
  outline: 2px solid var(--ph-accent);
  outline-offset: 2px;
}

/* ---- 移动端导航兼容 ---- */
@media (max-width: 767px) {
  .page-home .hero-cards {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }
  .page-home .hero-card {
    flex-direction: row;
    justify-content: center;
    min-width: 0;
  }
}
</style>
</main>
