.page-home {
  --home-cut: clamp(40px, 9vw, 128px);
  --home-scan: repeating-linear-gradient(
    0deg,
    rgba(34, 224, 214, 0.05) 0px,
    rgba(34, 224, 214, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-deep);
  padding: clamp(56px, 10vw, 118px) 0 clamp(64px, 11vw, 132px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--home-scan);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero__wedge {
  position: absolute;
  top: -14%;
  right: -8%;
  width: min(66%, 800px);
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 66% 34%, rgba(34, 224, 214, 0.26), transparent 62%),
    linear-gradient(215deg, var(--violet) 0%, rgba(90, 62, 140, 0) 58%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 74%);
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(64%, 900px);
  margin: 0;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

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

.page-home .home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    104deg,
    var(--ink-deep) 0%,
    rgba(6, 10, 24, 0.9) 30%,
    rgba(16, 26, 51, 0.58) 68%,
    rgba(6, 10, 24, 0.8) 100%
  );
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.page-home .home-hero__kicker {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-left: 30px;
  position: relative;
}

.page-home .home-hero__kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .home-hero__lede {
  margin: 0 0 30px;
  max-width: 32em;
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.page-home .home-hero__actions .btn {
  transition: box-shadow 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
}

.page-home .home-hero__actions .btn:hover,
.page-home .home-hero__actions .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--cyan-soft), 0 12px 34px rgba(34, 224, 214, 0.3);
}

.page-home .home-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 玩法索引 ---------- */
.page-home .home-index {
  background: var(--ink-deep);
}

.page-home .home-index__head {
  display: grid;
  gap: 16px;
  align-items: end;
  margin-bottom: 34px;
}

.page-home .home-index__head .side-note {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.7;
  max-width: 30ch;
}

.page-home .home-index__banner {
  margin: 0 0 46px;
}

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

.page-home .home-index__group + .home-index__group {
  margin-top: 46px;
}

.page-home .home-index__gtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 800;
  color: var(--white);
}

.page-home .home-index__gtitle .mono {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: rgba(34, 224, 214, 0.12);
  border: 1px solid rgba(34, 224, 214, 0.4);
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0;
}

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

.page-home .home-ix__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "no name"
    "no text"
    "note note";
  gap: 4px 16px;
  padding: 20px 20px 18px;
  background: var(--ink-console);
  transition: background 0.25s ease, transform 0.25s ease;
}

.page-home .home-ix__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.page-home .home-ix__item:hover::after,
.page-home .home-ix__item:focus-within::after {
  transform: scaleY(1);
}

.page-home .home-ix__item:hover,
.page-home .home-ix__item:focus-within {
  background: #132242;
}

.page-home .home-ix__no {
  grid-area: no;
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.04em;
  align-self: start;
  padding-top: 3px;
}

.page-home .home-ix__name {
  grid-area: name;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.01em;
}

.page-home .home-ix__text {
  grid-area: text;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .home-ix__note {
  grid-area: note;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan-soft);
  opacity: 0.85;
}

.page-home .home-index__tail {
  margin: 40px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-index__tail a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 224, 214, 0.45);
  text-decoration: none;
}

.page-home .home-index__tail a:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 赛季计分板 ---------- */
.page-home .home-season {
  position: relative;
  background: linear-gradient(180deg, var(--ink-deep) 0%, #0a1226 52%, var(--ink-deep) 100%);
}

.page-home .home-season__grid {
  display: grid;
  gap: 26px;
  margin: 36px 0 26px;
}

.page-home .home-season__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-console);
}

.page-home .home-num {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.page-home .home-num__val {
  font-family: var(--font-mono);
  font-size: clamp(38px, 8vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.page-home .home-num__unit {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.page-home .home-season__hint {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

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

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

.page-home .home-season__screen {
  margin: 0 0 28px;
}

.page-home .home-season__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius-md);
  background: rgba(16, 26, 51, 0.72);
}

.page-home .home-season__cta p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 更新日志 ---------- */
.page-home .home-log {
  background: var(--ink-deep);
}

.page-home .home-log__inner {
  display: grid;
  gap: 32px;
}

.page-home .home-log__lead p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
  max-width: 40ch;
}

.page-home .home-log__link {
  display: inline-block;
  color: var(--cyan);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 224, 214, 0.45);
  padding-bottom: 2px;
}

.page-home .home-log__link:hover {
  border-bottom-color: var(--cyan);
}

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

.page-home .home-log__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
}

.page-home .home-log__no {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

/* ---------- 新手三层 ---------- */
.page-home .home-start {
  background: linear-gradient(180deg, var(--ink-deep) 0%, #0b1327 100%);
}

.page-home .home-start__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 34px 0 28px;
}

.page-home .home-start__card {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-console);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-home .home-start__card:hover {
  border-color: rgba(34, 224, 214, 0.5);
  transform: translateY(-3px);
}

.page-home .home-start__no {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mist);
}

.page-home .home-start__card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--white);
}

.page-home .home-start__card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

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

.page-home .home-start__faq li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--white);
}

.page-home .home-start__faq li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--cyan);
}

.page-home .home-start__link {
  display: inline-block;
  color: var(--cyan);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 224, 214, 0.45);
  padding-bottom: 2px;
}

.page-home .home-start__link:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 页尾收束 ---------- */
.page-home .home-out {
  background: var(--ink-deep);
}

.page-home .home-out__inner {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 77, 141, 0.16), transparent 58%),
    radial-gradient(circle at 6% 88%, rgba(34, 224, 214, 0.14), transparent 56%),
    var(--ink-console);
}

.page-home .home-out__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--white);
}

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

/* ---------- 滚动高亮 ---------- */
.page-home [data-section] {
  position: relative;
}

.page-home [data-section]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  width: 2px;
  height: 64px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.page-home [data-section].is-active::before {
  opacity: 1;
}

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

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

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    max-width: 560px;
  }

  .page-home .home-index__head {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
  }

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

  .page-home .home-ix__item {
    grid-template-areas:
      "no name"
      "no text";
    align-content: start;
  }

  .page-home .home-ix__note {
    grid-area: auto;
    position: absolute;
    right: 18px;
    top: 18px;
    margin: 0;
    opacity: 0.55;
    transition: opacity 0.25s ease, color 0.25s ease;
  }

  .page-home .home-ix__item:hover .home-ix__note,
  .page-home .home-ix__item:focus-within .home-ix__note {
    opacity: 1;
    color: var(--gold);
  }

  .page-home .home-ix__item {
    padding-right: 108px;
  }

  .page-home .home-season__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .home-log__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
  }

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

  .page-home .home-out__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero__inner {
    padding-left: 0;
  }
}

@media (max-width: 899px) {
  .page-home .home-hero__media {
    inset: auto 0 0 auto;
    width: 100%;
    height: 46%;
    clip-path: polygon(0 26%, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .home-hero__media::after {
    background: linear-gradient(
      180deg,
      var(--ink-deep) 0%,
      rgba(6, 10, 24, 0.86) 42%,
      rgba(6, 10, 24, 0.72) 100%
    );
  }

  .page-home .home-hero__wedge {
    width: 88%;
    top: -6%;
  }
}

@media (max-width: 560px) {
  .page-home .home-season__figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .page-home .home-hero__actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-home .home-out__actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__actions .btn,
  .page-home .home-ix__item,
  .page-home .home-ix__note,
  .page-home .home-start__card,
  .page-home [data-section]::before {
    transition: none;
  }

  .page-home .home-hero__actions .btn:hover,
  .page-home .home-start__card:hover {
    transform: none;
  }
}
