/* 俊泽清运管理平台 —— 深色科技风 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0b1220; color: #e2e8f0; font-size: 14px;
}
a { cursor: pointer; color: #60a5fa; text-decoration: none; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, #1e3a5f 0%, #0b1220 60%);
}
.login-box {
  width: 380px; padding: 40px 36px; border-radius: 18px;
  background: rgba(30,41,59,.75); border: 1px solid #334155;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); backdrop-filter: blur(10px);
}
.login-logo { font-size: 52px; text-align: center; margin-bottom: 12px; }
.login-box h1 { font-size: 20px; text-align: center; margin-bottom: 6px; letter-spacing: 1px; }
.login-sub { text-align: center; color: #64748b; font-size: 13px; margin-bottom: 28px; }
.login-err { color: #f87171; text-align: center; margin-top: 12px; font-size: 13px; min-height: 18px; }
.btn-block { width: 100%; margin-top: 8px; }

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }
.side {
  width: 210px; background: #0f172a; border-right: 1px solid #1e293b;
  display: flex; flex-direction: column; position: fixed; height: 100vh;
}
.side-logo {
  padding: 18px 16px; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid #1e293b; display: flex; align-items: center; gap: 10px;
}
.side-logo .ico { font-size: 22px; }
.nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.nav-group {
  padding: 14px 16px 6px; font-size: 11px; color: #475569;
  letter-spacing: 1px; text-transform: uppercase;
}
.nav-item {
  padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  color: #94a3b8; border-left: 3px solid transparent; font-size: 14px;
}
.nav-item:hover { background: #1e293b; color: #e2e8f0; }
.nav-item.active { background: #1e293b; color: #60a5fa; border-left-color: #3b82f6; }
.nav-item .ico { font-size: 16px; width: 20px; text-align: center; }
.side-foot {
  padding: 14px 16px; border-top: 1px solid #1e293b; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center; color: #64748b;
}
.main { flex: 1; margin-left: 210px; padding: 22px 26px; min-height: 100vh; }

/* ============ 卡片/表格 ============ */
.page-title { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 16px;
}
.stat-card .num { font-size: 26px; font-weight: 700; color: #60a5fa; margin-bottom: 4px; }
.stat-card .lbl { font-size: 13px; color: #94a3b8; }
.card {
  background: #1e293b; border: 1px solid #334155; border-radius: 12px;
  padding: 18px; margin-bottom: 18px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 8px; color: #64748b; font-weight: 500; border-bottom: 1px solid #334155; }
td { padding: 10px 8px; border-bottom: 1px solid #1e293b; }
tr:hover td { background: #243044; }
.empty { text-align: center; padding: 40px; color: #475569; }

/* ============ 按钮/表单 ============ */
.btn, .btn-primary, .btn-sm {
  padding: 8px 16px; border-radius: 8px; border: 1px solid #334155;
  background: #334155; color: #e2e8f0; cursor: pointer; font-size: 13px;
}
.btn:hover { background: #475569; }
.btn-primary { background: #2563eb; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-danger { background: #7f1d1d; border-color: #7f1d1d; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1px solid #334155; background: #0f172a; color: #e2e8f0; font-size: 13px;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: #3b82f6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12px; color: #64748b; }
.tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-green { background: #064e3b; color: #6ee7b7; }
.tag-gray { background: #334155; color: #94a3b8; }
.tag-blue { background: #1e3a8a; color: #93c5fd; }
.tag-red { background: #7f1d1d; color: #fca5a5; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal {
  background: #1e293b; border: 1px solid #334155; border-radius: 14px;
  padding: 22px; width: 520px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.modal-head h3 { font-size: 16px; }
.modal-head .x { cursor: pointer; font-size: 22px; color: #64748b; line-height: 1; }
.modal-head .x:hover { color: #e2e8f0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* 提示 */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: #1e293b; border: 1px solid #334155; padding: 12px 22px;
  border-radius: 10px; z-index: 2000; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
