/* SXmini Puremax Q Mobile Optimization */

/* Mobile Banner Optimization */
@media (max-width: 768px) {
    .banner-section {
        height: 100vh;
        background-image: url('https://yihi-750.oss-us-east-1.aliyuncs.com/image/255/255PuremaxQ.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        position: relative;
        overflow: hidden;
    }
    
    .banner-overlay {
        background: linear-gradient(135deg, 
            rgba(0,0,0,0.7) 0%, 
            rgba(0,0,0,0.3) 50%, 
            rgba(0,0,0,0.6) 100%);
        backdrop-filter: blur(2px);
    }
    
    .banner-content {
        padding: 1.5rem;
        position: relative;
        z-index: 20;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
    }
    
    .banner-title {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, #ffffff, #f1f5f9, #e2e8f0);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 4px 8px rgba(0,0,0,0.3);
        animation: titleShimmer 3s ease-in-out infinite;
    }
    
    @keyframes titleShimmer {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.9; }
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        font-weight: 400;
        color: rgba(255,255,255,0.9);
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        line-height: 1.4;
    }
    
    .banner-specs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin-bottom: 3rem;
    }
    
    .spec-item {
        background: rgba(255,255,255,0.12);
        backdrop-filter: blur(15px);
        padding: 1rem;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.2);
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .spec-item:hover {
        background: rgba(255,255,255,0.18);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }
    
    .spec-label {
        font-size: 0.8rem;
        color: rgba(255,255,255,0.8);
        margin-bottom: 0.3rem;
        font-weight: 500;
    }
    
    .spec-value {
        font-size: 1rem;
        font-weight: 700;
        color: #ffffff;
    }
    
    .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255,255,255,0.8);
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .scroll-indicator i {
        font-size: 1.2rem;
        animation: bounceArrow 2s infinite;
    }
    
    @keyframes bounceArrow {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
        40% { transform: translateY(-5px); }
        60% { transform: translateY(-2px); }
    }
}

/* Mobile Specs Section Optimization */
@media (max-width: 768px) {
    .specs-section {
        padding: 4rem 0;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }
    
    .specs-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .spec-card {
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 2rem 1.5rem;
        text-align: center;
        border: 1px solid rgba(255,255,255,0.3);
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .spec-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255,255,255,0.4), 
            transparent);
        transition: left 0.5s ease;
        z-index: 1;
    }
    
    .spec-card:hover::before {
        left: 100%;
    }
    
    .spec-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 48px rgba(0,0,0,0.12);
        border-color: rgba(59, 130, 246, 0.3);
    }
    
    .spec-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1.5rem;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: white;
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
        position: relative;
        z-index: 2;
        transition: all 0.3s ease;
    }
    
    .spec-card:hover .spec-icon {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
    }
    
    .spec-name {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 0.5rem;
        position: relative;
        z-index: 2;
    }
    
    .spec-detail {
        font-size: 1rem;
        font-weight: 500;
        color: #3b82f6;
        position: relative;
        z-index: 2;
    }
}

/* Mobile Color Switching Section */
@media (max-width: 768px) {
    .color-switching-section {
        height: 60vh;
        min-height: 400px;
        margin: 3rem 0;
    }
    
    .color-image {
        width: 90%;
        height: 70%;
        max-width: 400px;
        max-height: 300px;
    }
    
    .color-indicators {
        bottom: 2rem;
        padding: 0.8rem 1.5rem;
        gap: 0.8rem;
    }
    
    .color-dot {
        width: 8px;
        height: 8px;
    }
    
    .color-section-title {
        top: 1.5rem;
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    
    .auto-progress {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .progress-ring {
        width: 32px;
        height: 32px;
    }
}

/* Mobile Features Section */
@media (max-width: 768px) {
    .features-section {
        padding: 4rem 0;
    }
    
    .feature-item {
        display: block;
        margin-bottom: 4rem;
        direction: ltr;
    }
    
    .feature-item:nth-child(even) {
        direction: ltr;
    }
    
    .feature-content {
        padding: 1.5rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-image {
        border-radius: 16px;
        margin: 0 1rem;
    }
}

/* Mobile Gallery Section */
@media (max-width: 768px) {
    .gallery-section {
        padding: 4rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .gallery-item {
        border-radius: 16px;
        overflow: hidden;
        aspect-ratio: 1;
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Mobile CTA Section */
@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 16px;
        transition: all 0.3s ease;
    }
    
    .btn-primary-cta {
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        color: white;
        border: none;
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    }
    
    .btn-primary-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
    }
    
    .btn-outline-cta {
        background: rgba(255,255,255,0.9);
        color: #3b82f6;
        border: 2px solid #3b82f6;
    }
    
    .btn-outline-cta:hover {
        background: #3b82f6;
        color: white;
        transform: translateY(-2px);
    }
}

/* Responsive Breakpoints */
@media (max-width: 480px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-specs {
        grid-template-columns: 1fr;
        max-width: 250px;
        gap: 0.8rem;
    }
    
    .spec-item {
        padding: 0.8rem;
    }
    
    .spec-value {
        font-size: 0.9rem;
    }
    
    .color-switching-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 360px) {
    .banner-content {
        padding: 1rem;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 0.9rem;
    }
    
    .spec-item {
        padding: 0.6rem;
    }
    
    .spec-label {
        font-size: 0.7rem;
    }
    
    .spec-value {
        font-size: 0.8rem;
    }
    
    .spec-card {
        padding: 1.5rem 1rem;
    }
    
    .spec-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
} 