/* ===================================================
   首页 · page-home
   =================================================== */

.page-home {
  --home-line: rgba(201, 206, 214, .2);
  --home-line-lite: rgba(140, 150, 168, .24);
  --home-shadow: 0 20px 48px -28px rgba(11, 11, 13, .55);
  --home-radius: 4px;
  --home-red-accent: #E0243F;
  display: block;
}

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

.page-home .home-hero {
  position: relative;
  padding: 26px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -12% -22% auto -22%;
  height: 148%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 68% at 84% 12%, rgba(200, 16, 46, .46), rgba(122, 12, 28, 0) 62%),
    radial-gradient(46% 56% at 6% 94%, rgba(31, 164, 99, .2), rgba(31, 164, 99, 0) 66%);
}

.page-home .hero__shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  padding-bottom: 34px;
}

.page-home .hero__ctx {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--silver);
}

.page-home .hero__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 164, 99, .2);
}

.page-home .hero__kick {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--silver);
}

.page-home .hero__kick::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.page-home .hero__title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 7.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--white);
}

.page-home .hero__lede {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(233, 236, 242, .78);
}

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

.page-home .hero__figure {
  margin: 0;
  position: relative;
}

.page-home .hero__media {
  position: relative;
  border: 1px solid rgba(201, 206, 214, .26);
  border-radius: var(--home-radius);
  overflow: hidden;
  background: linear-gradient(150deg, #161b23, #0d1013);
  box-shadow: var(--home-shadow);
}

.page-home .hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06);
}

.page-home .hero__figure .figure__cap {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(233, 236, 242, .6);
}

.page-home .hero__meters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(201, 206, 214, .18);
  border-top: 1px solid rgba(201, 206, 214, .18);
}

.page-home .meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px 24px;
  background: var(--ink);
}

.page-home .meter__val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(42px, 8.6vw, 92px);
  line-height: .94;
  letter-spacing: -.03em;
  color: var(--white);
}

.page-home .meter--red .meter__val {
  color: var(--home-red-accent);
}

.page-home .meter--green .meter__val {
  color: var(--mint);
}

.page-home .meter__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--silver);
}

/* ---------- 通用小节标题 ---------- */

.page-home .sechead {
  margin: 0 0 26px;
}

.page-home .sechead__idx {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--red);
}

.page-home .sechead__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 3.8vw, 44px);
  line-height: 1.14;
  letter-spacing: -.016em;
  color: var(--graphite);
}

.page-home .sechead__lede {
  margin: 14px 0 0;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 积分榜 ---------- */

.page-home .home-board {
  position: relative;
}

.page-home .board__seg {
  margin: 0 0 22px;
}

.page-home .board__card {
  position: relative;
  padding: 6px 18px 20px;
  background: var(--white);
  border: 1px solid var(--home-line-lite);
  border-radius: var(--home-radius);
  overflow: hidden;
  box-shadow: var(--home-shadow);
}

.page-home .board__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .07;
  pointer-events: none;
}

.page-home .board__legend {
  display: none;
}

.page-home .board {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .board__row {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem 1fr 1fr;
  grid-template-areas:
    "pos pts gd"
    "form form form";
  gap: 6px 12px;
  align-items: center;
  padding: 15px 0 13px 12px;
  border-bottom: 1px solid rgba(140, 150, 168, .2);
}

.page-home .board__row:last-child {
  border-bottom: 0;
}

.page-home .board__pos {
  grid-area: pos;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  font-weight: 700;
  color: var(--graphite);
}

.page-home .board__pts {
  grid-area: pts;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  font-weight: 700;
  color: var(--graphite);
}

.page-home .board__gd {
  grid-area: gd;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--muted);
}

.page-home .board__form {
  grid-area: form;
  display: flex;
  gap: 5px;
}

.page-home .dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.page-home .dot--w { background: var(--green); }
.page-home .dot--d { background: var(--silver); }
.page-home .dot--l { background: rgba(200, 16, 46, .5); }

.page-home .board__row--milan {
  background: linear-gradient(90deg, rgba(200, 16, 46, .08), rgba(200, 16, 46, 0) 64%);
}

.page-home .board__row--milan::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--red);
}

.page-home .board__row--milan .board__pos,
.page-home .board__row--milan .board__pts {
  color: var(--red);
}

.page-home .board__note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .board__panel {
  position: relative;
}

.page-home .split {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--home-line-lite);
  border: 1px solid var(--home-line-lite);
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .split__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--white);
}

.page-home .split__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.page-home .split__v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--graphite);
}

.page-home .split__v--red { color: var(--red); }
.page-home .split__v--green { color: #0F7C4A; }

/* ---------- 阵容预约 ---------- */

.page-home .home-lineup {
  position: relative;
}

.page-home .lineup__shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.page-home .flow {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line-lite);
}

.page-home .flow__step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--home-line-lite);
}

.page-home .flow__idx {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--red);
}

.page-home .flow__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.48;
  color: var(--graphite);
}

.page-home .flow__text {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.74;
  color: var(--muted);
}

.page-home .lineup__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 26px;
}

.page-home .sidenote {
  margin: 0;
  max-width: 34em;
  padding-left: 14px;
  border-left: 2px solid var(--silver);
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 专区资料 ---------- */

.page-home .archive__shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.page-home .archive__figure {
  margin: 0;
}

.page-home .archive__figure .figure__media {
  position: relative;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--home-line-lite);
}

