.page-home {
  --ph-edge: 20px;
  --ph-gap: 20px;
}

.page-home .section {
  padding-block: 52px;
}

.page-home .section--tight {
  padding-block: 20px;
}

.page-home .section__head {
  margin-bottom: 26px;
}

.page-home .section__head h2,
.page-home .phfixtures__main h2,
.page-home .phapp__copy h2,
.page-home .phseries__intro h2,
.page-home .phsub__copy h2 {
  font-size: clamp(1.5rem, 5.4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 12px;
  max-width: 22em;
}

.page-home .section__lede {
  max-width: 38em;
  font-size: var(--fs-17);
  line-height: 1.78;
  color: var(--fg-dim);
  margin: 0;
}

.page-home .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ---------- 首屏 ---------- */

.page-home .phhero {
  position: relative;
  overflow: hidden;
  padding-block: 34px 8px;
}

.page-home .phhero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -240px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(255, 106, 31, 0.15), rgba(6, 11, 24, 0) 68%);
  pointer-events: none;
}

.page-home .phhero__inner {
  position: relative;
  display: grid;
  gap: 34px;
  align-items: start;
}

.page-home .breadcrumb {
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 18px;
}

.page-home .phhero__title {
  font-size: clamp(2.15rem, 8.6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 18px;
}

.page-home .phhero__lede {
  max-width: 33em;
  font-size: var(--fs-17);
  line-height: 1.78;
  color: var(--fg-dim);
  margin: 0 0 28px;
}

.page-home .phindex {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.page-home .phindex__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .phindex__link:hover,
.page-home .phindex__link:focus-visible {
  padding-left: 12px;
  background: rgba(255, 106, 31, 0.07);
}

.page-home .phindex__num {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--accent);
}

.page-home .phindex__label {
  display: block;
  font-size: var(--fs-17);
  font-weight: 700;
  color: var(--fg);
}

.page-home .phindex__note {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--fg-dim);
}

.page-home .phindex__arrow {
  font-size: var(--fs-17);
  color: var(--slate);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .phindex__link:hover .phindex__arrow,
.page-home .phindex__link:focus-visible .phindex__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.page-home .phhero__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-raise);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
}

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

.page-home .phhero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(198deg, rgba(255, 106, 31, 0.28), rgba(6, 11, 24, 0) 54%);
  pointer-events: none;
}

.page-home .phhero__caption {
  margin: 12px 0 0;
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--slate);
  text-align: right;
}

/* ---------- 横向时间轴 ---------- */

.page-home .phrail {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.page-home .phrail__track {
  list-style: none;
  margin: 0;
  padding: 12px 20px 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(226px, 76vw, 286px);
  gap: var(--ph-gap);
  align-items: start;
}

.page-home .phrail__node {
  position: relative;
  padding-top: 30px;
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-home .phrail__node::before {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(var(--ph-gap) * -1);
  right: calc(var(--ph-gap) * -1);
  height: 1px;
  background: var(--hair);
}

.page-home .phrail__node:first-child::before {
  left: 0;
}

.page-home .phrail__node:last-child::before {
  right: 0;
}

.page-home .phrail__node::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 31, 0.16);
}

.page-home .phrail__node--epl::before {
  background: linear-gradient(90deg, rgba(108, 43, 217, 0.9), rgba(224, 36, 94, 0.9));
}

.page-home .phrail__node--epl::after {
  background: #e0245e;
  box-shadow: 0 0 0 4px rgba(224, 36, 94, 0.18);
}

.page-home .phrail__node--csl::before {
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.9), rgba(242, 176, 30, 0.9));
}

.page-home .phrail__node--csl::after {
  background: #f2b01e;
  box-shadow: 0 0 0 4px rgba(242, 176, 30, 0.18);
}

.page-home .phrail__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-raise);
}

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

.page-home .phrail__title {
  font-size: var(--fs-17);
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
  margin: 0;
}

.page-home .phrail__note {
  font-size: var(--fs-14);
  line-height: 1.62;
  color: var(--fg-dim);
  margin: 0;
}

.page-home .phrail__link {
  justify-self: start;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 31, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}

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

/* ---------- 每日更新倒计时 ---------- */

.page-home .phclock {
  display: grid;
  gap: 24px;
  padding: 26px 20px 28px;
  background:
    linear-gradient(104deg, rgba(184, 255, 60, 0.08), rgba(184, 255, 60, 0) 48%),
    var(--bg-raise);
  border-left: 2px solid var(--lime);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.page-home .phclock__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--lime);
  margin: 0 0 10px;
}

