/* ========== 首页页面专属样式 ========== */
.page-home {
  background: var(--primary-bg);
  color: var(--text-primary);
}

/* ---------- 面包屑 ---------- */
.page-home .page-home__crumb {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 20, 0.88);
  padding: 10px 0;
}
.page-home .page-home__crumb .mb-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.page-home .page-home__crumb .mb-breadcrumb a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--ease-out);
}
.page-home .page-home__crumb .mb-breadcrumb a:hover {
  color: var(--accent-green);
}

/* ---------- 首屏 ---------- */
.page-home .ph-hero {
  position: relative;
  overflow: hidden;
  background: var(--primary-bg);
}
.page-home .ph-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(0, 200, 255, 0.14), transparent 52%),
    radial-gradient(ellipse at 10% 95%, rgba(0, 255, 135, 0.10), transparent 48%),
    linear-gradient(125deg, transparent 58%, rgba(154, 92, 255, 0.08) 58%, transparent 64%);
  pointer-events: none;
  z-index: 1;
}
.page-home .ph-hero__ticket {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.10), rgba(0, 200, 255, 0.10));
  border: 1px solid rgba(0, 255, 135, 0.22);
  transform: rotate(45deg);
  z-index: 1;
  pointer-events: none;
}
.page-home .ph-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 44px 24px 72px;
  display: grid;
  gap: 36px;
}
.page-home .ph-hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.08;
  margin: 18px 0 22px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.page-home .ph-hero__title span {
  display: block;
  color: var(--accent-green);
  text-shadow: 0 0 26px rgba(0, 255, 135, 0.45);
}
.page-home .ph-hero__lead {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 28px;
}
.page-home .ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.page-home .ph-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 22px;
  margin-top: 48px;
  justify-content: start;
}
.page-home .ph-hero__stat {
  padding-right: 22px;
  border-right: 1px solid var(--border);
}
.page-home .ph-hero__stat:last-child {
  border-right: 0;
  padding-right: 0;
}
.page-home .ph-hero__stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1.1;
}
.page-home .ph-hero__stat-num span {
  font-size: 14px;
  color: var(--text-secondary);
}
.page-home .ph-hero__stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.page-home .ph-hero__visual {
  position: relative;
  min-height: 280px;
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  overflow: hidden;
}
.page-home .ph-hero__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.32;
  max-width: 100%;
}
.page-home .ph-hero__svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.page-home .ph-hero__scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent-green), transparent);
  animation: ph-scan-move 3.2s ease-in-out infinite alternate;
  opacity: 0.5;
  z-index: 3;
  pointer-events: none;
}
@keyframes ph-scan-move {
  from { left: -8px; }
  to { left: calc(100% - 4px); }
}

/* ---------- 信任条 ---------- */
.page-home .ph-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--secondary-bg);
  padding: 22px 0;
}
.page-home .ph-trust__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.page-home .ph-trust__inner span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-home .ph-trust__inner span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- 区块头部 ---------- */
.page-home .ph-head {
  margin-bottom: 36px;
}
.page-home .ph-head__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  margin: 14px 0 12px;
  color: var(--text-primary);
}
.page-home .ph-head__lead {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 积分榜 ---------- */
.page-home .ph-standings {
  background: var(--primary-bg);
}
.page-home .ph-standings__grid {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}
.page-home .ph-standings__card {
  background: var(--secondary-bg);
  padding: 20px;
  border-radius: 0;
}
.page-home .ph-standings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.page-home .ph-standings__league {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.page-home .ph-table {
  width: 100%;
  border-collapse: collapse;
}
.page-home .ph-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.page-home .ph-table td {
  font-size: 14px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(38, 49, 64, 0.5);
  transition: color var(--ease-out);
}
.page-home .ph-table tr:last-child td {
  border-bottom: 0;
}
.page-home .ph-table__pos {
  font-family: var(--font-mono);
  color: var(--accent-blue);
  font-size: 13px;
}
.page-home .ph-table__team {
  color: var(--text-primary);
  font-weight: 500;
}
.page-home .ph-table__played {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-align: right;
}
.page-home .ph-table__pts {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-green);
  text-align: right;
}
.page-home .ph-table__row {
  position: relative;
  transition: background var(--ease-out);
}
.page-home .ph-table__row:hover {
  background: rgba(0, 255, 135, 0.06);
}
.page-home .ph-table__row:hover .ph-table__team {
  color: var(--accent-green);
}
.page-home .ph-standings__action {
  text-align: center;
}

/* ---------- 战报与集锦 ---------- */
.page-home .ph-reports {
  background: var(--secondary-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.page-home .ph-reports__grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.page-home .ph-report {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--primary-bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  padding: 0;
}
.page-home .ph-report__media {
  position: relative;
  overflow: hidden;
}
.page-home .ph-report__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.page-home .ph-report:hover .ph-report__media img,
.page-home .ph-report:focus-within .ph-report__media img {
  transform: scale(1.04);
  opacity: 1;
}
.page-home .ph-report__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 14, 20, 0.5);
  color: var(--accent-green);
  font-size: 36px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}
.page-home .ph-report:hover .ph-report__play,
.page-home .ph-report:focus-within .ph-report__play {
  opacity: 1;
}
@media (hover: none) {
  .page-home .ph-report__play {
    opacity: 0.9;
  }
}
.page-home .ph-report__body {
  padding: 18px;
}
.page-home .ph-report__title {
  font-size: 17px;
  line-height: 1.4;
  margin: 10px 0 6px;
  color: var(--text-primary);
}
.page-home .ph-report__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-blue);
  margin-bottom: 8px;
}
.page-home .ph-report__brief {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.page-home .ph-report__go {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease-out);
}
.page-home .ph-report__go:hover {
  color: var(--accent-blue);
}
.page-home .ph-reports__more {
  text-align: center;
  margin-top: 32px;
}

