/* =========================================================
   安博体育 · 首页
   ========================================================= */

.page-home {
  --home-cut: 14px;
  --home-gap: clamp(20px, 3vw, 40px);
  display: block;
  background: var(--deep);
  color: var(--mist);
  overflow-x: hidden;
}

/* =========================================================
   01 首屏
   ========================================================= */

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 8vw, 92px) 0 clamp(26px, 4vw, 42px);
  background:
    radial-gradient(120% 90% at 88% 4%, rgba(46, 139, 255, .24) 0%, rgba(10, 27, 51, 0) 58%),
    var(--deep);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg,
      rgba(10, 27, 51, .97) 0%,
      rgba(10, 27, 51, .88) 44%,
      rgba(10, 27, 51, .6) 100%);
}

.page-home .home-hero__diag {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(18, 48, 90, .62) 0%, rgba(10, 27, 51, .9) 100%);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 36% 100%);
}

.page-home .home-hero__diag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 106, 43, .85) 0%, rgba(255, 106, 43, .12) 100%);
  clip-path: polygon(58% 0, calc(58% + 2px) 0, calc(36% + 2px) 100%, 36% 100%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}

.page-home .home-hero__copy .index-label {
  margin: 0;
}

.page-home .home-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--mist);
}

.page-home .home-hero__lead {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--stone);
}

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

/* ---------- 积分榜卡片 ---------- */

.page-home .home-standings {
  position: relative;
  padding: 22px 20px 18px;
  background: linear-gradient(160deg, rgba(18, 48, 90, .94) 0%, rgba(10, 27, 51, .97) 100%);
  box-shadow: var(--shadow-card);
  clip-path: polygon(0 0,
      calc(100% - var(--home-cut)) 0,
      100% var(--home-cut),
      100% 100%,
      0 100%);
}

.page-home .home-standings::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 2px solid var(--blue);
  border-left: 1px solid var(--line-dark);
}

.page-home .home-standings__head .index-label {
  margin: 0;
}

.page-home .home-standings__head h2 {
  margin: 8px 0 0;
  font-size: clamp(21px, 3.2vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-home .home-standings__sub {
  margin: 7px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stone);
}

.page-home .home-standings__viz {
  display: block;
  width: 100%;
  height: 78px;
  margin: 16px 0 4px;
  object-fit: cover;
  border-radius: 2px;
  opacity: .82;
}

.page-home .home-standings__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.page-home .home-ledger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "rank name pts"
    "split split split";
  align-items: center;
  gap: 5px 10px;
  padding: 11px 8px;
  border-top: 1px solid var(--line-dark);
  transition: background-color .18s var(--ease);
}

.page-home .home-ledger:hover,
.page-home .home-ledger:focus-within {
  background: rgba(46, 139, 255, .1);
}

.page-home .home-ledger__rank {
  grid-area: rank;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.page-home .home-ledger__name {
  grid-area: name;
  font-size: 14px;
  color: var(--mist);
}

.page-home .home-ledger__pts {
  grid-area: pts;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 600;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .home-ledger__pts i {
  margin-left: 3px;
  font-size: 11px;
  font-style: normal;
  color: var(--stone);
}

.page-home .home-ledger__split {
  grid-area: split;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--stone);
}

.page-home .home-split {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .home-split::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--teal);
}

.page-home .home-split--away::before {
  background: var(--blue);
}

.page-home .home-standings__foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line-dark);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--stone);
}

/* ---------- 校准刻度条 ---------- */

.page-home .home-calib {
  position: relative;
  z-index: 3;
  margin-top: clamp(30px, 5vw, 52px);
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

.page-home .home-calib__row {
  display: grid;
  gap: 12px 22px;
  align-items: center;
}

.page-home .home-calib__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 14px;
  color: var(--mist);
}

.page-home .home-calib__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, .18);
}

.page-home .home-calib__ticks {
  display: flex;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-tick {
  flex: 1 1 0;
  min-width: 6px;
  max-width: 42px;
  height: 6px;
  background: rgba(201, 211, 224, .22);
  transition: background-color .22s var(--ease);
}

.page-home .home-tick--now {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, .16);
}

.page-home .home-calib__facts {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
  white-space: nowrap;
}

.page-home .home-calib__facts b {
  color: var(--orange);
  font-weight: 600;
}

.page-home .home-calib__pop {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--stone);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .26s var(--ease), opacity .2s var(--ease);
}

.page-home .home-calib:hover .home-calib__pop,
.page-home .home-calib:focus-within .home-calib__pop {
  max-height: 60px;
  opacity: 1;
}

/* =========================================================
   02 为什么每月重算
   ========================================================= */

.page-home .home-fresh {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0 clamp(56px, 8vw, 100px);
  background: var(--deep);
  overflow: hidden;
}

.page-home .home-fresh__slash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange) 0%, rgba(255, 106, 43, .1) 46%, rgba(23, 195, 162, .5) 100%);
}

.page-home .home-fresh__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.page-home .home-fresh__figure {
  margin: 0;
  overflow: hidden;
  background: var(--deck);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.page-home .home-fresh__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.page-home .home-fresh__copy .index-label {
  margin: 0;
}

.page-home .home-fresh__copy h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--mist);
}

