/* 自定义样式 */
:root {
    --primary-bg: #001829;
    --secondary-bg: rgba(0, 84, 138, 0.4);
    --border-color: rgba(0, 198, 255, 0.3);
    --text-highlight: #00C6FF;
    --text-normal: #FFFFFF;
    --chart-line: #00FFFF;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-normal);
    font-family: "Microsoft YaHei", sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 布局容器样式 */
.layout-container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1rem;
    height: 100vh;
    padding: 1rem;
}

/* 左侧和右侧面板 */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

/* 中间地图容器 */
.map-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-highlight), transparent);
}

.dashboard-title {
    font-size: 1rem;
    color: var(--text-highlight);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.dashboard-title::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 16px;
    background: var(--text-highlight);
}

.dashboard-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-highlight);
}

.trend-up {
    color: #FF4D4F;
}

.trend-down {
    color: #52C41A;
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.alert-pulse {
    animation: pulse 2s infinite;
}

/* 地图样式 */
.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

#map {
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* 数据列表样式 */
.data-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏Webkit浏览器的滚动条 */
.data-list::-webkit-scrollbar,
.dashboard-card::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none;
}

/* 图表容器样式 */
.chart-container {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* 导航标签样式 */
.nav-tab {
    padding: 0.5rem 1.5rem;
    background: rgba(0, 84, 138, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-highlight);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-tab.active {
    background: var(--text-highlight);
    color: var(--primary-bg);
}

/* 装饰线条 */
.corner-decoration {
    position: absolute;
    width: 8px;
    height: 8px;
    border-style: solid;
    border-color: var(--text-highlight);
}

.corner-decoration.top-left {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.corner-decoration.top-right {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
}

.corner-decoration.bottom-left {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
}

.corner-decoration.bottom-right {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
} 