/* 视口宽度、浅色移动菜单与减少动画偏好的自适应样式。 */
@media (max-width: 1120px) {
    :root {
        --container: 980px;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(430px, 0.88fr);
        gap: 42px;
    }

    .hero-stage {
        min-height: 560px;
    }

    .logo-stage {
        width: min(350px, 78vw);
    }

    .stage-player {
        left: -1%;
    }

    .feature-card {
        grid-column: span 6;
    }

    .platform-main {
        grid-template-columns: minmax(0, 1fr) 190px;
    }
}

@media (max-width: 920px) {
    :root {
        --header-height: 70px;
    }

    .container {
        width: min(var(--container), calc(100% - 36px));
    }

    .nav-links {
        position: fixed;
        top: calc(var(--header-height) + 8px);
        right: 18px;
        left: 18px;
        z-index: 110;
        max-height: calc(100dvh - var(--header-height) - 26px);
        overflow-y: auto;
        display: grid;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(5, 15, 28, 0.98);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.985);
        transform-origin: top center;
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        overscroll-behavior: contain;
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-link {
        justify-content: flex-start;
        border-radius: 13px;
    }


    .header-mini-button {
        display: none;
    }

    .header-actions,
    .mobile-menu-button {
        position: relative;
        z-index: 120;
    }

    .mobile-menu-button {
        display: grid;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .hero {
        padding-top: calc(var(--header-height) + 72px);
    }

    .hero-grid,
    .loop-grid,
    .showcase-grid,
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 780px;
    }

    .hero-stage {
        min-height: 620px;
        margin-top: 12px;
    }

    .loop-intro {
        position: static;
    }

    .product-showcase {
        padding: 24px;
    }

    .showcase-copy {
        padding: 4px;
    }

    .platform-main {
        min-height: auto;
    }

    .cta-panel {
        padding: 38px;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(150px, 0.4fr));
        gap: 34px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .brand-subtitle {
        display: none;
    }

    .hero {
        padding-top: calc(var(--header-height) + 50px);
        padding-bottom: 58px;
    }

    .hero h1 {
        font-size: clamp(43px, 13vw, 62px);
    }

    .hero-description {
        line-height: 1.75;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-signals {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-stage {
        min-height: 530px;
    }

    .hero-orbit {
        inset: 6% -8% 8%;
    }

    .logo-stage {
        width: min(310px, 76vw);
        border-radius: 30px;
        transform: none;
    }

    .logo-stage img {
        border-radius: 22px;
    }

    .chip-accent {
        top: 6%;
        left: 0;
    }

    .chip-progress {
        right: 0;
        bottom: 10%;
    }

    .stage-player {
        left: 0;
        bottom: 0;
        width: min(270px, 78vw);
    }

    .section {
        padding: 78px 0;
    }

    .section-header {
        margin-bottom: 34px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card-wide {
        min-height: 260px;
        grid-column: 1;
    }

    .loop-step {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 14px;
        padding: 21px;
    }

    .loop-track::before {
        left: 42px;
    }

    .player-preview {
        min-height: auto;
        padding: 18px;
    }

    .preview-body {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 17px;
    }

    .preview-cover {
        width: 112px;
        height: 148px;
        border-radius: 19px;
    }

    .preview-meta h3 {
        font-size: 18px;
    }

    .accent-switch span {
        min-height: 31px;
        padding-inline: 10px;
    }

    .lyrics {
        height: 175px;
    }

    .player-bottom-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-main {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .mini-program-code {
        width: min(240px, 100%);
        justify-self: center;
    }

    .platform-side {
        grid-template-columns: 1fr;
    }

    .download-button {
        min-height: 72px;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px 25px;
    }

    .cta-actions,
    .cta-back-top {
        width: 100%;
    }


    .footer-main {
        grid-template-columns: 1fr;
        padding-top: 44px;
    }

    .footer-bottom {
        justify-content: center;
    }

    .footer-compliance {
        justify-content: center;
    }

}

@media (max-width: 430px) {
    .brand-name {
        font-size: 15px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 0.09em;
    }

    .hero-signals {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 470px;
    }

    .logo-stage {
        width: min(270px, 75vw);
    }

    .stage-chip {
        min-width: 145px;
        padding: 11px 12px;
    }

    .chip-icon {
        width: 34px;
        height: 34px;
    }

    .chip-accent {
        top: 4%;
        left: -2%;
    }

    .chip-progress {
        right: -2%;
        bottom: 8%;
    }

    .stage-player {
        width: min(245px, 80vw);
        padding: 14px;
    }

    .feature-card {
        padding: 24px;
    }

    .preview-body {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .preview-cover {
        width: 92px;
        height: 126px;
    }

    .preview-meta h3 {
        margin-top: 13px;
        font-size: 16px;
    }

    .preview-meta p {
        display: none;
    }

    .accent-switch span {
        padding-inline: 8px;
        font-size: 10px;
    }

    .player-controls {
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .product-showcase {
        padding: 14px;
        border-radius: 24px;
    }

    .showcase-copy {
        padding: 4px 2px;
    }

    .player-preview {
        padding: 14px;
        border-radius: 24px;
    }

    .preview-body {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
    }

    .preview-cover {
        width: 78px;
        height: 108px;
        border-radius: 16px;
    }

    .preview-cover-badge {
        right: -6px;
        min-height: 28px;
        padding-inline: 8px;
        font-size: 9px;
    }

    .preview-topbar {
        gap: 8px;
    }

    .preview-back,
    .preview-more {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .accent-switch span {
        min-height: 29px;
        padding-inline: 6px;
        font-size: 9px;
    }

    .player-controls {
        gap: 6px;
    }

    .player-button {
        width: 38px;
        height: 38px;
    }

    .player-button.main {
        width: 52px;
        height: 52px;
    }
}

@media (prefers-color-scheme: light) and (max-width: 920px) {
    .nav-links {
        background: rgba(250, 253, 255, 0.98);
        box-shadow: 0 24px 68px rgba(37, 78, 108, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}