/* 公共变量统一沉淀色板和阴影，方便后续多个独立页面保持同一套管理端视觉语言。 */
:root {
    --bg-color: #f3f5f9;
    --panel-color: #ffffff;
    --line-color: #e6ebf2;
    --text-main: #0f172a;
    --text-sub: #64748b;
    --text-soft: #94a3b8;
    --nav-bg: #081938;
    --nav-accent: #2563eb;
    --danger-color: #ef4444;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --purple-color: #7c3aed;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --shadow-panel: 0 10px 26px rgba(15, 23, 42, 0.05);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

/* 基础重置只保留必要项，避免对后续新增页面造成额外干扰。 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--text-main);
    min-height: 100vh;
}

/* 登录页使用独立布局，恢复管理员先登录后进入后台的旧流程。 */
.login-page-body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(40, 78, 139, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 78, 139, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 20% 24%, rgba(4, 220, 255, 0.16), transparent 24%),
        radial-gradient(circle at 82% 16%, rgba(209, 70, 255, 0.12), transparent 18%),
        radial-gradient(circle at 88% 82%, rgba(4, 220, 255, 0.1), transparent 20%),
        linear-gradient(180deg, #040917 0%, #070d1f 52%, #040714 100%);
    background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    overflow: hidden;
    position: relative;
}

.login-page-body::before,
.login-page-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.login-page-body::before {
    background:
        radial-gradient(circle at 15% 35%, rgba(0, 255, 247, 0.28) 0%, transparent 10%),
        radial-gradient(circle at 78% 30%, rgba(217, 70, 239, 0.22) 0%, transparent 11%),
        radial-gradient(circle at 66% 70%, rgba(34, 211, 238, 0.18) 0%, transparent 8%);
    filter: blur(32px);
    opacity: 0.8;
}

.login-page-body::after {
    background:
        radial-gradient(80% 20% at 30% 35%, transparent 0%, transparent 58%, rgba(18, 224, 255, 0.22) 62%, transparent 66%),
        radial-gradient(78% 20% at 72% 30%, transparent 0%, transparent 58%, rgba(186, 76, 255, 0.2) 62%, transparent 66%),
        radial-gradient(84% 24% at 46% 63%, transparent 0%, transparent 58%, rgba(19, 220, 255, 0.16) 62%, transparent 66%);
    opacity: 0.72;
    filter: blur(4px);
}

.login-page-shell {
    min-height: 100vh;
    padding: 48px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 440px);
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.login-hero-panel,
.login-form-panel {
    position: relative;
}

.login-hero-panel {
    padding: 64px 32px 56px 56px;
    color: #ffffff;
    display: grid;
    gap: 18px;
    min-height: 720px;
    align-content: center;
}

.login-hero-panel::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 60px;
    bottom: 60px;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(173, 216, 255, 0.4) 12%, rgba(173, 216, 255, 0.18) 50%, transparent 100%);
}

.login-status-label {
    color: #b38fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-page-title {
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f3ffff;
    text-shadow: 0 0 18px rgba(57, 226, 255, 0.3);
}

.login-page-copy {
    max-width: 420px;
    color: rgba(223, 236, 255, 0.78);
    font-size: 16px;
    line-height: 1.8;
}

.login-signal-panel {
    width: min(100%, 380px);
    margin-top: 18px;
    padding: 18px 18px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 24, 51, 0.74) 0%, rgba(7, 18, 40, 0.66) 100%);
    border: 1px solid rgba(69, 120, 199, 0.24);
    box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.06);
}

.login-signal-title {
    color: #00d7ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.login-signal-bars {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 14px;
    align-items: end;
    margin-top: 18px;
    min-height: 86px;
}

.login-signal-bars .bar {
    display: block;
    width: 6px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(243, 248, 255, 0.88) 0%, rgba(186, 203, 224, 0.6) 100%);
    box-shadow: 0 0 10px rgba(190, 210, 232, 0.16);
}

.login-signal-bars .bar.low {
    height: 38px;
}

.login-signal-bars .bar.mid {
    height: 52px;
}

