/* =========================================================
   PAGE: HOME 首页 · 球盟会QMH中文CN官网
   Scope: .page-home 内全部页面专属样式
   ========================================================= */
.page-home {
  --home-gold: #F5C542;
  --home-gold-line: rgba(245, 197, 66, .55);
  --home-gold-soft: rgba(245, 197, 66, .14);
  --home-ivory: #E8EAF0;
  --home-rail: 200px;
  --home-card-ease: cubic-bezier(.22, .61, .36, 1);
  --home-glass: rgba(11, 14, 20, .72);
}

/* ========== HERO 框景首屏 ========== */
.page-home .home-hero {
  position: relative;
}

.page-home .home-hero__frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 72px 16px 64px;
  border: 2px solid var(--home-gold-line);
  border-top: 4px solid var(--home-gold);
  background: linear-gradient(155deg, #0D1522 0%, #121A2A 48%, #1A2436 100%);
  overflow: hidden;
}

.page-home .home-hero__frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(139, 147, 167, .30);
  z-index: 2;
  pointer-events: none;
}

.page-home .home-hero .qmh-coords {
  z-index: 6;
  font-family: var(--qmh-font-num);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--home-ivory);
  opacity: .72;
}

.page-home .home-hero .qmh-coords--tl { top: 18px; left: 16px; }
.page-home .home-hero .qmh-coords--tr { top: 18px; right: 16px; }
.page-home .home-hero .qmh-coords--bl { bottom: 48px; left: 16px; }
.page-home .home-hero .qmh-coords--br { bottom: 48px; right: 16px; }

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .20;
  transform: scale(1.06);
}

.page-home .home-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, .30) 0%, rgba(11, 14, 20, .78) 100%);
  z-index: 1;
}

.page-home .home-hero__slant {
  position: absolute;
  right: -10%;
  bottom: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(46, 230, 255, .05) 0%, rgba(200, 241, 53, .16) 100%);
  clip-path: polygon(28% 100%, 34% 100%, 8% 0%, 0% 0%);
  pointer-events: none;
  z-index: 1;
}

.page-home .home-hero__scale {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  border-left: 1px solid rgba(245, 197, 66, .20);
}

.page-home .home-hero__scale span {
  width: 12px;
  height: 1px;
  background: rgba(245, 197, 66, .55);
}

.page-home .home-hero__scale span:first-child { width: 26px; }
.page-home .home-hero__scale span:last-child { width: 20px; }

.page-home .home-hero__flow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.page-home .home-hero__flow span {
  position: absolute;
  width: 220px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 255, .85), transparent);
  opacity: 0;
  animation: homeFlow 8s ease-in-out infinite;
}

.page-home .home-hero__flow span:nth-child(2) {
  top: 46%;
  left: -20%;
  background: linear-gradient(90deg, transparent, rgba(200, 241, 53, .70), transparent);
  animation-delay: 1.8s;
}

.page-home .home-hero__flow span:nth-child(3) {
  top: 72%;
  left: -4%;
  animation-delay: 3.6s;
}

@keyframes homeFlow {
  0% { transform: translateX(-140px) rotate(-18deg); opacity: 0; }
  14% { opacity: .8; }
  72% { opacity: .4; }
  100% { transform: translateX(1400px) rotate(-18deg); opacity: 0; }
}

.page-home .home-hero__content {
  position: relative;
  z-index: 5;
  max-width: 720px;
  padding-bottom: 48px;
}

.page-home .home-hero__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .home-hero__title {
  margin: 0 0 14px;
  font-family: var(--qmh-font-head);
  font-weight: 900;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--qmh-text);
}

.page-home .home-hero__desc {
  margin: 0 0 24px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--qmh-muted);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-hero__status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--home-glass);
  border-top: 1px solid var(--qmh-line);
  font-size: 12px;
  color: var(--qmh-muted);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-hero__status::-webkit-scrollbar { display: none; }

.page-home .home-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--qmh-font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--qmh-green);
  flex: none;
}

.page-home .home-hero__live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qmh-green);
  animation: homeLive 1.8s ease-out infinite;
}

@keyframes homeLive {
  0% { box-shadow: 0 0 0 0 rgba(200, 241, 53, .55); }
  70% { box-shadow: 0 0 0 9px rgba(200, 241, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 241, 53, 0); }
}

.page-home .home-hero__ticker {
  flex: none;
  color: var(--qmh-muted);
}

.page-home .home-hero__ticker::before {
  content: "·";
  margin-right: 8px;
  color: var(--qmh-blue);
}

.page-home .home-hero__update {
  margin-left: auto;
  flex: none;
  color: var(--home-gold);
}

