/* 文字自定义面板样式 */
.text-customization-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.customization-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customization-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.toggle-panel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.toggle-panel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.customization-content {
    padding: 20px;
    display: block;
}

.setting-group {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.setting-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.setting-group input[type="range"] {
    width: 70%;
    margin-right: 10px;
    accent-color: #667eea;
}

.setting-group input[type="color"] {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

.setting-group input[type="text"] {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.setting-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.value-display {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
    min-width: 40px;
    display: inline-block;
}

.align-buttons {
    display: flex;
    gap: 8px;
}

.align-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.align-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.align-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.setting-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.reset-btn, .apply-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.reset-btn:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.apply-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .text-customization-panel {
        margin: 15px 0;
    }
    
    .customization-content {
        padding: 15px;
    }
    
    .setting-group input[type="range"] {
        width: 60%;
    }
    
    .align-buttons {
        flex-direction: column;
    }
    
    .setting-actions {
        flex-direction: column;
    }
}

/* 动画效果 */
.customization-content {
    transition: all 0.3s ease;
}

.setting-group {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}