:root{font-family:"Microsoft YaHei",system-ui;color:#18211d;background:#f3f6f4}*{box-sizing:border-box}body{margin:0}header{height:92px;background:#10261d;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(30px,calc((100% - 1120px)/2))}h1{font-size:25px;margin:0 0 6px}header p{margin:0;color:#b7c9bf;font-size:14px}main{max-width:1120px;margin:28px auto;padding:0 20px}.tab{display:none}.tab.active{display:block}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.card{background:#fff;border:1px solid #dde5e0;border-radius:16px;padding:25px;box-shadow:0 8px 30px #1436220b}.wide{max-width:850px;margin:auto}h2{font-size:19px;margin:0 0 20px}h3{border-top:1px solid #e7ece9;padding-top:20px;margin-top:25px}.drop{height:320px;border:2px dashed #b9c8c0;border-radius:12px;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;background:#f8faf9}.drop:hover,.drop.dragging{border-color:#11a564;background:#eef9f3}.drop input{display:none}.drop img{max-width:100%;max-height:100%;display:none}.primary,.ghost{border:0;border-radius:9px;padding:12px 20px;font-weight:700;cursor:pointer}.primary{background:#11a564;color:white;width:100%;margin-top:18px}.primary:disabled{background:#98afa3}.ghost{background:#e8f1ec;color:#174c35;width:auto;margin:0}.buttons{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.buttons .primary{width:auto;margin:0}.result{min-height:460px;max-height:calc(100vh - 150px);overflow:auto}.empty{height:320px;display:grid;place-items:center;text-align:center;line-height:1.8;color:#8b9690}.empty small{color:#a2aaa6}.hidden{display:none!important}.summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;margin-bottom:12px;background:#f1f8f4;border-radius:10px}.summary strong{color:#e85d21;font-size:20px;white-space:nowrap}.device-card{border:1px solid #dfe8e2;border-radius:13px;padding:15px;margin:12px 0;background:#fcfdfc}.device-head{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#637168;font-size:13px}.device-head span{font-weight:800;color:#118451;background:#eaf7f0;border-radius:999px;padding:4px 9px}.device-model{font-size:21px;font-weight:900;margin-top:8px}.device-reason,.device-candidates,.matched-model{font-size:13px;color:#69766e;line-height:1.6;margin-top:6px}.device-price{font-size:37px;font-weight:900;color:#e85d21;margin-top:10px}.search-label{display:block;font-size:12px;color:#7d8982;margin-top:12px}.model-search{width:100%;border:1px solid #cfd9d3;border-radius:8px;padding:9px 10px;margin-top:5px;font:inherit}.price-options,.search-results{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.candidate{border:1px solid #dbe5df;background:white;color:#536159;border-radius:8px;padding:7px 9px;cursor:pointer;text-align:left;width:auto;font-size:12px}.candidate:hover{border-color:#11a564;background:#eff9f4}.settings{margin-top:18px;border-top:1px solid #e2e8e4;padding-top:16px}.settings label{display:block;font-size:13px;margin:10px 0 5px}.settings input,.settings textarea{width:100%;border:1px solid #cbd6cf;border-radius:8px;padding:10px;font:inherit}.settings textarea{height:180px;font-family:Consolas,monospace;font-size:12px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.note{font-size:12px;color:#78857d;line-height:1.6}.status{margin-top:10px;font-size:13px;color:#3e6b53}details{border-top:1px solid #e4e9e6;margin-top:20px;padding-top:14px}details summary{cursor:pointer;font-weight:800;color:#536159}#sync{margin-top:8px}.login-gate{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#0d2118,#174b35)}.login-box{width:min(390px,100%);background:white;border-radius:18px;padding:30px;box-shadow:0 24px 70px #0006}.login-box h2{text-align:center;margin:4px 0 8px}.login-box p{text-align:center;color:#718078;font-size:14px}.login-box input{width:100%;border:1px solid #ccd7d1;border-radius:9px;padding:13px;font:inherit}.login-logo{text-align:center;font-size:48px;color:#11a564}@media(max-width:760px){header{height:auto;padding:14px 15px;gap:10px}h1{font-size:21px}header p{display:none}main{margin:14px auto;padding:0 10px}.grid{grid-template-columns:1fr;gap:12px}.card{padding:16px;border-radius:12px}.twocol{grid-template-columns:1fr}.drop{height:260px}.result{max-height:none;min-height:360px}.device-price{font-size:32px}.summary{position:sticky;top:0;z-index:2}.primary{min-height:48px;font-size:16px}.candidate{min-height:38px}.model-search{min-height:44px}}
