body {
    background-color: #f5f5f5;
}

.profile-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

.profile-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-form {
    padding: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    flex: 1;
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2a2a2a;
    font-weight: normal;
    font-size: 13px;
}

.form-label.required::after {
    content: " *";
    color: #ff0000;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar-preview {
    width: 90px;
    height: 90px;
    border: 2px dashed #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.avatar-preview:hover {
    border-color: #ff0000;
    background: #fff5f5;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-placeholder {
    color: #ccc;
    font-size: 32px;
    font-weight: 300;
}

.upload-info {
    flex: 1;
}

.upload-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff0000 0%, #ff3333 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.upload-btn:hover {
    background: linear-gradient(135deg, #e60000 0%, #ff1a1a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upload-tips {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.form-actions {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f5f5f5;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 8px;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0000 0%, #ff3333 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e60000 0%, #ff1a1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #fff;
    color: #666;
    border: 2px solid #e8e8e8;
}

.btn-secondary:hover {
    background: #f9f9f9;
    border-color: #ff0000;
    color: #ff0000;
    transform: translateY(-1px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 42, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单焦点状态增强 */
.form-group:focus-within .form-label {
    color: #ff0000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        margin: 20px 15px;
    }
    
    .profile-form {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .btn {
        padding: 12px 24px;
        margin: 4px;
        min-width: 100px;
    }
}

/* 微动画 */
.form-group {
    transition: transform 0.2s ease;
}

.form-group:focus-within {
    transform: scale(1.01);
}



