.page-home {
  --home-card-w: min(78vw, 268px);
  --home-pad: clamp(18px, 4vw, 40px);
  background:
    radial-gradient(90% 34% at 100% 0%, rgba(255, 90, 31, 0.1), transparent 62%),
    radial-gradient(70% 30% at 0% 46%, rgba(57, 230, 255, 0.06), transparent 65%),
    var(--ink);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 32px) 0 clamp(44px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(245, 247, 251, 0.045) 1px, transparent 1px),
    linear-gradient(115deg, transparent 49.6%, rgba(242, 193, 78, 0.16) 50%, transparent 50.4%);
  background-size: 120px 120px, 100% 100%;
  opacity: 0.5;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -22%;
  right: -26%;
  width: 78%;
  height: 142%;
  background: linear-gradient(158deg, var(--flame) 0%, var(--flame-deep) 52%, rgba(11, 13, 18, 0) 88%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.52;
  pointer-events: none;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(26px, 5vw, 54px);
  align-items: center;
}

.page-home .home-hero-copy {
  min-width: 0;
}

.page-home .home-hero-copy .breadcrumbs {
  margin-bottom: 14px;
}

.page-home .home-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 8.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
  color: var(--bone);
  text-wrap: balance;
}

.page-home .home-hero-mark {
  display: inline-block;
  padding: 0 8px 2px;
  color: var(--ink);
  background: linear-gradient(100deg, var(--gold), var(--flame));
  transform: skewX(-6deg);
}

.page-home .home-hero-lede {
  max-width: 46ch;
  color: var(--mist);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.78;
  margin: 0 0 26px;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.page-home .home-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .home-hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--mist);
  font-size: 13px;
}

.page-home .home-hero-stats .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.page-home .home-stat-label {
  color: var(--mist);
}

.page-home .home-hero-visual {
  position: relative;
  min-width: 0;
}

.page-home .home-hero-frame {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

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

.page-home .home-hero-float {
  position: relative;
  margin: -26px 0 0 4px;
  width: max-content;
  max-width: 100%;
  padding: 12px 16px;
  background: rgba(30, 38, 51, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}

.page-home .home-hero-float p {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.02em;
}

/* ---------- 游戏库横滑 ---------- */
.page-home .home-lib-head {
  max-width: 62ch;
}

.page-home .home-lib-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 18px;
}

.page-home .home-lib-tools .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-lib-tools .filter-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin: 0;
}

.page-home .home-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--home-card-w);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  scrollbar-color: var(--flame) rgba(168, 179, 199, 0.14);
  scrollbar-width: thin;
}

.page-home .home-rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--flame), var(--gold));
  border-radius: 99px;
}

.page-home .home-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 38, 51, 0.92), rgba(11, 13, 18, 0.96));
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.page-home .home-card:hover,
.page-home .home-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.55);
}

.page-home .home-card-cover {
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255, 90, 31, 0.22), transparent 58%),
    repeating-linear-gradient(58deg, rgba(245, 247, 251, 0.06) 0 2px, transparent 2px 12px),
    var(--ink-deep);
}

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

.page-home .home-card-cover--flat {
  display: grid;
  place-items: center;
}

.page-home .home-card-cover--flat span {
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 700;
  color: rgba(242, 193, 78, 0.36);
  letter-spacing: 0.04em;
}

.page-home .home-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
}

.page-home .home-card-body .tag {
  align-self: flex-start;
}

.page-home .home-card-body .card-title {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--bone);
}

.page-home .home-card-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .home-card-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.page-home .home-card-spec div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .home-card-spec dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(168, 179, 199, 0.8);
}

.page-home .home-card-spec dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
}

.page-home .home-card-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.page-home .home-card-link:hover,
.page-home .home-card-link:focus-visible {
  color: var(--bone);
}

.page-home .home-lib-more {
  margin: 14px 0 0;
}

.page-home .home-rail .is-filtered-out {
  display: none !important;
}

/* ---------- 配置预览 ---------- */
.page-home .home-spec {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(181, 46, 18, 0.16), transparent 46%),
    var(--ink-deep);
}

.page-home .home-spec-inner {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-home .home-spec-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
}

.page-home .home-spec-media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-spec-list {
  display: grid;
  gap: 0;
  margin: 24px 0 26px;
  border-top: 1px solid var(--line);
}

.page-home .home-spec-row {
  display: grid;
  gap: 4px;
  padding: 14px 0 14px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid rgba(255, 90, 31, 0.5);
}

.page-home .home-spec-row dt {
  font-size: 15px;
  font-weight: 800;
  color: var(--bone);
}

.page-home .home-spec-row dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .home-spec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 开服时间线 ---------- */
.page-home .home-pulse-head {
  max-width: 64ch;
}

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

