/* ================= 首页 · 开服总览 ================= */

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(104px, 20vw, 172px) 0 var(--sp);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mist);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 30% 100%);
  opacity: .9;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(237, 242, 255, .045) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 34px;
}

.page-home .home-hero__kicker {
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-home .home-hero__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 10vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--snow);
}

.page-home .home-hero__title span {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(47, 227, 224, .35);
}

.page-home .home-hero__lead {
  margin: 18px 0 0;
  max-width: 26em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fog);
}

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

.page-home .home-hero__jump {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--fog);
}

.page-home .home-hero__jump a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 227, 224, .45);
}

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

.page-home .home-hero__aside {
  display: grid;
  gap: 18px;
}

.page-home .countdown {
  padding: 22px 22px 24px;
}

.page-home .countdown__label {
  margin: 0;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--fog);
}

.page-home .countdown__time {
  margin: 6px 0 6px;
  font-size: clamp(56px, 17vw, 92px);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 0 16px rgba(255, 162, 58, .42);
}

.page-home .countdown__note {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--snow);
}

.page-home .countdown__list {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fog);
}

.page-home .countdown__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.page-home .status-dot--online {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: .5em;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 10px rgba(55, 227, 155, .7);
}

.page-home .status-dot--closed {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fog);
}

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

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

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

/* ---------- 开服表 ---------- */

.page-home .home-servers__body {
  display: grid;
  gap: 26px;
  margin-top: 6px;
}

.page-home .home-servers__sub {
  margin: 24px 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-home .home-servers__sub:first-child {
  margin-top: 0;
}

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

.page-home .server-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-areas:
    "time name"
    "time meta";
  gap: 6px 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--line);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.page-home .server-row:hover {
  border-color: var(--cyan);
  background: var(--mist);
}

.page-home .server-row--next {
  border-left: 3px solid var(--amber);
}

.page-home .server-row__time {
  grid-area: time;
  align-self: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .server-row__name {
  grid-area: name;
  font-size: 15px;
  font-weight: 700;
  color: var(--snow);
}

.page-home .server-row__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .server-row__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fog);
}

.page-home .server-row__state .status-dot--online,
.page-home .server-row__state .status-dot--closed {
  margin-top: 0;
}

.page-home .home-servers__aside {
  padding: 22px 20px 24px;
}

.page-home .home-servers__aside-title {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--snow);
}

.page-home .checklist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fog);
}

.page-home .checklist li {
  position: relative;
  padding-left: 16px;
}

.page-home .checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .home-servers__more,
.page-home .home-timeline__more,
.page-home .home-gifts__more,
.page-home .home-why__note,
.page-home .home-steps__foot {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fog);
}

.page-home .home-servers__more a,
.page-home .home-timeline__more a,
.page-home .home-why__note a,
.page-home .home-steps__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 227, 224, .45);
}

/* ---------- 时间轴 ---------- */

.page-home .home-timeline__body {
  display: grid;
  gap: 24px;
}

.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 4px 0 16px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .timeline__node {
  position: relative;
  flex: 0 0 80%;
  scroll-snap-align: start;
  padding: 20px 18px 20px 28px;
  background: rgba(11, 16, 48, .55);
  border: 1px solid var(--line);
  border-top: 2px solid var(--violet);
  transition: border-color .18s var(--ease);
}

.page-home .timeline__node:hover {
  border-color: var(--cyan);
  border-top-color: var(--cyan);
}

.page-home .timeline__node::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--violet);
  transform: translateY(-50%) rotate(45deg);
}

.page-home .timeline__node--now {
  border-top-color: var(--cyan);
}

.page-home .timeline__node--now::before {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(47, 227, 224, .55);
}

.page-home .timeline__index {
  margin: 0;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--amber);
}

.page-home .timeline__title {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--snow);
}

.page-home .timeline__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fog);
}

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

/* ---------- 礼包速览 ---------- */

.page-home .home-gifts__body {
  display: grid;
  gap: 26px;
}

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

.page-home .gift-card {
  position: relative;
  padding: 20px 18px 22px;
  background: rgba(11, 16, 48, .62);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .gift-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.page-home .gift-card__batch {
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--violet);
}

.page-home .gift-card__title {
  margin: 10px 0 8px;
  font-size: 19px;
  color: var(--snow);
}

.page-home .gift-card__desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fog);
}

.page-home .gift-card__code {
  margin: 0 0 10px;
  padding: 9px 12px;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--amber);
  background: rgba(255, 162, 58, .1);
  border-left: 3px solid var(--amber);
  word-break: break-all;
}

.page-home .gift-card__meta {
  margin: 0;
  font-size: 13px;
  color: var(--fog);
}

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

/* ---------- 平台底子 ---------- */

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

.page-home .stat-grid .stat {
  padding: 18px 16px;
  background: rgba(11, 16, 48, .5);
  border: 1px solid var(--line);
  transition: border-color .18s var(--ease);
}

.page-home .stat-grid .stat:hover {
  border-color: var(--cyan);
}

.page-home .stat-grid .stat__value {
  color: var(--snow);
}

/* ---------- 三步进游戏 ---------- */

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

.page-home .step {
  padding: 24px 20px 22px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  transition: border-color .18s var(--ease);
}

.page-home .step:hover {
  border-color: var(--cyan);
  border-left-color: var(--cyan);
}

.page-home .step:nth-child(2) {
  border-left-color: var(--cyan);
}

.page-home .step:nth-child(3) {
  border-left-color: var(--amber);
}

.page-home .step__num {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--violet);
}

.page-home .step__title {
  margin: 14px 0 8px;
  font-size: 19px;
  color: var(--snow);
}

.page-home .step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fog);
}

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

@media (min-width: 720px) {
  .page-home .server-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas: "time name meta";
    align-items: center;
  }

  .page-home .server-row__meta {
    justify-content: flex-end;
  }

  .page-home .timeline__node {
    flex: 0 0 62%;
  }

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

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
    gap: 40px;
  }

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

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

  .page-home .home-servers__body {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }

  .page-home .home-timeline__body {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
  }

  .page-home .home-gifts__body {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
  }

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

  .page-home .gift-card:nth-child(2) {
    transform: translateY(24px);
  }

  .page-home .gift-card:nth-child(3) {
    transform: translateY(-10px);
  }

  .page-home .gift-card:nth-child(2):hover {
    transform: translateY(21px);
  }

  .page-home .gift-card:nth-child(3):hover {
    transform: translateY(-13px);
  }

  .page-home .timeline__node {
    flex: 0 0 calc((100% - 28px) / 3);
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero__shot {
    display: block;
    position: absolute;
    left: -40px;
    bottom: -30px;
    z-index: 1;
    width: 280px;
    margin: 0;
    opacity: .5;
    pointer-events: none;
  }

  .page-home .home-hero__shot img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .server-row,
  .page-home .gift-card,
  .page-home .timeline__node,
  .page-home .stat-grid .stat,
  .page-home .step {
    transition: none;
  }
}
