/* public/css/header.css */

/* ========== Header / Navigation ========== */
.header-v1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.header-inner-v1 {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
}

.header-logo-v1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-v1 img {
    height: 40px;
}

.header-logo-v1 .logo-text-v1 {
    height: 28px;
}

.nav-v1 {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item-v1 {
    position: relative;
}

.nav-item-v1 > a {
    display: flex;
    padding: 24px 22px;
    font-size: 15px;
    color: #fff;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-item-v1 > a:hover,
.nav-item-v1.active-v1 > a {
    color: #b71c1c;
}

.nav-item-v1.active-v1 > a {
    border-bottom: 2px solid #b71c1c;
}

.nav-divider-v1 {
    width: 1px;
    height: 16px;
    background: #ccc;
    margin: 0 4px;
}

/* 二级导航 */
.nav-item-v1 .sub-nav-v1 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    padding: 8px 0;
}

.nav-item-v1:hover .sub-nav-v1 {
    opacity: 1;
    visibility: visible;
}

.sub-nav-v1 a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
}

.sub-nav-v1 a:hover {
    color: #b71c1c;
    background: #fafafa;
}

.nav-lang-v1 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 24px 10px;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
}

.nav-lang-v1 .lang-icon-v1 {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    /*border: 1px solid #999;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.nav-lang-v1 .arrow-down-v1 {
    font-size: 10px;
    margin-left: 2px;
    width: 16px;
    height: 16px;
}

/* ========== 汉堡菜单按钮 ========== */
.hamburger-v1 {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-v1 span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

.hamburger-v1.active-v1 span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-v1.active-v1 span:nth-child(2) {
    opacity: 0;
}

.hamburger-v1.active-v1 span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== 响应式 ========== */

/* 平板及以下 ≤1200px */
@media screen and (max-width: 1200px) {
    .header-inner-v1 {
        padding: 0 20px;
    }

    .nav-item-v1 > a {
        padding: 24px 14px;
        font-size: 14px;
    }
}

/* 平板竖屏 ≤992px */
@media screen and (max-width: 992px) {
    .hamburger-v1 {
        display: flex;
    }

    .nav-v1 {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        gap: 0;
    }

    .nav-v1.open-v1 {
        max-height: 100vh;
        overflow-y: auto;
    }

    .nav-divider-v1 {
        display: none;
    }

    .nav-item-v1 > a {
        padding: 16px 30px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-item-v1.active-v1 > a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 3px solid #b71c1c;
    }

    .nav-item-v1 .sub-nav-v1 {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.05);
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 0;
    }

    .nav-item-v1.sub-open-v1 .sub-nav-v1 {
        display: block;
    }

    .sub-nav-v1 a {
        padding: 12px 50px;
        color: #ccc;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sub-nav-v1 a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-lang-v1 {
        padding: 16px 30px;
    }
}

/* 手机竖屏 ≤480px */
@media screen and (max-width: 480px) {
    .header-inner-v1 {
        padding: 0 16px;
    }

    .header-logo-v1 img {
        height: 32px;
    }

    .header-logo-v1 .logo-text-v1 {
        height: 22px;
    }
}