/* 前端字体预览样式 */
.font-view-bg {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #f9f9f9;
    font-family: inherit;
}

.font-preview-area {
    text-align: center;
    margin-bottom: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 4px;
    padding: 30px;
    border: 1px solid #eee;
}

.font-preview-display {
    line-height: 1.4;
    word-break: break-all;
    text-align: center;
    font-family: inherit;
    transition: all 0.3s ease;
}

.fontprew__tr.fontprew__td1 {
    margin-bottom: 15px;
}

.fontprew__input input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.fontprew__tr.fontprew__td2 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.colorPicker {
    position: relative;
}

.colorPicker label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.showColor {
    display: inline-block;
    width: 35px;
    height: 25px;
    border: 2px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showColor:hover {
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.color-input {
    display: none;
}

.fontprew__fontweight label,
.fontprew__fontsize label {
    font-size: 14px;
    margin-right: 5px;
}

.fontprew__fontweightDate,
.fontsize {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 120px;
}

.fontprew__operBtn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fontprew__operBtn:hover {
    background: #005a87 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

select:focus,
input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

@media (max-width: 768px) {
    .fontprew__tr.fontprew__td2 {
        flex-direction: column;
        align-items: stretch;
    }

    .fontprew__tr.fontprew__td2 > div {
        margin-bottom: 10px;
    }
}