/* 字体预览插件前端样式 */
.font-preview-container {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: sans-serif;
}

.font-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.font-preview-header h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
}

.free-tag {
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.preview-input {
    margin-bottom: 20px;
}

.preview-input p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.preview-text-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.font-display-area {
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    min-height: 80px;
}

.font-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.license-info p, .font-details p {
    margin: 0;
    font-size: 16px;
}

.license-info p:first-child, .font-details p:first-child {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.usage-permissions {
    margin-bottom: 20px;
}

.usage-permissions p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.permission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permission-tag {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.download-section {
    text-align: center;
}

.download-button {
    display: inline-block;
    background: #2196F3;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.download-section p {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .font-info {
        grid-template-columns: 1fr;
    }
    
    .font-preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .permission-tags {
        justify-content: center;
    }
}