.login-signal-bars .bar.high {
    height: 76px;
}

.login-signal-bars .bar.peak {
    height: 90px;
    background: linear-gradient(180deg, #f7ffff 0%, #72f4ff 100%);
    box-shadow: 0 0 16px rgba(114, 244, 255, 0.56);
}

.login-signal-bars .bar.violet {
    background: linear-gradient(180deg, #f0d9ff 0%, #d496ff 100%);
    box-shadow: 0 0 12px rgba(212, 150, 255, 0.34);
}

.login-signal-bars .bar.soft {
    opacity: 0.88;
}

.login-footer-meta,
.login-copyright {
    color: rgba(110, 138, 180, 0.34);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.login-footer-meta {
    margin-top: auto;
    font-size: 11px;
}

.login-copyright {
    font-size: 10px;
}

.login-form-panel {
    padding: 28px 30px 32px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(11, 19, 43, 0.88) 0%, rgba(10, 18, 40, 0.8) 100%);
    border: 1px solid rgba(116, 150, 210, 0.28);
    box-shadow:
        0 0 0 1px rgba(149, 190, 255, 0.08),
        0 26px 46px rgba(1, 5, 18, 0.42),
        inset 0 0 32px rgba(34, 211, 238, 0.05);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.login-form-shell-line {
    position: absolute;
    width: 36px;
    height: 36px;
    border-color: rgba(150, 195, 255, 0.5);
    border-style: solid;
    pointer-events: none;
}

.login-form-shell-line.top-left {
    top: 14px;
    left: 14px;
    border-width: 1px 0 0 1px;
}

.login-form-shell-line.top-right {
    top: 14px;
    right: 14px;
    border-width: 1px 1px 0 0;
}

.login-form-shell-line.bottom-left {
    bottom: 14px;
    left: 14px;
    border-width: 0 0 1px 1px;
}

.login-form-shell-line.bottom-right {
    right: 14px;
    bottom: 14px;
    border-width: 0 1px 1px 0;
}

.login-form-head {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-align: center;
}

.login-avatar-core {
    width: 88px;
    height: 88px;
    padding: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(205, 255, 212, 0.94), rgba(101, 247, 255, 0.2) 48%, rgba(0, 226, 255, 0.14) 100%);
    box-shadow: 0 0 0 6px rgba(44, 219, 255, 0.08), 0 0 26px rgba(57, 226, 255, 0.4);
}

.login-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 30%, rgba(203, 255, 215, 0.94) 0%, rgba(255, 242, 188, 0.96) 36%, rgba(106, 228, 239, 0.9) 100%);
    overflow: hidden;
}

.login-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.login-fingerprint {
    color: #62efff;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(98, 239, 255, 0.38);
}

.login-form-title {
    font-size: 24px;
    font-weight: 800;
    color: #f3f6ff;
    letter-spacing: 0.06em;
}

.login-form-subtitle {
    margin-bottom: 22px;
    color: rgba(166, 188, 220, 0.68);
    line-height: 1.75;
    text-align: center;
    font-size: 13px;
}

.login-form-grid {
    display: grid;
    gap: 14px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field span {
    font-size: 12px;
    font-weight: 700;
    color: #00d7ff;
    letter-spacing: 0.14em;
}

.login-input-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 4px;
    border: 1px solid rgba(65, 91, 138, 0.72);
    background: rgba(10, 16, 31, 0.74);
    padding: 0 14px;
    box-shadow: inset 0 0 0 1px rgba(50, 76, 118, 0.16);
}

.login-input-icon {
    color: rgba(214, 228, 255, 0.72);
    font-size: 14px;
}

.login-input {
    min-height: 46px;
    border: none;
    background: transparent;
    padding: 0;
    outline: none;
    color: #d9e8ff;
    flex: 1;
    transition: color 0.2s ease;
}

.login-input-shell:focus-within {
    border-color: rgba(80, 223, 255, 0.78);
    box-shadow: 0 0 0 1px rgba(80, 223, 255, 0.24), 0 0 16px rgba(80, 223, 255, 0.12);
}

