.page-home{
  --home-frame: rgba(201,164,92,.44);
  --home-frame-soft: rgba(201,164,92,.18);
  --home-card-line: rgba(159,180,184,.16);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  padding-bottom: 0;
}

/* ---------- 首屏框景 ---------- */
.page-home .home-hero{
  position: relative;
  padding-top: clamp(16px,3vw,30px);
  background:
    radial-gradient(110% 80% at 84% -12%, rgba(255,107,44,.17), rgba(255,107,44,0) 58%),
    radial-gradient(85% 62% at 4% 6%, rgba(53,242,208,.10), rgba(53,242,208,0) 60%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 64%);
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero__shell{
  padding-inline: var(--pad-x);
}

.page-home .home-hero__frame{
  position: relative;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: clamp(18px,3vw,34px);
  border: 1px solid var(--home-frame);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(13,42,63,.96) 0%, rgba(7,26,43,.99) 72%);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.95), inset 0 0 0 1px rgba(7,26,43,.85);
  overflow: hidden;
}

.page-home .home-hero__frame::before{
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 28px);
  opacity: .32;
  pointer-events: none;
}

.page-home .home-hero__corner{
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  opacity: .85;
  pointer-events: none;
}
.page-home .home-hero__corner--tl{ top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.page-home .home-hero__corner--tr{ top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.page-home .home-hero__corner--bl{ bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.page-home .home-hero__corner--br{ bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.page-home .home-hero__grid{
  display: grid;
  gap: clamp(22px,3.4vw,40px);
  align-items: center;
  margin-top: clamp(12px,2vw,18px);
}

.page-home .home-hero__title{
  margin: .28em 0 .42em;
  font-size: clamp(34px,7vw,68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--cream);
}
.page-home .home-hero__title em{
  font-style: normal;
  color: var(--orange);
}

.page-home .home-hero__intro{
  margin: 0;
  max-width: 46ch;
  font-size: clamp(15px,1.5vw,17px);
  line-height: 1.78;
  color: var(--mist);
}

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

.page-home .home-hero__stats{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--home-frame-soft);
}
.page-home .home-hero__stat{ margin: 0; }
.page-home .home-hero__stat dt{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--grey);
  text-transform: uppercase;
}
.page-home .home-hero__stat dd{
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(20px,2.4vw,26px);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -.01em;
}

.page-home .home-hero__media{
  position: relative;
  min-height: 260px;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--home-frame-soft);
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  overflow: hidden;
}
.page-home .home-hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .44;
  filter: saturate(.92);
}
.page-home .home-hero__phone{
  position: absolute;
  left: 7%;
  bottom: 8%;
  width: 34%;
  max-width: 170px;
  border: 1px solid var(--home-frame);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 22px 44px -20px rgba(0,0,0,.95);
}
.page-home .home-hero__phone img{
  display: block;
  width: 100%;
  height: auto;
}
.page-home .home-hero__pin{
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--on-accent);
  background: var(--cyan);
  border-radius: var(--radius-sm);
}

/* ---------- 比分卡带 ---------- */
.page-home .home-tape{
  margin-top: clamp(18px,3vw,30px);
  padding-block: clamp(16px,2.4vw,24px) clamp(18px,3vw,28px);
  border-top: 1px solid var(--home-frame-soft);
  background: linear-gradient(180deg, rgba(13,42,63,.55), rgba(7,26,43,0));
}

.page-home .home-tape__head{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 12px;
}
.page-home .home-tape__title{
  margin: 0;
  font-size: clamp(17px,2vw,21px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cream);
}
.page-home .home-tape__hint{
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}

.page-home .home-tape__track{
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 2px var(--pad-x) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--home-frame) transparent;
}
.page-home .home-tape__track::-webkit-scrollbar{ height: 6px; }
.page-home .home-tape__track::-webkit-scrollbar-thumb{
  background: var(--home-frame);
  border-radius: 3px;
}

