.page-home {
  --ph-cut: 22px;
  --ph-line-soft: rgba(58, 71, 80, 0.6);
  background: var(--ink-0);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.page-home a {
  text-decoration: none;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

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

.page-home .ph-hero {
  position: relative;
  background: var(--paper);
  color: var(--brown);
  padding-block: clamp(16px, 3vw, 28px) clamp(34px, 7vw, 76px);
  overflow: hidden;
  isolation: isolate;
}

.page-home .ph-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(42, 33, 24, 0.075) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(42, 33, 24, 0.075) 0 1px, transparent 1px 34px);
  pointer-events: none;
  z-index: 0;
}

.page-home .ph-hero__crumb {
  position: relative;
  z-index: 1;
  color: var(--gray);
  font-size: 13px;
  margin-bottom: clamp(10px, 2vw, 20px);
}

.page-home .ph-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 6vw, 52px);
  align-items: center;
}

.page-home .ph-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px 12px 4px 8px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--brown);
  background: rgba(229, 220, 199, 0.72);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.page-home .ph-hero__dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  animation: ph-pulse 1.8s ease-in-out infinite;
}

@keyframes ph-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.page-home .ph-hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(44px, 12.5vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--brown);
  margin: 0 0 clamp(14px, 3vw, 22px);
}

.page-home .ph-hero__title em {
  display: block;
  font-style: italic;
  color: var(--violet);
  position: relative;
  padding-bottom: 6px;
}

.page-home .ph-hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(58%, 320px);
  height: 5px;
  background: var(--grad);
}

.page-home .ph-hero__lead {
  margin: 0 0 clamp(18px, 3.4vw, 26px);
  max-width: 44ch;
  font-size: clamp(15px, 2.4vw, 17px);
  color: var(--brown);
}

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

.page-home .ph-hero__actions .lx-btn--ghost {
  color: var(--brown);
  box-shadow: inset 0 0 0 1px rgba(42, 33, 24, 0.34);
}

.page-home .ph-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(24px, 4.5vw, 38px) 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--paper-2);
}

.page-home .ph-hero__facts > div {
  min-width: 0;
}

.page-home .ph-hero__facts dt {
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--gray);
}

.page-home .ph-hero__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(22px, 5.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brown);
  font-variant-numeric: tabular-nums;
}

.page-home .ph-hero__media {
  margin: 0;
}

.page-home .ph-hero__frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-0);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ph-cut)), calc(100% - var(--ph-cut)) 100%, 0 100%);
}

.page-home .ph-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 860;
  object-fit: cover;
}

.page-home .ph-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(0, 240, 208, 0.14) 30px 31px),
    linear-gradient(180deg, rgba(11, 13, 16, 0) 48%, rgba(11, 13, 16, 0.82) 100%);
}

.page-home .ph-hero__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 16px 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-0);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.page-home .ph-hero__caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray);
}

/* ---------- 三栏 ---------- */

.page-home .ph-deck {
  padding-block: clamp(46px, 8vw, 90px);
  background: var(--ink-0);
}

.page-home .ph-deck .lx-section__head {
  margin-bottom: clamp(22px, 4vw, 34px);
}

.page-home .ph-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 340px);
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--pad);
  padding-inline: var(--pad);
  padding-block: 4px 18px;
  -webkit-overflow-scrolling: touch;
}

.page-home .ph-rail > * {
  scroll-snap-align: start;
}

.page-home .ph-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3vw, 24px);
  background: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.page-home .ph-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.page-home .ph-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .ph-card__no {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .ph-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(20px, 3.6vw, 26px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page-home .ph-card__lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
}

.page-home .ph-card__media {
  margin: 2px 0 0;
  overflow: hidden;
  background: var(--ink-0);
  aspect-ratio: 16 / 10;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

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

.page-home .ph-card__meta {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--ph-line-soft);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray);
}

.page-home .ph-card__cta {
  align-self: flex-start;
  margin-top: auto;
}

/* 排名预览 */

.page-home .ph-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.page-home .ph-rank__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: var(--ink-0);
  border-left: 2px solid transparent;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.page-home .ph-rank__row:hover {
  border-left-color: var(--cyan);
  background: #171d25;
}

