.page-home {
  display: block;
  --home-tile: rgba(27, 16, 53, .82);
  --home-tile-2: rgba(15, 10, 34, .9);
  --home-hover: rgba(27, 16, 53, .92);
}

/* 面包屑 */
.page-home .home-crumb {
  padding-top: 16px;
}

.page-home .home-crumb .mgm-crumb__sep {
  margin: 0 8px;
}

/* 首屏 */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 0 44px;
  border-bottom: 1px solid var(--line);
}

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

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 52% 32%, rgba(168, 85, 247, .22), rgba(11, 10, 24, 0) 72%),
    radial-gradient(44% 46% at 86% 76%, rgba(56, 189, 248, .16), rgba(11, 10, 24, 0) 70%),
    linear-gradient(180deg, rgba(11, 10, 24, .58) 0%, rgba(11, 10, 24, .9) 64%, var(--ink) 100%);
}

.page-home .home-hero__inner {
  position: relative;
}

.page-home .home-hero__kicker {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  word-break: break-word;
}

.page-home .home-collage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .home-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

/* 拼贴面板 */
.page-home .home-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(168deg, var(--home-tile), var(--home-tile-2));
  box-shadow: 8px 8px 0 -4px rgba(46, 42, 68, .5);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.page-home .home-tile:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: 8px 12px 0 -4px rgba(168, 85, 247, .22);
}

.page-home .home-tile--brand::before,
.page-home .home-tile--login::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--violet), rgba(168, 85, 247, 0));
}

.page-home .home-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .home-tile__coord {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.18;
  color: var(--text);
}

.page-home .home-hero__lead {
  margin: 0;
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-ticks {
  list-style: none;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

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

.page-home .home-ticks .mgm-mono {
  font-size: 12px;
  color: var(--blue);
}

/* 登录卡片 */
.page-home .home-tile--login {
  overflow: hidden;
  border-color: rgba(168, 85, 247, .45);
  background: linear-gradient(160deg, rgba(46, 20, 84, .92), rgba(15, 10, 34, .95));
  box-shadow: 10px 10px 0 -4px rgba(168, 85, 247, .18);
}

.page-home .home-tile__glow {
  position: absolute;
  left: -20%;
  right: -20%;
  top: -46%;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .3), rgba(56, 189, 248, 0));
  animation: home-drift 16s ease-in-out infinite alternate;
}

@keyframes home-drift {
  from { transform: translate3d(-6%, 0, 0); }
  to { transform: translate3d(6%, 8%, 0); }
}

.page-home .home-login__title {
  position: relative;
  margin: 0;
  font-size: clamp(20px, 5.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}

.page-home .home-login__text {
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-login__meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
}

.page-home .home-login__meta > div {
  padding: 10px 8px;
  background: rgba(11, 10, 24, .74);
}

.page-home .home-login__meta dt {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-home .home-login__meta dd {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--gold);
}

.page-home .home-login__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.page-home .home-login__actions .mgm-btn {
  flex: 1 1 140px;
  text-align: center;
  justify-content: center;
}

/* 右列小面板 */
.page-home .home-mini__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
}

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

.page-home .home-status li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.page-home .home-status__name {
  color: var(--text);
}

.page-home .home-status__tag {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page-home .home-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.page-home .home-end:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(94, 234, 212, .06);
}

.page-home .home-end .mgm-mono {
  font-size: 12px;
  color: var(--muted);
}

/* 锚点索引 */
.page-home .home-anchors {
  margin-top: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 通道列表 */
.page-home .home-channels {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
}

.page-home .home-channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: rgba(11, 10, 24, .62);
  transition: background .18s var(--ease);
}

.page-home .home-channel:hover {
  background: var(--home-hover);
}

.page-home .home-channel__no {
  padding: 3px 7px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--blue);
  border: 1px solid rgba(56, 189, 248, .35);
  border-radius: var(--r);
}

.page-home .home-channel__text h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-channel__text p {
  margin: 0;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-legend {
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
}

/* 问题索引墙 */
.page-home .home-index-wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.page-home .home-index-group__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-index-group__name .mgm-mono {
  font-size: 11px;
  font-weight: 400;
  color: var(--violet);
}

.page-home .home-index-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .home-index-group a {
  display: block;
  padding: 6px 0 6px 2px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), padding-left .18s var(--ease);
}

.page-home .home-index-group a:hover {
  color: var(--text);
  border-bottom-color: var(--teal);
  padding-left: 6px;
}

/* 重登 */
.page-home .home-reauth {
  display: grid;
  gap: 22px;
}

.page-home .home-figure .mgm-figure__frame {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(27, 16, 53, .9), rgba(11, 10, 24, .95));
}

.page-home .home-figure--wide .mgm-figure__frame {
  aspect-ratio: 5 / 2;
}

.page-home .home-figure .mgm-figure__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-home .home-figure__caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.page-home .home-reauth__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .home-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(11, 10, 24, .52);
  transition: border-color .18s var(--ease);
}

.page-home .home-steps li:hover {
  border-color: var(--violet);
}

.page-home .home-steps__no {
  padding-top: 3px;
  font-size: 12px;
  color: var(--violet);
}

