/* 前端预览样式 */
.tcfm-preview-container {
    margin: 40px 0;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tcfm-preview-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.tcfm-preview-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tcfm-preview-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.tcfm-preview-controls {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.tcfm-input-group {
    flex: 1;
    min-width: 300px;
}

.tcfm-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.tcfm-preview-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.tcfm-preview-input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.tcfm-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.tcfm-option {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.tcfm-option label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.tcfm-option select, 
.tcfm-option input[type="color"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    height: 40px;
    cursor: pointer;
}

.tcfm-option input[type="color"] {
    padding: 3px;
    width: 100%;
}

.tcfm-preview-output {
    min-height: 200px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 35px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.tcfm-preview-text {
    font-size: 32px;
    line-height: 1.6;
    text-align: center;
    transition: all 0.3s;
    font-weight: 500;
}

.tcfm-preview-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tcfm-preview-footer .tcfm-font-url {
    word-break: break-all;
    color: #2271b1;
    font-family: monospace;
    font-size: 13px;
}

@media (max-width: 768px) {
    .tcfm-preview-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tcfm-options {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .tcfm-preview-output {
        padding: 20px;
    }
    
    .tcfm-preview-text {
        font-size: 28px;
    }
}