.page-home {
  --home-slant: 68px;
  --home-radius: 14px;
}

/* ============ 封面首屏 ============ */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 104px;
  background:
    radial-gradient(120% 92% at 84% 6%, rgba(255, 197, 61, 0.17), transparent 58%),
    radial-gradient(90% 70% at 4% 98%, rgba(37, 230, 208, 0.1), transparent 62%),
    var(--c-night);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-slant)), 0 100%);
}

.page-home .hero__scan {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(246, 237, 221, 0.055) 0 1px,
    transparent 1px 5px
  );
  animation: home-scan 6s linear infinite;
}

@keyframes home-scan {
  from { transform: translateY(0); }
  to { transform: translateY(5px); }
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}

.page-home .hero__left {
  padding-inline: 2px;
}

.page-home .hero__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--c-gold);
}

.page-home .hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 8.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--c-paper);
  transform: rotate(-1.6deg);
  transform-origin: left center;
  text-shadow:
    1px 1px 0 var(--c-gold),
    0 0 40px rgba(255, 197, 61, 0.28),
    6px 6px 0 rgba(0, 0, 0, 0.66);
}

.page-home .hero__lede {
  margin: 0 0 22px;
  max-width: 32ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-mauve);
}

.page-home .hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 470px;
  padding: 5px 7px 5px 18px;
  background: rgba(23, 17, 38, 0.9);
  border: var(--edge) solid var(--c-tiger);
  border-radius: var(--r-pill);
  box-shadow: var(--hard-sm);
  transition: border-color 0.22s, box-shadow 0.22s;
}

.page-home .hero__search:focus-within {
  border-color: var(--c-gold);
  box-shadow: var(--hard-sm), var(--glow-gold);
}

.page-home .hero__search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--c-paper);
  font-family: var(--font-body);
  font-size: 15px;
}

.page-home .hero__search-input::placeholder {
  color: rgba(179, 166, 198, 0.75);
}

.page-home .hero__search-hint {
  flex: 0 0 auto;
  padding: 4px 10px;
  font-family: var(--font-num);
  font-size: 12px;
  white-space: nowrap;
  color: var(--c-cyan);
  border: 1px solid rgba(37, 230, 208, 0.42);
  border-radius: var(--r-pill);
}

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

.page-home .hero__right {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: var(--edge) solid var(--c-tiger);
  border-radius: var(--home-radius);
  box-shadow: var(--hard);
  background: var(--c-panel);
}

.page-home .hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.92) contrast(1.06);
}

.page-home .hero__right::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(11, 6, 20, 0.93) 14%,
    rgba(11, 6, 20, 0.44) 60%,
    rgba(255, 197, 61, 0.12) 100%
  );
}

.page-home .countdown {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-height: 300px;
  padding: 26px 20px 24px;
}

.page-home .countdown__label {
  margin: 0;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-gold);
}

.page-home .countdown__digits {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.page-home .countdown__digit {
  min-width: 0.92em;
  padding: 9px 5px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(20px, 6.2vw, 48px);
  line-height: 1;
  text-align: center;
  color: var(--c-paper);
  background: linear-gradient(180deg, #2c1b40 0%, #120b20 100%);
  border: 2px solid rgba(255, 197, 61, 0.52);
  border-radius: 8px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 197, 61, 0.16);
  font-variant-numeric: tabular-nums;
}

.page-home .countdown__sep {
  font-family: var(--font-num);
  font-size: clamp(18px, 5vw, 38px);
  line-height: 1;
  color: var(--c-gold);
  opacity: 0.85;
}

.page-home .countdown__meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-mauve);
}

.page-home .countdown__action {
  align-self: flex-start;
}

/* ============ 通用版式 ============ */
.page-home .home-block {
  padding-block: 62px;
}

.page-home .section-head {
  margin-bottom: 26px;
}

.page-home .section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(25px, 4.4vw, 40px);
  line-height: 1.16;
  color: var(--c-paper);
}

