* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        h1 {
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .input-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        @media (max-width: 768px) {
            .input-section {
                grid-template-columns: 1fr;
            }
        }
        
        .text-area {
            margin-bottom: 15px;
        }
        
        .text-area label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #2c3e50;
        }
        
        textarea {
            width: 100%;
            min-height: 150px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: 'Microsoft YaHei', sans-serif;
            font-size: 14px;
            resize: vertical;
        }
        
        .button-group {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        button {
            padding: 10px 15px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-family: 'Microsoft YaHei', sans-serif;
            font-size: 14px;
            transition: background-color 0.3s;
        }
        
        button:hover {
            background-color: #2980b9;
        }
        
        #pasteBtn {
            background-color: #2ecc71;
        }
        
        #pasteBtn:hover {
            background-color: #27ae60;
        }
        
        .results {
            margin-bottom: 20px;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 4px;
            border: 1px solid #eee;
        }
        
        .accuracy {
            font-size: 18px;
            font-weight: bold;
            color: #3498db;
            margin-bottom: 15px;
            padding: 10px;
            background-color: #edf7fd;
            border-radius: 4px;
            border: 1px solid #d6eaf8;
            user-select: all;
        }
        
        .stats {
            display: flex;
            gap: 20px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .color-box {
            width: 20px;
            height: 20px;
            border-radius: 3px;
        }
        
        .replace-color {
            background-color: #ffcccc;
        }
        
        .delete-color {
            background-color: #ffffcc;
        }
        
        .insert-color {
            background-color: #ccffcc;
        }
        
        /* 表格排序样式 */
        #statsTable {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            table-layout: fixed;
            overflow: hidden;
        }
        
        #statsTable th,
        #statsTable td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #eee;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 80px; /* 最小宽度 */
        }
        
        /* 为每列设置初始宽度 */
        #statsTable th:nth-child(1) { width: 25%; } /* 文件名 */
        #statsTable th:nth-child(2) { width: 15%; } /* 准确率 */
        #statsTable th:nth-child(3) { width: 10%; } /* 插入数 */
        #statsTable th:nth-child(4) { width: 10%; } /* 删除数 */
        #statsTable th:nth-child(5) { width: 10%; } /* 替换数 */
        #statsTable th:nth-child(6) { width: 30%; } /* 时间 */
        
        #statsTable th {
            background-color: #f9f9f9;
            font-weight: bold;
            color: #2c3e50;
            position: relative;
        }
        
        /* 可点击表头样式 */
        .sortable {
            cursor: pointer;
            position: relative;
            padding-right: 20px;
        }
        
        .sortable:hover {
            background-color: #f0f0f0;
        }
        
        /* 可调整列宽样式 */
        .resizable {
            resize: horizontal;
            overflow: hidden;
        }
        
        /* 列宽调整手柄 */
        #statsTable th {
            position: relative;
        }
        
        #statsTable th::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 5px;
            height: 100%;
            cursor: col-resize;
            background-color: transparent;
        }
        
        #statsTable th:hover::after {
            background-color: #3498db;
        }
        
        /* 调整列宽时的样式 */
        .resizing {
            cursor: col-resize !important;
            user-select: none;
        }
        
        .resizing::after {
            background-color: #2980b9 !important;
        }
        
        /* 排序指示器样式 */
        .sort-indicator {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            font-weight: bold;
            color: #3498db;
            margin-left: 5px;
        }
        
        .comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        @media (max-width: 768px) {
            .comparison {
                grid-template-columns: 1fr;
            }
        }
        
        .comparison-text {
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 4px;
            border: 1px solid #eee;
            min-height: 200px;
            white-space: pre-wrap;
            font-family: 'Microsoft YaHei', sans-serif;
        }
        
        .legend {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #eee;
            flex-wrap: wrap;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 15px;
            border-top: 1px solid #eee;
            color: #7f8c8d;
            font-size: 14px;
        }
        
        .replace {
            background-color: #ffcccc;
            padding: 0 2px;
            border-radius: 3px;
        }
        
        .delete {
            background-color: #ffffcc;
            padding: 0 2px;
            border-radius: 3px;
        }
        
        .insert {
            background-color: #ccffcc;
            padding: 0 2px;
            border-radius: 3px;
        }
        .replace {
            background-color: #ffcccc;
            padding: 0 2px;
            border-radius: 3px;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }
        
        .delete {
            background-color: #ffffcc;
            padding: 0 2px;
            border-radius: 3px;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }
        
        .insert {
            background-color: #ccffcc;
            padding: 0 2px;
            border-radius: 3px;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }
        
        .replace:hover,
        .delete:hover,
        .insert:hover {
            transform: scale(1.1);
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            z-index: 10;
        }
        
        .replace.active,
        .delete.active,
        .insert.active {
            outline: 2px solid #3498db;
            outline-offset: 1px;
            font-weight: bold;
        }
        
        /* 拖放区域样式 */
        .drop-area {
            position: relative;
            display: inline-block;
        }
        
        .drop-hint {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 12px;
            color: #666;
            margin-top: 5px;
            opacity: 0.7;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .drop-target {
            transition: all 0.3s ease;
        }
        
        .drop-target.drag-over {
            background-color: #e74c3c;
            transform: scale(1.05);
            box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
        }
        
        .drop-target.drag-over:hover {
            background-color: #c0392b;
        }
        
        /* 多文件导入相关样式 */
        .file-info {
            margin: 10px 0;
            padding: 10px;
            background-color: #f0f0f0;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .processing-status {
            color: #3498db;
            font-style: italic;
        }
        
        .processing-complete {
            color: #2ecc71;
        }
        
        .processing-error {
            color: #e74c3c;
        }
        
        /* 进度条样式 */
        .progress-container {
            margin: 10px 0;
        }
        
        .progress-bar {
            width: 100%;
            height: 20px;
            background-color: #f0f0f0;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background-color: #3498db;
            width: 0%;
            transition: width 0.3s ease;
            text-align: center;
            color: white;
            font-size: 12px;
            line-height: 20px;
        }
        
        /* 多文件结果列表样式 */
        .results-list {
            margin-top: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
            max-height: 300px;
            overflow-y: auto;
        }
        
        .result-item {
            padding: 10px;
            margin: 5px 0;
            background-color: #f9f9f9;
            border-radius: 3px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .result-item.success {
            background-color: #e8f5e8;
            border-left: 4px solid #2ecc71;
        }
        
        .result-item.error {
            background-color: #ffebee;
            border-left: 4px solid #e74c3c;
        }
        
        .file-results {
            margin-top: 5px;
            font-size: 0.85em;
            color: #666;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 5px;
        }
        
        .file-results div {
            padding: 2px 5px;
            background-color: #f9f9f9;
            border-radius: 3px;
        }
        
        /* 统计数据区域样式 */
        #statsTableContainer {
            margin-top: 20px;
        }
        
        .stats-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .stats-header h3 {
            margin: 0;
            color: #2c3e50;
        }
        
        .table-controls {
            display: flex;
            gap: 10px;
        }
        
        .table-control-btn {
            background-color: #3498db;
            padding: 8px 12px;
            font-size: 12px;
            transition: background-color 0.3s ease;
        }
        
        .table-control-btn:hover {
            background-color: #2980b9;
        }
        
        .clear-data-btn {
            background-color: #e74c3c;
            padding: 8px 12px;
            font-size: 12px;
            transition: background-color 0.3s ease;
        }
        
        .clear-data-btn:hover {
            background-color: #c0392b;
        }
        
        /* 表格样式 */
        #statsTable {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }
        
        #statsTable th,
        #statsTable td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        
        #statsTable th {
            background-color: #f2f2f2;
            font-weight: bold;
        }
        
        #statsTable tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        .common-errors-row {
            background-color: #edf7fd !important;
        }
        
        /* 常见错误文字统计样式 */
        .common-errors-container {
            margin-bottom: 15px;
            padding: 10px;
            background-color: #edf7fd;
            border: 1px solid #b3d9f2;
            border-radius: 4px;
        }
        
        .common-errors-stats {
            font-size: 14px;
            color: #2c3e50;
        }
        
        .common-errors-stats strong {
            margin-right: 8px;
            color: #1a3b5c;
        }