/* ============================================================
   page-home · 赛场主页专属样式
   所有选择器限定在 .page-home 作用域内
   ============================================================ */

.page-home {
  --ph-pad: clamp(18px, 3.4vw, 40px);
  --ph-gap: clamp(14px, 2.2vw, 22px);
  --ph-shadow: 7px 7px 0 0 #101B3D;
}

/* ---------- 首屏框景 ---------- */

.page-home .ph-hero {
  padding: clamp(10px, 2.2vw, 24px) 0 clamp(34px, 5vw, 62px);
}

.page-home .hero-frame {
  position: relative;
  border: var(--bw) solid var(--line);
  background:
    radial-gradient(118% 86% at 100% 0%, rgba(43, 240, 206, 0.1), transparent 56%),
    radial-gradient(96% 74% at 0% 100%, rgba(255, 106, 43, 0.08), transparent 58%),
    linear-gradient(158deg, var(--panel) 0%, var(--panel-soft) 100%);
  box-shadow: var(--ph-shadow);
  padding: clamp(26px, 4.4vw, 54px) clamp(18px, 3.2vw, 44px) clamp(20px, 3.2vw, 38px);
  overflow: hidden;
}

.page-home .frame-scale {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 11px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 24px);
  opacity: 0.85;
  pointer-events: none;
}

.page-home .frame-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid var(--cyan);
  pointer-events: none;
  opacity: 0.9;
}

.page-home .frame-corner--tl { top: 15px; left: 10px; border-right: 0; border-bottom: 0; }
.page-home .frame-corner--tr { top: 15px; right: 10px; border-left: 0; border-bottom: 0; }
.page-home .frame-corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.page-home .frame-corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.page-home .hero-grid {
  position: relative;
  display: grid;
  gap: clamp(20px, 3.4vw, 38px);
  align-items: center;
}

.page-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: rgba(43, 240, 206, 0.06);
  padding: 6px 12px;
}

.page-home .hero-title {
  margin: 0 0 18px;
  font-family: var(--head-font);
  font-weight: 900;
  font-size: clamp(31px, 6.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .hero-title em {
  font-style: normal;
  color: var(--cyan);
}

.page-home .hero-lead {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.8;
  color: var(--mist);
}

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

.page-home .hero-visual {
  margin: 0;
  border: var(--bw) solid var(--line);
  box-shadow: 6px 6px 0 0 rgba(43, 240, 206, 0.14);
}

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

/* 首屏 Bento 入口 */

.page-home .hero-bento {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-gap);
  margin-top: clamp(26px, 4.2vw, 46px);
}

.page-home .hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(16px, 2.3vw, 24px);
  border: var(--bw) solid var(--line);
  background: rgba(7, 11, 28, 0.62);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--line);
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.page-home .hero-card--cyan::after { background: var(--cyan); }
.page-home .hero-card--orange::after { background: var(--orange); }

.page-home .hero-card:hover,
.page-home .hero-card:focus-visible {
  transform: translate(-3px, -3px);
  border-color: var(--cyan);
  background: var(--panel);
  box-shadow: 6px 6px 0 0 rgba(43, 240, 206, 0.2);
}

.page-home .hero-card--orange:hover,
.page-home .hero-card--orange:focus-visible {
  border-color: var(--orange);
  box-shadow: 6px 6px 0 0 rgba(255, 106, 43, 0.22);
}

.page-home .hero-card:hover::after,
.page-home .hero-card:focus-visible::after {
  width: 100%;
}

