/**
 * 新版头部导航样式
 * 网约向导 - 蓝色渐变按钮风格
 */

/* ========== 头部容器 ========== */
.s-header-new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== Logo品牌区域 ========== */
.header-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    white-space: nowrap;
}

/* ========== 导航菜单 ========== */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item a:hover {
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.08);
}

.nav-item.active a {
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.1);
}

/* ========== 操作按钮区域 ========== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* 蓝色渐变按钮 - 参考截图样式 */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-icon {
    flex-shrink: 0;
}

/* 用户登录按钮 - 浅蓝色背景 */
.btn-login {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #00acc1;
    border: 1px solid rgba(0, 172, 193, 0.2);
}

.btn-login:hover {
    background: linear-gradient(135deg, #b2ebf2 0%, #80deea 100%);
    color: #00838f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.25);
}

/* 下载APP按钮 - 蓝绿渐变 */
.btn-download {
    background: linear-gradient(135deg, #00b4d8 0%, #00d4aa 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #0096c7 0%, #00c49a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

/* ========== 移动端菜单按钮 ========== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 20px;
    }
    
    .nav-item a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .btn-gradient {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions {
        display: none;
    }
    
    /* 移动端菜单展开状态 */
    .s-header-new.menu-open .header-nav {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .s-header-new.menu-open .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .s-header-new.menu-open .nav-item {
        width: 100%;
    }
    
    .s-header-new.menu-open .nav-item a {
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .s-header-new.menu-open .header-actions {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: auto;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        gap: 12px;
    }
    
    .s-header-new.menu-open .btn-gradient {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    
    .brand-logo {
        width: 36px;
        height: 36px;
    }
    
    .brand-name {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 15px;
    }
    
    .header-container {
        padding: 0 15px;
    }
}