.page-home .home-tape__card{
  flex: 0 0 clamp(206px,62vw,264px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  border: 1px solid var(--home-card-line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.page-home .home-tape__card:hover{
  border-color: rgba(53,242,208,.55);
  border-left-color: var(--cyan);
  background: var(--ink-3);
}
.page-home .home-tape__card .arena-tag{ align-self: flex-start; }

.page-home .home-tape__code{
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold);
}
.page-home .home-tape__score{
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(30px,6.6vw,40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
}
.page-home .home-tape__score i{
  font-style: normal;
  color: var(--gold);
  font-size: .7em;
}
.page-home .home-tape__meta{
  margin: 0;
  font-size: 13px;
  color: var(--grey);
}

/* ---------- 轮次时间轴与赛事卡 ---------- */
.page-home .home-rounds{
  padding-block: clamp(40px,6vw,78px);
  background: linear-gradient(180deg, var(--ink) 0%, #08202f 100%);
}

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

.page-home .home-rounds__title{
  margin: .4em 0 .5em;
  font-size: clamp(22px,3.4vw,32px);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--cream);
}
.page-home .home-rounds__note{
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey);
}

.page-home .home-rounds__list{
  position: relative;
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
}
.page-home .home-rounds__list::before{
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(201,164,92,.08));
}
.page-home .home-rounds__item{
  position: relative;
  padding-left: 28px;
  margin-bottom: 6px;
}
.page-home .home-rounds__item::before{
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.page-home .home-rounds__item--current::before{
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,107,44,.18);
}

.page-home .home-rounds__link{
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--mist);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.page-home .home-rounds__link:hover,
.page-home .home-rounds__link:focus-visible{
  color: var(--cream);
  border-color: var(--home-frame-soft);
  background: rgba(13,42,63,.7);
}
.page-home .home-rounds__idx{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gold);
}
.page-home .home-rounds__label{
  font-size: 15px;
  font-weight: 600;
}

.page-home .home-rounds__lead{
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: clamp(15px,1.6vw,17px);
  line-height: 1.78;
  color: var(--mist);
}

.page-home .home-rounds__cards{
  display: grid;
  gap: 12px;
}

.page-home .home-round-card{
  padding: 18px 18px 20px;
  border: 1px solid var(--home-card-line);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(13,42,63,.95), rgba(7,26,43,.99));
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.page-home .home-round-card:hover{
  border-color: rgba(53,242,208,.45);
  transform: translateY(-2px);
}
.page-home .home-round-card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.page-home .home-round-card__code{
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
}
.page-home .home-round-card__id{
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: clamp(20px,2.6vw,26px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--cyan);
}
.page-home .home-round-card__desc{
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}
.page-home .home-round-card__extra{
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--home-frame-soft);
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey);
}

.page-home .home-rounds__figure{
  margin: 16px 0 0;
  border: 1px solid var(--home-frame-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-2);
}

/* ---------- 三条路径 ---------- */
.page-home .home-scenes{
  padding-block: clamp(40px,6vw,78px);
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
}
.page-home .home-scenes__title{
  margin: .35em 0 24px;
  font-size: clamp(22px,3.4vw,32px);
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--cream);
}
.page-home .home-scenes__grid{
  display: grid;
  gap: 14px;
}

.page-home .home-scene{
  position: relative;
  padding: 24px 20px 20px;
  border: 1px solid var(--home-card-line);
  border-top: 2px solid var(--moss);
  border-radius: var(--radius-sm);
  background: linear-gradient(165deg, rgba(13,42,63,.94), rgba(7,26,43,.99));
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.page-home .home-scene--moss{ border-top-color: var(--moss); }
.page-home .home-scene--clay{ border-top-color: var(--clay); }
.page-home .home-scene--gold{ border-top-color: var(--gold); }
.page-home .home-scene:hover{
  background: linear-gradient(165deg, rgba(18,52,72,.95), rgba(7,26,43,.99));
  border-color: rgba(53,242,208,.4);
}
.page-home .home-scene__no{
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: rgba(201,164,92,.5);
  margin-bottom: 12px;
}
.page-home .home-scene h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--cream);
}
.page-home .home-scene p{
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--mist);
}
.page-home .home-scene__link{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53,242,208,.4);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.page-home .home-scene__link:hover,
.page-home .home-scene__link:focus-visible{
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------- 数据面板 ---------- */
.page-home .home-panel{
  position: relative;
  padding-block: clamp(44px,6.5vw,86px);
  background: var(--ink-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.page-home .home-panel__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-home .home-panel__bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
}
.page-home .home-panel__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,43,.94) 0%, rgba(7,26,43,.8) 52%, rgba(7,26,43,.97) 100%);
}
.page-home .home-panel .arena-container{
  position: relative;
  z-index: 1;
}

