/* 文本输入区域 */
.text-input-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.text-input-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.text-input-actions {
    display: flex;
    gap: 5px;
}

.text-input-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
}

.text-input-area {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

.text-input-area:focus {
    outline: none;
    border-color: #667eea;
}

/* 对比按钮区域 */
.compare-section {
    text-align: center;
    margin-bottom: 25px;
}

.compare-section .btn {
    min-width: 200px;
    padding: 12px 30px;
    font-size: 16px;
}

/* 对比选项 */
.compare-options {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.compare-options-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.option-item label {
    cursor: pointer;
    margin: 0;
    user-select: none;
    font-size: 14px;
}

/* 对比结果区域 */
.diff-result {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: none;
}

.diff-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.diff-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.diff-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-added {
    color: #48bb78;
}

.stat-removed {
    color: #f56565;
}

.stat-modified {
    color: #ed8936;
}

/* 对比视图 */
.diff-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.diff-panel {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.diff-panel-header {
    background: #f7fafc;
    padding: 10px 15px;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.diff-panel-content {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
    background: #fff;
}

.diff-line {
    padding: 2px 5px;
    white-space: pre-wrap;
    word-break: break-all;
}

.diff-line-added {
    background: #c6f6d5;
    color: #22543d;
}

.diff-line-removed {
    background: #fed7d7;
    color: #742a2a;
}

.diff-line-modified {
    background: #feebc8;
    color: #7c2d12;
}

.diff-line-unchanged {
    color: #4a5568;
}

/* 统一视图 */
.diff-unified {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.diff-unified-content {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
    background: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .diff-view {
        grid-template-columns: 1fr;
    }
    
    .text-input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .diff-stats {
        flex-direction: column;
        gap: 5px;
    }
}