.jf-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.jf-left,
.jf-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jf-section {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.jf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.jf-section-header h3 {
    font-size: 0.95em;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jf-section-header h3 i {
    color: #3498db;
}

.jf-actions-group {
    display: flex;
    gap: 6px;
}

/* 文本域 */
.jf-textarea {
    width: 100%;
    min-height: 320px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    color: #2c3e50;
}

.jf-textarea:focus {
    border-color: #3498db;
    background: #fff;
}

.jf-output {
    background: #f8f9fa;
}

/* 按钮 */
.jf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.jf-btn-sm {
    padding: 6px 12px;
    font-size: 0.8em;
}

.jf-btn-primary {
    background: #3498db;
    color: #fff;
}

.jf-btn-primary:hover:not(:disabled) {
    background: #2980b9;
}

.jf-btn-secondary {
    background: #6c5ce7;
    color: #fff;
}

.jf-btn-secondary:hover:not(:disabled) {
    background: #5b4cc4;
}

.jf-btn-success {
    background: #27ae60;
    color: #fff;
}

.jf-btn-success:hover:not(:disabled) {
    background: #219a52;
}

.jf-btn-outline {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.jf-btn-outline:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #3498db;
    color: #3498db;
}

.jf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 功能按钮网格 */
.jf-btn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 统计栏 */
.jf-stats-bar {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.8em;
    color: #718096;
}

.jf-stats-bar span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 提示区 */
.jf-tips {
    background: #fff;
}

.jf-tips h4 {
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jf-tips h4 i {
    color: #f39c12;
}

.jf-tip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.jf-tip-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 3px solid #3498db;
}

.jf-tip-item strong {
    display: block;
    font-size: 0.85em;
    color: #2c3e50;
    margin-bottom: 3px;
}

.jf-tip-item p {
    font-size: 0.75em;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 错误提示 */
.jf-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    color: #991b1b;
    font-size: 0.85em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.jf-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    color: #065f46;
    font-size: 0.85em;
}

/* 响应式 */
@media (max-width: 900px) {
    .jf-container {
        grid-template-columns: 1fr;
    }
    .jf-btn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .jf-tip-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .jf-btn-grid {
        grid-template-columns: 1fr;
    }
    .jf-stats-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
}