.login-input::placeholder {
    color: rgba(116, 139, 176, 0.62);
}

.login-warning-strip {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(110, 28, 47, 0.62) 0%, rgba(83, 24, 38, 0.32) 100%);
    border: 1px solid rgba(180, 70, 94, 0.44);
    color: #ffb4c3;
    font-size: 12px;
    letter-spacing: 0.06em;
}

.login-error {
    min-height: 22px;
    color: #ff8fa4;
    font-size: 13px;
    font-weight: 700;
}

.login-submit-btn {
    min-height: 48px;
    border-radius: 6px;
    border: 1px solid rgba(149, 205, 255, 0.72);
    background: linear-gradient(180deg, rgba(13, 31, 55, 0.86) 0%, rgba(7, 20, 39, 0.86) 100%);
    color: #f3fbff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.18em;
    box-shadow: inset 0 0 0 1px rgba(177, 221, 255, 0.08), 0 0 18px rgba(70, 212, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-submit-btn:hover {
    border-color: rgba(130, 238, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(177, 221, 255, 0.16), 0 0 22px rgba(70, 212, 255, 0.16);
    transform: translateY(-1px);
}

.login-submit-btn:disabled {
    opacity: 0.72;
    cursor: default;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

/* 左侧导航固定为深色栏，尽量靠近参考图的沉稳控制台风格。 */
.sidebar {
    background: linear-gradient(180deg, #081938 0%, #06132b 100%);
    color: #d7e0f4;
    padding: 26px 20px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.brand-block {
    margin-bottom: 28px;
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.brand-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: #8ea0c8;
}

.nav-menu {
    display: grid;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    color: #afbddb;
    transition: 0.25s ease;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.nav-icon {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-alert-btn {
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-weight: 700;
    margin: 18px 0 22px;
    box-shadow: 0 14px 24px rgba(220, 38, 38, 0.28);
}

.sidebar-footer-links {
    display: grid;
    gap: 12px;
}

.sidebar-footer-links a {
    font-size: 14px;
    color: #b8c3da;
}

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 顶部栏使用白底和轻阴影，提供清晰的层次与页面切换反馈。 */
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    position: sticky;
    top: 0;
    z-index: 20;
}

.breadcrumb {
    font-size: 14px;
    color: #3b82f6;
    margin-bottom: 8px;
    font-weight: 600;
}

.page-heading {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.search-shell {
    width: min(360px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    min-height: 48px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--text-soft);
}

.search-shell input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: var(--text-main);
}

.topbar-select,
.primary-btn,
.ghost-btn {
    min-height: 46px;
    border-radius: 14px;
    padding: 0 18px;
    transition: 0.25s ease;
}

.topbar-select {
    border: 1px solid var(--line-color);
    background: #ffffff;
    color: var(--text-main);
}

.primary-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.primary-btn:hover {
    transform: translateY(-1px);
}

.ghost-btn {
    border: 1px solid var(--line-color);
    background: #ffffff;
    color: var(--text-main);
}

.ghost-btn.small {
    min-height: 40px;
    padding: 0 14px;
}

.page-content {
    padding: 28px 32px 40px;
    display: grid;
    gap: 24px;
}

/* 顶部说明卡用于承载“演示模式”与系统状态类信息。 */
.hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-panel);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-banner h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.hero-banner p {
    color: var(--text-sub);
    line-height: 1.7;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    white-space: nowrap;
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric-card {
    background: var(--panel-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-panel);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: grid;
    gap: 14px;
}

.metric-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #ffffff;
}

.metric-badge {
    font-size: 13px;
    font-weight: 700;
}

.metric-label {
    color: var(--text-sub);
    font-size: 14px;
}

.metric-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.metric-note {
    color: var(--text-soft);
    font-size: 13px;
}

.content-grid {
    display: grid;
    gap: 20px;
}

.content-grid.three-columns {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(320px, 1fr);
}

.panel {
    background: var(--panel-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-panel);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.panel-span-2 {
    grid-column: span 2;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.panel-head.compact {
    margin-bottom: 18px;
}

.panel-title {
    font-size: 24px;
    font-weight: 800;
}

.panel-subtitle,
.panel-copy {
    margin-top: 8px;
    color: var(--text-sub);
    line-height: 1.7;
}

.panel-link,
.text-btn {
    color: #2563eb;
    font-weight: 700;
}

.text-btn.light {
    color: #ffffff;
}

.dark-panel {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(180deg, #102746 0%, #0b1d37 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 22px 38px rgba(11, 29, 55, 0.22);
    overflow: hidden;
}

.dark-panel .panel-subtitle,
.dark-panel .panel-copy {
    color: rgba(224, 231, 255, 0.78);
}

.dark-panel .panel-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 2px;
}

.dark-panel .panel-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa 0%, #93c5fd 100%);
}

.accent-panel {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.small-panel {
    min-height: 210px;
}

.side-stack {
    display: grid;
    gap: 20px;
}

.center-panel {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 12px;
}

.icon-badge {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #e8f0ff;
    font-size: 28px;
}

.chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 700;
}

.chip.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.role-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--line-color);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: grid;
    gap: 16px;
}

.role-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.role-name {
    font-size: 20px;
    font-weight: 800;
}

.role-code {
    color: var(--text-sub);
    font-size: 13px;
    margin-top: 6px;
}

.role-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.role-status.success {
    background: #dcfce7;
    color: #166534;
}

.role-status.warning {
    background: #fef3c7;
    color: #92400e;
}

.role-status.danger {
    background: #fee2e2;
    color: #991b1b;
}

.role-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--text-sub);
    font-size: 13px;
}

.pill-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.role-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.muted-text {
    color: var(--text-soft);
    font-size: 13px;
}
.activity-list,
.light-activity,
.timeline-list,
.response-card-list,
.batch-card-list,
.staff-list,
.legend-list {
    display: grid;
    gap: 14px;
}

.activity-item,
.timeline-item,
.staff-item,
.batch-card,
.response-card {
    border-radius: 18px;
    padding: 16px;
}

.activity-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.light-activity .activity-item {
    background: #f8fafc;
    border: 1px solid var(--line-color);
}

.activity-time,
.timeline-time {
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.dark-panel .activity-time,
.dark-panel .timeline-time {
    color: rgba(224, 231, 255, 0.65);
}

.map-demo-card {
    min-height: 420px;
    border-radius: 22px;
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.18), transparent 32%), linear-gradient(135deg, #08243b 0%, #123456 50%, #07152a 100%);
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.map-demo-card::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 22px;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.map-legend,
.map-progress-card {
    position: relative;
    z-index: 1;
}

.map-node-layer {
    position: absolute;
    inset: 24px;
    z-index: 1;
}

.map-empty-state {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1;
    background: rgba(8, 25, 56, 0.76);
    border-color: rgba(148, 163, 184, 0.24);
    color: #dbeafe;
}

.map-node-card {
    position: absolute;
    width: 188px;
    padding: 14px 16px 14px 18px;
    border-radius: 18px;
    background: rgba(8, 25, 56, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 14px 26px rgba(8, 25, 56, 0.24);
    color: #ffffff;
    transform: translate(-50%, -50%);
}

.map-node-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: var(--map-node-color, #3b82f6);
}

.map-node-pulse {
    position: absolute;
    left: -10px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--map-node-color, #3b82f6);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.18);
    transform: translateY(-50%);
}

.map-node-title {
    font-size: 16px;
    font-weight: 800;
}

.map-node-role {
    margin-top: 6px;
    color: rgba(219, 234, 254, 0.96);
    font-size: 13px;
}

.map-node-status {
    margin-top: 8px;
    color: rgba(191, 219, 254, 0.88);
    font-size: 12px;
    line-height: 1.6;
}

.map-legend {
    margin-left: auto;
    width: min(320px, 100%);
    padding: 18px;
    border-radius: 18px;
    background: rgba(8, 25, 56, 0.72);
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.legend-title {
    font-weight: 800;
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(241, 245, 249, 0.9);
    font-size: 14px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.map-progress-card {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: min(260px, calc(100% - 48px));
    padding: 18px;
    border-radius: 18px;
    background: rgba(8, 25, 56, 0.72);
    color: #ffffff;
}

.progress-bar {
    height: 10px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3b82f6 0%, #f97316 60%, #ef4444 100%);
}

.staff-item {
    background: #f8fafc;
    border: 1px solid var(--line-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.staff-name {
    font-weight: 800;
}

.staff-role,
.staff-meta {
    color: var(--text-sub);
    font-size: 13px;
    margin-top: 4px;
}

.staff-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.action-panel .action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.action-panel .action-grid button {
    min-height: 90px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-shell {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    vertical-align: middle;
}

.data-table th {
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 700;
    background: #f8fafc;
}

.data-table tr:hover td {
    background: #f8fbff;
}

.inline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.inline-tag.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.inline-tag.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.inline-tag.green {
    background: #dcfce7;
    color: #15803d;
}

.inline-tag.orange {
    background: #ffedd5;
    color: #c2410c;
}

.inline-tag.red {
    background: #fee2e2;
    color: #b91c1c;
}

.inline-tag.gray {
    background: #f1f5f9;
    color: #475569;
}

.member-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #0f172a;
    background: #dbeafe;
}

.status-text {
    font-size: 13px;
    font-weight: 700;
}

.status-text.success {
    color: #16a34a;
}

.status-text.warning {
    color: #f59e0b;
}

.status-text.danger {
    color: #dc2626;
}

.batch-card,
.response-card,
.timeline-item {
    background: #f8fafc;
    border: 1px solid var(--line-color);
}

.response-card-list {
    gap: 16px;
    margin-top: 8px;
}

.dark-panel .response-card {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 18px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 24px rgba(2, 8, 23, 0.18);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dark-panel .response-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #60a5fa 0%, #93c5fd 100%);
}

.dark-panel .response-card::after {
    content: "0" counter(response-card-index);
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(191, 219, 254, 0.4);
    letter-spacing: 0.08em;
}

.dark-panel .response-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(2, 8, 23, 0.24);
    border-color: rgba(96, 165, 250, 0.3);
}

.dark-panel .response-card-list {
    counter-reset: response-card-index;
}

.dark-panel .response-card {
    counter-increment: response-card-index;
}

.timeline-item {
    display: grid;
    gap: 8px;
}

.timeline-title,
.batch-card-title,
.response-title {
    font-size: 17px;
    font-weight: 800;
}

.dark-panel .response-title {
    padding-right: 40px;
    color: #f8fbff;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.timeline-copy,
.batch-card-copy,
.response-copy {
    color: var(--text-sub);
    line-height: 1.7;
}

.dark-panel .response-copy {
    margin-top: 8px;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.8;
}

.table-link {
    color: #2563eb;
    font-weight: 700;
}

.table-link-btn {
    color: #2563eb;
    font-weight: 700;
    background: transparent;
    padding: 0;
}

.table-link-btn:hover {
    color: #1d4ed8;
}

/* 旧版管理内容切回表格和弹窗交互后，需要补齐当前页专用的轻量样式。 */
.table-check {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.table-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-action-btn {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.table-action-btn.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.selection-summary {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.selection-summary-title {
    font-size: 16px;
    font-weight: 800;
}

.empty-state-block {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: var(--text-sub);
    line-height: 1.7;
}

.dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.46);
}

.dialog-panel {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.dialog-panel-wide {
    width: min(920px, 100%);
}

.action-center-panel {
    display: grid;
    gap: 18px;
}

.action-center-body {
    display: grid;
    gap: 18px;
}

.action-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.action-info-card {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line-color);
}

.action-info-title {
    font-size: 16px;
    font-weight: 800;
}

.action-list {
    display: grid;
    gap: 12px;
}

.action-list-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line-color);
    color: var(--text-sub);
    line-height: 1.8;
}

.dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.dialog-close-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--text-main);
}

.dialog-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dialog-field {
    display: grid;
    gap: 8px;
}

.dialog-field span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-sub);
}

.dialog-field-full {
    grid-column: 1 / -1;
}

.dialog-input {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line-color);
    background: #ffffff;
    color: var(--text-main);
    outline: none;
}

.dialog-input:disabled {
    background: #f8fafc;
    color: var(--text-soft);
}

.dialog-field-hint {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-soft);
}

.permission-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.permission-switch-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line-color);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.permission-switch-main {
    display: grid;
    gap: 4px;
}

.permission-switch-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.permission-switch-copy {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-soft);
}