.page-home .home-fresh__copy p {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--stone);
}

.page-home .home-fresh__copy .btn {
  margin-top: 24px;
}

/* =========================================================
   03 二级栏目
   ========================================================= */

.page-home .home-rooms {
  padding: clamp(52px, 8vw, 96px) 0;
  background: var(--mist);
  color: var(--graphite);
}

.page-home .home-rooms__head .index-label {
  margin: 0;
  color: #5a6b84;
}

.page-home .home-rooms__head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--graphite);
}

.page-home .home-rooms__lead {
  margin: 14px 0 0;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.8;
  color: #4b5a70;
}

.page-home .home-rooms__stage {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(26px, 4vw, 44px);
}

.page-home .home-rooms__figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--deck);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.page-home .home-rooms__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.page-home .home-rooms__figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
  background: linear-gradient(0deg, rgba(10, 27, 51, .9), rgba(10, 27, 51, 0));
}

.page-home .home-rooms__cards {
  display: grid;
  gap: 16px;
}

.page-home .home-room {
  position: relative;
  display: block;
  padding: 24px 22px 22px;
  background: #ffffff;
  color: var(--graphite);
  text-decoration: none;
  clip-path: polygon(0 0,
      calc(100% - var(--home-cut)) 0,
      100% var(--home-cut),
      100% 100%,
      0 100%);
  box-shadow:
    inset 3px 0 0 var(--stone),
    0 14px 30px -24px rgba(16, 24, 38, .45);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.page-home .home-room:hover,
.page-home .home-room:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    inset 4px 0 0 var(--orange),
    0 22px 40px -22px rgba(16, 24, 38, .42);
}

.page-home .home-room__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: #7a879c;
}

.page-home .home-room__title {
  margin: 10px 0 0;
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.28;
  font-weight: 800;
  color: var(--graphite);
}

.page-home .home-room__body {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: #4b5a70;
}

.page-home .home-room__more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--orange);
}

/* =========================================================
   04 注册与导出
   ========================================================= */

.page-home .home-start {
  padding: clamp(52px, 8vw, 96px) 0;
  background:
    radial-gradient(90% 70% at 4% 100%, rgba(23, 195, 162, .14) 0%, rgba(10, 27, 51, 0) 60%),
    var(--deep);
}

.page-home .home-start__inner {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.page-home .home-start__copy .index-label {
  margin: 0;
}

.page-home .home-start__copy h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--mist);
}

.page-home .home-start__copy p {
  margin: 16px 0 0;
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--stone);
}

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

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

.page-home .home-step {
  position: relative;
  padding: 20px 20px 18px 64px;
  background: rgba(18, 48, 90, .74);
  border: 1px solid var(--line-dark);
  clip-path: polygon(0 0,
      calc(100% - var(--home-cut)) 0,
      100% var(--home-cut),
      100% 100%,
      0 100%);
}

.page-home .home-step__idx {
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--orange);
}

.page-home .home-step h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: var(--mist);
}

.page-home .home-step p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--stone);
}

.page-home .home-route {
  margin-top: var(--home-gap);
  padding: 20px 22px 22px;
  border: 1px dashed var(--line-dark);
  background: rgba(10, 27, 51, .62);
}

.page-home .home-route__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--orange);
}

.page-home .home-route__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-route__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--stone);
}

.page-home .home-route__item span {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  padding-top: 3px;
}

/* =========================================================
   05 数据来源与信任
   ========================================================= */

.page-home .home-trust {
  padding: clamp(52px, 8vw, 92px) 0;
  background: var(--deck);
}

.page-home .home-trust__head .index-label {
  margin: 0;
}

.page-home .home-trust__head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--mist);
}

.page-home .home-trust__lead {
  margin: 14px 0 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--stone);
}

.page-home .home-trust__grid {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(26px, 4vw, 44px);
}

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

.page-home .home-trust__links li {
  padding: 13px 0 13px 26px;
  position: relative;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15px;
  color: var(--mist);
}

.page-home .home-trust__links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--teal);
  transform: translateY(-50%);
}

.page-home .home-trust__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.page-home .home-trust__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-trust__stat .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1;
  color: var(--mist);
}

.page-home .home-trust__stat .stat-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone);
}

.page-home .home-trust__foot {
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  max-width: 74ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--stone);
}

.page-home .home-trust__foot a {
  color: var(--amber-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.page-home .home-trust__legal {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(201, 211, 224, .6);
}

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

@media (min-width: 700px) {
  .page-home .home-calib__row {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  }

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

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

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

  .page-home .home-fresh__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

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

  .page-home .home-rooms__figure img {
    min-height: 100%;
  }

  .page-home .home-start__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 64px);
  }

  .page-home .home-trust__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
}

@media (max-width: 420px) {
  .page-home .home-calib__facts {
    white-space: normal;
  }

  .page-home .home-step {
    padding-left: 20px;
    padding-top: 54px;
  }

  .page-home .home-step__idx {
    top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-room,
  .page-home .home-ledger,
  .page-home .home-tick,
  .page-home .home-calib__pop {
    transition-duration: .01ms;
  }

  .page-home .home-room:hover,
  .page-home .home-room:focus-visible {
    transform: none;
  }
}
