.page-home {
  --bar: 40%;
  background: var(--ok-warm);
  color: var(--ok-ink);
  overflow-x: hidden;
}

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

/* ===== 页头 ===== */
.page-home-head {
  position: relative;
  background: var(--ok-blue);
  color: #fff;
  padding: 48px 0 84px;
  overflow: hidden;
}
.page-home-head::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, rgba(30,142,90,.55), rgba(30,142,90,.15) 60%, transparent);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.page-home-head-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.page-home-head-copy {
  max-width: 680px;
}
.page-home-head-copy h1 {
  font-family: var(--ok-font-head);
  font-size: 28px;
  line-height: 1.22;
  margin: 18px 0 16px;
  letter-spacing: -.5px;
}
.page-home-head-copy > p {
  font-family: var(--ok-font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
  max-width: 620px;
}
.page-home-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.page-home-head-media {
  border-radius: var(--ok-radius);
  overflow: hidden;
  box-shadow: var(--ok-shadow-strong);
}
.page-home-head-media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.page-home-head-slash {
  position: absolute;
  right: -10px;
  bottom: -34px;
  left: -10px;
  height: 68px;
  background: var(--ok-red);
  transform: skewY(-3deg);
}
.page-home-head-slash::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 100%;
  background: var(--ok-green);
  transform: skewY(3deg);
}

/* ===== 双栏数据区 ===== */
.page-home-bay {
  padding-top: 56px;
  padding-bottom: 48px;
}
.page-home-bay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.page-home .ok-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-home .ok-section-index {
  font-family: var(--ok-font-data);
  font-size: 22px;
  font-weight: bold;
  color: var(--ok-green);
  border: 2px solid var(--ok-green);
  border-radius: var(--ok-pill);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-home .ok-section-kicker {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ok-red);
  margin-bottom: 4px;
  font-family: var(--ok-font-body);
}
.page-home .ok-section-title {
  font-family: var(--ok-font-head);
  font-size: 24px;
  margin: 0;
  color: var(--ok-blue);
}

/* 今日赛程 */
.page-home-match-list {
  display: grid;
  gap: 12px;
}
.page-home-match {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  background: var(--ok-card);
  border: 1px solid var(--ok-grey);
  border-left: 4px solid var(--ok-green);
  border-radius: var(--ok-radius-sm);
  padding: 12px 14px;
  box-shadow: var(--ok-shadow);
}
.page-home-match-time {
  font-family: var(--ok-font-data);
  font-size: 14px;
  font-weight: bold;
  color: var(--ok-blue);
}
.page-home-match-teams {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.25;
  min-width: 0;
}
.page-home-match-teams span:nth-child(2) {
  color: var(--ok-grey);
  font-weight: 400;
}
.page-home-match-score {
  background: var(--ok-blue);
  color: #fff;
  font-family: var(--ok-font-data);
  font-weight: bold;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--ok-pill);
  white-space: nowrap;
}
.page-home-match-status {
  font-size: 12px;
  font-family: var(--ok-font-body);
  padding: 6px 12px;
  border-radius: var(--ok-pill);
  white-space: nowrap;
}
.page-home-match-status--pending {
  background: var(--ok-green);
  color: #fff;
}
.page-home-match-status--live {
  background: var(--ok-yellow);
  color: var(--ok-blue);
}

.page-home-player-media {
  margin: 20px 0 0;
  border-radius: var(--ok-radius-sm);
  overflow: hidden;
}
.page-home-player-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.page-home-player-media figcaption {
  font-size: 12px;
  font-family: var(--ok-font-body);
  color: var(--ok-ink);
  background: var(--ok-card);
  padding: 10px 14px;
  border-left: 3px solid var(--ok-red);
}

