/* ========== 头像生成器样式 ========== */
.avatar-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.avatar-controls {
    flex: 0 0 350px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
}

.avatar-controls h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.avatar-controls .form-section {
    margin-bottom: 20px;
}

.avatar-controls .form-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.avatar-controls .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.avatar-controls .form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.avatar-controls .form-range {
    width: 100%;
    margin: 8px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
}

.avatar-controls .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.avatar-controls .form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.range-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: 600;
    color: #3498db;
    min-width: 40px;
    text-align: center;
}

.hint {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    line-height: 1.4;
}

.avatar-preview {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.avatar-preview h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.avatar-preview canvas {
    max-width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.info-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.info-section p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.warning {
    color: #e74c3c !important;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .avatar-container {
        flex-direction: column;
    }
    
    .avatar-controls {
        flex: none;
    }
}

@media (max-width: 768px) {
    .avatar-controls {
        padding: 20px;
    }
    
    .avatar-preview {
        padding: 15px;
    }
    
    .avatar-preview canvas {
        width: 100%;
        max-width: 400px;
    }
}