﻿/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: #0a1628;
    color: #e0e6ed;
    overflow: hidden;
    height: 100vh;
    padding-bottom: 42px;
    box-sizing: border-box;
}

/* 登录遮罩 */
.login-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    width: 380px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-box h2 {
    color: #4fc3f7;
    margin-bottom: 8px;
    font-size: 24px;
}

.login-subtitle {
    color: #8899aa;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.login-box input:focus {
    border-color: #4fc3f7;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1976d2, #4fc3f7);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.login-box button:hover {
    opacity: 0.9;
}

.login-tip {
    color: #667788;
    font-size: 12px;
    margin-top: 20px;
}

/* 主容器 */
.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 顶部导航栏 */
.top-bar {
    height: 60px;
    background: linear-gradient(90deg, #0d2137, #133152);
    border-bottom: 1px solid rgba(79, 195, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-left h1 {
    font-size: 20px;
    color: #4fc3f7;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #4caf50;
    box-shadow: 0 0 8px #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 13px;
    color: #8899aa;
}

.top-center {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #4fc3f7;
}

.stat-label {
    font-size: 12px;
    color: #8899aa;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.update-time {
    font-size: 12px;
    color: #8899aa;
}

.btn-refresh, .btn-logout {
    padding: 6px 14px;
    border: 1px solid rgba(79, 195, 247, 0.5);
    border-radius: 4px;
    background: transparent;
    color: #4fc3f7;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refresh:hover, .btn-logout:hover {
    background: rgba(79, 195, 247, 0.1);
}

.btn-logout {
    border-color: rgba(244, 67, 54, 0.5);
    color: #ef5350;
}

.btn-logout:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* 主体内容 */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧面板 */
.left-panel {
    width: 280px;
    background: #0d1b2a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 15px;
    color: #4fc3f7;
}

.badge {
    background: #ef5350;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.panel-search {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e6ed;
    font-size: 13px;
    outline: none;
}

.panel-search input:focus {
    border-color: #4fc3f7;
}

.team-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.team-item {
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.team-header {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.team-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.team-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.team-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-count {
    font-size: 12px;
    color: #8899aa;
}

.team-members {
    display: none;
    padding: 4px 0;
}

.team-members.expanded {
    display: block;
}

.member-item {
    padding: 8px 12px 8px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.member-item:hover {
    background: rgba(79, 195, 247, 0.1);
}

.member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 13px;
    color: #e0e6ed;
}

.member-level {
    font-size: 11px;
    color: #8899aa;
}

.member-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.member-status.online {
    background: #4caf50;
}

.member-status.offline {
    background: #666;
}

/* 地图容器 */
.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#mapContainer {
    width: 100%;
    height: 100%;
}

/* 地图图例 */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(13, 27, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.map-legend h4 {
    font-size: 13px;
    color: #4fc3f7;
    margin-bottom: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #b0bec5;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 地图提示 */
.map-tip {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(13, 27, 42, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: #8899aa;
    z-index: 100;
}

/* 右侧面板 */
.right-panel {
    width: 300px;
    background: #0d1b2a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.task-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    border-left: 3px solid #ff9800;
    transition: all 0.2s;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(-2px);
}

.task-title {
    font-size: 14px;
    font-weight: 500;
    color: #e0e6ed;
    margin-bottom: 6px;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.task-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
}

.task-tag.type-water { background: rgba(33, 150, 243, 0.15); color: #64b5f6; }
.task-tag.type-medical { background: rgba(244, 67, 54, 0.15); color: #ef5350; }
.task-tag.type-fire { background: rgba(255, 152, 0, 0.15); color: #ffb74d; }
.task-tag.type-mountain { background: rgba(76, 175, 80, 0.15); color: #81c784; }

.task-info {
    font-size: 12px;
    color: #8899aa;
    line-height: 1.6;
}

.task-team {
    font-size: 12px;
    color: #b0bec5;
    margin-top: 4px;
}

/* 弹窗 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #0d1b2a;
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 10px;
    width: 420px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 17px;
    color: #4fc3f7;
}

.modal-close {
    background: none;
    border: none;
    color: #8899aa;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-label {
    width: 90px;
    color: #8899aa;
    flex-shrink: 0;
}

.detail-value {
    color: #e0e6ed;
    flex: 1;
}

.detail-value.highlight {
    color: #4fc3f7;
    font-weight: 500;
}

.detail-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-section h4 {
    font-size: 14px;
    color: #4fc3f7;
    margin-bottom: 10px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.5);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #667788;
    font-size: 13px;
}

.empty-state .icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* ========== 第二阶段：指令中心 & 任务通讯 ========== */

/* 标签页切换 */
.panel-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.panel-tabs .tab {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    color: #8899aa;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.panel-tabs .tab:hover {
    color: #b0bec5;
    background: rgba(255,255,255,0.05);
}

.panel-tabs .tab.active {
    color: #4fc3f7;
    border-bottom-color: #4fc3f7;
    background: rgba(79,195,247,0.1);
}

.tab-content {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* 指令中心 */
.panel-actions {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    transform: translateY(-1px);
}

.instruction-filter {
    display: flex;
    gap: 6px;
}

.filter-btn {
    flex: 1;
    padding: 6px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #8899aa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
}

.filter-btn.active {
    background: rgba(79,195,247,0.2);
    border-color: #4fc3f7;
    color: #4fc3f7;
}

.instruction-list {
    padding: 8px;
}

.instruction-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.instruction-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(79,195,247,0.3);
}

.instruction-item.urgent {
    border-left: 3px solid #ef5350;
}

.instruction-title {
    font-size: 14px;
    font-weight: bold;
    color: #e0e6ed;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instruction-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}

.instruction-status.pending {
    background: rgba(255,152,0,0.2);
    color: #ff9800;
}

.instruction-status.accepted {
    background: rgba(79,195,247,0.2);
    color: #4fc3f7;
}

.instruction-status.executing {
    background: rgba(102,187,106,0.2);
    color: #66bb6a;
}

.instruction-status.completed {
    background: rgba(102,187,106,0.3);
    color: #66bb6a;
}

.instruction-meta {
    font-size: 12px;
    color: #78909c;
    line-height: 1.6;
}

.instruction-meta span {
    margin-right: 12px;
}

/* 任务通讯 */
.message-task-list {
    padding: 8px;
}

.message-task-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-task-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(79,195,247,0.3);
}

.message-task-info h4 {
    font-size: 14px;
    color: #e0e6ed;
    margin-bottom: 4px;
}

.message-task-info p {
    font-size: 12px;
    color: #78909c;
}

.message-task-badge {
    background: #ef5350;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 聊天窗口 */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-back {
    background: none;
    border: none;
    color: #4fc3f7;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
}

.chat-back:hover {
    background: rgba(79,195,247,0.1);
}

.chat-title {
    font-size: 15px;
    font-weight: bold;
    color: #e0e6ed;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.chat-message {
    margin-bottom: 12px;
    max-width: 85%;
}

.chat-message.self {
    margin-left: auto;
}

.chat-message-avatar {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1976d2;
    color: #fff;
    text-align: center;
    line-height: 28px;
    font-size: 12px;
    margin-right: 8px;
    vertical-align: top;
}

.chat-message.self .chat-message-avatar {
    display: none;
}

.chat-message-content {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    max-width: calc(100% - 40px);
    word-break: break-word;
}

.chat-message.self .chat-message-content {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #fff;
}

.chat-message-info {
    font-size: 11px;
    color: #667788;
    margin-top: 4px;
    margin-left: 36px;
}

.chat-message.self .chat-message-info {
    text-align: right;
    margin-left: 0;
    margin-right: 4px;
}

.chat-system-message {
    text-align: center;
    font-size: 11px;
    color: #667788;
    margin: 8px 0;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 8px 12px;
    color: #e0e6ed;
    font-size: 13px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: #4fc3f7;
}

.btn-send {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-send:hover {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #b0bec5;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 8px 12px;
    color: #e0e6ed;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4fc3f7;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.recipient-select {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    max-height: 200px;
    display: flex;
    flex-direction: column;
}

.recipient-search {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.recipient-search input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 6px 10px;
    color: #e0e6ed;
    font-size: 12px;
    outline: none;
}

.recipient-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
}

.recipient-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.recipient-item:hover {
    background: rgba(255,255,255,0.05);
}

.recipient-item.selected {
    background: rgba(79,195,247,0.15);
}

.recipient-item input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.recipient-name {
    font-size: 13px;
    color: #e0e6ed;
    flex: 1;
}

.recipient-team {
    font-size: 11px;
    color: #78909c;
}

/* 接收人按队伍分组 */
.recipient-team-group {
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.recipient-team-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.recipient-team-header:hover {
    background: rgba(255,255,255,0.08);
}

.recipient-team-header input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.recipient-team-name {
    font-size: 13px;
    font-weight: 600;
    color: #4fc3f7;
    flex: 1;
}

.recipient-team-count {
    font-size: 11px;
    color: #78909c;
}

.recipient-team-members {
    padding: 4px;
}

.recipient-team-members .recipient-item {
    padding-left: 30px;
}

.selected-recipients {
    padding: 8px 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #4fc3f7;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-cancel {
    background: rgba(255,255,255,0.1);
    color: #b0bec5;
}

.btn-cancel:hover {
    background: rgba(255,255,255,0.15);
}

.form-actions .btn-primary {
    margin-bottom: 0;
    width: auto;
}

/* ==================== 搜索区域样式 ==================== */
.search-area-task-select {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-area-task-select label {
    color: #b0bec5;
    font-size: 13px;
    margin-right: 8px;
}

.search-area-task-select select {
    width: calc(100% - 70px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 6px 10px;
    color: #e0e6ed;
    font-size: 13px;
}

.search-area-list {
    padding: 10px;
    overflow-y: auto;
    height: calc(100% - 120px);
}

.search-area-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-area-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.search-area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.search-area-name {
    font-weight: bold;
    color: #e0e6ed;
    font-size: 14px;
}

.search-area-team {
    font-size: 12px;
    color: #4fc3f7;
    background: rgba(79,195,247,0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.search-area-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #90a4ae;
    margin-bottom: 8px;
}

.search-area-progress {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 3px;
    transition: width 0.3s;
}

.search-area-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 4px 12px;
    font-size: 12px;
    background: #1976D2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-small:hover {
    background: #1565C0;
}

.btn-small.btn-danger {
    background: #e53935;
}

.btn-small.btn-danger:hover {
    background: #c62828;
}

.draw-tips {
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 10px;
}

.draw-tips button {
    margin-top: 8px;
}

.empty-tip {
    text-align: center;
    color: #78909c;
    padding: 40px 20px;
    font-size: 13px;
}

/* 绘制模式下，弹窗遮罩层不拦截鼠标事件，可以点击地图 */
.modal-mask.drawing {
    pointer-events: none;
    background: transparent;
}

.modal-mask.drawing .modal-box {
    pointer-events: auto;
}

/* 左侧新建搜索区域表单 */
.new-search-area-form {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.new-search-area-form h4 {
    margin: 0 0 12px 0;
    color: #e0e6ed;
    font-size: 14px;
}

.new-search-area-form .form-group {
    margin-bottom: 10px;
}

.new-search-area-form .form-group label {
    display: block;
    font-size: 12px;
    color: #b0bec5;
    margin-bottom: 4px;
}

.new-search-area-form .form-group input,
.new-search-area-form .form-group select {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 6px 10px;
    color: #e0e6ed;
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
}

.new-search-area-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.new-search-area-form .form-actions button {
    flex: 1;
    padding: 8px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.new-search-area-form .form-actions .btn-primary {
    background: #1976D2;
    color: white;
}

.new-search-area-form .form-actions .btn-cancel {
    background: rgba(255,255,255,0.1);
    color: #b0bec5;
}

.new-search-area-form .draw-tips {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 8px;
}

.new-search-area-form .draw-tips button {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}

.new-search-area-form .draw-tips .btn-secondary {
    background: #455a64;
    color: white;
}

.new-search-area-form .draw-tips .btn-cancel {
    background: #e53935;
    color: white;
}

/* ========== 用户信息和角色徽章 ========== */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976d2, #4fc3f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 4px;
    border: 2px solid rgba(255,255,255,0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 13px;
    color: #e0e6ed;
    font-weight: 500;
}

.user-team {
    font-size: 11px;
    color: #8899aa;
}

.user-role-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

.user-role-badge.admin {
    background: rgba(244, 67, 54, 0.2);
    color: #ef5350;
}

.user-role-badge.captain {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.btn-change-password {
    padding: 4px 10px;
    border: 1px solid rgba(79, 195, 247, 0.4);
    border-radius: 4px;
    background: transparent;
    color: #4fc3f7;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-change-password:hover {
    background: rgba(79, 195, 247, 0.1);
}

/* 登录表单手机号输入框样式 */
.login-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.login-input-group label {
    display: block;
    font-size: 12px;
    color: #8899aa;
    margin-bottom: 6px;
}

.login-input-group input {
    margin-bottom: 0;
}

.login-error {
    color: #ef5350;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
    min-height: 16px;
}

/* 转让指挥权相关样式 */
.transfer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.transfer-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #8899aa;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.transfer-tab:hover {
    background: rgba(255,255,255,0.08);
}

.transfer-tab.active {
    background: rgba(26,115,232,0.2);
    border-color: #1a73e8;
    color: #4fc3f7;
}

.transfer-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
}

.transfer-target-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.transfer-target-item:hover {
    background: rgba(255,255,255,0.05);
}

.transfer-target-item.selected {
    background: rgba(26,115,232,0.15);
    border-left: 3px solid #1a73e8;
}

.transfer-target-name {
    font-size: 14px;
    color: #e0e6ed;
}

.transfer-target-item:last-child {
    border-bottom: none;
}

#confirmTransferBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 知识管理 ========== */
.knowledge-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f1e33;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.knowledge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #162840;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.knowledge-header h3 {
    color: #4fc3f7;
    font-size: 18px;
}

.knowledge-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #e0e6ed;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.knowledge-close:hover {
    background: rgba(255,255,255,0.2);
}

.knowledge-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.knowledge-categories {
    width: 200px;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.knowledge-articles {
    width: 300px;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.knowledge-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
}

.knowledge-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: bold;
    color: #4fc3f7;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.knowledge-category-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.knowledge-category-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.knowledge-category-item:hover {
    background: rgba(255,255,255,0.05);
}

.knowledge-category-item.active {
    background: rgba(79,195,247,0.15);
    color: #4fc3f7;
}

.knowledge-category-item .category-delete {
    color: #ff5252;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.knowledge-category-item:hover .category-delete {
    opacity: 1;
}

.knowledge-search {
    padding: 12px;
}

.knowledge-search input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #e0e6ed;
    font-size: 13px;
}

.knowledge-article-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 12px;
}

.knowledge-article-item {
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
}

.knowledge-article-item:hover {
    background: rgba(255,255,255,0.08);
}

.knowledge-article-item.active {
    background: rgba(79,195,247,0.1);
    border-color: #4fc3f7;
}

.knowledge-article-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #e0e6ed;
}

.knowledge-article-meta {
    font-size: 12px;
    color: #8899aa;
}

.knowledge-editor-form {
    flex: 1;
}

.knowledge-editor-form .form-group {
    margin-bottom: 16px;
}

.knowledge-editor-form label {
    display: block;
    margin-bottom: 6px;
    color: #8899aa;
    font-size: 13px;
}

.knowledge-editor-form input[type="text"],
.knowledge-editor-form select,
.knowledge-editor-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #e0e6ed;
    font-size: 14px;
}

.knowledge-editor-form textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.knowledge-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.knowledge-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.knowledge-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.knowledge-image-item .image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.knowledge-editor-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #e0e6ed;
    border-radius: 4px;
    cursor: pointer;
}

.btn-small:hover {
    background: rgba(255,255,255,0.2);
}

.btn-small.btn-primary {
    background: #1a73e8;
}

.btn-small.btn-primary:hover {
    background: #1557b0;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-danger:hover {
    background: #c82333;
}

/* ========== 现代科技风美化 ========== */

/* 整体背景渐变 */
body {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a1628 100%);
    background-attachment: fixed;
}

/* 玻璃拟态通用类 */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* 顶部导航栏美化 */
.top-bar {
    background: linear-gradient(90deg, rgba(10, 22, 40, 0.95) 0%, rgba(13, 33, 55, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.top-bar h1 {
    background: linear-gradient(90deg, #4fc3f7 0%, #29b6f6 50%, #4fc3f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(79, 195, 247, 0.3);
}

/* 统计卡片美化 */
.stat-item {
    background: rgba(79, 195, 247, 0.08);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(79, 195, 247, 0.15);
    border-color: rgba(79, 195, 247, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.2);
}

.stat-number {
    background: linear-gradient(135deg, #4fc3f7 0%, #81d4fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* 在线状态呼吸灯 */
.status-dot.online {
    background: #4caf50;
    box-shadow: 0 0 10px #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #4caf50; }
    50% { opacity: 0.6; box-shadow: 0 0 20px #4caf50, 0 0 30px #4caf50; }
}

/* 左侧面板美化 */
.left-panel {
    background: rgba(13, 33, 55, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(79, 195, 247, 0.15);
}

/* 标签页新样式 */
.panel-tabs {
    background: rgba(10, 22, 40, 0.6);
    border-bottom: 1px solid rgba(79, 195, 247, 0.15);
    padding: 8px;
    gap: 6px;
}

.panel-tabs .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #8899aa;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex: 1;
    min-width: 0;
}

.panel-tabs .tab:hover {
    background: rgba(79, 195, 247, 0.1);
    color: #4fc3f7;
    transform: translateY(-1px);
}

.panel-tabs .tab.active {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2) 0%, rgba(41, 182, 246, 0.15) 100%);
    color: #4fc3f7;
    border-color: rgba(79, 195, 247, 0.4);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon svg {
    width: 100%;
    height: 100%;
}

.tab-text {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 搜索框美化 */
.panel-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e6ed;
    transition: all 0.3s ease;
}

.panel-search input:focus {
    border-color: rgba(79, 195, 247, 0.5);
    background: rgba(79, 195, 247, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
    outline: none;
}

/* 队伍列表项美化 */
.team-list .team-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.team-list .team-item:hover {
    background: rgba(79, 195, 247, 0.08);
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateX(4px);
}

/* 队员列表项美化 */
.member-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.member-item:hover {
    background: rgba(79, 195, 247, 0.08);
}

/* 右侧面板美化 */
.right-panel {
    background: rgba(13, 33, 55, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid rgba(79, 195, 247, 0.15);
}

.panel-header {
    background: rgba(10, 22, 40, 0.6);
    border-bottom: 1px solid rgba(79, 195, 247, 0.15);
}

/* 任务卡片美化 */
.task-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid #4fc3f7;
}

.task-item:hover {
    background: rgba(79, 195, 247, 0.08);
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateX(-4px);
    box-shadow: -4px 0 20px rgba(79, 195, 247, 0.15);
}

/* 按钮美化 */
.btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-refresh {
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    color: #4fc3f7;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: rgba(79, 195, 247, 0.2);
    border-color: rgba(79, 195, 247, 0.5);
}

.btn-logout {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    color: #f44336;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
}

/* 用户角色徽章美化 */
.user-role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.user-role-badge.admin {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
}

.user-role-badge.captain {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* 地图区域美化 */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 195, 247, 0.2);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.5);
}

/* 弹窗美化 */
.modal-mask {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-box {
    background: linear-gradient(135deg, rgba(13, 33, 55, 0.98) 0%, rgba(10, 22, 40, 0.98) 100%);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(79, 195, 247, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
    padding: 20px 24px;
}

.modal-header h3 {
    background: linear-gradient(90deg, #4fc3f7 0%, #81d4fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 表单美化 */
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e6ed;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(79, 195, 247, 0.5);
    background: rgba(79, 195, 247, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
    outline: none;
}

/* 页面加载动画 */
.main-container {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 知识管理界面美化 */
.knowledge-panel {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98) 0%, rgba(13, 33, 55, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.knowledge-header {
    background: rgba(79, 195, 247, 0.08);
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
}

.knowledge-header h3 {
    background: linear-gradient(90deg, #4fc3f7 0%, #81d4fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.knowledge-category-item {
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.knowledge-category-item:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.2);
}

.knowledge-category-item.active {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2) 0%, rgba(41, 182, 246, 0.15) 100%);
    border-color: rgba(79, 195, 247, 0.4);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.2);
}

.knowledge-article-item {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.knowledge-article-item:hover {
    background: rgba(79, 195, 247, 0.08);
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateX(4px);
}

.knowledge-article-item.active {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15) 0%, rgba(41, 182, 246, 0.1) 100%);
    border-color: rgba(79, 195, 247, 0.5);
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.2);
}

/* ========== 下级管理浮动面板 ========== */
.subordinate-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 420px;
    background: linear-gradient(135deg, rgba(13, 33, 55, 0.98) 0%, rgba(10, 22, 40, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(79, 195, 247, 0.1);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subordinate-panel.collapsed {
    width: 160px;
}

.subordinate-panel.collapsed .subordinate-content {
    display: none;
}

.subordinate-header {
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(79, 195, 247, 0.15) 0%, rgba(41, 182, 246, 0.1) 100%);
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.subordinate-header:hover {
    background: linear-gradient(90deg, rgba(79, 195, 247, 0.25) 0%, rgba(41, 182, 246, 0.15) 100%);
}

.subordinate-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4fc3f7;
    font-size: 14px;
    font-weight: bold;
}

.subordinate-badge {
    background: #f44336;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.subordinate-arrow {
    color: #8899aa;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.subordinate-panel:not(.collapsed) .subordinate-arrow {
    transform: rotate(180deg);
}

.subordinate-content {
    padding: 12px;
    max-height: 550px;
    overflow-y: auto;
}

.subordinate-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
    flex: 1;
}

.pending-count {
    background: #f44336;
    color: #fff;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    margin-left: 4px;
}

.subordinate-search {
    margin-bottom: 12px;
}

.subordinate-search input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e6ed;
    font-size: 13px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.subordinate-search input:focus {
    border-color: rgba(79, 195, 247, 0.5);
    background: rgba(79, 195, 247, 0.05);
    outline: none;
}

.subordinate-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subordinate-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(79, 195, 247, 0.08);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #4fc3f7;
    font-weight: bold;
    transition: all 0.2s ease;
}

.subordinate-group-header:hover {
    background: rgba(79, 195, 247, 0.15);
}

/* 区域分组标题 - 省 */
.subordinate-region-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: #4fc3f7;
    font-weight: bold;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.subordinate-region-header:hover {
    background: rgba(79, 195, 247, 0.2);
}

.subordinate-region-header .region-arrow {
    font-size: 10px;
    width: 12px;
    text-align: center;
}

.subordinate-region-header .region-name {
    flex: 1;
}

.subordinate-region-header .region-count {
    font-size: 11px;
    color: #8899aa;
    font-weight: normal;
}

/* 区域分组标题 - 市 */
.subordinate-city-header {
    background: rgba(255, 152, 0, 0.08);
    color: #ff9800;
    margin-left: 12px;
    font-size: 12px;
}

.subordinate-city-header:hover {
    background: rgba(255, 152, 0, 0.15);
}

/* 区域分组标题 - 区县 */
.subordinate-district-header {
    background: rgba(76, 175, 80, 0.08);
    color: #4caf50;
    margin-left: 24px;
    font-size: 11px;
    padding: 6px 10px;
}

.subordinate-district-header:hover {
    background: rgba(76, 175, 80, 0.15);
}

/* 筛选栏 */
.subordinate-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.subordinate-filter select {
    flex: 1;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 12px;
    cursor: pointer;
}

.subordinate-filter select:focus {
    outline: none;
    border-color: #4fc3f7;
}

.subordinate-admin-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.2s ease;
}

.subordinate-admin-item:hover {
    background: rgba(79, 195, 247, 0.08);
    border-color: rgba(79, 195, 247, 0.3);
}

.subordinate-admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.subordinate-admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.subordinate-admin-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subordinate-admin-detail {
    flex: 1;
    min-width: 0;
}

.subordinate-admin-name {
    font-size: 13px;
    color: #e0e6ed;
    font-weight: bold;
    margin-bottom: 2px;
}

.subordinate-admin-unit {
    font-size: 11px;
    color: #8899aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subordinate-admin-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.status-disabled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.subordinate-admin-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.subordinate-admin-actions button {
    flex: 1;
    min-width: 0;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
}

.btn-edit:hover {
    background: rgba(79, 195, 247, 0.25);
}

.btn-log {
    background: rgba(156, 39, 176, 0.15);
    color: #ce93d8;
}

.btn-log:hover {
    background: rgba(156, 39, 176, 0.25);
}

.btn-notify {
    background: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
}

.btn-notify:hover {
    background: rgba(255, 152, 0, 0.25);
}

.btn-delete {
    background: rgba(244, 67, 54, 0.15);
    color: #ef5350;
}

.btn-delete:hover {
    background: rgba(244, 67, 54, 0.25);
}

.pending-admin-item {
    background: rgba(255, 152, 0, 0.05);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.pending-admin-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.pending-admin-name {
    font-size: 14px;
    color: #e0e6ed;
    font-weight: bold;
    margin-bottom: 4px;
}

.pending-admin-unit {
    font-size: 12px;
    color: #8899aa;
}

.pending-admin-level {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.pending-admin-meta {
    font-size: 12px;
    color: #8899aa;
    margin-bottom: 10px;
    line-height: 1.6;
}

.pending-admin-actions {
    display: flex;
    gap: 8px;
}

.pending-admin-actions button {
    flex: 1;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-approve {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #fff;
}

.btn-approve:hover {
    background: linear-gradient(135deg, #66bb6a, #43a047);
}

.btn-reject {
    background: rgba(244, 67, 54, 0.15);
    color: #ef5350;
    border: 1px solid rgba(244, 67, 54, 0.3) !important;
}

.btn-reject:hover {
    background: rgba(244, 67, 54, 0.25);
}

.log-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #4fc3f7;
    border-radius: 0 6px 6px 0;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.log-time {
    font-size: 11px;
    color: #8899aa;
    margin-bottom: 4px;
}

.log-content {
    font-size: 13px;
    color: #e0e6ed;
    line-height: 1.5;
}

.log-type {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
}

.log-type-add {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.log-type-edit {
    background: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
}

.log-type-delete {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.log-type-notify {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.form-tips {
    padding: 10px 12px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    font-size: 12px;
    color: #ffb74d;
    margin-top: 10px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(79, 195, 247, 0.15);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 任务标签页 */
.task-tabs {
    display: flex;
    border-bottom: 1px solid rgba(79, 195, 247, 0.15);
    padding: 0 12px;
}

.task-tab {
    flex: 1;
    padding: 10px 0;
    background: transparent;
    border: none;
    color: #8899aa;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.task-tab:hover {
    color: #4fc3f7;
}

.task-tab.active {
    color: #4fc3f7;
    border-bottom-color: #4fc3f7;
    font-weight: 600;
}

/* 复盘报告弹窗 */
.report-modal {
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
}

#reportBody {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.report-section {
    margin-bottom: 24px;
}

.report-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.report-info-item {
    font-size: 13px;
    line-height: 1.6;
}

.report-info-label {
    color: #8899aa;
    margin-right: 8px;
}

.report-info-value {
    color: #e0e6ed;
    font-weight: 500;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(79, 195, 247, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(79, 195, 247, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4fc3f7;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4fc3f7;
    border: 2px solid #0a1628;
}

.timeline-time {
    font-size: 11px;
    color: #8899aa;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #e0e6ed;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 12px;
    color: #aabbcc;
    line-height: 1.5;
}

.timeline-operator {
    font-size: 11px;
    color: #ff9800;
    margin-top: 4px;
}

/* 参与队伍表格 */
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.report-table th {
    background: rgba(79, 195, 247, 0.1);
    color: #4fc3f7;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
}

.report-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #c0c8d0;
}

.report-table tr:hover {
    background: rgba(79, 195, 247, 0.05);
}

/* 统计卡片 */
.report-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.report-stat-card {
    background: rgba(79, 195, 247, 0.08);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.report-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #4fc3f7;
    margin-bottom: 4px;
}

.report-stat-label {
    font-size: 12px;
    color: #8899aa;
}

/* 已完成任务项 */
.completed-task-item {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.completed-task-item:hover {
    background: rgba(79, 195, 247, 0.08);
}

.completed-task-title {
    font-size: 14px;
    font-weight: 600;
    color: #e0e6ed;
    margin-bottom: 6px;
}

.completed-task-meta {
    font-size: 12px;
    color: #8899aa;
    line-height: 1.6;
}

.completed-task-btn {
    margin-top: 8px;
    padding: 5px 12px;
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.completed-task-btn:hover {
    background: rgba(76, 175, 80, 0.3);
}

/* 打印样式 */
@media print {
    body * {
        visibility: hidden;
    }
    #reportModal, #reportModal * {
        visibility: visible;
    }
    #reportModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff;
    }
    .modal-footer {
        display: none;
    }
    .report-section-title {
        color: #333;
    }
    .report-info-value, .timeline-title {
        color: #333;
    }
}

/* ========== 物资管理样式 ========== */
.equipment-list-container {
    height: calc(100% - 120px);
    overflow-y: auto;
    padding: 8px 12px;
}

.equipment-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.equipment-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(64, 158, 255, 0.5);
}

.equipment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.equipment-name {
    font-weight: bold;
    font-size: 14px;
    color: #fff;
}

.equipment-status {
    font-size: 12px;
    font-weight: bold;
}

.equipment-item-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 4px;
}

.equipment-item-location {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.equipment-item-team {
    font-size: 11px;
    color: #4a5568;
    margin-top: 6px;
    text-align: right;
}

.equipment-detail h3 {
    color: #409eff;
    margin-bottom: 16px;
    font-size: 18px;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.detail-label {
    width: 100px;
    color: #a0aec0;
    flex-shrink: 0;
}

.detail-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-danger {
    background: #f56c6c;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-danger:hover {
    background: #f78989;
}

.form-row {
    display: flex;
    gap: 12px;
}

.equipment-stats {
    background: #ecf5ff !important;
    color: #409eff !important;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ========== 数据统计面板 ========== */
.stats-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f0f2f5;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.stats-header {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stats-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.stats-actions {
    display: flex;
    align-items: center;
}

.stats-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* 概览卡片 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stats-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stats-card-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.stats-card-sub {
    font-size: 12px;
    color: #999;
}

/* 图表区域 */
.stats-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stats-chart-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stats-chart-box h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #333;
    border-left: 3px solid #1890ff;
    padding-left: 10px;
}

.stats-chart {
    min-height: 200px;
    max-height: 280px;
    overflow-y: auto;
}

.stats-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
}

/* 柱状图 */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 180px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 70%;
    background: linear-gradient(180deg, #1890ff, #40a9ff);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    position: relative;
    transition: height 0.3s;
}

.bar:hover {
    background: linear-gradient(180deg, #096dd9, #1890ff);
}

.bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.bar-label {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    text-align: center;
    word-break: break-all;
}

/* 折线图（简化版） */
.line-chart {
    position: relative;
    height: 180px;
    padding: 10px 0;
}

.line-chart svg {
    width: 100%;
    height: 100%;
}

/* 列表区域 */
.stats-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stats-list-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.stats-list-box h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #333;
    border-left: 3px solid #52c41a;
    padding-left: 10px;
}

.stats-list {
    flex: 1;
    overflow-y: auto;
}

.stats-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.stats-list-item:last-child {
    border-bottom: none;
}

.stats-list-name {
    font-size: 13px;
    color: #333;
    flex: 1;
}

.stats-list-value {
    font-size: 13px;
    color: #1890ff;
    font-weight: bold;
    margin-left: 10px;
}

.stats-rank {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    margin-right: 8px;
    background: #f0f0f0;
    color: #666;
}

.stats-rank.rank-1 { background: #ffd700; color: #fff; }
.stats-rank.rank-2 { background: #c0c0c0; color: #fff; }
.stats-rank.rank-3 { background: #cd7f32; color: #fff; }

/* 进度条 */
.stats-progress {
    width: 60px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-left: 10px;
}

.stats-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #52c41a, #73d13d);
    border-radius: 3px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-charts {
        grid-template-columns: 1fr;
    }
    .stats-lists {
        grid-template-columns: 1fr;
    }
}


/* ========== 地图图层控制 ========== */
.map-layer-control {
    position: absolute;
    bottom: 80px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.map-layer-control h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.layer-item {
    margin-bottom: 8px;
}

.layer-item:last-child {
    margin-bottom: 0;
}

.layer-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    user-select: none;
}

.layer-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.layer-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

/* 地图图例样式调整 */
.map-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-width: 180px;
    backdrop-filter: blur(10px);
}

.map-legend h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}





/* 左侧面板图例和图层控制 */
.left-panel-legend-layer {
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
}
.left-panel-legend-layer .map-legend {
    position: static !important;
    background: transparent !important;
    border: none !important;
    padding: 0 0 12px 0 !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    max-width: 100% !important;
}
.left-panel-legend-layer .map-legend h4 {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 14px;
}
.left-panel-legend-layer .map-layer-control {
    position: static !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}
.left-panel-legend-layer .map-layer-control h4 {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 14px;
}
.left-panel-legend-layer .layer-item label {
    color: rgba(255,255,255,0.8);
}

