.page-home {
  --home-glow-a: rgba(255, 107, 26, 0.3);
  --home-glow-b: rgba(34, 211, 238, 0.28);
  --home-stack: 6px 6px 0 0 #04070d;
  display: block;
  color: var(--paper);
}

.page-home img {
  max-width: 100%;
}

/* ---------- 首屏拼贴 ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 9vw, 104px) 0 clamp(36px, 6vw, 76px);
  background: var(--ink);
  border-bottom: 1px solid var(--divider);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: -22% -12% 0;
  z-index: -1;
  background:
    radial-gradient(58% 48% at 12% 8%, var(--home-glow-a), transparent 62%),
    radial-gradient(52% 44% at 88% 22%, var(--home-glow-b), transparent 64%);
  animation: home-drift 20s var(--ease) infinite alternate;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.58) 0%, rgba(10, 16, 32, 0.88) 62%, var(--ink) 100%);
}

@keyframes home-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, -3%, 0) scale(1.07); }
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
}

.page-home .hero__eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-home .hero__title {
  margin: 0 0 18px;
  font-size: clamp(40px, 8.6vw, 78px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero__title-hi {
  background: linear-gradient(96deg, var(--neon) 4%, var(--neon-hi) 44%, var(--cyan) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero__lede {
  margin: 0 0 24px;
  max-width: 32ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--mist);
}

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

/* 搜索 */

.page-home .search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 4px 16px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--home-stack);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-home .search-bar:focus-within {
  border-color: var(--edge-strong);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25), var(--home-stack);
}

.page-home .search-bar__icon {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
}

.page-home .search-bar__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .search-bar__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 0;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
}

.page-home .search-bar__input::placeholder {
  color: var(--graphite);
}

.page-home .search-bar__input:focus {
  outline: none;
}

.page-home .hot-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.page-home .hot-keys__title {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--graphite);
  margin-right: 2px;
}

/* 缩略块 */

.page-home .hero__shot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 10px;
  background: var(--panel);
}

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

.page-home .hero__shot-cap {
  padding: 0 4px 4px;
  font-size: 13px;
  color: var(--mist);
}

/* 1:1 状态块 */

.page-home .hero__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(34, 211, 238, 0.18), rgba(255, 107, 26, 0.14) 78%),
    var(--panel);
  box-shadow: var(--home-stack);
}

.page-home .hero__tile-k {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.page-home .hero__tile-v {
  margin: 0;
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
}

.page-home .hero__tile-s {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .hero__tile .status-dot {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* 计数条 */

.page-home .hero__count {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: center;
}

.page-home .hero__count li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(27, 41, 80, 0.62);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-home .hero__count-v {
  font-size: 18px;
  color: var(--paper);
}

.page-home .hero__count-k {
  font-size: 13px;
  color: var(--graphite);
}

/* ---------- 状态面板 ---------- */

.page-home .board {
  padding: clamp(34px, 5vw, 62px) 0;
  background: linear-gradient(180deg, var(--panel-deep), var(--ink));
  border-bottom: 1px solid var(--divider);
}

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

.page-home .board__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .board__lede {
  margin: 0 0 14px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .board__link {
  display: inline-block;
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 2px;
}

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

.page-home .board__stats {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--divider);
}

.page-home .board__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--panel);
}

.page-home .board__stat-k {
  font-size: 14px;
  color: var(--graphite);
}

.page-home .board__stat-v {
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .board__stat-v--sm {
  font-size: 15px;
  color: var(--mist);
}

/* ---------- 通用分节 ---------- */

.page-home .section {
  padding: clamp(48px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--divider);
}

.page-home .section__head {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .lib__head {
  max-width: 62ch;
}

.page-home .section__title {
  color: var(--paper);
}

/* ---------- 01 游戏库 ---------- */

.page-home .lib__body {
  display: grid;
  gap: 28px;
}

.page-home .lib__main p {
  margin: 0 0 16px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .lib__main .btn {
  margin-top: 6px;
}

.page-home .lib__specs {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--divider);
}

.page-home .lib__spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  background: var(--panel);
}

.page-home .lib__spec dt {
  font-size: 14px;
  color: var(--graphite);
}

.page-home .lib__spec dd {
  margin: 0;
  font-size: 15px;
  color: var(--paper);
}

.page-home .lib__spec dd.mono {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

/* ---------- 02 筛选 ---------- */

.page-home .filter__grid {
  display: grid;
  gap: 30px;
}

.page-home .filter__steps {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-home .filter__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--paper);
  background: rgba(27, 41, 80, 0.55);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
}

.page-home .filter__steps-n {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 50%;
}

.page-home .filter__result {
  margin: 0 0 22px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
  background: linear-gradient(120deg, rgba(255, 107, 26, 0.16), rgba(34, 211, 238, 0.14));
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-home .filter__result .mono {
  color: var(--neon-hi);
}

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

.page-home .filter__aside .media {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--home-stack);
}

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

.page-home .filter__aside figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite);
}

/* ---------- 03 品牌主张 ---------- */

.page-home .creed__figure {
  margin: 0 0 clamp(26px, 4vw, 40px);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--home-stack);
}

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

.page-home .creed__text h2 {
  margin: 0 0 18px;
}

.page-home .creed__body p {
  margin: 0 0 16px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 04 帮助与反馈 ---------- */

.page-home .assist__head {
  max-width: 46ch;
}

.page-home .assist__card {
  display: flex;
  flex-direction: column;
}

.page-home .assist__card-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--paper);
}

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

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

/* ---------- 响应式 ---------- */

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

@media (min-width: 860px) {
  .page-home .board__inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 40px;
  }

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

  .page-home .lib__body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .creed__text {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .creed__text h2 {
    margin: 0;
  }
}

@media (min-width: 900px) {
  .page-home .filter__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "lead lead lead lead lead lead shot shot shot shot shot shot"
      "search search search search search search tile tile tile count count count";
    align-items: stretch;
  }

  .page-home .hero__lead { grid-area: lead; align-self: center; }
  .page-home .hero__shot { grid-area: shot; }
  .page-home .hero__search { grid-area: search; align-self: center; }
  .page-home .hero__tile { grid-area: tile; }
  .page-home .hero__count { grid-area: count; }
}

@media (max-width: 480px) {
  .page-home .hero__title {
    font-size: 38px;
  }

  .page-home .board__stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero::before {
    animation: none;
  }

  .page-home .search-bar {
    transition: none;
  }
}
