/**
 * 会员中心专属 Header 样式
 * 精简版设计：100px 高度，纯白背景，无顶部导航菜单
 */

/* Header 容器 */
.member-header {
    width: 100%;
    height: 100px;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ed;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 内容容器 */
.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* 覆盖 .m1280 类的宽度和边距限制 */
.member-header .header-container.m1280 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
}

/* Logo 区域 */
.header-logo {
    height: 70px;
}

.header-logo a {
    display: block;
    height: 100%;
}

.header-logo img {
    height: 100%;
    display: block;
}

/* 用户信息区域 */
.header-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #606266;
    font-size: 14px;
}

.user-info .username {
    font-weight: 500;
    color: #303133;
}

.user-info .mobile {
    color: #909399;
    font-size: 13px;
}

/* 退出按钮 */
.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #f56c6c;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-logout:hover {
    background: #f56c6c;
    color: #ffffff;
    border-color: #f56c6c;
}

.btn-logout .icon-logout::before {
    content: "➡️";
    font-style: normal;
}

/* 登录按钮 */
.btn-login {
    padding: 6px 20px;
    background: linear-gradient(90deg, #00a9ba, #00bb71);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.btn-login:hover {
    opacity: 0.9;
}

/* 响应式设计：平板端 */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 20px !important;
    }

    .user-info .mobile {
        display: none;
    }

    .btn-logout span {
        display: none;
    }

    .btn-logout {
        padding: 8px 12px;
    }

    /* 移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, #00a9ba 0%, #00bb71 100%);
        border: none;
        border-radius: 4px;
        color: white;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .mobile-menu-toggle:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }

    .mobile-menu-toggle.active {
        background: #f56c6c;
    }
}

/* 桌面端隐藏移动菜单按钮 */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* 响应式设计：移动端 */
@media screen and (max-width: 576px) {
    .member-header {
        height: 60px;
    }

    .header-container {
        padding: 0 15px !important;
    }

    .header-logo {
        height: 40px;
    }

    .user-info .username {
        font-size: 13px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-user {
        gap: 12px;
    }
}