.permission-switch-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-blue);
    cursor: pointer;
}

.dialog-toolbar {
    display: flex;
    justify-content: flex-start;
    margin: 18px 0;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.import-queue-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.import-queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line-color);
}

/* 紧急告警弹层采用共享样式，保证四个独立页面打开时视觉和交互一致。 */
body.emergency-alert-open {
    overflow: hidden;
}

.emergency-alert-mask {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(4, 11, 26, 0.58);
    backdrop-filter: blur(10px);
}

.emergency-alert-panel {
    width: min(1040px, 100%);
    overflow: hidden;
    border: 4px solid #c91818;
    border-radius: 0;
    background: #f6f4f5;
    box-shadow: 0 30px 80px rgba(7, 12, 26, 0.42);
}

.emergency-alert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    padding: 0 28px;
    background: linear-gradient(135deg, #c91818 0%, #d11f1f 100%);
    color: #ffffff;
}

.emergency-alert-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emergency-alert-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.emergency-alert-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.emergency-alert-status {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.emergency-alert-body {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 28px;
    padding: 30px 28px 24px;
}

.emergency-alert-main,
.emergency-alert-side {
    display: grid;
    gap: 20px;
}

.emergency-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
}

.emergency-meta-item {
    display: grid;
    gap: 8px;
}

