
/* Header 吸顶固定 */
.header {
    background: white;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    box-shadow: none;
    z-index: 1000;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.3s ease;
}
.header.fixed-header {
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.header.fixed-header .header-top {
    padding: 8px 40px;
}
.header.fixed-header .navbar {
    padding: 10px 40px;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 40px;
    border-bottom: 1px solid #eee;
    transition: padding 0.3s ease;
}

.header-cta {
    display: flex;
    gap: 10px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-purple {
    background: #4a2c9e;
    color: white;
}
.btn-purple:hover {
    background: #3a2280;
    transform: translateY(-2px);
}
.btn-green {
    background: #00c896;
    color: white;
}
.btn-green:hover {
    background: #00a87d;
    transform: translateY(-2px);
}

/* Navbar 桌面布局 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(135deg, #003399 0%, #001a66 100%);
    position: relative;
    z-index: 999;
    transition: padding 0.3s ease;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-text h1 {
    color: white;
    font-size: 24px;
    line-height: 1.2;
}
.logo-text p {
    color: #ccc;
    font-size: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-menu > li > a {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}
.nav-menu > li > a.active,
.nav-menu > li > a:hover {
    color: #00c896;
}
.nav-menu > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00c896;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #001a66;
    min-width: 300px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    font-size: 13px;
    transition: background 0.3s ease;
}
.dropdown-menu li a:hover {
    background: #003399;
}

/* 汉堡按钮 桌面默认隐藏 */
.hamburger {
    display: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px 0;
    background: #fff;
    transition: 0.3s;
}

/* 768px 平板/手机适配（核心修复） */
@media screen and (max-width: 768px) {
    .header.fixed-header .header-top {
        padding: 6px 20px;
    }
    .header.fixed-header .navbar {
        padding: 8px 20px;
    }
    .header-top {
        padding: 12px 20px;
        justify-content: center;
    }
    .header-cta {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 12px;
    }
    .btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 12px;
    }

    .navbar {
        padding: 15px 20px;
    }
    .logo-text h1 {
        font-size: 18px;
    }
    svg {
        width: 45px !important;
        height: 45px !important;
    }

    /* 修复1：移动端先彻底隐藏桌面横向菜单，避免挤压汉堡 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #001a66;
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    /* 点击汉堡后显示菜单 */
    .nav-menu.show {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 移动端显示汉堡 */
    .hamburger {
        display: block;
    }

    .dropdown-menu {
        position: static;
        min-width: auto;
        background: #002277;
        margin-top: 8px;
        padding-left: 15px;
    }
}

/* 480px 超小手机 */
@media screen and (max-width: 480px) {
    .logo {
        gap: 8px;
    }
    .logo-text h1 {
        font-size: 16px;
    }
    .logo-text p {
        font-size: 10px;
    }
}






























