/* ============================================================
   responsive.css — 所有媒体查询集中在此
   ============================================================ */

/* ---------- 01 ≤1200px ---------- */
@media (max-width: 1200px) {
    .hero-header-text h1 {
        font-size: 2.1rem;
    }

    .hero-carousel-wrapper {
        max-width: 760px;
    }
}

/* ---------- 02 ≤992px ---------- */
@media (max-width: 992px) {
    .rd-section,
    .products {
        min-height: auto;
        padding: 50px 5%;
    }

    .hero-header-text h1 {
        font-size: 1.7rem;
    }

    .hero {
        padding: 30px 20px 40px;
    }

    .hero-carousel-wrapper {
        aspect-ratio: 4 / 3;
    }

    .carousel-btn {
        opacity: 1;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }

    .features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .promo-feature {
        gap: 24px;
        padding: 22px;
    }

    .price-cards {
        gap: 16px;
    }

    .price-card-name {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }

    .supply-item strong {
        font-size: 1.7rem;
    }

    .price-detail {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .price-visual {
        min-height: 360px;
    }

    .price-section {
        padding: 50px 5%;
    }

    .promo-section {
        padding: 50px 5%;
    }

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

    .step-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* 两列布局下横向连接线会错位，隐藏 */
    .step-item + .step-item::before {
        display: none;
    }

    .join-section {
        padding: 50px 5%;
    }
}

/* ---------- 03 ≤768px ---------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 19, 25, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 20px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

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

    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a::after {
        display: none;
    }

    .hero-header-text h1 {
        font-size: 1.4rem;
    }

    .hero-header-text p {
        font-size: 0.9rem;
    }

    .hero-footer-btn {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 13px 20px;
        font-size: 0.95rem;
    }

    .wechat-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

    .wechat-text ul li {
        text-align: left;
    }

    .wechat-qrcode-box {
        width: 100%;
        max-width: 340px;
        flex: none;
        padding: 30px 22px;
    }

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

    .product-img-wrapper {
        aspect-ratio: 4 / 3;
        padding: 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .feature-card {
        padding: 25px 20px;
    }

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

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 12px;
        gap: 12px;
    }

    .promo-feature {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    /* 移动端统一上图下文，取消交替 */
    .promo-feature:nth-of-type(even) .promo-feature-img {
        order: 0;
    }

    .promo-feature-img {
        aspect-ratio: 16 / 10;
        padding: 10px;
    }

    .promo-feature-text h3 {
        font-size: 1.15rem;
    }

    .promo-feature-text p {
        font-size: 0.88rem;
        text-align: left;
    }

    .price-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .price-card {
        padding: 22px 18px 18px;
    }

    .price-card-supply {
        gap: 10px;
    }

    .supply-item strong {
        font-size: 1.6rem;
    }

    .price-rules-panel {
        padding: 24px 20px;
    }

    .price-rules-panel .btn-primary {
        width: 100%;
        max-width: 320px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        align-self: center;
    }

    .lightbox-img {
        max-height: 70vh;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ---------- 04 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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