/* ---------- 能力亮点 ---------- */
.page-home .ph-features {
  background: var(--primary-bg);
}
.page-home .ph-features__grid {
  display: grid;
  gap: 20px;
  padding: 8px 0;
}
.page-home .ph-feature {
  border: 1px solid var(--border);
  background: var(--secondary-bg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.page-home .ph-feature::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue), transparent);
}
.page-home .ph-feature__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1.2;
}
.page-home .ph-feature__title {
  font-size: 17px;
  margin: 8px 0 6px;
  color: var(--text-primary);
}
.page-home .ph-feature__text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- iOS订阅 ---------- */
.page-home .ph-subscribe {
  background: var(--primary-bg);
}
.page-home .ph-subscribe__inner {
  display: grid;
  gap: 36px;
  align-items: center;
}
.page-home .ph-subscribe__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 100%);
  overflow: hidden;
}
.page-home .ph-subscribe__visual img {
  position: absolute;
  width: 42%;
  max-width: 220px;
  height: 78%;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  z-index: 2;
}
.page-home .ph-subscribe__ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px dashed var(--accent-blue);
  border-radius: 50%;
  animation: ph-ring-spin 10s linear infinite;
  z-index: 1;
}
@keyframes ph-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.page-home .ph-subscribe__content {
  padding-bottom: 8px;
}
.page-home .ph-subscribe__list {
  list-style: none;
  margin: 20px 0 24px;
  display: grid;
  gap: 12px;
}
.page-home .ph-subscribe__list li {
  padding-left: 26px;
  position: relative;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
}
.page-home .ph-subscribe__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---------- 注册登录CTA ---------- */
.page-home .ph-register {
  position: relative;
  background: var(--primary-bg);
  border-top: 1px solid var(--border);
}
.page-home .ph-register__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
  max-width: 100%;
}
.page-home .ph-register__inner {
  position: relative;
  z-index: 2;
  padding: 56px 0;
}
.page-home .ph-register__card {
  background: rgba(19, 26, 36, 0.92);
  border: 1px solid var(--border);
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
  border-radius: 0;
}
.page-home .ph-register__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.3;
  margin: 12px 0 14px;
  color: var(--text-primary);
}
.page-home .ph-register__text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.page-home .ph-register__steps {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}
.page-home .ph-register__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(11, 14, 20, 0.5);
  border-left: 2px solid var(--accent-blue);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}
.page-home .ph-register__steps li span {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-green);
  min-width: 30px;
}
.page-home .ph-register__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.page-home .ph-register__link {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--ease-out);
}
.page-home .ph-register__link:hover {
  color: var(--accent-green);
}

/* ---------- 滚动显现 ---------- */
.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.page-home [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  .page-home .ph-hero__inner {
    padding: 56px 32px 80px;
  }
  .page-home .ph-hero__title {
    font-size: 52px;
  }
  .page-home .ph-standings__grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .ph-standings__card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .page-home .ph-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .ph-subscribe__inner {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .ph-register__card {
    padding: 40px 48px;
  }
  .page-home .ph-register__actions {
    flex-direction: row;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 960px) {
  .page-home .ph-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    padding: 0 48px;
    gap: 64px;
  }
  .page-home .ph-hero__title {
    font-size: 64px;
  }
  .page-home .ph-hero__visual {
    min-height: 420px;
  }
  .page-home .ph-hero__svg {
    min-height: 420px;
  }
  .page-home .ph-standings__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .ph-standings__card:nth-child(3) {
    grid-column: auto;
  }
  .page-home .ph-reports__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
  .page-home .ph-report {
    flex: none;
  }
  .page-home .ph-subscribe__visual {
    min-height: 480px;
  }
  .page-home .ph-register__inner {
    padding: 80px 0 96px;
  }
  .page-home .ph-register__title {
    font-size: 36px;
  }
}

/* ---------- 减少动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .ph-hero__scan,
  .page-home .ph-subscribe__ring {
    animation: none;
    opacity: 0;
  }
  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-home .ph-report__media img,
  .page-home .ph-report:hover .ph-report__media img {
    transform: none;
    transition: none;
  }
}
