/* ============ 响应式断点 ============ */

/* 小手机 */
@media (max-width: 480px) {
  html,
  html.fx-on {
    scroll-snap-type: none;
  }

  .stage-section,
  .site-footer {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .section-dots {
    display: none;
  }

  .section-marquee {
    font-size: 12px;
    padding: 6px 0;
  }

  .hero {
    height: var(--hero-viewport-height);
    min-height: var(--hero-viewport-height);
  }

  .hero .stage-bg {
    object-position: 53% center;
    transform: none;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(5, 6, 13, 0.04) 0%, rgba(5, 6, 13, 0.02) 48%, rgba(5, 6, 13, 0.8) 100%),
      linear-gradient(90deg, rgba(5, 6, 13, 0.16), transparent 62%);
  }

  .hero-logo {
    left: 16px;
    top: 28px;
    width: clamp(142px, 38vw, 190px);
    transform: none;
  }

  .hero-copy {
    top: 104px;
    width: 1px;
    height: 1px;
  }

  .hero-banner {
    top: auto;
    bottom: clamp(214px, var(--hero-vh-33), 250px);
    width: min(92vw, 440px);
    transform: translateX(-50%);
  }

  .hero-action {
    bottom: clamp(96px, var(--hero-vh-14), 110px);
    gap: 12px;
    width: min(82vw, 318px);
    transform: translateX(-50%);
  }

  .hero-title-img {
    width: min(92%, 290px);
  }

  .hero-button {
    width: min(86%, 286px);
    min-width: 0;
  }

  .hero-pills {
    left: 50%;
    right: auto;
    top: auto;
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
    width: min(94vw, 390px);
    min-width: 0;
    transform: translateX(-50%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 1.8vw, 8px);
  }

  .floating-pill {
    --pill-offset-x: 0px;
    display: grid;
    min-width: 0;
    place-items: center;
    animation: none;
  }

  .hero-pills .floating-pill:nth-child(2),
  .hero-pills .floating-pill:nth-child(3) {
    --pill-offset-x: 0px;
  }

  .floating-pill img {
    width: 100%;
    height: auto;
    min-width: 0;
    object-fit: contain;
  }

  .qq-pill {
    min-height: 0;
  }

  .qq-pill-inner {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px;
    padding: 5px 7px 5px 6px;
    border-width: 2px;
    box-shadow: 2px 3px 0 rgba(255, 75, 183, 0.82);
  }

  .qq-pill-badge {
    width: 26px;
    height: 26px;
    border-width: 1px;
    font-size: 12px;
    box-shadow: 1px 2px 0 rgba(255, 75, 183, 0.8);
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  }

  .qq-pill-copy {
    gap: 1px;
  }

  .qq-pill-copy span {
    font-size: 8px;
  }

  .qq-pill-copy strong {
    font-size: clamp(12px, 3.2vw, 15px);
  }

  .qq-pill-copy small,
  .qq-pill-inner::after {
    display: none;
  }

  .scroll-cue,
  .hero-streaks {
    display: none;
  }

  .hero-bottom-strip {
    height: 30px;
  }

  .strip-left,
  .strip-right {
    width: 44vw;
  }

  .strip-text {
    right: 12px;
    height: 46%;
  }

  .rewards {
    align-items: flex-start;
    height: auto;
    min-height: 100svh;
    overflow: hidden;
    padding: 34px 0 46px;
  }

  .rewards-art {
    position: absolute;
    min-height: 100svh;
  }

  .rewards-art-light {
    left: -36%;
    top: -5%;
    width: 108vw;
  }

  .rewards-art-scene {
    right: -58%;
    top: 0;
    width: 152vw;
    opacity: 0.82;
  }

  .rewards-art-milestone {
    right: -4px;
    bottom: clamp(22px, 5svh, 46px);
    top: auto;
    width: clamp(136px, 40vw, 172px);
    opacity: 0.9;
  }

  .rewards .section-marquee {
    transform: rotate(-1.1deg) translateY(-2px);
  }

  .rewards-shell {
    align-content: start;
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 0;
  }

  .rewards-heading,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .rewards-heading {
    max-width: none;
    gap: 10px;
  }

  .title-card {
    width: clamp(196px, 56vw, 232px);
    margin: 0 auto 0 0;
  }

  .count-line span:first-child {
    font-size: clamp(19px, 5.2vw, 30px);
  }

  .copy-panel {
    width: min(100%, 300px);
    transform: none;
    padding: 12px 14px;
  }

  .copy-panel h2 {
    margin: 2px 0 6px;
    font-size: clamp(24px, 7vw, 32px);
  }

  .copy-panel p {
    font-size: 12px;
    line-height: 1.45;
  }

  .progress-wrap {
    max-width: 100%;
    gap: 6px;
    margin-top: 0;
    padding: 9px 8px;
  }

  .progress-node {
    width: 26px;
  }

  .milestone-labels {
    font-size: 12px;
  }

  .reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 5px;
    max-width: 560px;
    margin: 0 auto;
  }

  .reward-card {
    width: min(100%, 112px);
  }

  .section-shell {
    width: min(1180px, calc(100% - 24px));
  }

  .footer-notice {
    grid-template-columns: 1fr;
  }

  .footer-watermark {
    font-size: clamp(60px, 18vw, 120px);
  }

  .footer-bottom,
  .footer-bottom div {
    flex-direction: column;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  #get-code {
    height: 42px;
  }
}