.emergency-meta-item-wide {
    grid-column: 1 / -1;
}

.emergency-meta-label,
.emergency-block-label {
    font-size: 13px;
    font-weight: 700;
    color: #55545d;
}

.emergency-meta-value {
    font-size: 28px;
    font-weight: 700;
    color: #15151c;
}

.emergency-meta-value-strong {
    font-size: 42px;
    letter-spacing: -0.04em;
}

.emergency-meta-value-danger {
    color: #d02020;
}

.emergency-brief-card {
    padding: 22px 20px;
    background: #f0eeee;
    border-left: 4px solid #d02020;
}

.emergency-brief-copy,
.emergency-push-copy {
    margin-top: 10px;
    color: #42414b;
    font-size: 15px;
    line-height: 1.9;
    font-weight: 600;
}

.emergency-push-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #b9d0f7;
    background: #eaf1ff;
}

.emergency-push-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #2f63e3;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 10px 18px rgba(47, 99, 227, 0.26);
}

.emergency-push-title {
    color: #2058db;
    font-size: 22px;
    font-weight: 800;
}

.emergency-map-card {
    position: relative;
    min-height: 224px;
    overflow: hidden;
    background:
        linear-gradient(rgba(38, 255, 214, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 255, 214, 0.12) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(255, 98, 48, 0.98) 0%, rgba(231, 22, 22, 0.92) 22%, rgba(96, 5, 7, 0.96) 70%, #050505 100%);
    background-size: 34px 34px, 34px 34px, 100% 100%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.emergency-map-card::before,
.emergency-map-card::after {
    content: "";
    position: absolute;
    inset: 0;
}

.emergency-map-card::before {
    background:
        linear-gradient(125deg, transparent 0%, rgba(255, 48, 48, 0.34) 40%, transparent 42%, transparent 58%, rgba(255, 48, 48, 0.24) 60%, transparent 62%),
        linear-gradient(55deg, transparent 0%, rgba(255, 68, 68, 0.22) 28%, transparent 30%, transparent 66%, rgba(255, 68, 68, 0.18) 68%, transparent 70%);
    mix-blend-mode: screen;
}

.emergency-map-card::after {
    background: radial-gradient(circle at center, rgba(255, 226, 83, 0.28) 0%, transparent 28%);
}

.emergency-map-ring,
.emergency-map-core {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.emergency-map-ring {
    border: 1px solid rgba(255, 216, 104, 0.45);
}

.emergency-map-ring.ring-one {
    width: 56px;
    height: 56px;
}

.emergency-map-ring.ring-two {
    width: 108px;
    height: 108px;
}

.emergency-map-ring.ring-three {
    width: 176px;
    height: 176px;
}

.emergency-map-core {
    width: 20px;
    height: 20px;
    background: #b31a16;
    box-shadow: 0 0 0 10px rgba(255, 209, 92, 0.18), 0 0 36px rgba(255, 104, 48, 0.88);
}

.emergency-assignee-block {
    display: grid;
    gap: 12px;
}

.emergency-assignee-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.emergency-assignee-chip {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 16px rgba(15, 23, 42, 0.14);
}

.emergency-action-stack {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.emergency-primary-action,
.emergency-secondary-action {
    min-height: 68px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    transition: 0.22s ease;
}

.emergency-primary-action {
    background: linear-gradient(135deg, #d51f1f 0%, #be1717 100%);
    color: #ffffff;
    box-shadow: 0 18px 26px rgba(197, 24, 24, 0.28);
}

.emergency-primary-action:hover,
.emergency-secondary-action:hover {
    transform: translateY(-1px);
}

.emergency-secondary-action {
    border: 2px solid #c9c8ce;
    background: #f8f7f8;
    color: #5f5e67;
}

.emergency-primary-action:disabled,
.emergency-secondary-action:disabled {
    cursor: default;
    opacity: 0.68;
    transform: none;
}

.emergency-alert-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    border-top: 1px solid #d8d4d6;
    background: #ece9eb;
}

.emergency-alert-foot-note {
    color: #5a5962;
    font-size: 12px;
    font-weight: 700;
}

.emergency-alert-eta {
    color: #d02020;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.toast {
    position: fixed;
    right: 28px;
    bottom: 28px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    z-index: 100;
}

.hidden {
    display: none !important;
}

/* 响应式只做必要适配，保证演示页在中小屏下仍可稳定浏览。 */
@media (max-width: 1440px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid.three-columns {
        grid-template-columns: 1fr;
    }

    .map-node-card {
        width: 170px;
    }


    .panel-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 1080px) {
    .login-page-shell {
        grid-template-columns: 1fr;
        padding: 24px 20px 32px;
    }

    .login-hero-panel {
        min-height: auto;
        padding: 40px 20px 12px 28px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
    }

    .topbar,
    .page-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .emergency-alert-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .metric-grid,
    .role-card-grid,
    .action-card-grid {
        grid-template-columns: 1fr;
    }

    .login-page-shell {
        gap: 24px;
    }

    .login-page-title {
        font-size: 40px;
    }

    .login-page-copy {
        max-width: none;
    }

    .login-signal-panel {
        width: 100%;
    }

    .login-form-panel {
        padding: 24px 18px 24px;
    }

    .map-node-layer {
        position: relative;
        inset: auto;
        display: grid;
        gap: 12px;
        margin-top: 110px;
        padding-right: 0;
    }

    .map-node-card {
        position: relative;
        width: 100%;
        left: auto !important;
        top: auto !important;
        transform: none;
    }


    .topbar,
    .hero-banner,
    .panel-head,
    .role-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .search-shell {
        width: 100%;
    }

    .page-heading {
        font-size: 28px;
    }

    .dialog-form-grid {
        grid-template-columns: 1fr;
    }

    .dialog-head,
    .dialog-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .emergency-alert-mask {
        padding: 16px;
    }

    .emergency-alert-head,
    .emergency-alert-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .emergency-alert-title {
        font-size: 26px;
    }

    .emergency-meta-grid {
        grid-template-columns: 1fr;
    }

    .emergency-meta-value,
    .emergency-meta-value-strong {
        font-size: 28px;
    }

    .emergency-primary-action,
    .emergency-secondary-action {
        width: 100%;
    }
}
