﻿/* 会员中心专用布局样式 */

/* 简化的顶部导航 */
.member-top-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

.member-top-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.member-logo {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.member-search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

    .member-search-box input {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-size: 14px;
        transition: all 0.3s;
    }

        .member-search-box input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

.member-top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .member-top-actions a {
        color: #666;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .member-top-actions a:hover {
            color: #667eea;
        }

.member-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

    .member-user-info:hover {
        background: #e9ecef;
    }

.member-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.member-user-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 会员中心主体布局 */
.member-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    min-height: calc(100vh - 200px);
}

/* 左侧菜单 */
.member-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px 0;
    height: fit-content;
    position: sticky;
    top: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 0 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

    .sidebar-header h3 {
        margin: 0;
        font-size: 16px;
        color: #333;
    }

.member-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .member-sidebar-menu li {
        margin: 0;
    }

    .member-sidebar-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: #666;
        text-decoration: none;
        transition: all 0.3s;
        font-size: 14px;
        position: relative;
    }

        .member-sidebar-menu a:hover {
            background: #f8f9fa;
            color: #667eea;
        }

        .member-sidebar-menu a.active {
            background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
            color: #667eea;
            font-weight: 500;
        }

            .member-sidebar-menu a.active::before {
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                width: 3px;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            }

.menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.menu-badge {
    margin-left: auto;
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* 主内容区 */
.member-main-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 移动端汉堡菜单 */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        background: #333;
        transition: all 0.3s;
    }

/* 响应式设计 */
@media (max-width: 1024px) {
    .member-layout {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .member-sidebar {
        position: fixed;
        left: -250px;
        top: 60px;
        bottom: 0;
        width: 250px;
        border-radius: 0;
        z-index: 1000;
        transition: left 0.3s;
        overflow-y: auto;
    }

        .member-sidebar.show {
            left: 0;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        }

    .mobile-menu-toggle {
        display: flex;
    }

    .member-search-box {
        display: none;
    }

    .member-top-actions {
        gap: 10px;
    }

        .member-top-actions a span {
            display: none;
        }
}

@media (max-width: 768px) {
    .member-top-content {
        padding: 0 15px;
        height: 50px;
    }

    .member-logo {
        font-size: 16px;
    }

    .member-user-name {
        display: none;
    }

    .member-main-content {
        padding: 20px 15px;
    }

    .member-top-actions a {
        font-size: 18px;
    }
}

/* 遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

    .sidebar-overlay.show {
        display: block;
    }
