/* 首页手机布局：电脑端继续使用 style.css 的原有排版。 */
@media (min-width: 561px) {
  .home-members__mobile, .home-only-mobile { display: none; }
}

@media (max-width: 560px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) clamp(104px, 32vw, 140px);
    grid-template-areas:
      "badge stage"
      "title stage"
      "lead lead"
      "actions actions"
      "stats stats"
      "hint hint";
    gap: 0.75rem 0.65rem;
    align-items: start;
  }
  .hero__grid > div:first-child { display: contents; }
  .hero__badge {
    grid-area: badge;
    align-self: end;
    justify-self: start;
    margin: 0;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem 0.3rem 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
  .hero__title {
    grid-area: title;
    margin: 0;
    font-size: clamp(2rem, 9.5vw, 2.6rem);
    letter-spacing: 0.02em;
  }
  .hero__title .en {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    line-height: 1.5;
    margin-top: 0.45rem;
  }
  .hero__lead { grid-area: lead; margin: 0.35rem 0 0; max-width: none; }
  .hero__actions { grid-area: actions; margin: 0.65rem 0 1rem; }
  .hero__grid .stats { grid-area: stats; }
  .hero__grid .scroll-hint { grid-area: hint; justify-self: start; margin-top: 1rem; }
  .hero__stage {
    grid-area: stage;
    order: 0;
    align-self: center;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .hero__stage .stage-card { border-radius: 1rem; gap: 0.2rem; box-shadow: 0 12px 28px rgba(10, 0, 30, 0.3); }
  .hero__stage .stage-card__t { font-size: 0.9rem; letter-spacing: 0.12em; }
  .hero__stage .stage-card__s { font-size: 0.45rem; letter-spacing: 0.08em; white-space: nowrap; }
  .hero__stage .stage-glow { filter: blur(22px); }
  .hero__stage .orbit__item { --r: 44px; width: 15px; }
  .hero__stage .orbit__item:nth-child(2) { width: 12px; }
  .hero__stage .orbit__item:nth-child(3) { width: 14px; }

  .home-members__desktop, .home-only-desktop { display: none; }
  .home-eggs {
    width: 100%;
    margin-inline: auto;
    padding: 0.9rem !important;
    gap: 0.7rem !important;
  }
  .home-eggs > div:first-child { width: 48px !important; }
  .home-eggs > div:nth-child(2) { min-width: 0 !important; flex-basis: calc(100% - 60px) !important; }
  .home-eggs h3 { font-size: 0.94rem !important; }
  .home-eggs p { font-size: 0.7rem !important; line-height: 1.7; }
  .home-eggs [data-egg-secret] { padding: 0.2rem 0.4rem; font-size: 0.7rem; }
  .home-eggs #egg-status {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 0.25rem !important;
  }
  .home-eggs #egg-status .chip {
    min-width: 0; justify-content: center;
    padding: 0.35rem 0.1rem; font-size: 0.61rem; letter-spacing: 0;
    white-space: nowrap;
  }
  #home-members {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.75rem 0.25rem 1.25rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #home-members::-webkit-scrollbar { display: none; }
  #home-members > .mcard {
    flex: 0 0 min(320px, calc(100% - 2rem));
    scroll-snap-align: start;
  }
}
