/* ============ 海城市智慧应急平台 · 全局主题（深海蓝） ============ */
:root {
  --bg-0: #020c1b;
  --bg-1: #020c1b;
  --bg-2: #06203c;
  --panel: rgba(8, 30, 60, .55);
  --panel-solid: #082c4a;
  --border: #1c5a8a;
  --border-hi: #00e5ff;
  --accent: #00d2ff;
  --accent-2: #00e5ff;
  --gold: #ffa940;
  --text: #cfe9ff;
  --text-dim: #9fc6e0;
  --red: #ff5b5b;
  --orange: #ffa940;
  --yellow: #fadb14;
  --green: #52c41a;
  --blue: #40a9ff;
  --purple: #b37feb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg-0);
  color: var(--text);
  overflow: hidden;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0,180,255,.3); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 登录页 ---------------- */
.login-page {
  position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, #0a2a4a 0%, #020c1b 70%);
  overflow: hidden;
}
.login-grid-bg {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,180,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.login-scanline {
  position: absolute; left: 0; right: 0; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,229,255,.07), transparent);
  animation: scanmove 7s linear infinite;
}
@keyframes scanmove { 0% { top: -140px; } 100% { top: 105%; } }

.login-card {
  position: relative; z-index: 2; width: 880px; max-width: 92vw; min-height: 480px;
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: inset 0 0 20px rgba(20,90,160,.25), 0 24px 60px rgba(0,0,0,.55);
  overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, #1c8fd0, transparent);
}
.login-left {
  padding: 52px 44px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(500px 300px at 20% 30%, rgba(0,120,200,.1), transparent 65%);
  border-right: 1px solid var(--border);
}
.login-emblem {
  width: 58px; height: 58px; margin-bottom: 26px; border-radius: 10px;
  background: linear-gradient(135deg, #0090d0, #00d2ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 0 30px rgba(0,210,255,.45);
}
.login-title { font-size: 30px; font-weight: 700; letter-spacing: 3px; color: #7fd5ff; text-shadow: 0 0 12px #1e90ff; }
.login-title-en { margin-top: 8px; font-size: 11px; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; }
.login-desc { margin-top: 22px; font-size: 13px; line-height: 2; color: var(--text-dim); }
.login-stats { display: flex; gap: 26px; margin-top: 30px; }
.login-stats .ls-item .num { font-size: 22px; font-weight: 700; color: var(--accent-2); text-shadow: 0 0 10px #00bcd4; font-family: "DIN", "Segoe UI", sans-serif; }
.login-stats .ls-item .lab { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

.login-right { padding: 52px 44px; display: flex; flex-direction: column; justify-content: center; }
.login-right h2 { font-size: 18px; font-weight: 600; letter-spacing: 2px; margin-bottom: 6px; color: #7fd5ff; }
.login-right .sub { font-size: 12px; color: var(--text-dim); margin-bottom: 30px; }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 7px; letter-spacing: 1px; }
.form-item input {
  width: 100%; height: 44px; padding: 0 14px; font-size: 14px; color: var(--text);
  background: rgba(2, 12, 27, .7); border: 1px solid var(--border); border-radius: 4px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-item input:focus { border-color: var(--border-hi); box-shadow: 0 0 0 3px rgba(0,229,255,.12); }
.login-btn {
  width: 100%; height: 46px; margin-top: 8px; border: none; border-radius: 4px; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: 6px; color: #021;
  background: linear-gradient(90deg, #00bcd4, #00e5ff);
  box-shadow: 0 6px 24px rgba(0,229,255,.35);
  transition: transform .15s, box-shadow .2s;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,229,255,.5); }
.login-btn:disabled { opacity: .6; cursor: wait; }
.login-error { min-height: 20px; margin-top: 14px; font-size: 12px; color: var(--red); text-align: center; }
.login-tip { margin-top: 18px; font-size: 11px; color: #5f87a8; text-align: center; line-height: 1.8; }
.login-footer {
  position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  font-size: 11px; color: #5f87a8; letter-spacing: 2px; z-index: 2;
}
@media (max-width: 900px) {
  .login-card { grid-template-columns: 1fr; }
  .login-left { display: none; }
}

/* ---------------- 通用组件 ---------------- */
.panel {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; box-shadow: inset 0 0 20px rgba(20,90,160,.25);
}
.panel-title {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px 7px; font-size: 16px; font-weight: 600; letter-spacing: 1px; color: #7fd5ff;
}
.panel-title::before {
  content: ""; width: 4px; height: 15px; border-radius: 1px;
  background: #00d2ff; box-shadow: 0 0 8px rgba(0,210,255,.8);
}
.panel-title .extra { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--text-dim); letter-spacing: 0; }
.corner i { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px;
  font-size: 12px; color: var(--text); background: rgba(0,90,160,.35);
  border: 1px solid var(--border); border-radius: 4px; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-hi); background: rgba(0,180,255,.2); }
.btn.primary { background: linear-gradient(90deg, #00bcd4, #00e5ff); color: #021; border: none; font-weight: 700; }
.btn.primary:hover { box-shadow: 0 4px 16px rgba(0,229,255,.4); }
.btn.danger { color: #ff8f8f; border-color: rgba(255,91,91,.4); background: rgba(255,91,91,.08); }
.btn.danger:hover { background: rgba(255,91,91,.18); }
.btn.sm { padding: 4px 9px; font-size: 11px; }

input.field, select.field, textarea.field {
  width: 100%; padding: 8px 10px; font-size: 13px; color: var(--text);
  background: rgba(2,12,27,.7); border: 1px solid var(--border); border-radius: 4px; outline: none;
  font-family: inherit;
}
input.field:focus, select.field:focus, textarea.field:focus { border-color: var(--border-hi); }
select.field option { background: #082c4a; }

.tag { display: inline-block; padding: 2px 8px; font-size: 11px; border-radius: 4px; border: 1px solid; }
.tag.red { color: #ff8f8f; border-color: rgba(255,91,91,.5); background: rgba(255,91,91,.12); }
.tag.orange { color: #ffc069; border-color: rgba(255,169,64,.5); background: rgba(255,169,64,.12); }
.tag.yellow { color: #fffb8f; border-color: rgba(250,219,20,.5); background: rgba(250,219,20,.1); }
.tag.blue { color: #8fd0ff; border-color: rgba(64,169,255,.5); background: rgba(64,169,255,.12); }
.tag.green { color: #a5e07c; border-color: rgba(82,196,26,.5); background: rgba(82,196,26,.12); }
.tag.gray { color: #9fc6e0; border-color: rgba(159,198,224,.4); background: rgba(159,198,224,.08); }

.modal-mask {
  position: fixed; inset: 0; z-index: 999; background: rgba(2,12,27,.75);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.modal {
  width: 560px; max-width: 94vw; max-height: 86vh; overflow: auto;
  background: var(--bg-2); border: 1px solid #1c8fd0; border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), inset 0 0 20px rgba(20,90,160,.25);
}
.modal-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600; letter-spacing: 1px; color: #7fd5ff; }
.modal-head .close { margin-left: auto; cursor: pointer; color: var(--text-dim); font-size: 20px; line-height: 1; }
.modal-head .close:hover { color: var(--red); }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 18px 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 5px; }

.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 10px 22px; font-size: 13px; border-radius: 4px; color: var(--text);
  background: rgba(8,44,74,.95); border: 1px solid #1c8fd0;
  box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: toastin .25s ease;
}
.toast.err { border-color: rgba(255,91,91,.6); color: #ffd6d6; }
@keyframes toastin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