.page-home .archive__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.page-home .archive__figure:hover img {
  transform: scale(1.045);
}

.page-home .archive__badge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: var(--glass);
  border: 1px solid rgba(201, 206, 214, .3);
  border-radius: var(--home-radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}

.page-home .archive__figure:hover .archive__badge,
.page-home .archive__figure:focus-within .archive__badge {
  opacity: 1;
  transform: translateY(0);
}

.page-home .archive__figure .figure__cap {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.page-home .archive__body > .sechead__idx {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--red);
}

.page-home .kit {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .kit li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--home-line-lite);
}

.page-home .kit li:last-child {
  border-bottom: 1px solid var(--home-line-lite);
}

.page-home .kit__k {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--red);
}

.page-home .kit__v {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .archive__body .btn {
  margin-top: 26px;
}

/* ---------- 入口搬家记录 ---------- */

.page-home .home-moves {
  position: relative;
  overflow: hidden;
}

.page-home .moves__banner {
  margin: 0 0 34px;
}

.page-home .moves__banner .figure__media {
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid rgba(201, 206, 214, .22);
}

.page-home .moves__banner .figure__cap {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(233, 236, 242, .6);
}

.page-home .moves__head .sechead__title {
  color: var(--white);
}

.page-home .moves__head .sechead__idx {
  color: var(--home-red-accent);
}

.page-home .moves__head .sechead__lede {
  color: rgba(233, 236, 242, .72);
}

.page-home .moves__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.page-home .fold {
  border-bottom: 1px solid var(--home-line);
}

.page-home .fold__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 5.4rem 1fr 1.4rem;
  gap: 14px;
  align-items: center;
  padding: 19px 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

.page-home .fold__when {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mint);
}

.page-home .fold__what {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.5;
}

.page-home .fold__chev {
  justify-self: end;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--silver);
  border-bottom: 2px solid var(--silver);
  transform: rotate(45deg);
  transition: transform .28s var(--ease);
}

.page-home .fold__btn[aria-expanded="true"] .fold__chev {
  transform: rotate(-135deg);
}

.page-home .fold__panel {
  padding: 0 0 20px;
}

.page-home .fold__panel[data-open="false"] {
  display: none;
}

.page-home .fold__panel > div {
  padding: 16px 18px;
  background: var(--glass);
  border: 1px solid rgba(201, 206, 214, .2);
  border-radius: var(--home-radius);
}

.page-home .fold__panel p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.74;
  color: rgba(233, 236, 242, .76);
}

.page-home .fold__panel p + p {
  margin-top: 10px;
}

/* ---------- 再看两页 ---------- */

.page-home .next__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--home-line-lite);
  border: 1px solid var(--home-line-lite);
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .next__item a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 24px 20px 26px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: background .25s var(--ease);
}

.page-home .next__item a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.page-home .next__item a:hover::after,
.page-home .next__item a:focus-visible::after {
  transform: scaleX(1);
}

.page-home .next__item a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.page-home .next__idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--red);
}

.page-home .next__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.45;
  color: var(--graphite);
}

.page-home .next__desc {
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted);
}

.page-home .next__go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--red);
}

.page-home .home-cred {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--home-line-lite);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

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

@media (min-width: 640px) {
  .page-home .next__list {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 700px) {
  .page-home .board__legend {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 3rem 6rem 6rem 1fr;
    gap: 12px;
    padding: 18px 0 10px 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .1em;
    color: var(--muted);
    border-bottom: 1px solid var(--home-line-lite);
  }

  .page-home .board__row {
    grid-template-columns: 3rem 6rem 6rem 1fr;
    grid-template-areas: "pos pts gd form";
    gap: 12px;
    padding: 14px 0 14px 12px;
  }

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

  .page-home .lineup__foot {
    flex-direction: row;
    align-items: center;
    gap: 26px;
  }

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

@media (min-width: 960px) {
  .page-home .hero__shell {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    align-items: end;
    padding-bottom: 54px;
  }

  .page-home .hero__main {
    grid-column: 1 / span 7;
  }

  .page-home .hero__figure {
    grid-column: 8 / span 5;
    align-self: end;
    transform: translateY(-20px);
  }

  .page-home .lineup__shell {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
  }

  .page-home .lineup__head {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--bar-h) + 28px);
  }

  .page-home .flow {
    grid-column: 7 / span 6;
  }

  .page-home .lineup__foot {
    grid-column: 7 / span 6;
  }

  .page-home .archive__shell {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
  }

  .page-home .archive__figure {
    grid-column: 1 / span 5;
  }

  .page-home .archive__body {
    grid-column: 7 / span 6;
  }

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

  .page-home .board__legend {
    grid-template-columns: 3.4rem 7rem 7rem 1fr;
  }

  .page-home .board__row {
    grid-template-columns: 3.4rem 7rem 7rem 1fr;
  }
}

@media (hover: none) {
  .page-home .archive__badge {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .archive__figure img,
  .page-home .archive__badge,
  .page-home .fold__chev,
  .page-home .next__item a,
  .page-home .next__item a::after {
    transition: none;
  }

  .page-home .archive__figure:hover img {
    transform: none;
  }
}