.page-home .phclock__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: ph-pulse 2.6s var(--ease) infinite;
}

.page-home .phclock__copy h2 {
  font-size: clamp(1.35rem, 4.8vw, 1.9rem);
  line-height: 1.22;
  letter-spacing: -0.018em;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 12px;
}

.page-home .phclock__lede {
  max-width: 42em;
  font-size: var(--fs-14);
  line-height: 1.72;
  color: var(--fg-dim);
  margin: 0;
}

.page-home .phchips {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .phchips__item {
  padding: 6px 12px;
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  background: var(--bg-steel);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.page-home .phclock__dial {
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: start;
  padding-left: 2px;
}

.page-home .phclock__dial-label {
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}

.page-home .phclock__dial-time {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 11vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.page-home .phclock__dial-zone {
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--slate);
}

@keyframes ph-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(184, 255, 60, 0.6);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(184, 255, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(184, 255, 60, 0);
  }
}

/* ---------- 赛程速览 ---------- */

.page-home .phfixtures__grid {
  display: grid;
  gap: 34px;
}

.page-home .phviews {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.page-home .phviews__pane {
  padding-block: 4px;
}

.page-home .phviews__title {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 600;
}

.page-home .phviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.page-home .phviews__row {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: var(--fs-14);
}

.page-home .phviews__when {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--data);
  letter-spacing: 0.02em;
}

.page-home .phviews__what {
  color: var(--fg);
}

.page-home .phviews__state {
  font-size: var(--fs-12);
  color: var(--fg-dim);
  white-space: nowrap;
}

.page-home .phviews__state--done {
  color: var(--accent);
}

.page-home .phviews__state--live {
  color: var(--lime);
}

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

.page-home .phfixtures__rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .phfixtures__figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-raise);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

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

.page-home .phfixtures__cap {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0;
}

.page-home .phfixtures__note {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--slate);
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--hair);
}

/* ---------- 战报读法 ---------- */

.page-home .phread__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--hair);
  border-block: 1px solid var(--hair);
}

.page-home .phread__step {
  background: var(--bg);
  padding: 24px 20px 26px;
}

.page-home .phread__time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 10px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.page-home .phread__step h3 {
  font-size: var(--fs-21);
  font-weight: 700;
  color: var(--fg);
  margin: 16px 0 8px;
}

.page-home .phread__step p {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0;
}

.page-home .phread__foot {
  margin: 22px 0 0;
  font-size: var(--fs-14);
  color: var(--fg-dim);
}

.page-home .phread__foot a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 31, 0.4);
}

.page-home .phread__foot a:hover,
.page-home .phread__foot a:focus-visible {
  border-bottom-color: var(--accent);
}

/* ---------- V2.0 与 APP ---------- */

.page-home .phapp__panel {
  display: grid;
  gap: 30px;
  padding: 28px 20px 30px;
  background: var(--bg-steel);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.page-home .phapp__copy p {
  max-width: 38em;
  font-size: var(--fs-17);
  line-height: 1.78;
  color: var(--fg-dim);
  margin: 0 0 22px;
}

.page-home .phapp__stats {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
}

.page-home .phapp__stat {
  display: grid;
  gap: 4px;
}

.page-home .phapp__stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--data);
  font-variant-numeric: tabular-nums;
}

.page-home .phapp__stat-label {
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

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

.page-home .phapp__modes {
  display: grid;
  gap: 14px;
}

.page-home .phapp__mode {
  display: grid;
  gap: 9px;
  padding: 18px 18px 20px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-home .phapp__mode--night {
  background: var(--night);
  border: 1px solid var(--hairline);
}

.page-home .phapp__mode--day {
  background: #f4f6fa;
  border: 1px solid #d9e0ec;
}

.page-home .phapp__mode-label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
}

.page-home .phapp__mode--night .phapp__mode-label {
  color: var(--slate);
}

.page-home .phapp__mode--day .phapp__mode-label {
  color: #5d6b82;
}

.page-home .phapp__mode-line {
  display: block;
  height: 8px;
  border-radius: 2px;
}

.page-home .phapp__mode--night .phapp__mode-line {
  background: #16233c;
}

.page-home .phapp__mode--day .phapp__mode-line {
  background: #dfe4ee;
}

.page-home .phapp__mode-line--short {
  width: 62%;
}

.page-home .phapp__mode-line--accent {
  width: 40%;
  background: var(--accent);
}

/* ---------- 赛季专题 ---------- */

.page-home .phseries__grid {
  display: grid;
  gap: 30px;
}

.page-home .phseries__meta {
  margin: 16px 0 0;
  font-size: var(--fs-14);
  color: var(--fg-dim);
}

.page-home .phseries__meta a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 31, 0.4);
}