.page-home .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-gold);
}

.page-home .lede {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-mauve);
}

.page-home .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* ============ 开服速览 ============ */
.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(179, 166, 198, 0.18);
  border-bottom: 1px solid rgba(179, 166, 198, 0.18);
}

.page-home .filter-btn {
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-mauve);
  background: rgba(23, 17, 38, 0.72);
  border: 2px solid rgba(179, 166, 198, 0.28);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.page-home .filter-btn:hover,
.page-home .filter-btn:focus-visible {
  color: var(--c-paper);
  border-color: var(--c-gold);
}

.page-home .filter-btn:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}

.page-home .filter-btn.is-active,
.page-home .filter-btn[aria-pressed="true"] {
  color: var(--c-night);
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  box-shadow: 0 0 18px rgba(37, 230, 208, 0.34);
}

.page-home .filter-count {
  margin: 16px 0 22px;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--c-mauve);
}

.page-home .opening-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .opening-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  padding: 18px 18px 16px;
  background: var(--c-panel);
  border: var(--edge) solid var(--c-tiger);
  border-radius: var(--home-radius);
  box-shadow: var(--hard-sm);
  transition: border-color 0.22s, box-shadow 0.22s;
}

.page-home .opening-card:hover {
  border-color: var(--c-gold);
  box-shadow: var(--hard-sm), var(--glow-gold);
}

.page-home .opening-card__time {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-gold);
}

.page-home .opening-card__body {
  min-width: 0;
}

.page-home .opening-card__name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-paper);
}

.page-home .opening-card__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-mauve);
}

.page-home .opening-card__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(179, 166, 198, 0.22);
}

.page-home .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
}

.page-home .tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.page-home .tag--live { color: var(--c-lime); background: rgba(124, 255, 107, 0.1); }
.page-home .tag--soon { color: var(--c-amber); background: rgba(255, 122, 26, 0.12); }
.page-home .tag--hot { color: var(--c-red); background: rgba(224, 31, 61, 0.14); }
.page-home .tag--info { color: var(--c-cyan); background: rgba(37, 230, 208, 0.1); }

.page-home .is-hidden {
  display: none !important;
}

.page-home .is-fade {
  animation: home-fade-in 0.2s ease-out;
}

@keyframes home-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ============ 礼包中心 ============ */
.page-home .gifts {
  background: linear-gradient(180deg, rgba(39, 24, 56, 0.6) 0%, rgba(11, 6, 20, 0) 100%);
}

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

.page-home .gifts__stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 12px 4px 26px;
}

.page-home .gift-card {
  padding: 18px 20px;
  background: linear-gradient(135deg, #241640 0%, #16101f 100%);
  border: var(--edge) solid var(--c-gold);
  border-radius: var(--home-radius);
  box-shadow: var(--hard-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}

.page-home .gift-card:nth-child(1) { transform: rotate(-1.4deg); }
.page-home .gift-card:nth-child(2) { transform: rotate(1.1deg); }
.page-home .gift-card:nth-child(3) { transform: rotate(-0.8deg); }
.page-home .gift-card:nth-child(4) { transform: rotate(1.5deg); }

.page-home .gift-card:hover,
.page-home .gift-card:focus-within {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--hard-sm), var(--glow-gold);
}

.page-home .gift-card__type {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-paper);
}

.page-home .gift-card__idx {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-amber);
}

.page-home .gift-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-mauve);
}

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

.page-home .gift-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .gift-steps__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(23, 17, 38, 0.7);
  border-left: 3px solid var(--c-cyan);
  border-radius: 0 10px 10px 0;
}

.page-home .gift-steps__idx {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
}

.page-home .gift-steps__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-paper);
}

/* ============ 平台对比 ============ */
.page-home .compare {
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(255, 197, 61, 0.13), transparent 62%),
    var(--c-panel);
  border-block: var(--edge) solid var(--c-tiger);
}

