/* ==========================================================
   半岛体育首页专属样式
   作用域：.page-home
   ========================================================== */
.page-home {
  --ph-bg: #0a1128;
  --ph-bg-deep: #060d1c;
  --ph-bg-card: #0d1b3e;
  --ph-gold: #d4a843;
  --ph-gold-light: #f0d68a;
  --ph-emerald: #00c48c;
  --ph-text: #f5f7fa;
  --ph-text-dim: #9ba3b5;
  --ph-line: rgba(212, 168, 67, 0.4);
  background: var(--ph-bg);
  color: var(--ph-text);
  overflow-x: hidden;
}

/* ---------- 通用区块标题 ---------- */
.page-home .ph-section-head {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.page-home .ph-section-kicker {
  display: inline-block;
  padding-left: 12px;
  border-left: 4px solid var(--ph-gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--ph-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-home .ph-section-title {
  margin: 0;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.page-home .ph-section-desc {
  margin: 14px 0 0;
  color: var(--ph-text-dim);
  font-weight: 300;
  line-height: 1.8;
  max-width: 680px;
}

/* ==========================================================
   HERO：热门赛事集锦轮播
   ========================================================== */
.page-home .ph-hero {
  position: relative;
  padding: 40px 0 56px;
  background:
    linear-gradient(rgba(212, 168, 67, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(212, 168, 67, 0.12), transparent 40%),
    var(--ph-bg-deep);
  background-size: 48px 48px, 48px 48px, auto, auto;
  overflow: hidden;
}
.page-home .ph-hero::after {
  content: "V3.1";
  position: absolute;
  right: -30px;
  top: 20px;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: clamp(80px, 12vw, 180px);
  color: rgba(212, 168, 67, 0.08);
  pointer-events: none;
  z-index: 0;
}
.page-home .ph-hero__top {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.page-home .ph-breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ph-text-dim);
}
.page-home .ph-breadcrumb a {
  color: var(--ph-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.page-home .ph-breadcrumb a:hover {
  color: var(--ph-gold-light);
}
.page-home .ph-breadcrumb__sep {
  opacity: 0.5;
}
.page-home .ph-breadcrumb [aria-current="page"] {
  color: var(--ph-gold);
}
.page-home .ph-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}
.page-home .ph-hero__kicker {
  display: inline-block;
  padding: 6px 14px;
  background: var(--ph-gold);
  color: var(--ph-bg-deep);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.page-home .ph-hero__title {
  margin: 20px 0 18px;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.page-home .ph-hero__lead {
  margin: 0;
  color: var(--ph-text-dim);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  max-width: 560px;
}
.page-home .ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.page-home .ph-hero__btn {
  display: inline-block;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ph-text);
  border: 1px solid var(--ph-line);
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.page-home .ph-hero__btn--gold {
  background: var(--ph-gold);
  border-color: var(--ph-gold);
  color: var(--ph-bg-deep);
}
.page-home .ph-hero__btn--gold:hover {
  background: var(--ph-gold-light);
  border-color: var(--ph-gold-light);
}
.page-home .ph-hero__btn--ghost:hover {
  background: var(--ph-bg-card);
  border-color: var(--ph-gold);
  color: var(--ph-gold-light);
}

/* 轮播轨道 */
.page-home .ph-hero__rail-title {
  margin: 0 0 18px;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--ph-gold-light);
}
.page-home .ph-hero__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 330px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 67, 0.5) rgba(10, 17, 40, 0.6);
}
.page-home .ph-hero__track::-webkit-scrollbar {
  height: 6px;
}
.page-home .ph-hero__track::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 67, 0.5);
}
.page-home .ph-hero__track::-webkit-scrollbar-track {
  background: rgba(10, 17, 40, 0.6);
}
.page-home .ph-hero__card {
  position: relative;
  scroll-snap-align: start;
  background: var(--ph-bg-card);
  border: 1px solid var(--ph-line);
  border-top: 4px solid var(--ph-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.page-home .ph-hero__card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: var(--ph-gold);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.page-home .ph-hero__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border-color: var(--ph-gold);
}
.page-home .ph-hero__card .media-frame {
  overflow: hidden;
}
.page-home .ph-hero__card .media-frame img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .ph-hero__card:hover .media-frame img {
  transform: scale(1.06);
}
.page-home .ph-hero__card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.page-home .ph-hero__tag {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(212, 168, 67, 0.15);
  color: var(--ph-gold-light);
  border: 1px solid var(--ph-line);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.page-home .ph-hero__card-title {
  margin: 0;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 18px;
  line-height: 1.4;
}
.page-home .ph-hero__card-body p {
  color: var(--ph-text-dim);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.page-home .ph-hero__card-link {
  color: var(--ph-gold-light);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.page-home .ph-hero__card-link:hover {
  text-decoration: underline;
}

/* 平台规模数据 */
.page-home .ph-hero__stats {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--ph-line);
  padding-top: 28px;
}
.page-home .ph-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-home .ph-hero__stat strong {
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: clamp(22px, 5vw, 44px);
  color: var(--ph-gold);
}
.page-home .ph-hero__stat span {
  color: var(--ph-text-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ==========================================================
   章节导航预览
   ========================================================== */
.page-home .ph-index {
  position: relative;
  padding: 80px 0;
  background: var(--ph-bg);
}
.page-home .ph-index::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--ph-gold), transparent 70%);
  opacity: 0.3;
}
.page-home .ph-index::after {
  content: "X-01 / Y-02 / GRID";
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: var(--ph-line);
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 700;
  opacity: 0.5;
}
.page-home .ph-index__grid {
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.page-home .ph-index__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 28px 32px;
  background: var(--ph-bg-card);
  border-left: 4px solid var(--ph-gold);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: var(--ph-text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 210px;
}
.page-home .ph-index__card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--ph-gold);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.page-home .ph-index__card:hover {
  transform: translateY(-6px) translateX(2px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
  border-color: var(--ph-gold-light);
}
.page-home .ph-index__num {
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 50px;
  line-height: 1;
  color: var(--ph-gold);
  opacity: 0.9;
}
.page-home .ph-index__name {
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.page-home .ph-index__text {
  color: var(--ph-text-dim);
  font-weight: 300;
  line-height: 1.75;
  font-size: 14px;
  flex: 1;
}
.page-home .ph-index__link {
  color: var(--ph-gold-light);
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================
   三步直达
   ========================================================== */
.page-home .ph-steps {
  padding: 80px 0;
  position: relative;
  background: var(--ph-bg-deep);
  overflow: hidden;
}
.page-home .ph-steps::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(212, 168, 67, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.page-home .ph-steps__container {
  position: relative;
  z-index: 1;
}
.page-home .ph-steps__layout {
  display: grid;
  gap: 44px;
  align-items: center;
  margin-top: 48px;
}
.page-home .ph-steps__figure {
  margin: 0;
  background: var(--ph-bg-card);
  border: 1px solid var(--ph-line);
  border-top: 4px solid var(--ph-gold);
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.page-home .ph-steps__figure .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .ph-steps__figure figcaption {
  padding: 14px 4px 4px;
  color: var(--ph-text-dim);
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 300;
}
.page-home .ph-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.page-home .ph-steps__list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.page-home .ph-steps__count {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--ph-bg-deep);
  background: var(--ph-gold);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}
.page-home .ph-steps__body h3 {
  margin: 4px 0 8px;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 18px;
}
.page-home .ph-steps__body p {
  margin: 0;
  color: var(--ph-text-dim);
  font-weight: 300;
  line-height: 1.7;
  font-size: 14px;
}

/* ==========================================================
   核心功能卡片
   ========================================================== */
.page-home .ph-features {
  padding: 80px 0;
  background: var(--ph-bg);
  position: relative;
}
.page-home .ph-features__grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.page-home .ph-features__card {
  position: relative;
  background: var(--ph-bg-card);
  border: 1px solid var(--ph-line);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.page-home .ph-features__card::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 22px;
  height: 22px;
  background: var(--ph-gold);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 1;
}
.page-home .ph-features__card:hover {
  transform: translateY(-8px);
  border-color: var(--ph-gold);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.page-home .ph-features__card:first-child {
  background: linear-gradient(135deg, var(--ph-bg-card) 0%, var(--ph-bg-card) 55%, rgba(212, 168, 67, 0.15) 180%);
}
.page-home .ph-features__media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ph-line);
  padding-bottom: 56.25%;
}
.page-home .ph-features__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.page-home .ph-features__card:hover .ph-features__media img {
  transform: scale(1.05);
}
.page-home .ph-features__body {
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.page-home .ph-features__num {
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ph-gold);
}
.page-home .ph-features__body h3 {
  margin: 0;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 22px;
}
.page-home .ph-features__body p {
  margin: 0;
  color: var(--ph-text-dim);
  font-weight: 300;
  line-height: 1.75;
  font-size: 14px;
  flex: 1;
}
.page-home .ph-features__body a {
  color: var(--ph-gold-light);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.page-home .ph-features__body a:hover {
  text-decoration: underline;
}

/* ==========================================================
   下载 / 登录提示
   ========================================================== */
.page-home .ph-download {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--ph-bg-deep), var(--ph-bg));
  position: relative;
  overflow: hidden;
}
.page-home .ph-download::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -120px;
  background: rgba(212, 168, 67, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.page-home .ph-download__grid {
  display: grid;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-home .ph-download__title {
  margin: 12px 0 18px;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.25;
}
.page-home .ph-download__desc {
  color: var(--ph-text-dim);
  font-weight: 300;
  line-height: 1.8;
  max-width: 520px;
}
.page-home .ph-download__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.page-home .ph-download__btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--ph-gold);
  color: var(--ph-bg-deep);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background 0.25s, transform 0.25s;
}
.page-home .ph-download__btn:hover {
  background: var(--ph-gold-light);
  transform: translateY(-2px);
}
.page-home .ph-download__link {
  color: var(--ph-gold-light);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 214, 138, 0.4);
}
.page-home .ph-download__link:hover {
  border-bottom-color: var(--ph-gold-light);
}
.page-home .ph-download__points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.page-home .ph-download__points li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: var(--ph-text);
  font-weight: 400;
}
.page-home .ph-download__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--ph-emerald);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.page-home .ph-download__media .media-frame {
  background: var(--ph-bg-card);
  border: 2px solid var(--ph-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.page-home .ph-download__media .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================
   桌面增强
   ========================================================== */
@media (min-width: 820px) {
  .page-home .ph-index__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .ph-section-head--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
  }
  .page-home .ph-section-head--split .ph-section-desc {
    margin: 0;
    max-width: 380px;
    text-align: right;
  }
}

@media (min-width: 960px) {
  .page-home .ph-steps__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .page-home .ph-download__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

@media (min-width: 1000px) {
  .page-home .ph-hero__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-home .ph-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .ph-features__card:first-child {
    grid-column: auto;
  }
}
