/**
 * 软柠账号用户中心样式
 * 提供用户中心界面的完整样式定义
 */

.user-center-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 7px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1);
}

.user-center-header {
    background: white;
    color: #333;
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-center-header .header-content {
    flex: 1;
}

.user-center-header h1 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.user-center-header p {
    color: #666;
    font-size: 13px;
}

.user-center-header .user-actions {
    display: flex;
    gap: 10px;
}

.user-center-content {
    padding: 0;
}

.user-center {
    background: white;
    border-radius: 7px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1);
}

.user-profile {
    background: linear-gradient(135deg, #1d5cee 0%, #3a7bff 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    margin: 0 auto 15px;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-level {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
}

.user-details {
    padding: 25px;
}

.details-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}

.info-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 14px;
    text-align: right;
}

.info-value .empty {
    color: #999;
    font-style: italic;
}

.user-actions {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 80px;
}

.btn-primary {
    background: #1d5cee;
    color: white;
}

.btn-primary:hover {
    background: #0d4cdd;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-center-container {
        margin: 10px;
        border-radius: 0;
    }
    
    .user-center-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-center-header .user-actions {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .user-profile {
        padding: 20px;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .user-details {
        padding: 15px;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}