.page-home .home-panel__title{
  margin: .35em 0 .5em;
  max-width: 22ch;
  font-size: clamp(24px,3.8vw,36px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.015em;
  color: var(--cream);
}
.page-home .home-panel__lead{
  margin: 0 0 24px;
  max-width: 62ch;
  font-size: clamp(15px,1.6vw,17px);
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-panel__table-wrap{
  border: 1px solid rgba(201,164,92,.32);
  border-radius: var(--radius-sm);
  background: rgba(7,26,43,.86);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--home-frame) transparent;
}
.page-home .home-panel__table{
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}
.page-home .home-panel__caption{
  padding: 14px 16px 8px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gold);
}
.page-home .home-panel__table thead th{
  padding: 10px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--grey);
  border-bottom: 1px solid var(--home-frame-soft);
  white-space: nowrap;
}
.page-home .home-panel__table tbody th,
.page-home .home-panel__table tbody td{
  padding: 14px 16px;
  text-align: left;
  font-weight: 400;
  color: var(--cream);
  border-bottom: 1px solid rgba(159,180,184,.1);
  white-space: nowrap;
}
.page-home .home-panel__table tbody tr:last-child th,
.page-home .home-panel__table tbody tr:last-child td{
  border-bottom: 0;
}
.page-home .home-panel__table tbody tr:hover{
  background: rgba(18,52,72,.7);
}
.page-home .home-panel__code{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cyan) !important;
}
.page-home .home-panel__score{
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--orange) !important;
}

.page-home .home-panel__notes{
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.page-home .home-panel__notes li{
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist);
}
.page-home .home-panel__notes li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.page-home .home-panel__cta{
  margin-top: 24px;
}

/* ---------- 适配清单 ---------- */
.page-home .home-adapter{
  padding-block: clamp(44px,6.5vw,86px);
  background:
    radial-gradient(72% 58% at 92% 0%, rgba(255,107,44,.15), rgba(255,107,44,0) 62%),
    radial-gradient(60% 50% at 0% 100%, rgba(95,127,90,.16), rgba(95,127,90,0) 60%),
    var(--ink);
}
.page-home .home-adapter__grid{
  display: grid;
  gap: clamp(26px,4vw,44px);
}

.page-home .home-adapter__title{
  margin: .35em 0 .5em;
  font-size: clamp(24px,3.8vw,34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.015em;
  color: var(--cream);
}
.page-home .home-adapter__lead{
  margin: 0 0 22px;
  max-width: 44ch;
  font-size: clamp(15px,1.6vw,16px);
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-adapter__steps{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.page-home .home-adapter__step{
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--home-card-line);
  border-radius: var(--radius-sm);
  background: rgba(13,42,63,.72);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.page-home .home-adapter__step:hover{
  border-color: rgba(53,242,208,.5);
  background: rgba(18,52,72,.88);
}
.page-home .home-adapter__num{
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
  padding-top: 2px;
}
.page-home .home-adapter__step h3{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--cream);
}
.page-home .home-adapter__step p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .home-adapter__links{
  display: grid;
  gap: 10px;
  margin-top: clamp(26px,4vw,40px);
  padding-top: clamp(20px,3vw,28px);
  border-top: 1px solid var(--home-frame-soft);
}
.page-home .home-adapter__link{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: rgba(13,42,63,.5);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.page-home .home-adapter__link span{
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
}
.page-home .home-adapter__link em{
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--grey);
}
.page-home .home-adapter__link:hover,
.page-home .home-adapter__link:focus-visible{
  border-color: rgba(255,107,44,.55);
  background: rgba(18,52,72,.85);
}
.page-home .home-adapter__link:hover em,
.page-home .home-adapter__link:focus-visible em{
  color: var(--cyan);
}

/* ---------- 断点 ---------- */
@media (min-width: 700px){
  .page-home .home-rounds__cards{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .page-home .home-round-card--tall{
    grid-row: span 2;
  }
  .page-home .home-scenes__grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
    align-items: stretch;
  }
  .page-home .home-adapter__links{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (min-width: 900px){
  .page-home .home-hero__grid{
    grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr);
  }
  .page-home .home-rounds__grid{
    grid-template-columns: minmax(0,258px) minmax(0,1fr);
    align-items: start;
  }
  .page-home .home-rounds__rail{
    position: sticky;
    top: 88px;
    align-self: start;
  }
  .page-home .home-rounds__cards{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
  }
  .page-home .home-adapter__grid{
    grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
    align-items: start;
  }
  .page-home .home-adapter__steps{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .page-home .home-adapter__links{
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
  .page-home .home-adapter__link{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1140px){
  .page-home .home-rounds__cards{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .page-home .home-round-card--tall{
    grid-row: span 1;
  }
}

@media (prefers-reduced-motion: reduce){
  .page-home .home-round-card,
  .page-home .home-tape__card,
  .page-home .home-adapter__step,
  .page-home .home-scene{
    transition: none;
  }
  .page-home .home-round-card:hover{
    transform: none;
  }
}
