/* Mobile Hero Fixed Height - HIGHEST PRIORITY */
/* 移动端Hero固定高度640px - 最高优先级样式 */

/* Core mobile hero fixed height rules */
@media screen and (max-width: 768px) {
    /* Main hero container - fixed 640px height */
    .curelight-hero,
    section.curelight-hero,
    .curelight-hero.with-bg {
        height: 640px !important;
        min-height: 640px !important;
        max-height: 640px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 100px !important;
        padding-bottom: 20px !important;
        overflow: hidden !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
    
    /* Content container flex layout */
    .curelight-hero .curelight-hero-content {
        flex: 1 !important;
        display: flex !important;
        align-items: flex-start !important;
        padding-top: 20px !important;
        height: 100% !important;
    }
    
    .curelight-hero .container {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .curelight-hero .row {
        height: 100% !important;
        flex: 1 !important;
        display: flex !important;
    }
    
    .curelight-hero .col-lg-10 {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        height: 100% !important;
        width: 100% !important;
    }
    
    /* Text content compact spacing */
    .curelight-hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
        margin-top: 0 !important;
    }
    
    .curelight-hero .subtitle {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Navigation buttons compact */
    .hero-nav-buttons {
        margin-bottom: 1rem !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    
    .hero-nav-buttons .nav-btn {
        padding: 6px 11px !important;
        font-size: 0.78rem !important;
    }
    
    /* Product image at bottom */
    .curelight-hero .device-image {
        margin-top: auto !important;
        margin-bottom: 10px !important;
        max-width: 85% !important;
        flex-shrink: 0 !important;
    }
    
    .curelight-hero .device-image img {
        max-height: 270px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* Small mobile screens */
@media screen and (max-width: 575px) {
    .curelight-hero {
        height: 640px !important;
        padding-top: 90px !important;
    }
    
    .curelight-hero h1 {
        font-size: 1.55rem !important;
    }
    
    .curelight-hero .subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 0.9rem !important;
    }
    
    .curelight-hero .device-image {
        max-width: 88% !important;
    }
    
    .curelight-hero .device-image img {
        max-height: 250px !important;
    }
    
    .hero-nav-buttons {
        gap: 5px !important;
    }
    
    .hero-nav-buttons .nav-btn {
        padding: 5px 9px !important;
        font-size: 0.74rem !important;
    }
}

/* Extra small screens */
@media screen and (max-width: 360px) {
    .curelight-hero {
        height: 640px !important;
    }
    
    .curelight-hero h1 {
        font-size: 1.45rem !important;
    }
    
    .curelight-hero .device-image img {
        max-height: 230px !important;
    }
    
    .hero-nav-buttons .nav-btn {
        font-size: 0.7rem !important;
        padding: 5px 8px !important;
    }
}

/* Video section positioning after 640px hero */
@media screen and (max-width: 768px) {
    .mobile-video-section {
        margin-top: -100px !important;
        position: relative !important;
        z-index: 15 !important;
    }
}

/* Ensure highest priority */
body .curelight-hero {
    /* These rules will be applied with body selector for higher specificity */
}

@media screen and (max-width: 768px) {
    body section.curelight-hero,
    body .curelight-hero {
        height: 640px !important;
        min-height: 640px !important;
        max-height: 640px !important;
    }
}
