/**
 * 智慧林业管理平台 - 主样式文件
 * 专为林业管理人员设计的现代化界面
 */

:root {
    /* 主色调 - 森林绿色系 */
    --primary-green: #1B5E20;
    --secondary-green: #2E7D32;
    --accent-green: #4CAF50;
    --light-green: #81C784;
    --forest-dark: #0D4E11;
    
    /* 功能色彩 */
    --fire-red: #D32F2F;
    --fire-orange: #FF5722;
    --warning-amber: #FF9800;
    --info-blue: #2196F3;
    --success-green: #4CAF50;
    --pest-purple: #9C27B0;
    --wildlife-brown: #795548;
    
    /* 中性色 */
    --text-primary: #1B5E20;
    --text-secondary: #424242;
    --text-light: #757575;
    --text-white: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-card: #FFFFFF;
    --border-light: #E0E0E0;
    --border-medium: #BDBDBD;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    /* 状态色彩 */
    --status-normal: #4CAF50;
    --status-warning: #FF9800;
    --status-danger: #F44336;
    --status-info: #2196F3;
    --status-offline: #9E9E9E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Microsoft YaHei', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* 顶部导航栏 */
.main-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--primary-green);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px var(--shadow-light);
    z-index: 1000;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-green);
}

.logo i {
    font-size: 28px;
    color: var(--accent-green);
}

