*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Yu Gothic UI,Hiragino Sans,Microsoft YaHei,sans-serif;background:#0f1522;color:#dfe6f3}.app{max-width:1600px;margin:0 auto;padding:16px 20px 60px}header h1{margin:8px 0 4px;font-size:22px}.module-nav{display:flex;gap:10px;margin:14px 0 12px}.module-btn{font-size:17px;font-weight:600;padding:10px 22px;background:#1a2334;border:1px solid #2e3c55;border-radius:10px;color:#9fb0cc}.module-btn:hover{color:#fff;background:#243049}.module-btn.active{background:#2563b6;border-color:#2f7be0;color:#fff}.sub-nav{display:flex;gap:6px;border-bottom:1px solid #2e3c55;margin-bottom:14px}.site-info{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.badge{background:#1d2738;border:1px solid #2e3c55;border-radius:6px;padding:3px 10px;font-size:13px}.badge small{color:#8fa0bd;margin-left:4px}nav{display:flex;gap:6px;border-bottom:1px solid #2e3c55;margin-bottom:14px}.tab{background:none;border:none;color:#9fb0cc;padding:9px 16px;font-size:15px;cursor:pointer;border-bottom:2px solid transparent}.tab.active{color:#fff;border-bottom-color:#4da3ff}.tab:hover{color:#fff}.cards{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px}.card{background:#1a2334;border:1px solid #2e3c55;border-radius:10px;padding:12px 18px;min-width:130px;display:flex;flex-direction:column}.card b{font-size:24px}.card span{color:#8fa0bd;font-size:13px;margin-top:2px}.card.win-i b{color:#4da3ff}.card.win-m b{color:#ffb44d}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}input[type=text],input:not([type]),select{background:#1a2334;color:#dfe6f3;border:1px solid #2e3c55;border-radius:6px;padding:7px 10px;font-size:14px;min-width:200px}select{min-width:unset}button{background:#243049;color:#dfe6f3;border:1px solid #344664;border-radius:6px;padding:7px 14px;font-size:14px;cursor:pointer}button:hover:not(:disabled){background:#2e3c5c}button:disabled{opacity:.5;cursor:default}button.primary{background:#2563b6;border-color:#2f7be0}button.primary:hover:not(:disabled){background:#2d74d4}.seg{display:flex}.seg button{border-radius:0}.seg button:first-child{border-radius:6px 0 0 6px}.seg button:last-child{border-radius:0 6px 6px 0}.seg button.active{background:#2563b6;border-color:#2f7be0;color:#fff}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:7px 10px;border-bottom:1px solid #232e44;text-align:left}th{color:#8fa0bd;font-weight:600;white-space:nowrap;position:sticky;top:0;background:#0f1522}tr:hover td{background:#161f31}.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.pos{color:#5dd97c}.neg{color:#ff7d7d}.dim{color:#8fa0bd}.small{font-size:12px}.method{font-size:12px;padding:2px 8px;border-radius:10px;white-space:nowrap;background:#243049;border:1px solid #344664}.method.exact{color:#5dd97c;border-color:#2f6b42}.method.code{color:#4da3ff;border-color:#2c5d96}.method.fuzzy{color:#ffb44d;border-color:#8a6328}.method.未匹配{color:#8fa0bd}.used-tag{font-size:11px;color:#ffb44d;border:1px solid #8a6328;border-radius:4px;padding:0 4px;margin-left:6px}.link{color:#cfe0ff;cursor:pointer}.link:hover{text-decoration:underline}.pager{display:flex;gap:12px;align-items:center;justify-content:center;padding:14px}.modal-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#05080eb3;display:flex;align-items:center;justify-content:center;z-index:10}.modal{background:#161f31;border:1px solid #2e3c55;border-radius:12px;width:min(720px,94vw);max-height:86vh;overflow-y:auto;padding:16px 20px}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.modal-head h3{margin:6px 0 10px;font-size:16px}.chart-box{margin:8px 0 14px}.settings section{background:#1a2334;border:1px solid #2e3c55;border-radius:10px;padding:6px 18px 12px;margin-bottom:14px;max-width:640px}.settings h2{font-size:15px;color:#9fb0cc}.switch-row{display:flex;gap:12px;align-items:flex-start;cursor:pointer}.switch-row input[type=checkbox]{width:18px;height:18px;margin-top:3px;accent-color:#2f7be0}.switch-row p{margin:4px 0 0}.master input.cell,.master textarea.cell{min-width:110px;width:100%;padding:4px 8px;font-size:13px;font-family:inherit}.master textarea.cell{background:#1a2334;color:#dfe6f3;border:1px solid #2e3c55;border-radius:6px;resize:none;overflow:hidden;min-height:26px;line-height:1.4;box-sizing:border-box;field-sizing:content}.master input.cell.wide{min-width:240px}.master input.cell.narrow,.master th.narrow{min-width:60px;width:70px}.master input.cell.narrow2{min-width:90px;width:100px}.master select.wide{min-width:260px;max-width:340px}.master button.mini{padding:2px 6px;font-size:12px;margin-left:4px}.picker{position:relative;min-width:280px}.picker-list{position:absolute;z-index:20;left:0;right:0;top:100%;background:#1a2334;border:1px solid #344664;border-radius:6px;max-height:260px;overflow-y:auto;box-shadow:0 6px 18px #00000080}.picker-item{padding:6px 10px;cursor:pointer;display:flex;flex-direction:column;gap:2px}.picker-item:hover{background:#2e3c5c}.picker-name{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.picker-list .picker-name{max-width:unset;white-space:normal;word-break:break-word;overflow:visible}.ref-info{min-width:260px}.table-scroll{overflow-x:auto}.table-scroll table{min-width:1500px}.calc-form{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}.calc-form label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#8fa0bd}.calc-preview{display:flex;gap:14px;flex-wrap:wrap;align-items:center;background:#1a2334;border:1px solid #2e3c55;border-radius:8px;padding:10px 14px;font-size:14px}.best-row td{background:#2ea05a1f}.excel-bar{display:inline-flex;gap:8px;align-items:center}button.star{background:none;border:none;font-size:17px;padding:0 4px;color:#5a6b8a;cursor:pointer}button.star:hover{color:#ffd34d;background:none}button.star.on{color:#ffd34d}.badge.flash{color:#5dd97c;border-color:#2f6b42;animation:flashIn .4s ease}@keyframes flashIn{0%{background:#2ea05a66}to{background:#1d2738}}.ref-info .expect.pos{color:#5dd97c}.ref-info .expect.neg{color:#ff7d7d}.master select{min-width:110px;padding:4px 6px;font-size:13px}.master td{padding:4px 6px}.master .center{text-align:center}.master .nowrap{white-space:nowrap}.master button{padding:4px 10px;font-size:13px;margin-right:6px}.master button.danger{border-color:#8a3a3a;color:#ff9c9c}.master button.danger:hover{background:#4a2430}.disabled-row td{opacity:.45}.log{background:#0a0f1a;border:1px solid #232e44;border-radius:8px;padding:12px;height:320px;overflow-y:auto;font-size:13px;font-family:Consolas,monospace;white-space:pre-wrap}.watch{margin-top:24px;border-top:1px solid #2e3c55;padding-top:8px}.watch h2{font-size:16px}.watch .narrow-input{min-width:70px;width:70px;margin-left:6px}.watch-status{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 14px}.badge.neg{color:#ff7d7d;border-color:#8a3a3a}table.small{font-size:13px}table.small td,table.small th{padding:5px 8px}.orders-table{table-layout:fixed;width:100%}.orders-table th{white-space:normal;word-break:break-word}.orders-table td{white-space:normal;word-break:break-word;vertical-align:top;padding-top:6px}.orders-table input.cell,.orders-table input.cell.wide,.orders-table input.cell.narrow,.orders-table input.cell.narrow2,.orders-table textarea.cell,.orders-table textarea.cell.wide,.orders-table select{min-width:unset;width:100%}.orders-table .ref-info{min-width:unset}.orders-table .picker{min-width:unset;width:100%}.orders-table .picker-name{max-width:unset;white-space:normal;word-break:break-word}.orders-table th:nth-child(1){width:28px}.orders-table th:nth-child(2){width:30px}.orders-table th:nth-child(3){width:5%}.orders-table th:nth-child(4){width:110px}.orders-table th:nth-child(5){width:6%}.orders-table th:nth-child(6){width:6%}.orders-table th:nth-child(7){width:10%}.orders-table th:nth-child(8){width:44px}.orders-table th:nth-child(9){width:78px}.orders-table th:nth-child(10){width:82px}.orders-table th:nth-child(11){width:6%}.orders-table th:nth-child(12){width:74px}.orders-table th:nth-child(13){width:13%}.orders-table th:nth-child(14){width:48px}.orders-table th:nth-child(15){width:5%}.orders-table th:nth-child(16){width:52px}.orders-table td:nth-child(16){white-space:normal;text-align:center}.orders-table td:nth-child(16) button{display:block;width:100%;margin:0 0 4px;padding:4px;font-size:12px}.orders-table td:nth-child(16) button:last-child{margin-bottom:0}.table-scroll .orders-table{min-width:0}.orders-table.history-orders th:nth-child(1){width:36px}.orders-table.history-orders th:nth-child(2){width:12%}.orders-table.history-orders th:nth-child(3){width:100px}.orders-table.history-orders th:nth-child(4){width:9%}.orders-table.history-orders th:nth-child(5){width:10%}.orders-table.history-orders th:nth-child(6){width:18%}.orders-table.history-orders th:nth-child(7){width:44px}.orders-table.history-orders th:nth-child(8){width:80px}.orders-table.history-orders th:nth-child(9){width:84px}.orders-table.history-orders th:nth-child(10){width:9%}.orders-table.history-orders th:nth-child(11){width:74px}.orders-table.history-orders th:nth-child(12){width:12%}@media (max-width: 640px){.app{padding:10px 10px 48px}header h1{font-size:18px}.module-nav{gap:6px;margin:8px 0 10px}.module-btn{font-size:15px;padding:8px 14px;border-radius:8px}nav,.sub-nav{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}nav::-webkit-scrollbar,.sub-nav::-webkit-scrollbar{display:none}.tab{padding:8px 12px;font-size:14px;white-space:nowrap;flex:0 0 auto}.site-info{gap:6px}.badge{font-size:12px;padding:3px 8px}.cards{gap:8px}.card{min-width:0;flex:1 1 calc(50% - 4px);padding:10px 12px}.card b{font-size:19px}.card span{font-size:12px}.toolbar{gap:8px}input[type=text],input:not([type]){min-width:0}.toolbar>input[type=text],.toolbar>input:not([type]){flex:1 1 100%;width:100%}.toolbar>select{flex:1 1 auto;min-width:0}.toolbar>button{flex:0 0 auto}.table-scroll{-webkit-overflow-scrolling:touch}table{font-size:13px}th,td{padding:6px 8px}.table-scroll .card-table{min-width:0}.sale-detail{display:none}.picker,.ref-info,.calc-preview{min-width:0}.calc-form{gap:10px}.calc-form label{flex:1 1 calc(50% - 5px)}.settings section{padding:6px 12px 12px}.modal{padding:14px;width:min(720px,96vw)}.log{height:240px}.card-table thead{display:none}.card-table,.card-table tbody,.card-table tr,.card-table td{display:block;width:100%}.card-table tr{position:relative;background:#1a2334;border:1px solid #2e3c55;border-radius:10px;margin-bottom:10px;padding:8px 12px}.card-table tr:hover td{background:none}.card-table td{border:none;padding:4px 0;display:flex;gap:12px;justify-content:space-between;align-items:center;text-align:right;min-height:0}.card-table td:before{content:attr(data-label);color:#8fa0bd;font-size:12px;text-align:left;flex:0 0 auto;white-space:nowrap}.card-table td:empty{display:none}.card-table .cell-title{display:block;text-align:left;font-weight:600;padding:2px 0 6px;border-bottom:1px solid #232e44;margin-bottom:4px}.card-table .cell-title:before{display:none}.card-table .cell-title .picker-name{max-width:unset;white-space:normal}.card-table .cell-block{display:block;text-align:left;padding:4px 0}.card-table .cell-block:before{display:block;content:attr(data-label);color:#8fa0bd;font-size:11px;margin-bottom:2px;white-space:nowrap}.card-table .cell-block .picker-name{max-width:unset;white-space:normal}.card-table .cell-block input,.card-table .cell-block select,.card-table .cell-block textarea,.card-table .cell-block .cell{width:100%;min-width:0}.card-table .cell-corner{position:absolute;top:6px;right:8px;width:auto;padding:0;display:flex;gap:6px;align-items:center;min-height:0}.card-table .cell-corner:before{display:none}.card-table .cell-actions{justify-content:flex-end;padding-top:6px}.card-table .cell-actions:before{display:none}.card-table .cell-star{position:absolute;top:6px;right:8px;width:auto;padding:0;min-height:0}.card-table .cell-star:before{display:none}}