/* 近期战绩侧栏 */
.page-home-bay-results {
  background: var(--ok-card);
  border: 1px solid var(--ok-grey);
  border-radius: var(--ok-radius);
  padding: 20px;
  box-shadow: var(--ok-shadow);
}
.page-home-refresh-btn {
  border: none;
  cursor: pointer;
}
.page-home-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--ok-grey);
}
.page-home-form-team {
  font-weight: bold;
  font-size: 14px;
  align-self: center;
}
.page-home-form-dots {
  justify-self: end;
  display: flex;
  gap: 4px;
}
.page-home-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-family: var(--ok-font-data);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
}
.page-home-dot--win {
  background: var(--ok-green);
  color: #fff;
}
.page-home-dot--loss {
  background: var(--ok-red);
  color: #fff;
}
.page-home-dot--draw {
  background: var(--ok-grey);
  color: var(--ok-ink);
}
.page-home-form-pts {
  font-size: 12px;
  font-family: var(--ok-font-data);
  color: var(--ok-green-dark);
  text-align: right;
}
.page-home-refresh-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ok-ink);
  background: var(--ok-grey);
  border-radius: var(--ok-radius-sm);
  padding: 10px 14px;
  margin-top: 16px;
}

/* ===== 对照区 ===== */
.page-home-compare {
  background: linear-gradient(180deg, var(--ok-grey), var(--ok-warm));
  padding-bottom: 64px;
  border-top: 6px solid var(--ok-red);
}
.page-home-compare-lead {
  font-family: var(--ok-font-body);
  font-size: 14px;
  max-width: 640px;
  margin-bottom: 24px;
}
.page-home-compare-panel {
  background: var(--ok-card);
  border-radius: var(--ok-radius);
  padding: 22px;
  box-shadow: var(--ok-shadow-strong);
  position: relative;
}
.page-home-option-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.page-home-compare-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.page-home-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 14px;
  font-family: var(--ok-font-body);
  cursor: pointer;
  padding: 8px 14px;
  background: var(--ok-warm);
  border: 1px solid var(--ok-grey);
  border-radius: var(--ok-pill);
  user-select: none;
}
.page-home-option::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--ok-green);
  border-radius: 7px;
  background: var(--ok-card);
  transition: background .2s ease;
  flex-shrink: 0;
}
#pick-home:checked ~ .page-home-compare-options label[for="pick-home"]::before,
#pick-away:checked ~ .page-home-compare-options label[for="pick-away"]::before {
  background: var(--ok-green);
  box-shadow: inset 0 0 0 4px var(--ok-card);
}
#pick-home:not(:checked) ~ .page-home-compare-grid .page-home-compare-block--home,
#pick-away:not(:checked) ~ .page-home-compare-grid .page-home-compare-block--away {
  opacity: .35;
  filter: grayscale(.6);
}
.page-home-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.page-home-compare-block {
  background: var(--ok-warm);
  border-radius: var(--ok-radius-sm);
  padding: 16px 16px 12px;
}
.page-home-compare-team {
  font-family: var(--ok-font-head);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ok-blue);
}
.page-home-compare-block--away .page-home-compare-team {
  color: var(--ok-red-dark);
}
.page-home-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding-top: 34px;
}
.page-home-bar {
  flex: 1;
  height: var(--bar);
  min-height: 14px;
  position: relative;
  background: linear-gradient(180deg, #4fbf8d 0%, var(--ok-green) 50%, var(--ok-green-dark) 100%);
  border-radius: 8px 8px 3px 3px;
}
.page-home-compare-block--away .page-home-bar {
  background: linear-gradient(180deg, #e06458 0%, var(--ok-red) 50%, var(--ok-red-dark) 100%);
}
.page-home-bar span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  font-family: var(--ok-font-data);
  font-size: 13px;
  font-weight: bold;
  color: var(--ok-ink);
}
.page-home-compare-foot {
  font-size: 12px;
  font-family: var(--ok-font-data);
  color: var(--ok-green-dark);
  margin: 14px 0 0;
  text-align: right;
}
.page-home-compare-block--away .page-home-compare-foot {
  color: var(--ok-red-dark);
}
.page-home-chart-media {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--ok-grey);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}
.page-home-chart-media img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--ok-radius-sm);
}
.page-home-chart-media figcaption {
  font-size: 12px;
  color: var(--ok-ink);
  text-align: center;
  font-family: var(--ok-font-body);
}