.page-home .ph-rank__no {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .ph-rank__row:first-child .ph-rank__no {
  color: var(--orange);
}

.page-home .ph-rank__name {
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .ph-rank__pt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .ph-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .ph-tabs__item {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--gray);
  background: rgba(58, 71, 80, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.page-home .ph-tabs__item.is-on {
  color: var(--ink-0);
  background: var(--cyan);
  font-weight: 700;
}

/* 开赛时间预览 */

.page-home .ph-live__next {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--ink-0);
  border-left: 3px solid var(--orange);
}

.page-home .ph-live__label {
  font-size: 12px;
  color: var(--gray);
}

.page-home .ph-live__clock {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(20px, 4.4vw, 26px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.page-home .ph-live {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.page-home .ph-live__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "time match"
    "time state";
  align-items: center;
  gap: 2px 10px;
  padding: 7px 10px;
  background: var(--ink-0);
  font-size: 13px;
}

.page-home .ph-live__time {
  grid-area: time;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .ph-live__match {
  grid-area: match;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .ph-live__state {
  grid-area: state;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.page-home .ph-live__state.is-open {
  color: var(--cyan);
}

.page-home .ph-live__state.is-soon {
  color: var(--orange);
}

/* 资料对比预览 */

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

.page-home .ph-compare__head {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.page-home .ph-compare__tab {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--gray);
  background: rgba(123, 77, 255, 0.16);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.page-home .ph-compare__tab.is-on {
  color: var(--paper);
  background: var(--violet);
  font-weight: 700;
}

.page-home .ph-compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: var(--ink-0);
  font-size: 13px;
}

.page-home .ph-compare__key {
  color: var(--gray);
}

.page-home .ph-compare__v {
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  font-weight: 700;
}

.page-home .ph-compare__v.is-old {
  color: rgba(244, 239, 227, 0.45);
  font-weight: 400;
}

/* ---------- 速度来自哪里 ---------- */

.page-home .ph-speed {
  position: relative;
  padding-block: clamp(46px, 8vw, 90px);
  background: var(--paper);
  color: var(--brown);
  overflow: hidden;
}

.page-home .ph-speed::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(42, 33, 24, 0.06) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(42, 33, 24, 0.06) 0 1px, transparent 1px 30px);
}

.page-home .ph-speed .lx-section__head {
  position: relative;
  margin-bottom: clamp(22px, 4vw, 34px);
}

.page-home .ph-speed .lx-section__index {
  color: var(--violet);
}

.page-home .ph-speed .lx-section__title {
  color: var(--brown);
}

.page-home .ph-speed .lx-section__note {
  color: var(--gray);
}

.page-home .ph-speed__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--paper-2);
  border: 1px solid var(--paper-2);
}

.page-home .ph-speed__item {
  background: var(--paper);
  padding: clamp(18px, 3vw, 26px);
}

.page-home .ph-speed__item:first-child {
  box-shadow: inset 4px 0 0 0 var(--orange);
}

.page-home .ph-speed__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(36px, 8vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--brown);
  font-variant-numeric: tabular-nums;
}

.page-home .ph-speed__num span {
  margin-left: 5px;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.32em;
  letter-spacing: 0;
  color: var(--violet);
}

.page-home .ph-speed__label {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: var(--brown);
}

.page-home .ph-speed__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- 三步开始用 ---------- */

.page-home .ph-steps {
  padding-block: clamp(46px, 8vw, 90px);
  background: var(--ink-0);
}

.page-home .ph-steps .lx-section__head {
  margin-bottom: clamp(22px, 4vw, 34px);
}

.page-home .ph-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.page-home .ph-step {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  background: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.page-home .ph-step:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.page-home .ph-step__no {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--violet);
  font-variant-numeric: tabular-nums;
}

.page-home .ph-step__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  color: var(--paper);
}

.page-home .ph-step__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.page-home .ph-step__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  border-bottom: 2px solid rgba(0, 240, 208, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .ph-step__link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- 卡住了 ---------- */

.page-home .ph-help {
  padding-block: clamp(44px, 7vw, 82px);
  background: var(--ink-0);
  border-top: 1px solid var(--line);
}

.page-home .ph-help__inner {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.page-home .ph-help__text {
  margin: 12px 0 0;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

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

.page-home .ph-helper {
  display: block;
  padding: clamp(18px, 3vw, 26px);
  background: var(--ink-1);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .ph-helper:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.page-home .ph-helper__k {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-0);
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.page-home .ph-helper__t {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
  color: var(--paper);
}

.page-home .ph-helper__d {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

.page-home .ph-helper__go {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

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

@media (min-width: 640px) {
  .page-home .ph-help__cards {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 820px) {
  .page-home .ph-steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .page-home .ph-hero {
    padding-block: clamp(20px, 3vw, 32px) clamp(48px, 6vw, 88px);
  }

  .page-home .ph-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }

  .page-home .ph-rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-bottom: 4px;
  }

  .page-home .ph-help__inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }
}

@media (min-width: 1060px) {
  .page-home .ph-speed__grid {
    grid-template-columns: repeat(4, minmax(0, 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;
  }
}