.page-home .phseries__list {
  display: grid;
  border-top: 1px solid var(--hair);
}

.page-home .phseries__item {
  border-bottom: 1px solid var(--hair);
}

.page-home .phseries__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s var(--ease);
}

.page-home .phseries__summary::-webkit-details-marker {
  display: none;
}

.page-home .phseries__summary:hover,
.page-home .phseries__summary:focus-visible {
  background: rgba(255, 106, 31, 0.06);
}

.page-home .phseries__idx {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--accent);
}

.page-home .phseries__name {
  font-size: var(--fs-21);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.page-home .phseries__hint {
  font-family: var(--font-mono);
  font-size: var(--fs-17);
  line-height: 1;
  color: var(--accent);
  transition: transform 0.24s var(--ease);
}

.page-home .phseries__item[open] .phseries__hint {
  transform: rotate(45deg);
}

.page-home .phseries__body {
  padding: 0 2px 20px;
  animation: ph-open 0.26s var(--ease);
}

.page-home .phseries__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .phseries__links a {
  display: block;
  padding-left: 16px;
  position: relative;
  font-size: var(--fs-14);
  line-height: 1.65;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.page-home .phseries__links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--hairline);
}

.page-home .phseries__links a:hover,
.page-home .phseries__links a:focus-visible {
  color: var(--fg);
}

.page-home .phseries__links a:hover::before,
.page-home .phseries__links a:focus-visible::before {
  background: var(--accent);
}

@keyframes ph-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 收尾订阅 ---------- */

.page-home .phsub__panel {
  display: grid;
  gap: 24px;
  padding: 30px 20px 32px;
  background:
    linear-gradient(120deg, rgba(255, 106, 31, 0.12), rgba(255, 106, 31, 0) 58%),
    var(--bg-raise);
  border-top: 1px solid var(--hairline);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .phsub__copy p {
  max-width: 44em;
  font-size: var(--fs-17);
  line-height: 1.78;
  color: var(--fg-dim);
  margin: 0;
}

.page-home .phsub__actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.page-home .phsub__link {
  font-size: var(--fs-14);
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

/* ---------- 响应式 ---------- */

@media (min-width: 720px) {
  .page-home .section {
    padding-block: 66px;
  }

  .page-home .section--tight {
    padding-block: 26px;
  }

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

  .page-home .phviews {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    position: relative;
    margin-top: 30px;
  }

  .page-home .phviews::before {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 106, 31, 0), var(--accent), rgba(255, 106, 31, 0));
    transform: rotate(8deg);
    transform-origin: center;
  }

  .page-home .phviews__pane:first-child {
    padding-right: 34px;
  }

  .page-home .phviews__pane:last-child {
    padding-left: 34px;
  }

  .page-home .phclock {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 32px 34px;
  }

  .page-home .phclock__dial {
    justify-items: end;
    text-align: right;
  }

  .page-home .phsub__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    padding: 38px 36px 40px;
  }

  .page-home .phsub__actions {
    justify-items: end;
  }
}

@media (min-width: 900px) {
  .page-home .phhero {
    padding-block: 48px 16px;
  }

  .page-home .phhero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 56px;
    align-items: center;
  }

  .page-home .phhero__title {
    font-size: clamp(2.6rem, 4.9vw, 4.2rem);
  }

  .page-home .phrail__track {
    padding-inline: 24px;
  }

  .page-home .phfixtures__grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
    gap: 48px;
    align-items: start;
  }

  .page-home .phapp__panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 46px;
    align-items: center;
    padding: 40px 40px 42px;
  }

  .page-home .phapp__modes {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .page-home .phseries__grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 52px;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .page-home .phrail__track {
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 26px;
    padding-inline: 0;
  }

  .page-home .phrail {
    overflow: visible;
  }

  .page-home .phrail__node::before {
    left: -26px;
    right: -26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .phclock__pulse {
    animation: none;
  }

  .page-home .phseries__body {
    animation: none;
  }

  .page-home .phindex__link,
  .page-home .phindex__arrow,
  .page-home .phseries__hint,
  .page-home .phseries__summary {
    transition: none;
  }
}
