/* 海东公安云箭无人机侦测平台 - 主样式文件 */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #001122 0%, #003366 25%, #004488 50%, #0066aa 75%, #0088cc 100%);
    min-height: 100vh;
    color: #e0e8ff;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 科技感背景动画 - 蓝色主题 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 150, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(100, 200, 255, 0.15) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* 头部样式 */
header {
    background: rgba(0, 30, 60, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 150, 255, 0.4);
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 150, 255, 0.2);
    position: relative;
    z-index: 100;
}

h1 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #00aaff, #0088ff, #66ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 150, 255, 0.6);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* 主要布局 - 三栏式 */
main {
    flex: 1;
    display: grid;
    grid-template-columns: 380px 1fr 380px;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 140px);
    overflow: hidden;
}

/* 左侧面板 */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* 中央地图区域 */
.center-map {
    display: flex;
    flex-direction: column;
}

/* 右侧面板 */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* 底部命令面板 */
.bottom-panel {
    grid-column: 1 / -1;
    max-height: 300px;
    overflow-y: auto;
}

/* 高德地图右键菜单 - 亮色气泡样式 */
.amap-menu {
    background: #1e40af !important;
    border: 2px solid #60a5fa !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
}

.amap-menu .amap-menu-item {
    background: transparent !important;
    color: #000000 !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.amap-menu .amap-menu-item:hover {
    background: #3b82f6 !important;
    color: #000000 !important;
}

.amap-menu .amap-menu-item:last-child {
    border-bottom: none !important;
}

/* 菜单项左侧高亮条 */
.amap-menu .amap-menu-item {
    position: relative !important;
}
.amap-menu .amap-menu-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #60a5fa, transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.amap-menu .amap-menu-item:hover:before {
    opacity: 1;
}

.amap-menu ul { list-style: none; margin: 0; padding: 0; }
.amap-menu li {
    position: relative;
    background: transparent !important;
    color: #000000 !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}
.amap-menu li:last-child { border-bottom: none !important; }
.amap-menu li:hover { background: #3b82f6 !important; color: #000000 !important; }
.amap-menu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #60a5fa, transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.amap-menu li:hover::before { opacity: 1; }

/* 自定义右键菜单样式 */
.custom-context-menu {
    background: #eaf2ff;
    border: 2px solid #bcd6ff;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    padding: 6px 0;
    min-width: 160px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.custom-context-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #000000;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 14px;
}

.custom-context-menu .menu-item:hover {
    background-color: #3b82f6;
    color: #000000;
}

.custom-context-menu .menu-item:active {
    background-color: #505050;
}

.custom-context-menu .menu-icon {
    margin-right: 8px;
    font-size: 16px;
}

.custom-context-menu .menu-text {
    flex: 1;
    white-space: nowrap;
}