/* ========== 01 今日战报速递 ========== */
.page-home .home-reports__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-reports__rail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .home-reports__rail .qmh-note {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--qmh-muted);
  letter-spacing: .12em;
}

.page-home .home-reports__rail-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--qmh-green), transparent);
}

.page-home .home-report-card--lead {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--qmh-line);
  border-left: 3px solid var(--qmh-green);
  background: var(--qmh-bg-card);
  overflow: hidden;
}

.page-home .home-report-card__thumb {
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

.page-home .home-report-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .home-report-card__star {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0B0E14;
  background: var(--home-gold);
}

.page-home .home-report-card__body {
  padding: 20px 18px;
}

.page-home .home-report-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.page-home .home-report-card__time {
  font-size: 12px;
  color: var(--qmh-muted);
}

.page-home .home-report-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--qmh-text);
}

.page-home .home-report-card__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--qmh-muted);
}

.page-home .home-report-card__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--qmh-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 230, 255, .35);
  transition: color .3s ease, border-color .3s ease;
}

.page-home .home-report-card__link:hover {
  color: var(--qmh-green);
  border-color: var(--qmh-line-green);
}

.page-home .home-report-list {
  margin-top: 20px;
  border-top: 1px solid var(--qmh-line);
}

.page-home .home-report-list__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--qmh-line);
  align-items: baseline;
}

.page-home .home-report-list__item dt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.page-home .home-report-list__type {
  font-size: 12px;
  color: var(--qmh-muted);
}

.page-home .home-report-list__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
}

.page-home .home-report-list__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--qmh-text);
}

.page-home .home-report-list__more {
  flex: none;
  font-size: 13px;
  color: var(--qmh-blue);
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s ease;
}

.page-home .home-report-list__more:hover {
  color: var(--qmh-green);
}

/* ========== 02 联赛全景图 ========== */
.page-home .home-leagues__wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 28px;
}

.page-home .home-leagues__map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--qmh-bg-card);
  border: 1px solid var(--qmh-line);
}

.page-home .home-leagues__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .55;
}

.page-home .home-leagues__mapnote {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 10px;
  background: rgba(11, 14, 20, .82);
  border-left: 2px solid var(--qmh-green);
}

.page-home .home-leagues__mapnote .qmh-note--h {
  font-size: 12px;
  color: var(--qmh-muted);
}

.page-home .home-leagues__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .home-league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--qmh-bg-card);
  border: 1px solid var(--qmh-line);
  transition: transform .28s var(--home-card-ease), border-color .28s var(--home-card-ease), box-shadow .28s var(--home-card-ease);
}

.page-home .home-league-card:hover {
  transform: translateX(6px);
  border-color: rgba(200, 241, 53, .5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

.page-home .home-league-card--gold {
  border-color: rgba(245, 197, 66, .35);
}

.page-home .home-league-card--gold:hover {
  border-color: rgba(245, 197, 66, .72);
}

.page-home .home-league-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-league-card__code {
  font-family: var(--qmh-font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--qmh-muted);
}

.page-home .home-league-card__ok {
  margin-left: auto;
  font-size: 12px;
  color: var(--qmh-green);
}

.page-home .home-league-card--gold .home-league-card__ok {
  color: var(--home-gold);
}

.page-home .home-league-card__stats {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-league-card__stats > div {
  flex: 1;
  padding: 10px 6px;
  background: rgba(139, 147, 167, .08);
  text-align: center;
}

.page-home .home-league-card__stats dt {
  margin-bottom: 2px;
  font-size: 11px;
  color: var(--qmh-muted);
}

.page-home .home-league-card__stats dd {
  margin: 0;
  font-family: var(--qmh-font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--qmh-green);
  letter-spacing: .02em;
}

.page-home .home-league-card--gold .home-league-card__stats dd {
  color: var(--home-gold);
}

.page-home .home-league-card__link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--qmh-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 230, 255, .35);
  transition: color .3s ease, border-color .3s ease;
}

.page-home .home-league-card__link:hover {
  color: var(--qmh-green);
  border-color: var(--qmh-line-green);
}

.page-home .home-leagues__flow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  width: 100%;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  opacity: .6;
}

/* ========== 03 订阅与收藏功能入口 ========== */
.page-home .home-features {
  position: relative;
  overflow: hidden;
}

.page-home .home-features .qmh-container {
  position: relative;
  z-index: 1;
}

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

.page-home .home-features__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .16;
}

.page-home .home-features__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, .58) 0%, rgba(11, 14, 20, .94) 100%);
}

