/* ============================================================
   textdiff.css - /textdiff/ 文本对比结果样式
   ============================================================ */

.diff-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
}

.diff-table th,
.diff-table td {
    border: 1px solid #ddd;
    padding: 3px 8px;
    vertical-align: top;
    word-wrap: break-word;
}

.diff-table thead th {
    background: #f5f5f5;
    text-align: center;
}

.diff-table th.diff-num,
.diff-table td.diff-num {
    width: 46px;
    text-align: right;
    color: #999;
    background: #fafafa;
    user-select: none;
}

.diff-table td.diff-num:empty {
    background: #f0f0f0;
}

/* 未变更行 */
.diff-table tr.diff-eq .diff-text {
    color: #333;
}

/* 删除 / 新增 行标注 */
del.diff-del-line,
ins.diff-ins-line {
    display: block;
    text-decoration: none;
    border-radius: 2px;
}

del.diff-del-line {
    background: #ffe3e3;
    color: #b30000;
}

ins.diff-ins-line {
    background: #dcffe4;
    color: #006600;
}

/* 行内差异 */
.diff-table td del {
    background: #ffc4c4;
    color: #900;
    text-decoration: line-through;
    border-radius: 2px;
    padding: 0 1px;
}

.diff-table td ins {
    background: #b8f0c3;
    color: #064;
    text-decoration: none;
    border-radius: 2px;
    padding: 0 1px;
}

/* 统计摘要 */
.diff-summary {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-left: 3px solid #5cb85c;
    color: #555;
    font-size: 13px;
}
