/* ==============================================
   页面专属样式 — 品牌首页 (page-home)
   作用域：仅限 .page-home
   ============================================== */
.page-home {
  --home-accent: #FF6B35;
  --home-accent-glow: rgba(255, 107, 53, 0.25);
  --home-card-bg: #122A4A;
  --home-text-muted: #B0B8C4;
  --home-bg-deep: #0A1F3F;
  --home-gradient-orange: linear-gradient(135deg, #FF6B35, #FF8C5A);
  --home-font-heading: "Montserrat Black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial Black, sans-serif;
  --home-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --home-font-number: "Courier New", Courier, monospace;

  background-color: var(--home-bg-deep);
  color: #FFFFFF;
  font-family: var(--home-font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- 首屏封面 ---- */
.page-home .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding: 2rem 1.5rem 3rem;
  overflow: hidden;
  text-align: center;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 70% at 50% 20%, rgba(10,31,63,0.85) 0%, var(--home-bg-deep) 100%);
  z-index: 0;
}

.page-home .hero__split {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: var(--home-gradient-orange);
  clip-path: polygon(45% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.page-home .hero__context {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--home-text-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.page-home .hero__title {
  font-family: var(--home-font-heading);
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.page-home .hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--home-text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-home .hero__index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.page-home .hero__image {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  max-width: 320px;
  width: 100%;
}

.page-home .hero__image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: cover;
}

/* ---- 通用章节 ---- */
.page-home .section {
  position: relative;
  padding: 3.5rem 1.5rem;
  overflow: hidden;
}

.page-home .section__inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}

.page-home .section__heading {
  font-family: var(--home-font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.page-home .section__desc {
  font-size: 1rem;
  color: var(--home-text-muted);
  margin: 0 0 2rem;
  max-width: 560px;
}

.page-home .section__link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--home-accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

.page-home .section__link:hover,
.page-home .section__link:focus-visible {
  border-bottom-color: var(--home-accent);
  color: #FF8C5A;
}

.page-home .section__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.page-home .section__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,63,0.92) 30%, rgba(10,31,63,0.70) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ---- 动态赛事日历 ---- */
.page-home .section--calendar {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.page-home .calendar-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--home-accent) transparent;
}

.page-home .calendar-track::-webkit-scrollbar {
  height: 4px;
}

.page-home .calendar-track::-webkit-scrollbar-thumb {
  background: var(--home-accent);
  border-radius: 4px;
}

.page-home .calendar-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  background: var(--home-card-bg);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  border: 1px solid rgba(255,255,255,0.06);
}

.page-home .calendar-card:hover,
.page-home .calendar-card:focus-within {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255,107,53,0.15);
  border-color: rgba(255,107,53,0.3);
}

.page-home .calendar-card__icon {
  font-size: 2.4rem;
  line-height: 1;
}

.page-home .calendar-card__name {
  font-family: var(--home-font-heading);
  font-size: 1.2rem;
  color: #FFFFFF;
  text-align: center;
}

.page-home .calendar-card__tag {
  font-size: 0.75rem;
  color: var(--home-accent);
  background: rgba(255,107,53,0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.page-home .calendar-card--more {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
}

.page-home .calendar-card--more .calendar-card__tag {
  background: rgba(255,255,255,0.06);
  color: var(--home-text-muted);
}

/* ---- 实时积分榜 ---- */
.page-home .section--standings {
  background: linear-gradient(180deg, rgba(18,42,74,0.6) 0%, var(--home-bg-deep) 100%);
}

.page-home .standings__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5rem 2rem;
  margin: 1.5rem 0 1rem;
}

.page-home .standings__number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.page-home .stat-number {
  font-family: var(--home-font-number);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  color: var(--home-accent);
  line-height: 1;
  text-shadow: 0 0 60px var(--home-accent-glow);
  letter-spacing: -0.04em;
}

.page-home .standings__unit {
  font-family: var(--home-font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #FFFFFF;
  margin-left: 0.2rem;
}

.page-home .standings__desc {
  font-size: 1rem;
  color: var(--home-text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.page-home .standings__chart {
  margin: 1.5rem 0 0.5rem;
  max-width: 400px;
  width: 100%;
}

.page-home .standings__chart img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* ---- 最新通知 ---- */
.page-home .section--notice {
  background: linear-gradient(135deg, rgba(255,107,53,0.06) 0%, rgba(10,31,63,0.95) 100%);
}

.page-home .notice__banner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  background: rgba(18,42,74,0.6);
  border-left: 5px solid var(--home-accent);
  border-radius: 20px;
  padding: 2rem 2rem 2.5rem;
  backdrop-filter: blur(4px);
}

.page-home .notice__text {
  flex: 1 1 280px;
}

.page-home .notice__text .section__heading {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.page-home .notice__text p {
  color: #E0E4EC;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-home .notice__highlight {
  color: var(--home-accent);
  font-weight: 700;
  background: rgba(255,107,53,0.1);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.page-home .notice__image {
  flex: 0 0 200px;
  max-width: 240px;
  width: 100%;
}

.page-home .notice__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ---- 品牌故事摘要 ---- */
.page-home .section--story {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 5rem;
  background: linear-gradient(0deg, rgba(10,31,63,1) 0%, rgba(18,42,74,0.4) 100%);
}

.page-home .section--story .section__heading {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.page-home .story__lead {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #FFFFFF;
  max-width: 600px;
  margin: 0 auto 0.75rem;
  font-weight: 500;
}

.page-home .story__body {
  font-size: 1rem;
  color: var(--home-text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

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

/* ---- 按钮系统（页面级微调） ---- */
.page-home .btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 40px;
  font-family: var(--home-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.page-home .btn:hover,
.page-home .btn:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(255,107,53,0.3);
}

.page-home .btn--primary {
  background: var(--home-gradient-orange);
  color: #FFFFFF;
}

.page-home .btn--outline {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255,255,255,0.25);
}

.page-home .btn--outline:hover,
.page-home .btn--outline:focus-visible {
  border-color: var(--home-accent);
  color: var(--home-accent);
  box-shadow: 0 0 20px rgba(255,107,53,0.15);
}

.page-home .btn--small {
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  background: var(--home-gradient-orange);
  color: #FFFFFF;
}

/* ---- 响应式：桌面端 ---- */
@media (min-width: 768px) {
  .page-home .hero {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding: 4rem 4rem 5rem;
    min-height: 85vh;
  }

  .page-home .hero__content {
    max-width: 55%;
  }

  .page-home .hero__context {
    font-size: 1rem;
  }

  .page-home .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .page-home .hero__index {
    justify-content: flex-start;
  }

  .page-home .hero__image {
    max-width: 380px;
    margin-top: 0;
  }

  .page-home .hero__split {
    width: 50%;
    clip-path: polygon(55% 0%, 100% 0%, 100% 100%, 15% 100%);
    opacity: 0.10;
  }

  .page-home .section {
    padding: 5rem 4rem;
  }

  .page-home .calendar-card {
    flex: 0 0 200px;
    padding: 2rem 1.2rem;
  }

  .page-home .standings__hero {
    flex-wrap: nowrap;
    align-items: center;
  }

  .page-home .notice__banner {
    flex-wrap: nowrap;
    padding: 2.5rem 3rem;
  }

  .page-home .notice__image {
    flex: 0 0 220px;
  }

  .page-home .section--story {
    padding-top: 5rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    padding: 3rem 6rem 4rem;
  }

  .page-home .hero__content {
    max-width: 50%;
  }

  .page-home .hero__image {
    max-width: 440px;
  }

  .page-home .section {
    padding: 6rem 6rem;
  }

  .page-home .calendar-card {
    flex: 0 0 220px;
  }

  .page-home .standings__hero {
    gap: 3rem;
  }
}

/* ---- 窄屏微调：防止横向溢出 ---- */
@media (max-width: 420px) {
  .page-home .hero {
    padding: 1.5rem 1rem 2.5rem;
  }

  .page-home .hero__title {
    font-size: 2.4rem;
  }

  .page-home .section {
    padding: 2.5rem 1rem;
  }

  .page-home .calendar-card {
    flex: 0 0 140px;
    padding: 1rem 0.75rem;
  }

  .page-home .notice__banner {
    padding: 1.5rem 1rem;
  }

  .page-home .notice__image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-home .standings__desc {
    font-size: 0.9rem;
  }

  .page-home .stat-number {
    font-size: 3.6rem;
  }
}