.page-home .hero-card-tag {
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

.page-home .hero-card-title {
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.3;
  color: var(--white);
}

.page-home .hero-card-text {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .hero-card-more {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.38s var(--ease);
}

.page-home .hero-card-more > span {
  display: block;
  overflow: hidden;
  min-height: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  border-left: 2px solid var(--line);
  padding-left: 11px;
}

.page-home .hero-card-go {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--mono-font);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.page-home .hero-card--orange .hero-card-go {
  color: var(--orange);
}

@media (hover: hover) and (pointer: fine) {
  .page-home .hero-card-more { grid-template-rows: 0fr; }
  .page-home .hero-card:hover .hero-card-more,
  .page-home .hero-card:focus-visible .hero-card-more { grid-template-rows: 1fr; }
}

/* ---------- 章节目录 ---------- */

.page-home .ph-toc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 clamp(28px, 4vw, 44px);
}

.page-home .ph-toc .toc-title {
  margin: 0;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .ph-toc .toc-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-home .ph-toc .toc-item {
  flex: 0 0 auto;
}

.page-home .ph-toc .toc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(15, 24, 52, 0.7);
  color: var(--mist);
  text-decoration: none;
  font-size: 13.5px;
  white-space: nowrap;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.page-home .ph-toc .toc-num {
  font-family: var(--mono-font);
  font-size: 11.5px;
  color: var(--purple);
}

.page-home .ph-toc .toc-link:hover,
.page-home .ph-toc .toc-link:focus-visible {
  color: var(--white);
  border-color: var(--cyan);
}

.page-home .ph-toc .toc-link[aria-current="true"] {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.page-home .ph-toc .toc-link[aria-current="true"] .toc-num {
  color: rgba(7, 11, 28, 0.7);
}

/* ---------- 通用分区 ---------- */

.page-home .ph-sec {
  position: relative;
  padding: clamp(38px, 6vw, 78px) 0;
}

.page-home .ph-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: var(--bw);
  background-image: repeating-linear-gradient(to right, var(--line) 0 14px, transparent 14px 28px);
  opacity: 0.7;
}

.page-home .ph-sec--last {
  padding-bottom: clamp(52px, 8vw, 104px);
}

.page-home .ph-sec-head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 3.6vw, 42px);
}

.page-home .ph-sec-title {
  margin: 12px 0 14px;
  font-family: var(--head-font);
  font-weight: 900;
  font-size: clamp(25px, 3.9vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.005em;
  color: var(--white);
}

.page-home .ph-sec-lead {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.82;
  color: var(--mist);
}

/* ---------- 本季面貌：不等宽计数板 ---------- */

.page-home .season-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-gap);
}

.page-home .season-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.4vw, 26px);
  border: var(--bw) solid var(--line);
  background: linear-gradient(150deg, var(--panel) 0%, var(--panel-soft) 100%);
  border-top: 4px solid var(--cyan);
}

.page-home .season-cell:nth-child(2) { border-top-color: var(--orange); }
.page-home .season-cell:nth-child(3) { border-top-color: var(--purple); }
.page-home .season-cell:nth-child(4) { border-top-color: var(--yellow); }

.page-home .season-num {
  font-family: var(--mono-font);
  font-size: clamp(34px, 5.2vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.page-home .season-unit {
  font-family: var(--mono-font);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .season-label {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .season-cell--wide {
  border-top-color: var(--orange);
}

/* ---------- 图文分栏 ---------- */

.page-home .ph-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.6vw, 46px);
  align-items: center;
}

.page-home .ph-split-copy .ph-sec-title {
  margin-top: 12px;
}

.page-home .ph-figure {
  margin: 0;
  border: var(--bw) solid var(--line);
  box-shadow: 6px 6px 0 0 rgba(138, 92, 255, 0.14);
}

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

.page-home .ph-checklist {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .ph-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .chk-mark {
  flex: 0 0 auto;
  font-family: var(--mono-font);
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--purple);
  border: 1px solid var(--line);
  padding: 0 6px;
  background: rgba(138, 92, 255, 0.08);
}

/* ---------- 会员权益 ---------- */

.page-home .member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-gap);
}

.page-home .member-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.5vw, 28px);
  border: var(--bw) solid var(--line);
  background: var(--panel-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-home .member-card--cyan { border-left: 4px solid var(--cyan); }
.page-home .member-card--orange { border-left: 4px solid var(--orange); }

.page-home .member-card:hover,
.page-home .member-card:focus-within {
  transform: translate(-3px, -3px);
  border-color: var(--cyan);
  box-shadow: 6px 6px 0 0 rgba(43, 240, 206, 0.16);
}

.page-home .member-card--orange:hover,
.page-home .member-card--orange:focus-within {
  border-color: var(--orange);
  box-shadow: 6px 6px 0 0 rgba(255, 106, 43, 0.2);
}

.page-home .member-flag {
  align-self: flex-start;
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: rgba(138, 92, 255, 0.12);
  color: var(--mist);
}

.page-home .member-title {
  margin: 2px 0 0;
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.34;
  color: var(--white);
}

.page-home .member-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .member-fit {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono-font);
  font-size: 12px;
  line-height: 1.7;
  color: var(--yellow);
}

.page-home .member-note {
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  background: rgba(43, 240, 206, 0.05);
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mist);
}

/* ---------- 战报时间线 ---------- */

.page-home .report-visual {
  margin-bottom: clamp(24px, 3.6vw, 40px);
}

.page-home .ph-figure--wide {
  box-shadow: 6px 6px 0 0 rgba(255, 106, 43, 0.16);
}

