.page-home {
  --pg-ink: #10203A;
  --pg-muted: #3E4E68;
  background: var(--c-primary);
}

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

/* ===== 首屏 · 迁移完成 ===== */
.page-home .pg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(57, 255, 20, 0.08), transparent 40%),
    linear-gradient(118deg, var(--c-primary) 0%, var(--c-primary) 58%, var(--c-light) 58%, var(--c-light) 100%);
  padding: 48px 0 72px;
}

.page-home .pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-home .pg-hero__ctx {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  border: 1px solid rgba(57, 255, 20, 0.35);
  background: rgba(11, 27, 61, 0.55);
  padding: 5px 12px;
  margin-bottom: 30px;
  position: relative;
}

.page-home .pg-hero__ctx::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.15);
}

.page-home .pg-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .pg-hero__copy {
  position: relative;
  z-index: 2;
}

.page-home .pg-hero__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}

.page-home .pg-hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.14;
  color: var(--c-text-dark);
  margin: 0 0 18px;
}

.page-home .pg-hero__hl {
  display: block;
  color: var(--c-accent);
}

.page-home .pg-hero__lead {
  color: var(--c-text-dim);
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 30px;
}

.page-home .pg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .pg-hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-data);
  color: #fff;
  padding: 26px 24px 0;
  box-shadow: 12px 12px 0 rgba(11, 27, 61, 0.22);
}

.page-home .pg-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.page-home .pg-hero__stat-label {
  font-size: 13px;
  opacity: 0.85;
  letter-spacing: 0.08em;
}

.page-home .pg-hero__stat-value {
  font-family: var(--font-mono);
  font-size: 38px;
  line-height: 1.1;
  font-weight: 700;
}

.page-home .pg-hero__stat-note {
  font-size: 13px;
  opacity: 0.9;
}

.page-home .pg-hero__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-top: auto;
}

/* ===== 01 临时查询 ===== */
.page-home .pg-query {
  background: var(--c-primary);
  padding: 72px 0;
}

.page-home .pg-query__board {
  padding: 32px 20px 28px;
  overflow: hidden;
}

.page-home .pg-query__head {
  margin-bottom: 28px;
}

.page-home .pg-query__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .pg-query__filter {
  margin-bottom: 20px;
}

.page-home .pg-query__input {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--c-line-light);
  border-radius: 0;
  background: var(--c-white);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-text-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-home .pg-query__input::placeholder {
  color: var(--c-text-soft);
}

.page-home .pg-query__input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.18);
}

.page-home .pg-query__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .pg-match {
  border: 1px solid var(--c-line-light);
  background: var(--c-white);
  padding: 18px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.page-home .pg-match:hover {
  border-color: var(--c-accent);
  box-shadow: 5px 5px 0 rgba(57, 255, 20, 0.16);
  transform: translate(-2px, -2px);
}

.page-home .pg-match__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.page-home .pg-match__round {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-soft);
}

.page-home .pg-match__name {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text-body);
}

.page-home .pg-match__records {
  display: flex;
  gap: 18px;
}

.page-home .pg-match__record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-soft);
}

.page-home .pg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.page-home .pg-dot--yellow {
  background: #ffd100;
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.18);
}

.page-home .pg-dot--red {
  background: #e60000;
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.16);
}

.page-home .pg-query__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .pg-query__img {
  width: 100%;
  border: 1px solid var(--c-line-light);
  background: var(--c-light);
}

.page-home .pg-query__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-soft);
  background: var(--c-light);
  padding: 14px 16px;
  border-left: 3px solid var(--c-accent);
}

/* ===== 02 赛后复盘费用 ===== */
.page-home .pg-fee {
  background: var(--c-light);
  padding: 72px 0;
}

.page-home .pg-fee__board {
  border: 1px solid var(--c-line-dark);
  padding: 32px 20px 28px;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-home .pg-fee__board .chapter__title,
.page-home .pg-migrate__content .chapter__title {
  color: var(--c-text-dark);
}

.page-home .pg-fee__board .chapter__lead,
.page-home .pg-migrate__content .chapter__lead {
  color: var(--c-text-dim);
}

.page-home .pg-fee__head {
  margin-bottom: 30px;
}

.page-home .pg-fee__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.page-home .pg-fee__table-wrap {
  overflow-x: auto;
}

.page-home .pg-fee__table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
}

