/* 会员中心专用样式 */

/* 主容器布局 */
.member-container {
    display: flex;
    min-height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 左侧导航栏 */
.member-sidebar {
    width: 250px;
    background: linear-gradient(135deg, var(--theme-color, #ff1493) 0%, var(--theme-color-light, #ff69b4) 100%);
    color: white;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-item {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
    font-weight: bold;
}

/* 右侧内容区 */
.member-content {
    flex: 1;
    padding: 20px;
    background: #fff;
}

/* 用户欢迎区域 */
.user-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.welcome-text {
    font-size: 16px;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-pink {
    background: var(--theme-color, #ff1493);
    color: white;
}

.btn-pink:hover {
    background: var(--theme-color-dark, #e91e63);
}

/* 用户基本信息 */
.user-basic-info {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-label {
    color: #666;
    min-width: 120px;
}

.info-value {
    color: #333;
}

.member-level {
    color: var(--theme-color, #ff1493);
    font-weight: bold;
}

.info-extra {
    color: #666;
    margin-left: 10px;
}

/* VIP套餐价格表 */
.vip-packages {
    margin-top: 20px;
}

.vip-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.vip-table th,
.vip-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.vip-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.vip-table tbody tr:hover {
    background: #f5f5f5;
}

.vip-table tbody tr:last-child td {
    border-bottom: none;
}

/* 底部样式已移至style.css统一管理 */

/* 响应式设计 */
@media (max-width: 768px) {
    .member-container {
        flex-direction: column;
        margin: 10px;
        border-radius: 0;
    }
    
    .member-sidebar {
        width: 100%;
        position: relative;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .nav-item {
        flex-shrink: 0;
        padding: 15px 20px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom-color: white;
    }
    
    .member-content {
        padding: 20px 15px;
    }
    
    .content-header h2 {
        font-size: 20px;
    }
    
    .user-info-table {
        font-size: 13px;
    }
    
    .user-info-table td {
        padding: 10px 12px;
    }
    
    .user-info-table .label {
        width: 80px;
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .user-info-table {
        display: block;
    }
    
    .user-info-table tr {
        display: block;
        margin-bottom: 15px;
        background: #fff !important;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 15px;
    }
    
    .user-info-table td {
        display: block;
        padding: 5px 0;
        border: none;
        width: 100% !important;
    }
    
    .user-info-table .label {
        background: none;
        font-weight: bold;
        color: var(--theme-color, #ff1493);
        margin-bottom: 5px;
    }
    
    .user-info-table .value {
        margin-bottom: 10px;
        padding-left: 10px;
    }
}