.page-home .band {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
}

.page-home .band::before,
.page-home .band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(24px, 6vw, 72px);
  pointer-events: none;
  z-index: 2;
}

.page-home .band::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), rgba(7, 11, 28, 0));
}

.page-home .band::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), rgba(7, 11, 28, 0));
}

.page-home .band-track {
  display: flex;
  gap: var(--ph-gap);
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.page-home .band-track:active {
  cursor: grabbing;
}

.page-home .band-track:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-home .band-item {
  flex: 0 0 min(80vw, 288px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  border: var(--bw) solid var(--line);
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-soft) 100%);
}

.page-home .band-step {
  align-self: flex-start;
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--bg);
  background: var(--cyan);
  padding: 4px 9px;
}

.page-home .band-item:nth-child(2) .band-step { background: var(--yellow); }
.page-home .band-item:nth-child(3) .band-step { background: var(--orange); color: var(--white); }
.page-home .band-item:nth-child(4) .band-step { background: var(--purple); color: var(--white); }

.page-home .band-title {
  margin: 0;
  font-family: var(--head-font);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.35;
  color: var(--white);
}

.page-home .band-text {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .report-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: clamp(18px, 2.6vw, 26px);
  border-top: 1px dashed var(--line);
}

.page-home .report-foot-text {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 60ch;
}

/* ---------- 问题分流 ---------- */

.page-home .trouble-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-gap);
}

.page-home .trouble-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(18px, 2.4vw, 26px);
  border: var(--bw) solid var(--line);
  background: var(--panel-soft);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-home .trouble-card:hover,
.page-home .trouble-card:focus-visible {
  transform: translate(-3px, -3px);
  border-color: var(--orange);
  box-shadow: 6px 6px 0 0 rgba(255, 106, 43, 0.2);
}

.page-home .trouble-tag {
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--yellow);
}

.page-home .trouble-title {
  margin: 0;
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(17px, 1.85vw, 20px);
  line-height: 1.36;
  color: var(--white);
}

.page-home .trouble-text {
  margin: 0;
  font-size: 14.2px;
  line-height: 1.76;
  color: var(--mist);
}

.page-home .trouble-go {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--mono-font);
  font-size: 12.5px;
  color: var(--cyan);
}

/* ---------- 服务承诺 ---------- */

.page-home .support-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 42px);
  padding: clamp(22px, 3.6vw, 46px);
  border: var(--bw) solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(138, 92, 255, 0.14), transparent 60%),
    linear-gradient(150deg, var(--panel) 0%, var(--panel-soft) 100%);
  box-shadow: var(--ph-shadow);
}

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

.page-home .support-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .support-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.6);
}

.page-home .support-cell-key {
  font-family: var(--mono-font);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--purple);
}

.page-home .support-cell-val {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--white);
}

/* ============================================================
   响应式
   ============================================================ */

@media (min-width: 640px) {
  .page-home .support-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .support-cell--wide {
    grid-column: span 2;
  }
  .page-home .report-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 720px) {
  .page-home .hero-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .page-home .hero-card--a { grid-column: span 7; }
  .page-home .hero-card--b { grid-column: span 5; }
  .page-home .hero-card--c { grid-column: span 5; }
  .page-home .hero-card--d { grid-column: span 7; }

  .page-home .season-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .page-home .season-cell { grid-column: span 2; }
  .page-home .season-cell--wide { grid-column: span 6; }

  .page-home .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .trouble-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .ph-split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
  .page-home .ph-split--reverse .ph-split-copy {
    order: 2;
  }
  .page-home .ph-split--reverse .ph-figure {
    order: 1;
  }

  .page-home .season-cell { grid-column: span 3; }
  .page-home .season-cell--wide { grid-column: span 12; }
}

@media (min-width: 1080px) {
  .page-home .member-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .season-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .page-home .season-cell { grid-column: span 3; }
  .page-home .season-cell--wide {
    grid-column: span 12;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
  }
  .page-home .season-cell--wide .season-label {
    flex: 1 1 320px;
    margin: 0;
  }

  .page-home .support-panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .trouble-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .band::before,
  .page-home .band::after {
    display: none;
  }
}

/* 减少动效偏好 */

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-card,
  .page-home .member-card,
  .page-home .trouble-card,
  .page-home .hero-card-more {
    transition: none;
  }
  .page-home .hero-card:hover,
  .page-home .hero-card:focus-visible,
  .page-home .member-card:hover,
  .page-home .trouble-card:hover,
  .page-home .trouble-card:focus-visible {
    transform: none;
  }
}
