/* ===== Header ===== */
.site-header {
    background: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: clamp(80px, 7vh, 100px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    text-decoration: none;
}

.logo-icon img {
    height: clamp(40px, 4.5vh, 70px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    width: clamp(90px, 10vw, 140px);
    height: clamp(60px, 80px, 100px);
    font-size: clamp(12px, 0.9vw, 15px);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.3;
    position: relative;
}

.main-nav a .nav-cn {
    font-size: clamp(13px, 1.1vw, 17px);
    font-weight: 600;
    margin-bottom: 3px;
}

.main-nav a .nav-en {
    font-size: clamp(9px, 0.7vw, 12px);
    color: #999;
    letter-spacing: 1px;
}

.main-nav a img {
    display: none;
    width: 10px;
    height: 15px;
    margin-top: 5px;
    position: absolute;
    left: -10px;
    bottom: -15px;
}

/* .main-nav a:hover {
    background: var(--primary-red);
    color: #fff;
}

.main-nav a:hover .nav-en {
    color: rgba(255, 255, 255, 0.8);
} */

.main-nav a.active {
    border-top: 4px solid #F59805;
    background: var(--primary-red);
    color: #fff;
    position: relative;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: var(--primary-red);
    z-index: 10;
}

.main-nav a.active .nav-en {
    color: rgba(255, 255, 255, 0.85);
}

.main-nav a.active img {
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 25px);
}

.header-right .phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-size: clamp(14px, 1.3vw, 22px);
    font-weight: bold;
    margin-left: 20px;
}

.header-right .phone img {
    width: clamp(18px, 1.6vw, 26px);
    height: clamp(18px, 1.6vw, 26px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: clamp(12px, 1vw, 16px);
    cursor: pointer;
    transition: all 0.3s;
}


.lang-switch img {
    width: 12px;
    height: 10px;
    transition: transform 0.3s;
}

.lang-switch.open img {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 14px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 6px 0;
    margin: 14px 0 0;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.lang-switch.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 8px 18px;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.lang-dropdown li:hover {
    background: #f5f5f5;
    color: var(--primary-red);
}

.lang-dropdown li.active {
    color: var(--primary-red);
    font-weight: 500;
}

.navbar-toggler {
    display: none;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #fff;
}
 .logo-icon img{
        height: 80px;
    }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .header-inner {
        position: relative;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 20px;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        color: #000;
    }

    .main-nav a.active {
        background: #fff5f0;
        color: var(--primary-red);
        border-top: none;
        border-left: 3px solid var(--primary-red);
    }
    
   .main-nav a.active::after {
        display: none;
    }
    .main-nav a.active .nav-en {
        color: var(--primary-red);
    }

    .main-nav a.active img {
        display: none;
    }

    .main-nav a .nav-cn {
        margin-bottom: 0;
    }

    .main-nav a .nav-en {
        font-size: 11px;
    }

    .header-right-actions .phone {
        display: none;
    }

    .navbar-toggler {
        display: block;
    }
    .logo-icon img{
        height: 80px;
    }
}

@media (max-width: 767.98px) {
    .site-header .container,
    .hero-carousel .swiper-slide .container {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .header-inner {
        height: 80px;
    }

    .main-nav {
        top: 80px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-icon {
        width: 34px;
        height: 80px;
        font-size: 14px;
    }

    .logo-icon img {
        height: 100%;
        /* max-height: 34px; */
        width: auto;
        object-fit: contain;
    }
}
