/* ===== 顶部工具栏 ===== */
.top-bar {
    background: #00a0e9;
    height: 36px;
    line-height: 36px;
    color: #fff;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar-left a:hover {
    opacity: 0.8;
    color: #fff;
}

.top-bar-center {
    width: 320px;
    margin-left: auto;
}

.top-bar-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 18px;
    padding: 0 15px;
    height: 28px;
    margin-right: 20px;
}

.top-bar-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    font-size: 13px;
    padding: 0 8px;
}

.top-bar-search input::placeholder {
    color: #333;
}

.top-bar-search button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.top-bar-right a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar-right a:hover {
    opacity: 0.8;
    color: #fff;
}

/* ===== 主导航 ===== */
.main-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: static;
    /*top: 0;*/
    /*z-index: 1000;*/
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 138px;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: auto;
    height: 115px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand {
    font-size: 22px;
    font-weight: bold;
    color: #00a0e9;
    line-height: 1.2;
}

.logo-text .brand-en {
    font-size: 12px;
    color: #00a0e9;
    line-height: 1.2;
}

.logo-text .slogan {
    font-size: 11px;
    color: #999;
    line-height: 1.2;
    margin-top: 2px;
}

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

.main-nav > .nav-item {
    position: relative;
}

.main-nav > .nav-item > a {
    display: block;
    padding: 0 20px;
    height: 60px;
    line-height: 60px;
    font-size: 20px;
    color: #333;
    position: relative;
    transition: color 0.3s;
}

.main-nav > .nav-item > a:hover,
.main-nav > .nav-item > a.active {
    color: #00a0e9;
}

.main-nav > .nav-item > a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #00a0e9;
    border-radius: 2px;
}

/* ===== 二级导航下拉菜单 ===== */
.sub-nav {
    display: none;
    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: 0 0 6px 6px;
    z-index: 1001;
    padding: 8px 0;
}

.nav-item:hover .sub-nav {
    display: block;
}

.sub-nav a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    height: auto;
    line-height: 1.5;
    transition: all 0.3s;
}

.sub-nav a::after {
    display: none !important;
}

.sub-nav a:hover {
    color: #00a0e9;
    background: #f0f8ff;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.qr-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qr-item img {
    width: 70px;
    height: 70px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2px;
}

.qr-item span {
    font-size: 11px;
    color: #999;
}

/* ===== 移动端菜单按钮 ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.header-login-link {
    display: none;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    align-items: center;
    gap: 4px;
}

@media (max-width: 1200px) {
    .main-nav > .nav-item > a {
        padding: 0 14px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .top-bar {
        display: none;
    }

    .top-bar-left {
        display: none;
    }

    .top-bar-center {
        display: none;
    }

    .top-bar-right {
        margin-left: auto;
    }

    .header-login-link {
        display: none;
    }

    .qr-group {
        display: none;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .main-header .container {
        height: 60px;
        gap: 0;
        justify-content: space-between;
    }

    .logo-icon {
        height: 45px;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        overflow-y: auto;
        z-index: 999;
        padding: 0;
    }

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

    .main-nav > .nav-item > a {
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        padding: 0 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav > .nav-item > a.active::after {
        display: none;
    }

    .sub-nav {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: #fafafa;
    }

    .nav-item:hover .sub-nav {
        display: none;
    }

    .nav-item.sub-open .sub-nav {
        display: block;
    }

    .sub-nav a {
        padding: 10px 20px 10px 40px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }

    .top-bar-right a {
        font-size: 12px;
    }

    .main-header .container {
        height: 70px;
        padding: 0 12px;
    }

    .logo-icon {
        height: 45px;
    }

    .mobile-menu-btn {
        font-size: 20px;
    }

    .main-nav {
        top: 50px;
    }

    .main-nav > .nav-item > a {
        height: 46px;
        line-height: 46px;
        font-size: 15px;
    }
}