.page-home .home-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-folds {
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-home .home-folds .mgm-fold {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(11, 10, 24, .48);
  transition: border-color .18s var(--ease);
}

.page-home .home-folds .mgm-fold[open] {
  border-color: var(--violet);
}

.page-home .home-folds summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.page-home .home-folds .mgm-fold__body {
  padding: 0 14px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-folds .mgm-fold__body p {
  margin: 0;
}

/* 双端切换 */
.page-home .home-switch {
  position: relative;
}

.page-home .home-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .home-switch__tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(11, 10, 24, .58);
}

.page-home .home-switch__label {
  flex: 0 0 auto;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  border-radius: var(--r);
  cursor: pointer;
  user-select: none;
  transition: color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}

.page-home .home-switch__label:hover {
  color: var(--text);
}

.page-home #view-desktop:checked ~ .home-switch__tabs .home-switch__label[for="view-desktop"],
.page-home #view-mobile:checked ~ .home-switch__tabs .home-switch__label[for="view-mobile"] {
  color: var(--text);
  background: rgba(168, 85, 247, .18);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .5);
}

.page-home #view-desktop:focus-visible ~ .home-switch__tabs .home-switch__label[for="view-desktop"],
.page-home #view-mobile:focus-visible ~ .home-switch__tabs .home-switch__label[for="view-mobile"] {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.page-home .home-switch__panel {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.page-home #view-desktop:checked ~ .home-switch__panels .home-switch__panel--desktop {
  display: grid;
}

.page-home #view-mobile:checked ~ .home-switch__panels .home-switch__panel--mobile {
  display: grid;
}

.page-home .home-vpanel__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-vpanel p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
}

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

.page-home .home-vlist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .home-vlist .mgm-mono {
  flex: 0 0 46px;
  font-size: 11px;
  color: var(--blue);
}

.page-home .home-cats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.page-home .home-cat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 10px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(27, 16, 53, .5);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .home-cat:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.page-home .home-cat .mgm-mono {
  font-size: 11px;
  color: var(--muted);
}

.page-home .home-cat--a {
  background: linear-gradient(150deg, rgba(168, 85, 247, .22), rgba(27, 16, 53, .55));
}

.page-home .home-cat--b {
  background: linear-gradient(150deg, rgba(56, 189, 248, .2), rgba(27, 16, 53, .55));
}

.page-home .home-cat--c {
  background: linear-gradient(150deg, rgba(94, 234, 212, .16), rgba(27, 16, 53, .55));
}

/* 试玩与延迟 */
.page-home .home-quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.page-home .home-quick__col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .home-quick__line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-notice {
  margin: 0;
  font-size: 13px;
}

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

.page-home .home-segments li {
  padding: 14px 16px;
  background: rgba(11, 10, 24, .6);
  transition: background .18s var(--ease);
}

.page-home .home-segments li:hover {
  background: var(--home-hover);
}

.page-home .home-segments__no {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--blue);
}

.page-home .home-segments h3 {
  margin: 6px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-segments p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* 客服与备案 */
.page-home .home-supportbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  background: linear-gradient(150deg, rgba(27, 16, 53, .86), rgba(11, 10, 24, .92));
}

.page-home .home-supportbar__k {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .home-supportbar__v {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.page-home .home-supportbar .mgm-btn {
  justify-self: start;
  text-align: center;
}

.page-home .home-supportbar__foot {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.75;
  max-width: var(--measure);
}

/* 中等屏幕 */
@media (min-width: 620px) {
  .page-home .home-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-index-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
  }

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

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

/* 宽屏 */
@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 40px 0 64px;
  }

  .page-home .home-collage {
    grid-template-columns: minmax(0, 4.2fr) minmax(0, 5fr) minmax(0, 3.4fr);
    gap: 22px;
    align-items: stretch;
  }

  .page-home .home-col {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .page-home .home-tile--brand {
    margin-bottom: 26px;
  }

  .page-home .home-tile--login {
    margin-top: -20px;
    margin-bottom: 20px;
    box-shadow: 14px 16px 0 -4px rgba(168, 85, 247, .2);
  }

  .page-home .home-quick {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 28px;
  }

  .page-home .home-supportbar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 18px;
  }
}

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

  .page-home .home-switch__panel {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
    gap: 28px;
  }
}

/* 窄屏微调 */
@media (max-width: 560px) {
  .page-home .home-channel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-home .home-channel > .mgm-tag {
    grid-column: 2;
    justify-self: start;
  }

  .page-home .home-login__actions .mgm-btn {
    flex: 1 1 100%;
  }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-tile__glow {
    animation: none;
  }

  .page-home .home-tile,
  .page-home .home-tile:hover,
  .page-home .home-end,
  .page-home .home-channel,
  .page-home .home-steps li,
  .page-home .home-cat,
  .page-home .home-cat:hover,
  .page-home .home-index-group a,
  .page-home .home-segments li,
  .page-home .home-folds .mgm-fold,
  .page-home .home-switch__label {
    transition: none;
  }

  .page-home .home-tile:hover,
  .page-home .home-cat:hover {
    transform: none;
  }
}