/* ===== 注册区 ===== */
.page-home-register {
  position: relative;
  background: linear-gradient(120deg, var(--ok-blue) 0%, #2a3f64 100%);
  color: #fff;
  padding: 64px 0 72px;
  overflow: hidden;
  scroll-margin-top: 80px;
}
.page-home-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--ok-red);
  z-index: 3;
}
.page-home-register::after {
  content: "";
  position: absolute;
  top: -34px;
  left: 16%;
  width: 340px;
  height: 64px;
  background: var(--ok-green);
  transform: skewY(-8deg);
  opacity: .5;
  border-radius: 12px;
}
.page-home-register-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.page-home-register-copy {
  max-width: 680px;
}
.page-home-register-copy h2 {
  font-family: var(--ok-font-head);
  font-size: 26px;
  margin: 0 0 12px;
}
.page-home-register-copy p {
  font-family: var(--ok-font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  max-width: 560px;
}
.page-home-register-copy .ok-section-kicker {
  color: var(--ok-yellow);
}
.page-home-register-badge {
  justify-self: start;
}
.page-home-register-badge .ok-tag--live {
  font-size: 14px;
  padding: 10px 18px;
}

/* ===== 会员权益 ===== */
.page-home-membership {
  padding-top: 56px;
  padding-bottom: 72px;
}
.page-home-perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.page-home-perk {
  background: var(--ok-card);
  border: 1px solid var(--ok-grey);
  border-top: 6px solid var(--ok-green);
  border-radius: var(--ok-radius);
  padding: 22px 20px;
  box-shadow: var(--ok-shadow);
}
.page-home-perk h3 {
  font-family: var(--ok-font-head);
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--ok-blue);
}
.page-home-perk p {
  font-size: 13px;
  font-family: var(--ok-font-body);
  line-height: 1.65;
  margin: 0;
}
.page-home-membership-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
  align-items: center;
}
.page-home-fans {
  margin: 0;
  border-radius: var(--ok-radius-sm);
  overflow: hidden;
}
.page-home-fans img {
  width: 100%;
  max-width: 300px;
  height: 180px;
  object-fit: cover;
}
.page-home-trust {
  background: var(--ok-card);
  border: 1px solid var(--ok-grey);
  border-radius: var(--ok-radius);
  padding: 24px;
}
.page-home-trust > p {
  font-size: 14px;
  line-height: 1.75;
  font-family: var(--ok-font-body);
  margin: 0 0 18px;
}
.page-home-trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.page-home-trust-links a {
  font-size: 13px;
  font-family: var(--ok-font-body);
  color: var(--ok-green-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== 桌面断点 ===== */
@media (min-width: 768px) {
  .page-home-head-copy h1 {
    font-size: 36px;
  }
  .page-home-head-inner {
    grid-template-columns: 1.15fr .85fr;
  }
  .page-home-head-media img {
    height: 300px;
  }
  .page-home-match-teams {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .page-home-compare-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-home-chart-media {
    grid-template-columns: auto 1fr;
  }
  .page-home-chart-media img {
    margin: 0;
  }
  .page-home-perks {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home-membership-bottom {
    grid-template-columns: 220px 1fr;
  }
}

@media (min-width: 992px) {
  .page-home-bay-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 32px;
  }
  .page-home-bay-results {
    position: sticky;
    top: 24px;
  }
  .page-home-register-inner {
    grid-template-columns: 1fr auto;
  }
  .page-home-register-badge {
    justify-self: end;
  }
  .page-home-head-media img {
    height: 340px;
  }
}