.region-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.region-selector:hover {
    background: var(--light-green);
    color: var(--text-white);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 32px;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.weather-info i {
    color: var(--warning-amber);
    font-size: 18px;
}

.wind-info {
    color: var(--text-light);
    margin-left: 8px;
}

.fire-danger-level {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.danger-label {
    color: var(--text-secondary);
}

.danger-level {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.danger-level.level-1 { background: var(--success-green); color: white; }
.danger-level.level-2 { background: var(--info-blue); color: white; }
.danger-level.level-3 { background: var(--warning-amber); color: white; }
.danger-level.level-4 { background: var(--fire-orange); color: white; }
.danger-level.level-5 { background: var(--fire-red); color: white; }

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.emergency-btn {
    background: var(--fire-red);
    color: var(--text-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.emergency-btn:hover {
    background: var(--fire-orange);
    transform: translateY(-1px);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.user-info:hover {
    background: var(--bg-light);
}

.user-info i {
    font-size: 24px;
    color: var(--primary-green);
}

/* 主容器 */
.main-container {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}

/* 左侧边栏 */
.left-sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 监控状态区域 */
.monitoring-status h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.monitoring-status h3 i {
    color: var(--accent-green);
}

.status-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.status-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.status-item.forest-fire {
    border-left-color: var(--fire-red);
}

.status-item.pest-disease {
    border-left-color: var(--pest-purple);
}

.status-item.wildlife {
    border-left-color: var(--wildlife-brown);
}

.status-item.environment {
    border-left-color: var(--accent-green);
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.forest-fire .status-icon {
    background: rgba(211, 47, 47, 0.1);
    color: var(--fire-red);
}

.pest-disease .status-icon {
    background: rgba(156, 39, 176, 0.1);
    color: var(--pest-purple);
}

.wildlife .status-icon {
    background: rgba(121, 85, 72, 0.1);
    color: var(--wildlife-brown);
}

.environment .status-icon {
    background: rgba(76, 175, 80, 0.1);
    color: var(--accent-green);
}

.status-info {
    flex: 1;
}

.status-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.status-value {
    font-weight: 600;
    margin-bottom: 2px;
}

.status-value.normal {
    color: var(--status-normal);
}

.status-value.warning {
    color: var(--status-warning);
}

.status-value.danger {
    color: var(--status-danger);
}

.status-value.good {
    color: var(--status-normal);
}

.status-detail {
    font-size: 12px;
    color: var(--text-light);
}

/* 设备状态 */
.equipment-status h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipment-status h3 i {
    color: var(--accent-green);
}

.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    box-shadow: 0 4px 12px var(--shadow-light);
}

.equipment-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-green);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.equipment-info {
    flex: 1;
}

.equipment-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.equipment-count {
    font-size: 12px;
}

.equipment-count .online {
    color: var(--status-normal);
    font-weight: 600;
}

.equipment-count .total {
    color: var(--text-light);
}

.equipment-action button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deploy-btn {
    background: var(--accent-green);
    color: var(--text-white);
}

.view-btn {
    background: var(--info-blue);
    color: var(--text-white);
}

.monitor-btn {
    background: var(--warning-amber);
    color: var(--text-white);
}

.check-btn {
    background: var(--text-light);
    color: var(--text-white);
}

.equipment-action button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

/* 护林员状态 */
.ranger-status h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranger-status h3 i {
    color: var(--accent-green);
}

.ranger-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 中央地图区域 */
.map-section {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-header {
    background: var(--primary-green);
    color: var(--text-white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-controls {
    display: flex;
    gap: 8px;
}

.map-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.map-btn.active {
    background: var(--text-white);
    color: var(--primary-green);
}

.map-tools {
    display: flex;
    gap: 8px;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.map-container {
    flex: 1;
    position: relative;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--accent-green);
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--bg-white);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
    min-width: 200px;
}

.map-legend h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.fire { background: var(--fire-red); }
.legend-color.pest { background: var(--pest-purple); }
.legend-color.wildlife { background: var(--wildlife-brown); }
.legend-color.monitoring { background: var(--accent-green); }

/* 右侧边栏 */
.right-sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 今日重点工作 */
.daily-tasks h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.daily-tasks h3 i {
    color: var(--accent-green);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.task-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.task-item:hover {
    box-shadow: 0 4px 12px var(--shadow-light);
}

.task-item.priority-high {
    border-left-color: var(--fire-red);
}

.task-item.priority-medium {
    border-left-color: var(--warning-amber);
}

.task-item.priority-low {
    border-left-color: var(--info-blue);
}

.task-priority {
    width: 4px;
    border-radius: 2px;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.task-time {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.task-assignee {
    font-size: 12px;
    color: var(--text-secondary);
}

.task-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.status-badge.in-progress {
    background: rgba(76, 175, 80, 0.1);
    color: var(--accent-green);
}

.status-badge.pending {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-amber);
}

.task-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn.primary {
    background: var(--accent-green);
    color: var(--text-white);
}

.action-btn.secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

/* 实时报警 */
.alert-panel h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-panel h3 i {
    color: var(--warning-amber);
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.alert-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.alert-item:hover {
    box-shadow: 0 4px 12px var(--shadow-light);
}

.alert-item.level-warning {
    border-left-color: var(--warning-amber);
}

.alert-item.level-info {
    border-left-color: var(--info-blue);
}

.alert-item.level-danger {
    border-left-color: var(--fire-red);
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.level-warning .alert-icon {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-amber);
}

.level-info .alert-icon {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info-blue);
}

.level-danger .alert-icon {
    background: rgba(244, 67, 54, 0.1);
    color: var(--fire-red);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.alert-location {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.alert-time {
    font-size: 11px;
    color: var(--text-light);
}

.alert-actions {
    display: flex;
    align-items: center;
}

.alert-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-green);
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.alert-summary {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
}

.summary-item {
    text-align: center;
}

.summary-count {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.summary-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 数据统计 */
.statistics-panel h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.statistics-panel h3 i {
    color: var(--accent-green);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px var(--shadow-light);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-green);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 快速操作 */
.quick-actions h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-actions h3 i {
    color: var(--accent-green);
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
}

.quick-btn.emergency {
    background: rgba(244, 67, 54, 0.1);
    color: var(--fire-red);
}

.quick-btn.drone {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info-blue);
}

.quick-btn.report {
    background: rgba(76, 175, 80, 0.1);
    color: var(--accent-green);
}

.quick-btn.broadcast {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-amber);
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.quick-btn i {
    font-size: 20px;
}

/* 底部状态栏 */
.status-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    height: 48px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-online {
    color: var(--status-normal);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.last-update {
    color: var(--text-light);
}

.footer-center {
    display: flex;
    gap: 24px;
}

.network-status, .data-sync {
    display: flex;
    gap: 4px;
}

.status-good, .sync-normal {
    color: var(--status-normal);
    font-weight: 600;
}

.footer-right {
    font-weight: 600;
    color: var(--text-primary);
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-medium);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-header {
    background: var(--fire-red);
    color: var(--text-white);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
}

.emergency-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group select,
.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-footer {
    padding: 20px 24px;
    background: var(--bg-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger {
    background: var(--fire-red);
    color: var(--text-white);
}

.btn-danger:hover {
    background: var(--fire-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* 通知容器 */
.notification-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-medium);
    padding: 16px 20px;
    border-left: 4px solid var(--accent-green);
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.success {
    border-left-color: var(--success-green);
}

.notification.warning {
    border-left-color: var(--warning-amber);
}

.notification.error {
    border-left-color: var(--fire-red);
}

.notification.info {
    border-left-color: var(--info-blue);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

.notification-icon {
    font-size: 18px;
}

.notification.success .notification-icon {
    color: var(--success-green);
}

.notification.warning .notification-icon {
    color: var(--warning-amber);
}

.notification.error .notification-icon {
    color: var(--fire-red);
}

.notification.info .notification-icon {
    color: var(--info-blue);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.notification-close:hover {
    background: var(--bg-light);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .main-container {
        grid-template-columns: 280px 1fr 280px;
    }
    
    .left-sidebar,
    .right-sidebar {
        padding: 16px;
    }
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .map-section {
        grid-row: 1 / -1;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 16px;
        flex-wrap: wrap;
        height: auto;
        min-height: 64px;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
    
    .main-container {
        padding: 8px;
    }
    
    .notification-container {
        right: 8px;
        max-width: calc(100vw - 16px);
    }
}

/* 工具类 */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.p-4 {
    padding: 16px;
}

.m-0 {
    margin: 0;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}
}

.platform-level i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.platform-level:hover {
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    transform: translateY(-1px);
}

.platform-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    min-width: 200px;
}

.platform-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.platform-option {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(116, 198, 157, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.platform-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.platform-option:first-child {
    border-radius: 8px 8px 0 0;
}

.platform-option:hover {
    background: rgba(82, 183, 136, 0.2);
}

.platform-option.active {
    background: var(--accent-green);
    color: var(--text-white);
}

.platform-icon {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: var(--accent-green);
}

.platform-option.active .platform-icon {
    color: var(--text-white);
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: var(--accent-green);
    color: var(--text-white);
}

.nav-menu a[href="#drone"] {
    background: var(--accent-green);
    color: var(--text-white);
}

.nav-menu a[href="#fire"] {
    background: var(--warning-orange);
    color: var(--text-white);
}

.nav-menu a[href="#wildlife"] {
    background: var(--success-green);
    color: var(--text-white);
}

.nav-menu a[href="#visitor"] {
    background: var(--info-blue);
    color: var(--text-white);
}

.nav-menu a[href="#environment"] {
    background: var(--nature-green);
    color: var(--text-white);
}

.nav-menu a[href="#data"] {
    background: var(--task-blue);
    color: var(--text-white);
}

.nav-menu a[href="#test"] {
    background: var(--warning-orange);
    color: var(--text-white);
}

.nav-menu a[href="#emergency"] {
    background: var(--danger-red);
    color: var(--text-white);
}

/* 报警信息面板 */
.alert-info-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.alert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
}

/* 自定义滚动条样式 */
.alert-grid::-webkit-scrollbar {
    width: 6px;
}

.alert-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.alert-grid::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 3px;
}

.alert-grid::-webkit-scrollbar-thumb:hover {
    background: var(--light-green);
}

.alert-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--warning-orange);
    transition: all 0.3s ease;
    cursor: pointer;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.alert-item.danger {
    border-left-color: var(--danger-red);
}

.alert-item.warning {
    border-left-color: var(--warning-orange);
}

.alert-item.info {
    border-left-color: var(--info-blue);
}

.alert-item.success {
    border-left-color: var(--success-green);
}

.alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.alert-location {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-white);
}

.alert-time {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.alert-content {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.alert-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.alert-status.pending {
    background: var(--warning-orange);
    color: var(--text-white);
}

.alert-status.processing {
    background: var(--info-blue);
    color: var(--text-white);
}

.alert-status.resolved {
    background: var(--success-green);
    color: var(--text-white);
}

/* 面板头部控制区域 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 0.8rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.8rem 0.5rem 2.2rem;
    color: var(--text-white);
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
    color: var(--text-gray);
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--light-green);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--danger-red);
    color: var(--text-white);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: var(--warning-orange);
    color: var(--text-white);
}

.btn-warning:hover {
    background: #e67e22;
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
    height: calc(100vh - 70px);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    overflow: hidden;
}

/* 状态卡片 */
.status-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green));
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent-green);
}

.card-content {
    height: calc(100% - 60px);
    overflow-y: auto;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .alert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        height: auto;
        min-height: 70px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .main-content {
        padding: 1rem;
        margin-top: 80px;
        height: calc(100vh - 80px);
    }
    
    .alert-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .panel-controls {
        justify-content: space-between;
    }
    
    .search-input {
        width: 150px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* 通知系统样式 */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--accent-green);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    border-left-color: var(--success-green);
}

.notification.error {
    border-left-color: var(--danger-red);
}

.notification.warning {
    border-left-color: var(--warning-orange);
}

.notification.info {
    border-left-color: var(--info-blue);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-title {
    font-weight: 600;
    color: var(--text-white);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--text-white);
}

.notification-message {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 任务网格样式 */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    max-height: 100%;
    padding-right: 0.5rem;
}

.task-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--task-blue);
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.task-item.pending {
    border-left-color: var(--pending-yellow);
}

.task-item.in-progress {
    border-left-color: var(--info-blue);
}

.task-item.completed {
    border-left-color: var(--success-green);
}

.task-item.overdue {
    border-left-color: var(--danger-red);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.task-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.task-priority {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.task-priority.high {
    background: var(--danger-red);
    color: var(--text-white);
}

.task-priority.medium {
    background: var(--warning-orange);
    color: var(--text-white);
}

.task-priority.low {
    background: var(--success-green);
    color: var(--text-white);
}

.task-priority.urgent {
    background: var(--danger-red);
    color: var(--text-white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.task-description {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.task-deadline {
    color: var(--warning-orange);
}

.task-progress {
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green));
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.3rem;
}

/* 人员网格样式 */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    max-height: 100%;
    padding-right: 0.5rem;
}

.staff-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.staff-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.staff-item.online {
    border-color: var(--success-green);
}

.staff-item.busy {
    border-color: var(--warning-orange);
}

.staff-item.offline {
    border-color: var(--text-gray);
}

.staff-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: bold;
    font-size: 1.2rem;
}

.staff-info h3 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.staff-position {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.staff-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--success-green);
}

.status-indicator.busy {
    background: var(--warning-orange);
}

.status-indicator.offline {
    background: var(--text-gray);
}

.staff-details {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.staff-workload {
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
}

.staff-workload.high {
    background: var(--danger-red);
    color: var(--text-white);
}

.staff-workload.medium {
    background: var(--warning-orange);
    color: var(--text-white);
}

.staff-workload.low {
    background: var(--success-green);
    color: var(--text-white);
}

/* 系统统计样式 */
.system-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.stat-trend {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.stat-trend.up {
    color: var(--success-green);
}

.stat-trend.down {
    color: var(--danger-red);
}

.stat-trend.stable {
    color: var(--text-gray);
}

/* 状态筛选器 */
.status-filter {
    display: flex;
    gap: 0.5rem;
}

.status-filter .filter-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 15px;
}

.status-filter .filter-btn.active {
    background: var(--accent-green);
    color: var(--text-white);
}

/* 筛选菜单 */
.filter-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    min-width: 120px;
}

.filter-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-option {
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(116, 198, 157, 0.1);
    font-size: 0.9rem;
    color: var(--text-white);
}

.filter-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.filter-option:first-child {
    border-radius: 8px 8px 0 0;
}

.filter-option:hover {
    background: rgba(82, 183, 136, 0.2);
}

.filter-option.active {
    background: var(--accent-green);
    color: var(--text-white);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.modal-body {
    color: var(--text-gray);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 报警栏样式 */
.alert-bar {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 9000;
    display: none;
    animation: alertBarSlideDown 0.3s ease-out;
}

@keyframes alertBarSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.alert-bar-content {
    background: var(--danger-red);
    color: var(--text-white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.alert-bar.alert-bar-danger .alert-bar-content {
    background: var(--danger-red);
}

.alert-bar.alert-bar-warning .alert-bar-content {
    background: var(--warning-orange);
}

.alert-bar.alert-bar-info .alert-bar-content {
    background: var(--info-blue);
}

.alert-bar.alert-bar-success .alert-bar-content {
    background: var(--success-green);
}

.alert-bar-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-bar-message {
    flex: 1;
    font-weight: 500;
}

.alert-bar-close {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.3rem;
    border-radius: 50%;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.alert-bar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 时间显示样式 */
.datetime-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.current-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.current-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-state-subtext {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* 报警横幅样式 */
.alert-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: var(--danger-red);
    color: var(--text-white);
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.alert-banner.hidden {
    transform: translateY(-100%);
}

.alert-banner.warning {
    background: var(--warning-orange);
}

.alert-banner.danger {
    background: var(--danger-red);
}

.alert-banner.info {
    background: var(--info-blue);
}

.alert-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.alert-banner-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.alert-banner-text {
    flex: 1;
    font-weight: 500;
}

.alert-banner-time {
    font-size: 0.9rem;
    opacity: 0.9;
}

.alert-banner-close {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.3rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.alert-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 地区选择器样式 */
.region-selector {
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: var(--text-white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(82, 183, 136, 0.3);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.region-selector i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.region-selector:hover {
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    transform: translateY(-1px);
}

.region-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.region-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.region-option {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(116, 198, 157, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.region-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.region-option:first-child {
    border-radius: 8px 8px 0 0;
}

.region-option:hover {
    background: rgba(82, 183, 136, 0.2);
}

.region-option.active {
    background: var(--accent-green);
    color: var(--text-white);
}

.region-icon {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: var(--accent-green);
}

.region-option.active .region-icon {
    color: var(--text-white);
}

/* 主应用容器布局 */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.main-content {
    display: flex;
    flex: 1;
    margin-top: 70px; /* 为导航栏留出空间 */
    height: calc(100vh - 70px - 40px); /* 减去导航栏和状态栏高度 */
    transition: margin-top 0.3s ease;
}

.main-content.with-alert-banner {
    margin-top: 120px; /* 为导航栏和报警横幅留出空间 */
    height: calc(100vh - 120px - 40px);
}

.left-panel {
    width: 350px;
    min-width: 300px;
    max-width: 450px;
    background: rgba(45, 90, 61, 0.3);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    resize: horizontal;
}

.center-panel {
    flex: 1;
    background: rgba(45, 90, 61, 0.1);
    overflow: hidden;
    min-width: 600px;
}

.right-panel {
    width: 350px;
    min-width: 300px;
    max-width: 450px;
    background: rgba(45, 90, 61, 0.3);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    resize: horizontal;
}

.panel-container {
    height: 100%;
    padding: 1rem;
}

/* 状态栏样式 */
.status-bar {
    height: 40px;
    background: rgba(27, 67, 50, 0.95);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    backdrop-filter: blur(10px);
}

.status-info {
    display: flex;
    gap: 2rem;
}

.status-time {
    font-weight: 500;
    color: var(--text-white);
}

/* 模态框容器 */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.modal-container.active {
    pointer-events: all;
}

/* 通知容器 */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9000;
    max-width: 400px;
    pointer-events: none;
}

.notification-container .notification {
    pointer-events: all;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 错误容器样式 */
.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-green) 100%);
    color: var(--text-white);
    padding: 2rem;
}

.error-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--danger-red);
}

.error-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.error-container button {
    background: var(--accent-green);
    color: var(--text-white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.error-container button:hover {
    background: var(--light-green);
}

/* 面板标题样式 */
.panel-title {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.panel-title i {
    color: var(--accent-green);
}

/* 日期时间显示 */
.datetime-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.current-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.current-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* 报警信息面板样式 */
.alert-info-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.alert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .left-panel,
    .right-panel {
        width: 280px;
        min-width: 250px;
    }
    
    .center-panel {
        min-width: 500px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel,
    .right-panel {
        width: 100%;
        height: 200px;
        resize: vertical;
    }
    
    .center-panel {
        flex: 1;
        min-height: 300px;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        height: auto;
        min-height: 70px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .platform-level {
        display: none;
    }
    
    .datetime-display {
        order: -1;
        width: 100%;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .panel-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .search-input {
        width: 150px;
    }
}