.page-home {
  --home-line: rgba(43, 58, 87, 0.55);
  --home-line-soft: rgba(43, 58, 87, 0.32);
  --home-card-bg: rgba(22, 34, 58, 0.9);
  overflow-x: hidden;
}

/* ---------- 封面首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding-top: 22px;
  padding-bottom: 64px;
  background-image:
    radial-gradient(120% 80% at 80% 12%, rgba(37, 225, 212, 0.09), transparent 62%),
    linear-gradient(var(--home-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line-soft) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
  background-position: center top, center top, center top;
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 22px;
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-size: clamp(34px, 6.6vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-stretch: 87%;
  color: var(--text);
}

.page-home .home-hero__lede {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .home-hero__note {
  display: inline-block;
  margin: 14px 0 0;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

/* 首屏索引轴 */
.page-home .home-idx {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.page-home .home-idx__item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 8px 13px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}

.page-home .home-idx__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: height 160ms var(--ease);
}

.page-home .home-idx__item:hover,
.page-home .home-idx__item:focus-visible {
  background: rgba(37, 225, 212, 0.07);
  transform: translateX(3px);
}

.page-home .home-idx__item:hover::before,
.page-home .home-idx__item:focus-visible::before {
  height: 60%;
}

.page-home .home-idx__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

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

.page-home .home-idx__text strong {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .home-idx__text span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* 封面玻璃图 */
.page-home .home-cover {
  position: relative;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 23, 41, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -38px rgba(0, 0, 0, 0.9);
}

.page-home .home-cover__side {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  padding: 10px 5px;
  border: 1px solid rgba(166, 242, 237, 0.28);
  border-radius: 999px;
  background: rgba(7, 12, 24, 0.72);
  color: var(--cyan-soft);
  font-size: 11.5px;
  letter-spacing: 0.3em;
}

.page-home .home-cover__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.page-home .home-cover__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- 场景入口板 ---------- */
.page-home .home-scenes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.page-home .home-scene {
  --accent: var(--cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 22px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--home-card-bg);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .home-scene::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

.page-home .home-scene:nth-child(1) { --accent: var(--cyan); }
.page-home .home-scene:nth-child(2) { --accent: var(--orange); }
.page-home .home-scene:nth-child(3) { --accent: var(--rose); }

.page-home .home-scene:hover {
  transform: translateY(-2px);
}

.page-home .home-scene:nth-child(1):hover { border-color: rgba(37, 225, 212, 0.5); }
.page-home .home-scene:nth-child(2):hover { border-color: rgba(255, 155, 61, 0.5); }
.page-home .home-scene:nth-child(3):hover { border-color: rgba(255, 78, 124, 0.5); }

.page-home .home-scene h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-home .home-scene p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .home-scene .btn {
  margin-top: auto;
}

.page-home .home-scene__coord {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(141, 156, 184, 0.6);
}

/* ---------- 战报时间轴 ---------- */
.page-home .home-timeline {
  background-image:
    linear-gradient(var(--home-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-home .home-timeline__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-top: 26px;
  align-items: start;
}

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

.page-home .home-timeline__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .home-timeline__fig figcaption {
  margin-top: 10px;
}

.page-home .home-tl {
  position: relative;
  margin: 0;
  padding: 0 0 0 24px;
  list-style: none;
}

.page-home .home-tl::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--rose), rgba(43, 58, 87, 0.25));
}

.page-home .home-tl__item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .home-tl__item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--rose);
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.page-home .home-tl__time {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

.page-home .home-tl__league {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rose);
}

.page-home .home-tl__match {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.page-home .home-tl__score {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.page-home .home-timeline__note {
  margin: 20px 0 16px;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 卡片矩阵 ---------- */
.page-home .home-cards {
  position: relative;
  overflow: hidden;
}

.page-home .home-cards__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-cards__wash img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

.page-home .home-cards > .wrap {
  position: relative;
  z-index: 1;
}

.page-home .home-cards__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.page-home .home-card {
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--home-card-bg);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 225, 212, 0.45);
}

.page-home .home-card h3 {
  margin: 0 0 10px;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .home-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .home-card__coord {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(141, 156, 184, 0.75);
}

/* ---------- 跨设备 ---------- */
.page-home .home-cross__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.page-home .home-cross__text h2 {
  margin: 10px 0 0;
  font-size: clamp(25px, 4.4vw, 34px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.page-home .home-cross__text > p {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}

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

.page-home .home-cross__list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--text);
}

.page-home .home-cross__num {
  font-size: 19px;
  font-weight: 700;
  color: var(--orange);
}

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

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

.page-home .home-cross__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .home-cross__fig figcaption {
  margin-top: 10px;
}

/* ---------- 常见疑问 ---------- */
.page-home .home-faq__list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .home-faq__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-faq__item a {
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

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

/* ---------- 媒体查询 ---------- */
@media (min-width: 700px) {
  .page-home .home-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .home-scenes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .home-hero {
    padding-top: 30px;
    padding-bottom: 84px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 5.2fr) minmax(0, 6fr);
    gap: 56px;
    align-items: center;
  }

  .page-home .home-timeline__grid {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 46px;
  }

  .page-home .home-timeline__fig img {
    aspect-ratio: 2 / 3;
  }

  .page-home .home-cross__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 52px;
  }
}

@media (min-width: 1100px) {
  .page-home .home-cards__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .page-home .home-tl__item {
    grid-template-columns: 46px minmax(0, 1fr);
    row-gap: 4px;
  }

  .page-home .home-tl__score {
    grid-column: 2;
    text-align: left;
  }

  .page-home .home-cover__side {
    top: 18px;
    right: 18px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-idx__item,
  .page-home .home-scene,
  .page-home .home-card {
    transition: color 160ms var(--ease), background-color 160ms var(--ease);
  }

  .page-home .home-idx__item:hover,
  .page-home .home-idx__item:focus-visible,
  .page-home .home-scene:hover,
  .page-home .home-card:hover {
    transform: none;
  }
}
