/* 个人资料编辑页面样式 */
.profile-edit-main {
    padding: 16px;
    background-color: #f4f5f7;
    min-height: calc(100vh - 60px);
}

.profile-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 头像部分 */
.avatar-section {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.current-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    position: relative;
    overflow: hidden;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
}

.avatar-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* 表单样式 */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #111827;
    background-color: #ffffff;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #f97373;
    box-shadow: 0 0 0 3px rgba(249, 115, 115, 0.1);
}

.form-input:readonly {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #111827;
    background-color: #ffffff;
    transition: all 0.2s;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #f97373;
    box-shadow: 0 0 0 3px rgba(249, 115, 115, 0.1);
}

.input-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: #9ca3af;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 4px;
}

.change-phone-btn {
    position: absolute;
    right: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.change-phone-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* 账户统计 */
.profile-stats {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* 表单验证状态 */
.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success,
.form-textarea.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.success-message {
    font-size: 12px;
    color: #10b981;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .profile-edit-main {
        padding: 12px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .current-avatar {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
