/* 会员中心页面样式 */

.member-page {
    padding-top: var(--header-height);
    padding-bottom: 80px;
    background: var(--bg-gray);
    min-height: 100vh;
}

/* 用户信息卡片 */
.user-card {
    position: relative;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
}

.user-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 0 0 0 100%;
}

.user-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-white);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.user-detail {
    flex: 1;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-id {
    font-size: 13px;
    opacity: 0.8;
}

.btn-edit {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

/* 资产卡片 */
.asset-card {
    display: flex;
    align-items: center;
    margin: -20px 15px 20px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.asset-item {
    flex: 1;
    text-align: center;
}

.asset-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 4px;
}

.asset-label {
    font-size: 12px;
    color: var(--text-muted);
}

.asset-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* 订单区域 */
.order-section {
    margin: 0 15px 15px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.section-header a {
    font-size: 13px;
    color: var(--text-muted);
}

.order-icons {
    display: flex;
    justify-content: space-around;
}

.order-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.order-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-gray);
    border-radius: 50%;
}

.order-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    color: var(--text-light);
    background: var(--danger);
    border-radius: 9px;
}

/* 菜单列表 */
.menu-section {
    margin: 0 15px 15px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item.highlight {
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,140,66,0.1));
}

.menu-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-light);
    border-radius: 10px;
    margin-right: 14px;
}

.menu-info {
    flex: 1;
}

.menu-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

.menu-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.menu-arrow {
    font-size: 18px;
    color: var(--text-muted);
}

/* 退出按钮 */
.logout-btn {
    margin: 30px 15px;
}

/* 响应式 */
@media (max-width: 480px) {
    .user-card {
        padding: 24px 16px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-name {
        font-size: 18px;
    }
    
    .asset-value {
        font-size: 18px;
    }
}