.page-home .compare__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.page-home .compare__label {
  margin: 0 0 12px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-mauve);
}

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

.page-home .compare__dims li {
  padding: 7px 14px;
  font-size: 14px;
  color: var(--c-paper);
  background: rgba(39, 24, 56, 0.9);
  border: 2px solid rgba(255, 197, 61, 0.34);
  border-radius: var(--r-pill);
}

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

.page-home .badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid currentColor;
  box-shadow: var(--hard-sm);
}

.page-home .badge__num {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.page-home .badge__name {
  color: inherit;
}

.page-home .badge--gold { color: var(--c-gold); background: rgba(255, 197, 61, 0.12); }
.page-home .badge--silver { color: var(--c-paper); background: rgba(246, 237, 221, 0.08); border-color: rgba(246, 237, 221, 0.6); }
.page-home .badge--bronze { color: var(--c-amber); background: rgba(255, 122, 26, 0.1); }

.page-home .compare__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-mauve);
}

.page-home .compare__col--stats {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  background: rgba(11, 6, 20, 0.55);
  border: 2px dashed rgba(179, 166, 198, 0.28);
  border-radius: var(--home-radius);
}

.page-home .compare__stat {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-paper);
}

.page-home .compare__stat .num {
  margin-right: 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-gold);
}

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

/* ============ 大屏攻略 ============ */
.page-home .screen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

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

.page-home .screen__lede {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-mauve);
}

.page-home .screen__body .section-title {
  margin-bottom: 14px;
}

.page-home .screen__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.page-home .screen__item {
  padding: 14px 16px;
  background: rgba(23, 17, 38, 0.78);
  border: 2px solid var(--c-tiger);
  border-left: 3px solid var(--c-gold);
  border-radius: 0 10px 10px 0;
}

.page-home .screen__item-title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-paper);
}

.page-home .screen__item-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-mauve);
}

/* ============ 新手三步 ============ */
.page-home .start__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

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

.page-home .start__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}

.page-home .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(179, 166, 198, 0.18);
}

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

.page-home .step__idx {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-gold);
  letter-spacing: -0.01em;
}

.page-home .step__title {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-paper);
}

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

.page-home .start__more {
  margin: 34px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-mauve);
}

.page-home .link-inline {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .link-inline:hover,
.page-home .link-inline:focus-visible {
  color: var(--c-gold);
}

/* ============ 响应式 ============ */
@media (max-width: 460px) {
  .page-home .hero__search-hint {
    display: none;
  }

  .page-home .hero__search {
    padding-left: 14px;
  }
}

@media (min-width: 780px) {
  .page-home .home-block {
    padding-block: 84px;
  }

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

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

  .page-home .opening-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 20px;
  }

  .page-home .opening-list > li:nth-child(odd) {
    margin-top: 34px;
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    padding: 62px 0 132px;
  }

  .page-home .hero__grid {
    grid-template-columns: 5fr 7fr;
    gap: 46px;
  }

  .page-home .hero__right {
    min-height: 380px;
  }

  .page-home .countdown {
    min-height: 380px;
    padding: 34px 30px 32px;
  }

  .page-home .gifts__layout {
    grid-template-columns: 6fr 5fr;
    gap: 42px;
  }

  .page-home .compare__grid {
    grid-template-columns: 5fr 4fr 3fr;
    gap: 30px;
    align-items: start;
  }

  .page-home .compare__col--stats {
    padding: 20px 22px;
  }

  .page-home .screen__grid {
    grid-template-columns: 7fr 5fr;
    gap: 46px;
  }

  .page-home .start__grid {
    grid-template-columns: 5fr 7fr;
    gap: 46px;
  }
}

@media (min-width: 1180px) {
  .page-home {
    --home-slant: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__scan,
  .page-home .is-fade {
    animation: none;
  }

  .page-home .gift-card,
  .page-home .opening-card {
    transition: none;
  }
}