.page-home .home-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--flame), var(--gold) 52%, var(--cyan));
  opacity: 0.7;
}

.page-home .home-tl-item {
  position: relative;
  padding: 0 0 26px;
}

.page-home .home-tl-item:last-child {
  padding-bottom: 0;
}

.page-home .home-tl-dot {
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18);
}

.page-home .home-tl-dot--gold {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.18);
}

.page-home .home-tl-dot--violet {
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(122, 92, 255, 0.18);
}

.page-home .home-tl-body h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--bone);
}

.page-home .home-tl-body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.74;
  color: var(--mist);
}

.page-home .home-tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.page-home .home-tl-meta .num {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.page-home .home-tl-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 230, 255, 0.45);
}

.page-home .home-tl-link:hover,
.page-home .home-tl-link:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--bone);
}

/* ---------- 攻略专区 ---------- */
.page-home .home-guide {
  background:
    linear-gradient(180deg, rgba(122, 92, 255, 0.1), transparent 60%),
    var(--ink);
}

.page-home .home-guide-inner {
  display: grid;
  gap: 22px;
  align-items: center;
}

.page-home .home-guide-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%);
  background: var(--ink-deep);
}

.page-home .home-guide-art img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-guide-grid {
  margin-top: 26px;
}

.page-home .home-guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(30, 38, 51, 0.62);
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  transition: background 0.26s ease, border-color 0.26s ease, transform 0.26s ease;
}

.page-home .home-guide-card:nth-child(2) {
  border-top-color: var(--gold);
}

.page-home .home-guide-card:nth-child(3) {
  border-top-color: var(--flame);
}

.page-home .home-guide-card:hover,
.page-home .home-guide-card:focus-visible {
  transform: translateY(-3px);
  background: rgba(30, 38, 51, 0.92);
  border-color: var(--line-strong);
}

.page-home .home-guide-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .home-guide-card:nth-child(2) .home-guide-index {
  color: var(--gold);
}

.page-home .home-guide-card:nth-child(3) .home-guide-index {
  color: var(--flame);
}

.page-home .home-guide-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--bone);
}

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

.page-home .home-guide-go {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bone);
}

/* ---------- 服务信息 ---------- */
.page-home .home-service {
  border-top: 1px solid var(--line);
}

.page-home .home-service-head {
  max-width: 64ch;
}

.page-home .home-service-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.page-home .home-service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: rgba(11, 13, 18, 0.6);
  border: 1px solid var(--line);
  border-left: 3px solid rgba(57, 230, 255, 0.6);
}

.page-home .home-service-card--tint {
  border-left-color: var(--gold);
  background:
    linear-gradient(150deg, rgba(242, 193, 78, 0.14), transparent 62%),
    rgba(30, 38, 51, 0.72);
}

.page-home .home-service-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--bone);
}

.page-home .home-service-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.74;
  color: var(--mist);
}

.page-home .home-service-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
}

.page-home .home-service-link:hover,
.page-home .home-service-link:focus-visible {
  color: var(--bone);
}

/* ---------- 收尾 CTA ---------- */
.page-home .home-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px) 0;
  background: linear-gradient(105deg, var(--flame-deep) 0%, var(--flame) 46%, #7a1f0c 100%);
}

.page-home .home-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(58deg, rgba(11, 13, 18, 0.16) 0 2px, transparent 2px 14px);
  opacity: 0.7;
  pointer-events: none;
}

.page-home .home-cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  align-items: center;
}

.page-home .home-cta-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .home-cta-inner p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(11, 13, 18, 0.82);
}

.page-home .home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-cta .btn--ghost {
  border-color: rgba(11, 13, 18, 0.5);
  color: var(--ink);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home {
    --home-card-w: 272px;
  }

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

  .page-home .home-guide-grid {
    align-items: stretch;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero {
    padding-bottom: clamp(56px, 6vw, 96px);
  }

  .page-home .home-hero-inner {
    grid-template-columns: 1.06fr 0.94fr;
  }

  .page-home .home-hero::after {
    right: -14%;
    width: 62%;
    height: 138%;
    opacity: 0.6;
  }

  .page-home .home-hero-float {
    margin-left: -46px;
  }

  .page-home .home-spec-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .page-home .home-guide-inner {
    grid-template-columns: 1fr 0.92fr;
  }

  .page-home .home-cta-inner {
    grid-template-columns: 1.4fr auto;
  }

  .page-home .home-cta-actions {
    justify-content: flex-end;
  }

  .page-home .home-timeline {
    padding-left: 30px;
  }

  .page-home .home-tl-item {
    padding-bottom: 34px;
  }

  .page-home .home-tl-dot {
    left: -30px;
  }
}

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

  .page-home .home-rail {
    grid-auto-columns: 292px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-card,
  .page-home .home-guide-card {
    transition: none;
  }
}
