/* 导航栏样式 - 明亮风格 v2.0 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
}

.logo a {
    display: flex;
    align-items: center;
    height: 52px;
}

.logo img {
    height: 28px;
    width: auto;
}

.logo h1 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    white-space: nowrap;
}

/* 导航菜单 - 电脑版 */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-menu li a:hover {
    color: #ff6b35;
    text-decoration: none;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1d1d1f;
    transition: all 0.3s ease;
    position: absolute;
    border-radius: 1px;
}

.menu-toggle span:first-child {
    transform: translateY(-6px);
}

.menu-toggle span:last-child {
    transform: translateY(6px);
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg);
}

/* 平板端 */
@media (max-width: 1024px) {
    .nav-menu ul {
        gap: 24px;
    }
    
    .nav-menu li a {
        font-size: 14px;
    }
}

/* 移动端 */
@media (max-width: 768px) {
    header {
        height: 56px !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .logo h1 {
        font-size: 15px;
        color: #1d1d1f !important;
    }
    
    .logo img {
        height: 24px;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .menu-toggle span {
        background: #1d1d1f !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: none !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 80px 24px 40px !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu ul {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        width: 100% !important;
    }
    
    .nav-menu li:last-child {
        border-bottom: none !important;
    }
    
    .nav-menu li a {
        display: block !important;
        font-size: 20px !important;
        font-weight: 600 !important;
        padding: 18px 0 !important;
        color: #1d1d1f !important;
        text-decoration: none !important;
        background: transparent !important;
    }
    
    .nav-menu li a::after {
        display: none !important;
    }
    
    .nav-menu li a:hover,
    .nav-menu li a:active {
        color: #ff6b35 !important;
        background: rgba(255, 107, 53, 0.05) !important;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .logo h1 {
        display: none !important;
    }
    
    .logo::after {
        content: '领先高考';
        font-size: 15px;
        font-weight: 600;
        color: #1d1d1f !important;
    }
    
    .nav-menu {
        padding: 70px 20px 30px !important;
    }
    
    .nav-menu li a {
        font-size: 18px !important;
        padding: 16px 0 !important;
    }
}
