/* 文本对比工具样式 */

/* 工具标题区 */
.tool-header {
    background-color: #ebf5fb;
    padding: 40px 0;
    border-bottom: 1px solid #d6eaf8;
}

.tool-desc {
    font-size: 18px;
    color: #34495e;
    margin-top: 10px;
}

/* 工具主体区 */
.tool-body {
    padding: 40px 0;
}

/* 对比设置 */
.comparison-settings {
    margin-bottom: 25px;
}

.settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.setting-group {
    flex: 1;
    min-width: 250px;
}

.setting-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input {
    width: 16px;
    height: 16px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* 文本输入区 */
.text-inputs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.text-input-group {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.text-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.text-input {
    flex: 1;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.text-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.text-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

/* 对比分隔线 */
.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.comparison-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e9ecef;
}

.divider-text {
    position: relative;
    z-index: 1;
    background-color: #fff;
    padding: 0 10px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 对比结果 */
.comparison-results {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 20px;
}

.results-title {
    margin-bottom: 15px;
    color: #2c3e50;
}

.results-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.stat-label {
    font-weight: 500;
    color: #2c3e50;
}

.stat-value {
    color: #34495e;
}

.results-display {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.result-section {
    flex: 1;
    min-width: 300px;
}

.result-section h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 16px;
}

.result-content {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    min-height: 200px;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* 差异样式 */
.added {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    padding: 0 2px;
    border-radius: 2px;
}

.removed {
    background-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
    padding: 0 2px;
    border-radius: 2px;
    text-decoration: line-through;
}

.results-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 示例文本区 */
.example-texts {
    margin-top: 30px;
}

.examples-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.example-item {
    flex: 1;
    min-width: 300px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.example-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
}

.example-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* 使用说明区 */
.tool-guide {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.guide-content {
    margin-top: 20px;
}

.guide-item {
    margin-bottom: 30px;
}

.guide-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.guide-item p {
    margin-bottom: 10px;
    color: #34495e;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .comparison-divider {
        width: 100%;
        height: 30px;
    }

    .comparison-divider::before {
        width: 100%;
        height: 1px;
        top: 50%;
        left: 0;
    }

    .text-input-group {
        flex: 1;
        min-width: 200px;
        display: flex;
        flex-direction: column;
    }

    .example-item {
        flex: 1;
        min-width: 200px;
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 4px;
    }
    .setting-group {
    flex: 1;
    min-width: 200px;
}
}