/* Hero Banner Section */
section#hero {
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: block;
    position: relative;
    top: 0;
    transform: translateY(0);
}

.hero-banner {
    max-width: 1838px;
    width: calc(100% - 4.27vw); /* Align with header padding (2.135vw * 2) */
    height: auto; /* Allow height to scale */
    aspect-ratio: 1838 / 564; /* Maintain design aspect ratio */
    margin: 0 auto;
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    display: block;
    top: 0;
    background-image: url('../../images/image/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    color: white;
}

.hero-logo {
    position: absolute;
    top: 47px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-logo-img {
    height: 40px;
    width: auto;
    max-width: 300px;
}

.hero-text {
    position: absolute;
    top: 128px;
    left: 145px;
}

.hero-title {
    width: 1381px;
    height: 65px;
    font-family: var(--font-alibaba-puhuiti-h);
    font-weight: var(--weight-heavy);
    font-size: var(--text-h1);
    color: #FFFFFF;
    line-height: 65px;
    letter-spacing: 1.75px;
    text-align: left;
    font-style: normal;
    margin: 0;
    padding: 0;
}

.hero-subtitle {
    position: absolute;
    top: 119px;
    left: 0;
    width: 1270px;
    height: 90px;
    font-family: var(--font-source-han-sans);
    font-weight: 200;
    font-size: var(--text-h4);
    color: #FFFFFF;
    line-height: 45px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
    margin: 0;
    padding: 0;
}

.hero-cta {
    position: absolute;
    top: 398px;
    left: 145px;
    width: 361px;
    height: 79px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align text to start since it's not a centered button anymore, or keep center? Let's stick to previous layout flow */
}

.hero-text-label {
    font-family: var(--font-alibaba-puhuiti-h);
    font-weight: var(--weight-heavy);
    font-size: var(--text-h1);
    color: #FFFFFF;
    line-height: 63px;
    letter-spacing: 1.67px;
    text-align: left; /* Changed from center to left as it is just text now */
    font-style: normal;
}

/* Removed hero-about-btn and hover styles */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.chart-container {
    position: relative;
}

.chart-placeholder {
    width: 400px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.chart-content {
    text-align: center;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.bar {
    width: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: height 0.6s ease;
    height: 20px;
}

.bar.animate.bar-1 { height: 40px; }
.bar.animate.bar-2 { height: 60px; }
.bar.animate.bar-3 { height: 80px; }
.bar.animate.bar-4 { height: 100px; }
.bar.animate.bar-5 { height: 70px; }
.bar.animate.bar-6 { height: 90px; }

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-hero {
    background: white;
    color: #ff1654;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive - Large Screens */
@media (min-width: 1920px) {
    .hero-banner {
        margin-left: auto;
        margin-right: auto;
        max-width: 1838px;
        width: calc(100% - 82px);
    }
}

/* Responsive - Scaled 1920px layout */
@media (max-width: 1920px) {
    .hero-text {
        top: calc(128 * (100vw - 4.27vw) / 1838);
        left: calc(145 * (100vw - 4.27vw) / 1838);
    }
    
    .hero-title {
        width: calc(1381 * (100vw - 2.27vw) / 1838);
        height: calc(65 * (100vw - 4.27vw) / 1838);
        font-size: var(--text-h1);
        line-height: calc(65 * (100vw - 4.27vw) / 1838);
    }
    
    .hero-subtitle {
        top: calc(119 * (100vw - 4.27vw) / 1838);
        width: calc(1270 * (100vw - 4.27vw) / 1838);
        height: calc(90 * (100vw - 4.27vw) / 1838);
        font-size: var(--text-h4);
        line-height: calc(45 * (100vw - 4.27vw) / 1838);
    }
    
    .hero-cta {
        top: calc(398 * (100vw - 4.27vw) / 1838);
        left: calc(145 * (100vw - 4.27vw) / 1838);
        width: calc(361 * (100vw - 4.27vw) / 1838);
        height: calc(79 * (100vw - 4.27vw) / 1838);
    }
    
    .hero-about-btn {
        width: calc(361 * (100vw - 4.27vw) / 1838);
        height: calc(79 * (100vw - 4.27vw) / 1838);
    }
    
    .hero-about-btn span {
        width: calc(224 * (100vw - 4.27vw) / 1838);
        height: calc(63 * (100vw - 4.27vw) / 1838);
        font-size: var(--text-h1);
        line-height: calc(63 * (100vw - 4.27vw) / 1838);
    }
    
    .hero-logo {
        top: calc(47 * (100vw - 4.27vw) / 1838);
    }
    
    .hero-logo-img {
        height: clamp(24px, calc(40 * (100vw - 4.27vw) / 1838), 40px);
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .hero-banner {
        width: calc(100% - 40px);
        height: auto; /* Changed from fixed 400px to auto */
        aspect-ratio: 1838 / 564; /* Maintain aspect ratio on tablet too */
        margin: 0 20px;
        border-radius: 20px;
    }
    
    .hero-content {
        padding: 40px 40px;
    }
    
    .hero-logo-img {
        height: 50px;
        max-width: 250px;
    }
    
    .hero-text {
        max-width: 100%;
        position: absolute; /* Re-affirm position if overwritten */
    }
    
    .hero-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 20px;
        width: 100%;
        line-height: 40px;
    }
    
    .hero-subtitle {
        font-size: clamp(14px, 3vw, 16px);
        width: 100%;
        line-height: 28px;
    }
    
    .hero-banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero-banner {
        width: calc(100% - 30px);
        height: auto;
        min-height: 0;
        aspect-ratio: 234.76 / 162;
        margin: 0 15px;
        border-radius: 15px;
        background-image: url('../../images/image/banner_phone.png');
        background-size: cover;
        background-position: center;
        container-type: inline-size;
    }
    
    .hero-content {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 7cqi 8cqi; /* Increased padding slightly for better framing */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        margin-left: 0;
    }
    
    /* Hide desktop-specific elements including CTA (About Us) */
    .hero-logo,
    .hero-banner-image,
    .hero-about-btn, 
    .hero-button-wrapper,
    .hero-subtitle br,
    .hero-cta {
        display: none;
    }
    
    .hero-text {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        width: 100%;
        height: auto;
        margin-bottom: 0;
        text-align: left;
        max-width: 100%;
    }
    
    .hero-title {
        position: relative;
        width: 100% !important;
        height: auto !important;
        font-size: 5.2cqi; /* Reduced from 6cqi */
        line-height: 1.4; /* Increased line height */
        margin-bottom: 4.5cqi; /* Increased margin for more breathing room */
        letter-spacing: 0.2px;
        font-weight: 700;
        text-align: left;
    }
    
    .hero-subtitle {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        font-size: 3.2cqi; /* Reduced from 3.8cqi */
        line-height: 1.6; /* Increased line height */
        margin: 0;
        font-weight: 400;
        opacity: 0.95;
        text-align: left;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    /* Removed conflicting h1 override to allow cqi scaling to work */
    
    .chart-placeholder {
        width: 250px;
        height: 150px;
    }
}