.page-home .pg-fee__table th,
.page-home .pg-fee__table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-line-dark);
  font-size: 14px;
  color: var(--c-text-dark);
}

.page-home .pg-fee__table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-text-dim);
  font-weight: 500;
  text-transform: uppercase;
}

.page-home .pg-fee__table tbody tr {
  transition: background 0.2s;
}

.page-home .pg-fee__table tbody tr:hover {
  background: rgba(57, 255, 20, 0.06);
}

.page-home .pg-fee__price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-data);
  white-space: nowrap;
}

.page-home .pg-fee__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--c-text-dim);
  line-height: 1.7;
}

.page-home .pg-fee__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .pg-fee__img {
  width: 100%;
  border: 1px solid var(--c-line-dark);
}

.page-home .pg-fee__hint {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-accent);
  background: rgba(57, 255, 20, 0.08);
  border-left: 2px solid var(--c-accent);
  padding: 12px 16px;
}

/* ===== 03 老用户迁移指南 ===== */
.page-home .pg-migrate {
  background: var(--c-primary);
  padding: 72px 0;
}

.page-home .pg-migrate__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .pg-migrate__steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-home .pg-migrate__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--c-line-dark);
  padding-bottom: 18px;
}

.page-home .pg-migrate__step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-home .pg-migrate__num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-accent);
  border: 1px solid rgba(57, 255, 20, 0.4);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 255, 20, 0.05);
}

.page-home .pg-migrate__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text-dark);
}

.page-home .pg-migrate__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .pg-migrate__help {
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--c-text-dim);
}

.page-home .pg-migrate__img {
  width: 100%;
  border: 1px solid var(--c-line-dark);
}

/* ===== 04 热门赛事面板 ===== */
.page-home .pg-hot {
  background: var(--c-light);
  padding: 72px 0;
}

.page-home .pg-hot__board {
  padding: 32px 20px 28px;
  border: 1px solid var(--c-line-light);
}

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

.page-home .pg-hot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .pg-hot__card {
  border: 1px solid var(--c-line-light);
  background: var(--c-white);
  padding: 18px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.page-home .pg-hot__card:hover {
  border-color: var(--c-accent);
  box-shadow: 5px 5px 0 rgba(57, 255, 20, 0.16);
  transform: translate(-2px, -2px);
}

.page-home .pg-hot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.page-home .pg-hot__round {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-soft);
}

.page-home .pg-hot__match {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text-body);
}

.page-home .pg-hot__legend {
  display: flex;
  gap: 16px;
}

.page-home .pg-marker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-soft);
}

.page-home .pg-marker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.page-home .pg-marker__dot--yellow {
  background: #ffd100;
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.16);
}

.page-home .pg-marker__dot--red {
  background: #e60000;
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.14);
}

.page-home .pg-hot__more {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--c-text-soft);
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-home .pg-query__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .pg-hot__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 760px) {
  .page-home .pg-fee__body {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-home .pg-fee__table th,
  .page-home .pg-fee__table td {
    padding: 16px 20px;
  }
}

@media (min-width: 860px) {
  .page-home .pg-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
  }

  .page-home .pg-hero__panel {
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
    padding: 34px 34px 0 56px;
  }

  .page-home .pg-hero__img {
    height: 280px;
  }

  .page-home .pg-migrate__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 980px) {
  .page-home .pg-query__body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }

  .page-home .pg-query__board,
  .page-home .pg-hot__board {
    padding: 44px 40px 40px;
  }

  .page-home .pg-fee__board {
    padding: 44px 40px 40px;
  }

  .page-home .pg-hot__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 641px) and (max-width: 979px) {
  .page-home .pg-hot__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-home .pg-query__filter:focus-within + .pg-query__grid .pg-match {
  border-color: var(--c-accent);
}
