*{box-sizing:border-box}
body{margin:0;font-family:"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;background:#f5f7fb;color:#1f2937;font-weight:400;line-height:1.5}
.container{max-width:1400px;margin:0 auto;padding:16px 16px 92px}

/* 头部 */
.header{background:#fff;padding:18px;border-radius:10px;box-shadow:0 6px 16px rgba(0,0,0,.05);margin-bottom:12px;border:1px solid #eef2f7}
.header h1{margin:0 0 6px;font-size:22px;color:#0f172a;font-weight:600;letter-spacing:-0.5px}
.header .sub{margin:0;color:#6b7280;font-size:14px;font-weight:400}

/* 工具栏（列勾选） */
.toolbar{background:#fff;padding:10px;border-radius:10px;border:1px solid #eaeef5;box-shadow:0 4px 12px rgba(0,0,0,.04);margin-bottom:12px;overflow:auto}
.cols{display:flex;gap:14px;flex-wrap:wrap}
.cols label{display:flex;align-items:center;gap:6px;font-size:13px;color:#374151;border:1px solid #e5e7eb;background:#fafafa;padding:6px 10px;border-radius:8px;cursor:pointer;font-weight:500}
.cols input{transform:scale(1.1)}

/* 查询区域 */
.search{background:#fff;padding:14px;border-radius:10px;box-shadow:0 6px 16px rgba(0,0,0,.05);margin-bottom:12px;border:1px solid #eef2f7;display:block}
.search label{display:block;margin-bottom:8px;font-weight:700;color:#374151}
#productInput{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;resize:vertical;font-family:"JetBrains Mono","Fira Code",Consolas,Monaco,monospace;background:#fafafa;font-size:13px;line-height:1.4}
.actions{margin-top:10px;display:flex;gap:10px}
button{padding:10px 16px;border:none;border-radius:8px;background:#2563eb;color:#fff;font-weight:600;cursor:pointer;box-shadow:0 6px 16px rgba(37,99,235,.22);font-size:14px;letter-spacing:0.3px}
button.secondary{background:#6b7280}
button.warning{background:#f59e0b}
button.success{background:#10b981}
button.danger{background:#ef4444}
button.ghost{background:#fff;color:#374151;border:1px solid #e5e7eb}

/* 结果表格（固定行高与列宽） */
.results{background:#fff;padding:8px;border-radius:10px;box-shadow:0 6px 16px rgba(0,0,0,.05);border:1px solid #eef2f7}
.results .table-wrap{overflow:auto;max-height:64vh;border-radius:8px;border:1px solid #eef2f7}
#resultTable{border-collapse:collapse;width:100%;min-width:1400px;table-layout:fixed}
#resultTable thead{position:sticky;top:0;background:linear-gradient(135deg,#4f46e5 0%,#6366f1 50%,#8b5cf6 100%);color:#fff;box-shadow:0 2px 8px rgba(79,70,229,.2)}
#resultTable th,#resultTable td{padding:0 8px;border-bottom:1px solid #f1f5f9;text-align:center;vertical-align:middle;height:32px;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
#resultTable th{font-weight:600;letter-spacing:0.5px;text-transform:uppercase;font-size:12px;text-align:center}
#resultTable tbody tr:nth-child(even){background:#f8fafc}
#resultTable tbody tr:hover{background:#eef2ff}
.hidden{display:none}

/* 指定每列固定宽度（按截图风格近似） */
#resultTable th:nth-child(1),#resultTable td:nth-child(1){width:60px;}
#resultTable th:nth-child(2),#resultTable td:nth-child(2){width:180px}
#resultTable th:nth-child(3),#resultTable td:nth-child(3){width:70px;}
#resultTable th:nth-child(4),#resultTable td:nth-child(4){width:100px}
#resultTable th:nth-child(5),#resultTable td:nth-child(5){width:80px}
#resultTable th:nth-child(6),#resultTable td:nth-child(6){width:80px}
#resultTable th:nth-child(7),#resultTable td:nth-child(7){width:80px}
#resultTable th:nth-child(8),#resultTable td:nth-child(8){width:80px}
#resultTable th:nth-child(9),#resultTable td:nth-child(9){width:80px}
#resultTable th:nth-child(10),#resultTable td:nth-child(10){width:80px}
#resultTable th:nth-child(11),#resultTable td:nth-child(11){width:100px}
#resultTable th:nth-child(12),#resultTable td:nth-child(12){width:110px}
#resultTable th:nth-child(13),#resultTable td:nth-child(13){width:100px}
#resultTable th:nth-child(14),#resultTable td:nth-child(14){width:90px}
#resultTable th:nth-child(15),#resultTable td:nth-child(15){width:110px}
#resultTable th:nth-child(16),#resultTable td:nth-child(16){width:90px}
#resultTable th:nth-child(17),#resultTable td:nth-child(17){width:120px}
#resultTable th:nth-child(18),#resultTable td:nth-child(18){width:140px}
#resultTable th:nth-child(19),#resultTable td:nth-child(19){width:100px}
#resultTable th:nth-child(20),#resultTable td:nth-child(20){width:100px}
#resultTable th:nth-child(21),#resultTable td:nth-child(21){width:120px}
#resultTable th:nth-child(22),#resultTable td:nth-child(22){width:80px}

/* 可编辑单元格样式（与其它一致，仅保留聚焦高亮） */
.editable{outline:none;background:transparent}
.editable:focus{box-shadow:inset 0 0 0 2px rgba(59,130,246,.35)}

/* 底部操作条 */
.dock{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -6px 16px rgba(0,0,0,.06)}
.dock-inner{max-width:1400px;margin:0 auto;display:flex;gap:12px;align-items:center;justify-content:center;padding:12px}

/* 页脚 */
.footer{text-align:center;color:#9aa3af;padding:12px 0;margin-top:8px;font-size:13px;font-weight:400}