/* 普通手机 / 大手机 */
@media (min-width: 481px) and (max-width: 699px) {
  html,
  html.fx-on {
    scroll-snap-type: none;
  }

  .stage-section,
  .site-footer {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .section-dots {
    display: none;
  }

  .section-marquee {
    font-size: 12px;
    padding: 6px 0;
  }

  .hero {
    height: var(--hero-viewport-height);
    min-height: var(--hero-viewport-height);
  }

  .hero .stage-bg {
    object-position: 53% center;
    transform: none;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(5, 6, 13, 0.04) 0%, rgba(5, 6, 13, 0.02) 48%, rgba(5, 6, 13, 0.8) 100%),
      linear-gradient(90deg, rgba(5, 6, 13, 0.16), transparent 62%);
  }

  .hero-logo {
    left: 16px;
    top: 28px;
    width: clamp(142px, 38vw, 190px);
    transform: none;
  }

  .hero-copy {
    top: 104px;
    width: 1px;
    height: 1px;
  }

  .hero-banner {
    top: auto;
    bottom: clamp(226px, var(--hero-vh-34), 268px);
    width: min(92vw, 440px);
    transform: translateX(-50%);
  }

  .hero-action {
    bottom: clamp(104px, var(--hero-vh-15), 126px);
    gap: 12px;
    width: min(84vw, 360px);
    transform: translateX(-50%);
  }

  .hero-button {
    width: min(92%, 330px);
    min-width: 0;
  }

  .hero-pills {
    left: 50%;
    right: auto;
    top: auto;
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
    width: min(94vw, 430px);
    min-width: 0;
    transform: translateX(-50%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 1.8vw, 8px);
  }

  .floating-pill {
    --pill-offset-x: 0px;
    display: grid;
    min-width: 0;
    place-items: center;
    animation: none;
  }

  .hero-pills .floating-pill:nth-child(2),
  .hero-pills .floating-pill:nth-child(3) {
    --pill-offset-x: 0px;
  }

  .floating-pill img {
    width: 100%;
    height: auto;
    min-width: 0;
    object-fit: contain;
  }

  .qq-pill {
    min-height: 0;
  }

  .qq-pill-inner {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px;
    padding: 6px 9px 6px 7px;
    border-width: 2px;
    box-shadow: 3px 3px 0 rgba(255, 75, 183, 0.82);
  }

  .qq-pill-badge {
    width: 32px;
    height: 32px;
    border-width: 1px;
    font-size: 14px;
    box-shadow: 1px 2px 0 rgba(255, 75, 183, 0.8);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  }

  .qq-pill-copy {
    gap: 1px;
  }

  .qq-pill-copy span {
    font-size: 9px;
  }

  .qq-pill-copy strong {
    font-size: clamp(14px, 3vw, 17px);
  }

  .qq-pill-copy small,
  .qq-pill-inner::after {
    display: none;
  }

  .scroll-cue,
  .hero-streaks {
    display: none;
  }

  .hero-bottom-strip {
    height: 30px;
  }

  .strip-left,
  .strip-right {
    width: 44vw;
  }

  .strip-text {
    right: 12px;
    height: 46%;
  }

  .rewards {
    align-items: flex-start;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: 34px 0 46px;
  }

  .rewards-art {
    position: absolute;
    min-height: 100svh;
  }

  .rewards-art-light {
    left: -36%;
    top: -5%;
    width: 108vw;
  }

  .rewards-art-scene {
    right: -58%;
    top: 0;
    width: 152vw;
    opacity: 0.82;
  }

  .rewards-art-milestone {
    right: clamp(48px, 9vw, 72px);
    top: auto;
    bottom: clamp(76px, 7svh, 96px);
    width: clamp(150px, 28vw, 178px);
    opacity: 0.9;
  }

  .rewards .section-marquee {
    transform: rotate(-1.1deg) translateY(-2px);
  }

  .rewards-shell {
    align-content: start;
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 0;
  }

  .rewards-heading,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .rewards-heading {
    max-width: none;
    gap: 10px;
  }

  .title-card {
    width: clamp(210px, 58vw, 286px);
    margin: 0 auto 0 0;
  }

  .count-line span:first-child {
    font-size: clamp(19px, 5.2vw, 30px);
  }

  .copy-panel {
    width: min(100%, 300px);
    transform: none;
    padding: 12px 14px;
  }

  .copy-panel h2 {
    margin: 2px 0 6px;
    font-size: clamp(24px, 7vw, 32px);
  }

  .copy-panel p {
    font-size: 12px;
    line-height: 1.45;
  }

  .progress-wrap {
    max-width: 100%;
    gap: 6px;
    margin-top: clamp(18px, 3svh, 36px);
  }

  .progress-node {
    width: 26px;
  }

  .milestone-labels {
    font-size: 12px;
  }

  .reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    max-width: 560px;
    margin: 0 auto;
  }

  .reward-card {
    width: min(100%, 136px);
  }

  .footer-notice {
    grid-template-columns: 1fr;
  }

  .footer-watermark {
    font-size: clamp(60px, 18vw, 120px);
  }

  .footer-bottom,
  .footer-bottom div {
    flex-direction: column;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

/* 平板竖屏 / 843x1220 */
@media (min-width: 700px) and (max-width: 860px) {
  html,
  html.fx-on {
    scroll-snap-type: none;
  }

  .stage-section,
  .site-footer {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .section-dots {
    display: none;
  }

  .section-marquee {
    font-size: 12px;
    padding: 6px 0;
  }

  .hero {
    height: var(--hero-viewport-height);
    min-height: var(--hero-viewport-height);
  }

  .hero .stage-bg {
    object-position: 53% center;
    transform: none;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(5, 6, 13, 0.04) 0%, rgba(5, 6, 13, 0.02) 48%, rgba(5, 6, 13, 0.8) 100%),
      linear-gradient(90deg, rgba(5, 6, 13, 0.16), transparent 62%);
  }

  .hero-logo {
    left: 16px;
    top: 28px;
    width: clamp(142px, 38vw, 190px);
    transform: none;
  }

  .hero-copy {
    top: 104px;
    width: 1px;
    height: 1px;
  }

  .hero-banner {
    top: auto;
    bottom: clamp(226px, var(--hero-vh-34), 268px);
    width: min(92vw, 440px);
    transform: translateX(-50%);
  }

  .hero-action {
    bottom: clamp(104px, var(--hero-vh-15), 126px);
    gap: 12px;
    width: min(84vw, 360px);
    transform: translateX(-50%);
  }

  .hero-button {
    width: min(92%, 330px);
    min-width: 0;
  }

  .hero-pills {
    left: 50%;
    right: auto;
    top: auto;
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
    width: min(94vw, 430px);
    min-width: 0;
    transform: translateX(-50%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 1.8vw, 8px);
  }

  .floating-pill {
    --pill-offset-x: 0px;
    display: grid;
    min-width: 0;
    place-items: center;
    animation: none;
  }

  .hero-pills .floating-pill:nth-child(2),
  .hero-pills .floating-pill:nth-child(3) {
    --pill-offset-x: 0px;
  }

  .floating-pill img {
    width: 100%;
    height: auto;
    min-width: 0;
    object-fit: contain;
  }

  .qq-pill {
    min-height: 0;
  }

  .qq-pill-inner {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px;
    padding: 6px 9px 6px 7px;
    border-width: 2px;
    box-shadow: 3px 3px 0 rgba(255, 75, 183, 0.82);
  }

  .qq-pill-badge {
    width: 32px;
    height: 32px;
    border-width: 1px;
    font-size: 14px;
    box-shadow: 1px 2px 0 rgba(255, 75, 183, 0.8);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  }

  .qq-pill-copy {
    gap: 1px;
  }

  .qq-pill-copy span {
    font-size: 9px;
  }

  .qq-pill-copy strong {
    font-size: clamp(14px, 3vw, 17px);
  }

  .qq-pill-copy small,
  .qq-pill-inner::after {
    display: none;
  }

  .scroll-cue,
  .hero-streaks {
    display: none;
  }

  .hero-bottom-strip {
    height: 30px;
  }

  .strip-left,
  .strip-right {
    width: 44vw;
  }

  .strip-text {
    right: 12px;
    height: 46%;
  }

  .rewards {
    align-items: flex-start;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: 42px 0 46px;
  }

  .rewards-art {
    position: absolute;
    min-height: 100svh;
  }

  .rewards-art-light {
    left: -36%;
    top: -5%;
    width: 108vw;
  }

  .rewards-art-scene {
    right: -58%;
    top: 0;
    width: 152vw;
    opacity: 0.82;
  }

  .rewards-art-milestone {
    right: clamp(12px, 2.2vw, 24px);
    top: clamp(292px, 30svh, 330px);
    bottom: auto;
    width: clamp(166px, 25vw, 196px);
    opacity: 0.94;
  }

  .rewards .section-marquee {
    transform: rotate(-1.1deg) translateY(-2px);
  }

  .rewards-shell {
    align-content: start;
    gap: 16px;
    padding-top: clamp(28px, 4svh, 50px);
    padding-bottom: 0;
  }

  .rewards-heading,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .rewards-heading {
    max-width: none;
    gap: 10px;
  }

  .title-card {
    width: clamp(330px, 43vw, 390px);
    margin: 0 auto 0 0;
  }

  .count-line span:first-child {
    font-size: clamp(28px, 4.2vw, 38px);
  }

  .copy-panel {
    width: min(100%, 300px);
    transform: none;
    padding: 12px 14px;
  }

  .copy-panel h2 {
    margin: 2px 0 6px;
    font-size: clamp(24px, 7vw, 32px);
  }

  .copy-panel p {
    font-size: 12px;
    line-height: 1.45;
  }

  .progress-wrap {
    max-width: min(100%, 780px);
    gap: 6px;
    margin-top: clamp(44px, 8svh, 90px);
  }

  .progress-node {
    width: 26px;
  }

  .milestone-labels {
    font-size: 12px;
  }

  .reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px clamp(16px, 4vw, 32px);
    max-width: min(76vw, 640px);
    margin: 0 auto;
  }

  .reward-card {
    width: min(100%, 150px);
  }

  .footer-notice {
    grid-template-columns: 1fr;
  }

  .footer-watermark {
    font-size: clamp(60px, 18vw, 120px);
  }

  .footer-bottom,
  .footer-bottom div {
    flex-direction: column;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

/* 平板横屏 / 小桌面 */
@media (min-width: 861px) and (max-width: 1120px) {
  .hero-copy {
    top: 104px;
  }

  .hero-banner {
    width: min(64vw, 720px);
    top: 44%;
  }

  .hero-action {
    width: min(48vw, 520px);
  }

  .hero-pills {
    right: 22px;
    width: 248px;
    min-width: 0;
  }

  .rewards-art-milestone {
    right: clamp(18px, 2.4vw, 30px);
    top: clamp(260px, 28svh, 320px);
    bottom: auto;
    width: clamp(190px, 22vw, 240px);
  }

  .progress-wrap {
    max-width: min(70vw, 620px);
    margin-left: auto;
    margin-right: auto;
  }

  .reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(70vw, 620px);
    margin: 0 auto;
  }
}

/* 桌面 */
@media (min-width: 1121px) {
  .rewards-art-scene {
    right: max(-4.5vw, -96px);
    width: min(90vw, 2020px);
  }

  .rewards-art-milestone {
    right: clamp(20px, 2.8vw, 68px);
    bottom: clamp(44px, 9vh, 112px);
    width: clamp(330px, 30.5vw, 700px);
  }

  .title-card {
    width: clamp(300px, 31.5vw, 760px);
  }
}

/* 移动端操作区统一排版，避免微信初始视口波动时两组绝对定位互相覆盖。 */
@media (max-width: 860px) {
  .hero-controls {
    position: absolute;
    z-index: 9;
    left: 50%;
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(94vw, 430px);
    transform: translateX(-50%);
  }

  .hero-controls .hero-action {
    position: relative;
    left: auto;
    bottom: auto;
    justify-self: center;
    transform: none;
  }

  .hero-controls .hero-pills {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    transform: none;
  }

  body.loaded .hero-controls {
    animation: mobileControlsIn 0.75s ease 0.48s backwards;
  }

  body.loaded .hero-controls .hero-action {
    animation: none;
  }

  @keyframes mobileControlsIn {
    from { opacity: 0; }
  }
}

@media (max-width: 480px) {
  .hero-controls {
    width: min(94vw, 390px);
  }
}

@media (min-width: 700px) and (max-width: 860px) {
  .hero-controls {
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  }
}
