*{margin:0;padding:0;box-sizing:border-box}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}::-webkit-scrollbar-track{background:transparent}html,body{height:100%;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f0f2f5;color:#333;font-size:13px}.header{background:linear-gradient(135deg,#4caf50,#388e3c);color:#fff;padding:0 24px;display:flex;justify-content:space-between;align-items:center;height:50px;flex-shrink:0}.header h1{font-size:17px}.header a{color:#fff;font-size:12px}.app-wrap{display:flex;height:calc(100vh - 87px)}.sidebar{width:200px;background:linear-gradient(180deg,#2c3e50,#34495e);flex-shrink:0;overflow-y:auto;display:flex;flex-direction:column}.sidebar .menu{padding:10px 0;flex:1}.sidebar .menu .menu-title{color:#fff6;font-size:10px;padding:14px 20px 6px;text-transform:uppercase;letter-spacing:1px}.sidebar .mi{padding:12px 20px;cursor:pointer;font-size:13px;color:#ffffffb3;transition:all .2s;display:flex;align-items:center;gap:10px;border-left:3px solid transparent;margin:1px 0}.sidebar .mi:hover{background:#ffffff14;color:#fff}.sidebar .mi.on{background:#4caf5033;color:#4caf50;font-weight:600;border-left-color:#4caf50}.sidebar .mi .dot{width:6px;height:6px;background:#e4393c;border-radius:50%;flex-shrink:0}.main{flex:1;overflow-y:auto;padding:18px;background:#f0f2f5}.card{background:#fff;border-radius:10px;padding:18px;margin-bottom:14px;box-shadow:0 1px 6px #0000000d}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.sc{text-align:center;padding:16px 10px;background:#fff;border-radius:10px;box-shadow:0 1px 6px #0000000d}.sc .n{font-size:26px;font-weight:700;color:#4caf50}.sc .l{font-size:12px;color:#999;margin-top:4px}table{width:100%;border-collapse:collapse}th,td{padding:9px 10px;text-align:left;border-bottom:1px solid #f0f0f0;font-size:12px}th{background:#fafafa;font-weight:600;color:#888}.btn{padding:5px 14px;border-radius:16px;border:none;cursor:pointer;font-size:12px;display:inline-block;transition:all .15s}.btn:hover{opacity:.85}.btn-p{background:#4caf50;color:#fff}.btn-d{background:#e4393c;color:#fff}.btn-w{background:#ff9800;color:#fff}.btn-g{background:#f5f5f5;color:#666}.badge{padding:2px 8px;border-radius:10px;font-size:11px}.bg-s{background:#e8f5e9;color:#4caf50}.bg-d{background:#ffebee;color:#e4393c}.bg-i{background:#e3f2fd;color:#2196f3}.bg-w{background:#fff3e0;color:#ff9800}.pt{font-size:16px;font-weight:700;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center}.pg{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:14px}.pg .pb{min-width:30px;height:30px;border:1px solid #ddd;border-radius:5px;background:#fff;cursor:pointer;font-size:12px;display:flex;align-items:center;justify-content:center}.pg .pb:hover{border-color:#4caf50;color:#4caf50}.pg .pb.ac{background:#4caf50;color:#fff;border-color:#4caf50}.pg .pb:disabled{opacity:.35;cursor:not-allowed}.pg .pi{font-size:12px;color:#999;margin:0 6px}.modal-bg{position:fixed;inset:0;background:#00000073;z-index:100;display:flex;align-items:flex-start;justify-content:center;padding-top:30px;overflow-y:auto}.modal{background:#fff;border-radius:14px;padding:22px;width:680px;max-width:95vw;max-height:88vh;overflow-y:auto;margin-bottom:30px}.modal h3{margin-bottom:16px;font-size:16px}.fg{margin-bottom:14px}.fg label{display:block;font-size:12px;color:#666;margin-bottom:4px;font-weight:500}.fg input,.fg select,.fg textarea{width:100%;padding:7px 10px;border:1px solid #ddd;border-radius:6px;font-size:12px;outline:none}.fg input:focus,.fg select:focus,.fg textarea:focus{border-color:#4caf50}.fg textarea{height:70px;resize:vertical}.fr{display:flex;gap:12px}.fr .fg{flex:1}.ma{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #f0f0f0}.il{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.ii{width:100px;height:100px;border-radius:6px;position:relative;border:2px solid #e0e0e0;background:#fafafa;cursor:pointer;flex-shrink:0}.ii.im{border-color:#4caf50}.ii img{width:100%;height:100%;object-fit:contain;display:block;border-radius:4px}.ii:hover img{opacity:.85}.ii .dl{position:absolute;top:1px;right:1px;width:18px;height:18px;background:#0000008c;color:#fff;border-radius:50%;font-size:11px;display:flex;align-items:center;justify-content:center;cursor:pointer}.ii .tg{position:absolute;bottom:0;left:0;right:0;background:#4caf50cc;color:#fff;font-size:9px;text-align:center;padding:1px 0}.ua{border:2px dashed #ddd;border-radius:10px;text-align:center;cursor:pointer;position:relative;transition:all .15s;width:100px;height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}.ua:hover{border-color:#4caf50;background:#f9fff9}.ua input{position:absolute;inset:0;opacity:0;cursor:pointer}.ua .ic{font-size:28px;color:#ccc}.ua .tx{font-size:11px;color:#999;margin-top:2px}.ua.uploading{border-color:#4caf50;background:#f9fff9;cursor:not-allowed}.spinner{width:28px;height:28px;border:3px solid #e0e0e0;border-top-color:#4caf50;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.sgc{background:#fafafa;border-radius:6px;padding:10px;margin-bottom:10px;border:1px solid #eee}.sgc .sni{font-weight:700;border:none;border-bottom:2px solid #4caf50;background:transparent;padding:3px 0;font-size:13px;width:130px;outline:none}.sr{display:flex;gap:6px;align-items:center;margin-bottom:6px}.sr input{flex:1}.sr .br{background:#e4393c;color:#fff;border:none;width:24px;height:24px;border-radius:50%;cursor:pointer;font-size:14px}.toast{position:fixed;top:16px;left:50%;transform:translate(-50%);padding:10px 20px;background:#4caf50;color:#fff;border-radius:6px;z-index:300;font-size:13px}.pm{position:fixed;inset:0;background:#000000d9;z-index:400;display:flex;align-items:center;justify-content:center;cursor:zoom-out}.pm img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:6px}.pc{position:fixed;top:16px;right:24px;color:#fff;font-size:30px;cursor:pointer;z-index:401;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#00000059;border-radius:50%}.empty{text-align:center;padding:50px 0;color:#ccc}.chat-wrap{display:flex;height:calc(100vh - 87px)}.chat-list{width:240px;border-right:1px solid #eee;overflow-y:auto;background:#fff;flex-shrink:0}.chat-item{padding:12px 14px;border-bottom:1px solid #f5f5f5;cursor:pointer;display:flex;gap:10px;align-items:center}.chat-item:hover,.chat-item.on{background:#e8f5e9}.chat-item .avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}.chat-item .info{flex:1;min-width:0}.chat-item .nick{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-item .msg{font-size:11px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}.chat-item .ur{width:16px;height:16px;background:#e4393c;color:#fff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.chat-main{flex:1;display:flex;flex-direction:column;background:#f5f5f5}.chat-msgs{flex:1;overflow-y:auto;padding:14px}.chat-msgs .msg{display:flex;margin-bottom:12px;align-items:flex-start;gap:8px}.chat-msgs .msg.right{flex-direction:row-reverse}.chat-msgs .msg .av{width:32px;height:32px;border-radius:50%;flex-shrink:0;object-fit:cover}.chat-msgs .msg .bubble{max-width:70%;padding:8px 12px;border-radius:8px;font-size:13px;line-height:1.5;word-break:break-all}.chat-msgs .msg .bubble.left{background:#fff;border-top-left-radius:2px}.chat-msgs .msg .bubble.right{background:#95ec69;border-top-right-radius:2px}.chat-input{display:flex;gap:8px;padding:12px 14px;background:#fff;border-top:1px solid #eee}.chat-input input{flex:1;border:1px solid #ddd;border-radius:6px;padding:8px 12px;font-size:13px;outline:none}.chat-input input:focus{border-color:#4caf50}.chat-input .btn{border-radius:6px;padding:8px 20px}.footer{height:37px;flex-shrink:0;background:#fff;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center;gap:10px;font-size:11px;color:#999}.footer a{color:#2196f3;text-decoration:none}.footer a:hover{color:#4caf50}.footer .sep{color:#ddd}
