* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f2f6; color: #333; font-size: 14px; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 190px; background: #16324F; color: #fff; padding: 16px 0; overflow-y: auto; }
.sidebar .logo { font-size: 17px; font-weight: 700; padding: 4px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar .me { padding: 12px 20px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 8px; }
.sidebar .me span { color: #7fb2e8; font-size: 11px; }
.sidebar a { display: block; padding: 10px 20px; color: #c5d5e8; text-decoration: none; font-size: 13.5px; }
.sidebar a:hover { background: rgba(255,255,255,.06); }
.sidebar a.on { background: #2D6CDF; color: #fff; font-weight: 600; }
.main { margin-left: 190px; min-height: 100vh; }
.topbar { background: #fff; padding: 15px 26px; box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50; }
.topbar h2 { font-size: 17px; }
.content { padding: 20px 26px 40px; }
.card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.05); margin-bottom: 16px; }
.card h3 { font-size: 15px; margin-bottom: 14px; color: #16324F; border-left: 3px solid #2D6CDF; padding-left: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05); text-align: center; }
.stat .n { font-size: 28px; font-weight: 800; color: #16324F; }
.stat .l { font-size: 12.5px; color: #888; margin-top: 4px; }
.stat .n.red { color: #E63C3C; } .stat .n.orange { color: #E6A23C; } .stat .n.blue { color: #2D6CDF; } .stat .n.green { color: #18A058; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 .card { margin-bottom: 0; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; background: #fff; }
th { background: #f5f7fa; font-weight: 600; color: #555; text-align: left; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
td { padding: 9px 12px; border-top: 1px solid #eef0f4; font-size: 13px; vertical-align: middle; }
tr:hover td { background: #fafbfd; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 5px; font-size: 12px; color: #fff; }
.tag.blue { background: #2D6CDF; } .tag.orange { background: #E6A23C; } .tag.red { background: #E63C3C; } .tag.green { background: #18A058; } .tag.gray { background: #9aa1ad; }
.btn { display: inline-block; border: none; border-radius: 6px; padding: 7px 15px; font-size: 13px; cursor: pointer; background: #2D6CDF; color: #fff; }
.btn:hover { opacity: .88; }
.btn.green { background: #18A058; } .btn.orange { background: #E6A23C; } .btn.red { background: #E63C3C; } .btn.gray { background: #9aa1ad; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 5px; }
input, select, textarea { border: 1px solid #d9dce3; border-radius: 6px; padding: 7px 10px; font-size: 13px; outline: none; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: #2D6CDF; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=text] { width: 200px; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: #666; }
.empty { text-align: center; color: #9aa1ad; padding: 30px 0; }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; }
.dialog { background: #fff; border-radius: 12px; width: 92%; max-width: 620px; max-height: 88vh; overflow-y: auto; padding: 22px; }
.dialog h3 { margin-bottom: 16px; font-size: 16px; }
.dlg-field { margin-bottom: 12px; }
.dlg-field label { display: block; font-size: 12.5px; color: #666; margin-bottom: 4px; }
.dlg-field input, .dlg-field select, .dlg-field textarea { width: 100%; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 90px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid #e3e6ec; cursor: pointer; }
.log-line { padding: 6px 0; border-bottom: 1px dashed #eef0f4; font-size: 13px; }
.log-line .t { color: #999; font-size: 12px; margin-left: 8px; }
.overdue { color: #E63C3C; font-weight: 700; }
.ai-score { font-size: 20px; font-weight: 800; color: #16324F; }
