/* 个人资料页面样式 */
.profile-main {
    min-height: calc(100vh - 80px - 120px);
    background-color: var(--bg-secondary);
    padding: 2rem 0;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 个人资料卡片 */
.profile-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* 用户信息部分 */
.user-info-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--bg-secondary);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.user-details p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.join-date {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Credits部分 */
.credits-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.credits-section h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.credits-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.credits-amount {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.credits-unit {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.credits-info {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

/* 交易历史 */
.transaction-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    background: #f0f0f5;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transaction-date {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.transaction-credits {
    font-weight: 500;
    color: var(--success-color);
}

.transaction-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.transaction-amount {
    font-weight: 600;
    color: var(--text-primary);
}

.transaction-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.status-completed {
    background: #e6f4ea;
    color: #1e7e34;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

/* 操作按钮 */
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 加载和空状态 */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: var(--text-tertiary);
}

.error {
    text-align: center;
    padding: 2rem;
    color: var(--error-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-info-section {
        flex-direction: column;
        text-align: center;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .transaction-details {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
}
