/* ============================================================
 * 导航专属样式 - nav.css
 * 包含:.nav-container / .main-nav / .nav-list / .nav-list li a /
 *       ::before 下划线 / hover / active / .scrolled 半透明 / 响应式
 * 加载位置:在 premium.css 之后,main2.css 之前
 * ============================================================ */

/* ========== 导航容器 ========== */
.nav-container {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-md);
}

/* ========== 主导航容器 ========== */
.main-nav {
    display: flex;
    justify-content: flex-end;
}

/* ========== 导航列表 ========== */
.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-list li a {
    display: block;
    padding: 18px 22px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* hover/active 时下划线动画 */
.nav-list li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list li a:hover::before,
.nav-list li.active a::before {
    width: 100%;
}

.nav-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-list li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}


#############


.logo-box {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header {
    background: var(--white);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(145deg, #f0f4f8, #e8ecf0);
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 61, 98, 0.1);
}

.phone-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-teal);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
}

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

.phone-text span {
    font-size: 12px;
    color: var(--text-light);
}

.phone-text strong {
    font-size: 16px;
    color: var(--primary);
}

.btn-yuyue {
    padding: 14px 28px;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.btn-yuyue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
    color: var(--primary-dark);
}



/* ============================================================
 * 桌面端 - 滚动后导航变半透明(仅桌面端)
 * ============================================================ */
@media (min-width: 769px) {
    .main-nav.scrolled {
        background: rgba(10, 61, 98, 0.8);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
	 
}

/* ============================================================
 * 平板 - ≤992px 略紧凑
 * ============================================================ */
@media (max-width: 992px) {
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-list li a {
        padding: 14px 16px;
        font-size: 14px;
    }
	
	.header-right{display: none;}
}

/* ============================================================
 * 平板 - ≤1024px 进一步紧凑
 * ============================================================ */
@media (max-width: 1024px) {
    .nav-list li a {
        padding: 16px 14px;
        font-size: 14px;
    }
	
	.header-right{display: none;}
}

/* ============================================================
 * 手机 - ≤768px 汉堡菜单
 * ============================================================ */
@media (max-width: 768px) {

	.header-right{display: none;}
    /* 导航容器保持 sticky */
    .nav-container {
        position: sticky;
        top: 0;
    }

    /* 主导航容器:为汉堡按钮让位 */
    .main-nav {
        position: relative;
        padding: 0 16px;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* 汉堡按钮(默认显示) */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 26px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        cursor: pointer;
        padding: 5px 6px;
        position: relative;
        z-index: 2;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* 点开后:三横杠变成 X */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 导航列表默认隐藏 */
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }

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

    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list li a {
        padding: 14px 20px;
        font-size: 15px;
        display: block;
        color: rgba(255, 255, 255, 0.9);
    }
}

/* ============================================================
 * 全局兜底:桌面端隐藏汉堡按钮
 * (放在媒体查询之后,确保 769+ 桌面下 .nav-toggle 强制隐藏)
 * ============================================================ */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
}
