*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;background:#f0f2f5;color:#333;min-height:100vh}
.login-body{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#1a73e8 0%,#0d47a1 100%)}
.login-card{background:white;border-radius:12px;padding:40px;width:400px;box-shadow:0 8px 32px rgba(0,0,0,0.2)}
.login-card h1{text-align:center;font-size:24px;margin-bottom:8px;color:#1a73e8}
.login-card .subtitle{text-align:center;color:#888;font-size:14px;margin-bottom:30px}
.form-group{margin-bottom:20px}
.form-group label{display:block;margin-bottom:6px;font-size:14px;font-weight:500;color:#555}
.form-group input{width:100%;padding:12px 16px;border:1px solid #ddd;border-radius:8px;font-size:15px;outline:none;transition:border-color 0.2s}
.form-group input:focus{border-color:#1a73e8}
.btn{padding:12px 24px;border:none;border-radius:8px;font-size:15px;cursor:pointer;transition:all 0.2s;font-weight:500}
.btn:disabled{opacity:0.6;cursor:not-allowed}
.btn-primary{background:#1a73e8;color:white;width:100%}.btn-primary:hover{background:#1557b0}
.btn-danger{background:#e53935;color:white}.btn-danger:hover{background:#c62828}
.btn-outline{background:white;color:#1a73e8;border:1px solid #1a73e8}.btn-outline:hover{background:#e8f0fe}
.btn-sm{padding:6px 14px;font-size:13px;width:auto}
.btn-xs{padding:4px 10px;font-size:12px;width:auto}
.error-msg{color:#e53935;font-size:13px;margin-top:8px;display:none}
.error-msg.show{display:block}

.app-header{background:white;border-bottom:1px solid #e0e0e0;padding:0 24px;display:flex;align-items:center;justify-content:space-between;height:56px;box-shadow:0 1px 4px rgba(0,0,0,0.06)}
.app-header .logo{font-size:18px;font-weight:700;color:#1a73e8}
.app-header .header-actions{display:flex;gap:12px;align-items:center}

.app-container{max-width:1200px;margin:24px auto;padding:0 24px}

.tabs{display:flex;gap:0;border-bottom:2px solid #e0e0e0;margin-bottom:24px}
.tab-btn{padding:12px 24px;border:none;background:transparent;font-size:15px;cursor:pointer;color:#666;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all 0.2s;font-weight:500}
.tab-btn.active{color:#1a73e8;border-bottom-color:#1a73e8}.tab-btn:hover{color:#1a73e8}
.tab-content{display:none}.tab-content.active{display:block}

.card{background:white;border-radius:10px;padding:24px;box-shadow:0 1px 4px rgba(0,0,0,0.06);margin-bottom:20px}
.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.card-header h3{font-size:16px;color:#333}

.table-wrapper{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
table th,table td{padding:12px 16px;text-align:left;border-bottom:1px solid #f0f0f0}
table th{background:#fafafa;font-weight:600;color:#555;white-space:nowrap}
table tr:hover{background:#f8f9ff}

.status-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;font-weight:500}
.status-online{background:#e6f4ea;color:#1e8e3e}
.status-offline{background:#fce8e6;color:#c5221f}
.status-pending{background:#fff3e0;color:#e65100}
.status-success{background:#e6f4ea;color:#1e8e3e}
.status-failed{background:#fce8e6;color:#c5221f}
.status-sending{background:#e8f0fe;color:#1a73e8}
.status-pairing{background:#fff9c4;color:#f57f17}
.status-paused{background:#fef7e0;color:#e37400}
.btn-warning{background:#f9ab00;color:white}.btn-warning:hover{background:#e37400}
.progress-fill-paused{background:#f9ab00}

.modal-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);z-index:1000;align-items:center;justify-content:center}
.modal-overlay.show{display:flex}
.modal{background:white;border-radius:12px;padding:32px;width:420px;max-width:90vw;box-shadow:0 8px 32px rgba(0,0,0,0.2)}
.modal h2{font-size:18px;margin-bottom:20px;color:#333}
.qr-container{text-align:center;margin:20px 0}
.qr-container img{max-width:250px;border:1px solid #eee;border-radius:8px}
.qr-container .qr-hint{color:#888;font-size:13px;margin-top:10px}

.toolbar{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap;align-items:center}
.msg-area{width:100%;padding:12px 16px;border:1px solid #ddd;border-radius:8px;font-size:15px;resize:vertical;min-height:100px;margin-bottom:16px;outline:none;font-family:inherit}
.msg-area:focus{border-color:#1a73e8}

.account-select{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.account-checkbox{display:flex;align-items:center;gap:6px;padding:8px 16px;background:white;border:1px solid #ddd;border-radius:8px;cursor:pointer;font-size:14px;transition:all 0.2s}
.account-checkbox:hover{border-color:#1a73e8}
.account-checkbox.checked{background:#e8f0fe;border-color:#1a73e8}
.account-checkbox input{display:none}

.progress-stats{display:flex;gap:20px;margin-bottom:16px}
.stat-item{font-size:14px;color:#666}
.stat-item span{font-weight:600;color:#333}

#wsStatus.ws-offline{color:#c5221f}

/* 批次选择 */
#batchSelect:focus{border-color:#1a73e8}

/* 进度条 */
.progress-bar{display:inline-block;width:80px;height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden;vertical-align:middle;margin-right:6px}
.progress-fill{display:block;height:100%;background:#1a73e8;border-radius:4px;transition:width 0.3s}

/* 统计徽章 */
.task-stats-bar{display:flex;gap:16px;margin-bottom:16px;flex-wrap:wrap}

/* 旧样式保持兼容，移除不再使用的 */
.num-checkbox{display:flex;align-items:center;gap:4px;padding:3px 8px;font-size:13px;cursor:pointer;border-radius:4px;transition:background 0.15s}
.num-checkbox:hover{background:#f0f5ff}
.num-checkbox input{margin:0;cursor:pointer}
.num-checkbox span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.progress-stats{display:flex;gap:20px;margin-bottom:16px}
.stat-item{font-size:14px;color:#666}
.stat-item span{font-weight:600;color:#333}

@media(max-width:768px){
    .login-card{width:90vw;padding:24px}
    .app-container{padding:0 12px}
    table th,table td{padding:8px 10px;font-size:13px}
    .toolbar{flex-direction:column}
    .task-stats-bar{flex-direction:column;gap:8px}
}