.page-home .home-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .home-feature-card {
  position: relative;
  padding: 26px 24px 24px;
  background: rgba(18, 26, 42, .92);
  border: 1px solid var(--qmh-line);
  border-top: 3px solid var(--qmh-blue);
  transition: transform .3s var(--home-card-ease), border-color .3s var(--home-card-ease);
}

.page-home .home-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 230, 255, .42);
}

.page-home .home-feature-card--alt {
  border-top-color: var(--home-gold);
}

.page-home .home-feature-card--alt:hover {
  border-color: rgba(245, 197, 66, .42);
}

.page-home .home-feature-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  font-family: var(--qmh-font-num);
  font-weight: 900;
  font-size: 18px;
  color: var(--qmh-green);
  border: 1px solid rgba(200, 241, 53, .45);
}

.page-home .home-feature-card--alt .home-feature-card__num {
  color: var(--home-gold);
  border-color: rgba(245, 197, 66, .45);
}

.page-home .home-feature-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--qmh-text);
}

.page-home .home-feature-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--qmh-muted);
}

.page-home .home-feature-card__list {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .home-feature-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--qmh-muted);
}

.page-home .home-feature-card__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--qmh-green);
}

.page-home .home-feature-card--alt .home-feature-card__list li::before {
  background: var(--home-gold);
}

.page-home .home-feature-card .qmh-btn {
  margin-top: 4px;
}

/* ========== 04 版本更新亮点 ========== */
.page-home .home-updates__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-updates__rail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .home-updates__rail .qmh-note {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--qmh-muted);
  letter-spacing: .12em;
}

.page-home .home-updates__rail-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--qmh-blue), transparent);
}

.page-home .home-updates__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-update {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--qmh-line);
}

.page-home .home-update__num {
  font-family: var(--qmh-font-num);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--home-gold);
}

.page-home .home-update__body .qmh-tag {
  margin-bottom: 6px;
}

.page-home .home-update__title {
  margin: 8px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--qmh-text);
}

.page-home .home-update__text {
  margin: 0;
  max-width: 600px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--qmh-muted);
}

.page-home .home-updates__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ========== 平台信任声明 ========== */
.page-home .home-trust__box {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--qmh-bg-card);
  border-left: 4px solid var(--qmh-blue);
}

.page-home .home-trust__mark {
  display: flex;
  align-items: flex-start;
  font-family: var(--qmh-font-num);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: rgba(200, 241, 53, .5);
}

.page-home .home-trust__text {
  margin: 0;
  max-width: 70ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--qmh-muted);
}

/* ========== 响应式：744px ========== */
@media (min-width: 744px) {
  .page-home .home-hero__frame {
    min-height: 600px;
    padding: 84px 40px 68px;
  }

  .page-home .home-reports__grid {
    grid-template-columns: var(--home-rail) 1fr;
    gap: 32px;
  }

  .page-home .home-reports__rail {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 46px;
  }

  .page-home .home-reports__rail .qmh-note {
    display: block;
  }

  .page-home .home-reports__rail-line {
    width: 1px;
    height: 120px;
    flex: none;
  }

  .page-home .home-report-card--lead {
    grid-template-columns: 240px 1fr;
  }

  .page-home .home-report-card__thumb {
    min-height: 100%;
  }

  .page-home .home-leagues__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .home-features__grid {
    grid-template-columns: 1fr;
  }

  .page-home .home-updates__grid {
    grid-template-columns: var(--home-rail) 1fr;
    gap: 32px;
  }

  .page-home .home-updates__rail {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 40px;
  }

  .page-home .home-updates__rail .qmh-note {
    display: block;
  }

  .page-home .home-updates__rail-line {
    width: 1px;
    height: 120px;
    flex: none;
  }
}

/* ========== 响应式：1024px ========== */
@media (min-width: 1024px) {
  .page-home .home-hero__frame {
    min-height: 640px;
    padding-left: 72px;
    padding-right: 72px;
  }

  .page-home .home-hero__desc {
    font-size: 16px;
  }

  .page-home .home-reports__rail .qmh-note {
    font-size: 13px;
  }

  .page-home .home-report-card--lead {
    grid-template-columns: 300px 1fr;
  }

  .page-home .home-report-card__body {
    padding: 28px 26px;
  }

  .page-home .home-report-list__item {
    grid-template-columns: 96px 1fr;
  }

  .page-home .home-leagues__wrap {
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
  }

  .page-home .home-leagues__map {
    position: sticky;
    top: calc(var(--qmh-header-h) + 24px);
  }

  .page-home .home-league-card__stats dd {
    font-size: 30px;
  }

  .page-home .home-features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .page-home .home-updates__list {
    padding-left: 0;
  }

  .page-home .home-update {
    grid-template-columns: 56px 1fr;
  }
}

/* ========== 降低动效偏好 ========== */
@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
