* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00D4FF;
    --primary-dark: #0A1628;
    --primary-light: #1A3A5C;
    --bg-panel: rgba(10, 22, 40, 0.9);
    --border-glow: 0 0 10px rgba(0, 212, 255, 0.5);
    --text-color: #E8F4FF;
    --text-secondary: #8BA4B8;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #0A1628 0%, #1A2A4A 50%, #0A1628 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
}

.header {
    height: 60px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light), var(--primary-dark));
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: none;
    position: relative;
    flex-shrink: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.2), transparent);
    border-radius: 6px 6px 0 0;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.header-title h1 {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(90deg, #00D4FF, #FFFFFF, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    letter-spacing: 3px;
}

.header-title .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #0080FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 1;
}

.view-switch {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 25px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.view-switch button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.view-switch button.active {
    background: linear-gradient(135deg, var(--primary-color), #0080FF);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.view-switch button:hover:not(.active) {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Consolas', monospace;
}

.date {
    font-size: 16px;
    color: var(--text-secondary);
}

.time {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    min-height: 0;
}

.panel {
    background: var(--bg-panel);
    border: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.panel-header {
    height: 40px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    border-bottom: none;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
    flex-shrink: 0;
}

.panel-header .dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.panel-header h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.panel-content {
    flex: 1;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

.main-panel {
    grid-row: 1 / 3;
    grid-column: 2;
}

.left-top-panel {
    grid-row: 1;
    grid-column: 1;
}

.right-top-panel {
    grid-row: 1;
    grid-column: 3;
}

.left-bottom-panel {
    grid-row: 2;
    grid-column: 1;
}

.right-bottom-panel {
    grid-row: 2;
    grid-column: 3;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

#amap-container {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.amap-logo,
.amap-copyright {
    display: none !important;
}

.uav-marker-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    border: 2px solid #fff;
}

.uav-marker-icon span {
    transform: rotate(45deg);
    font-size: 10px;
    font-weight: bold;
    color: #fff;
}

.team-marker-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FF9500, #FF5500);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.8);
    border: 2px solid #fff;
}

.team-marker-icon span {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
}

.info-window {
    background: rgba(10, 22, 40, 0.95);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-color);
    font-size: 12px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.info-window h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 5px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    color: var(--primary-color);
    font-weight: 500;
}

.context-menu {
    position: fixed;
    background: rgba(10, 22, 40, 0.98);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 5px 0;
    min-width: 150px;
    z-index: 1000;
    display: none;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.context-menu.show {
    display: block;
}

.context-menu-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu-item:hover {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

.context-menu-item .icon {
    font-size: 14px;
}

.weather-card {
    background: linear-gradient(135deg, rgba(0, 100, 150, 0.3), rgba(0, 50, 80, 0.3));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.weather-city {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.weather-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    flex: 1;
    min-height: 0;
}

.weather-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.weather-icon {
    width: 3.5rem;
    height: 3.5rem;
    position: relative;
    flex-shrink: 0;
}

.weather-text {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
}

.weather-icon.sunny::before,
.weather-icon.晴天::before,
.weather-icon.晴::before {
    content: '';
    position: absolute;
    width: 2.6rem;
    height: 2.6rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    top: 0.45rem;
    left: 0.45rem;
    box-shadow: 0 0 1rem rgba(255, 215, 0, 0.6);
}

.weather-icon.sunny-cloudy::before,
.weather-icon.晴转多云::before {
    content: '';
    position: absolute;
    width: 2.6rem;
    height: 2.6rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    top: 0.45rem;
    left: 0.45rem;
    box-shadow: 0 0 1rem rgba(255, 215, 0, 0.6);
}

.weather-icon.sunny-cloudy::after,
.weather-icon.晴转多云::after {
    content: '';
    position: absolute;
    width: 1.8rem;
    height: 1.1rem;
    background: linear-gradient(135deg, #B0C4DE, #87CEEB);
    border-radius: 1.1rem;
    top: 1.2rem;
    right: 0.4rem;
}

.weather-icon.cloudy::before,
.weather-icon.多云::before {
    content: '';
    position: absolute;
    width: 2.2rem;
    height: 1.3rem;
    background: linear-gradient(135deg, #B0C4DE, #87CEEB);
    border-radius: 1.3rem;
    top: 1.1rem;
    left: 0.7rem;
}

.weather-icon.cloudy::after,
.weather-icon.多云::after {
    content: '';
    position: absolute;
    width: 1.8rem;
    height: 1.8rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    top: 0.5rem;
    left: 0.4rem;
    box-shadow: 0 0 0.8rem rgba(255, 215, 0, 0.5);
}

.weather-icon.阴::before {
    content: '';
    position: absolute;
    width: 3rem;
    height: 1.8rem;
    background: linear-gradient(135deg, #B0C4DE, #87CEEB);
    border-radius: 1.8rem;
    top: 0.85rem;
    left: 0.25rem;
}

.weather-icon.rainy::before,
.weather-icon.雨::before,
.weather-icon.小雨::before,
.weather-icon.中雨::before,
.weather-icon.大雨::before {
    content: '';
    position: absolute;
    width: 3rem;
    height: 1.8rem;
    background: linear-gradient(135deg, #708090, #4682B4);
    border-radius: 1.8rem;
    top: 0.85rem;
    left: 0.25rem;
}

.weather-icon.rainy::after,
.weather-icon.雨::after,
.weather-icon.小雨::after,
.weather-icon.中雨::after,
.weather-icon.大雨::after {
    content: '';
    position: absolute;
    width: 0.2rem;
    height: 1rem;
    background: #00D4FF;
    bottom: 0.4rem;
    left: 1rem;
    box-shadow: 1rem 0 0 #00D4FF, 2rem 0 0 #00D4FF;
    animation: rain 0.8s linear infinite;
}

.weather-icon.雷阵雨::before {
    content: '';
    position: absolute;
    width: 3rem;
    height: 1.8rem;
    background: linear-gradient(135deg, #708090, #4682B4);
    border-radius: 1.8rem;
    top: 0.85rem;
    left: 0.25rem;
}

.weather-icon.雷阵雨::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-bottom: 1.2rem solid #FFD700;
    top: 0.5rem;
    left: 0.9rem;
    transform: rotate(-15deg);
    animation: lightning 1.5s ease-in-out infinite;
    z-index: 2;
}

.weather-icon.雷阵雨 .rain-drop {
    position: absolute;
    width: 0.2rem;
    height: 0.8rem;
    background: #00D4FF;
    bottom: 0.5rem;
    left: 1rem;
    box-shadow: 0.8rem 0 0 #00D4FF, 1.6rem 0 0 #00D4FF;
    animation: rain 0.8s linear infinite;
}

@keyframes lightning {

    0%,
    70%,
    100% {
        opacity: 0;
        transform: rotate(-15deg) scale(0.8);
    }

    75%,
    80%,
    85% {
        opacity: 1;
        transform: rotate(-15deg) scale(1);
    }
}

.weather-icon.雪::before {
    content: '';
    position: absolute;
    width: 3rem;
    height: 1.8rem;
    background: linear-gradient(135deg, #E0E0E0, #FFFFFF);
    border-radius: 1.8rem;
    top: 0.85rem;
    left: 0.25rem;
}

.weather-icon.雪::after {
    content: '';
    position: absolute;
    width: 0.35rem;
    height: 0.35rem;
    background: #FFFFFF;
    border-radius: 50%;
    bottom: 0.5rem;
    left: 1rem;
    box-shadow: 1rem 0 0 #FFFFFF, 2rem 0 0 #FFFFFF, 0.5rem 0.5rem 0 #FFFFFF, 1.5rem 0.5rem 0 #FFFFFF, 2.5rem 0.5rem 0 #FFFFFF;
    animation: snow 1s linear infinite;
}

@keyframes snow {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes rain {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.weather-temp {
    font-size: 2.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 1.2rem rgba(0, 212, 255, 0.5);
}

.weather-temp span {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-bottom: 0;
}

.weather-detail {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 0.8rem;
    text-align: center;
}

.weather-detail .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.weather-detail .value {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.weather-card.loading,
.weather-card.error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.loading-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text,
.error-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.error-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pest-card {
    background: linear-gradient(135deg, rgba(100, 50, 0, 0.3), rgba(50, 30, 0, 0.3));
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pest-card.error {
    background: linear-gradient(135deg, rgba(100, 30, 30, 0.3), rgba(50, 15, 15, 0.3));
    border-color: rgba(255, 100, 100, 0.3);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pest-card.error .error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.pest-card.error .error-text {
    font-size: 1.2rem;
    color: #FF6400;
    font-weight: bold;
    margin-bottom: 8px;
}

.pest-card.error .error-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pest-region {
    font-size: 18px;
    font-weight: bold;
    color: #FF9500;
}

.pest-level {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.pest-level.low {
    background: rgba(0, 255, 100, 0.3);
    color: #00FF64;
    border: 1px solid #00FF64;
}

.pest-level.medium {
    background: rgba(255, 200, 0, 0.3);
    color: #FFC800;
    border: 1px solid #FFC800;
}

.pest-level.high {
    background: rgba(255, 100, 0, 0.3);
    color: #FF6400;
    border: 1px solid #FF6400;
}

.pest-level.severe {
    background: rgba(255, 0, 0, 0.2);
    color: #FF0000;
    border: 1px solid #FF0000;
    animation: severe-pulse 1s ease-in-out infinite;
}

@keyframes severe-pulse {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    }
}

.type-tag {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background: rgba(255, 149, 0, 0.2);
    border: 1px solid rgba(255, 149, 0, 0.5);
    border-radius: 8px;
    font-size: 12px;
    color: #FF9500;
}

.pest-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.pest-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #FF9500;
}

.pest-type {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.pest-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.pest-stat {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.pest-stat .label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.pest-stat .value {
    color: #FF9500;
    font-weight: bold;
    font-size: 0.9rem;
}

.pest-stat .value.risk-low {
    color: #00FF64;
}

.pest-stat .value.risk-medium {
    color: #FFC800;
}

.pest-stat .value.risk-high {
    color: #FF6400;
}

.pest-stat .value.trend-up {
    color: #FF6400;
}

.pest-stat .value.trend-down {
    color: #00FF64;
}

.pest-stat .value.trend-stable {
    color: #87CEEB;
}

.pest-warning {
    margin-top: auto;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 5px;
    font-size: 12px;
    color: #FF6666;
    text-align: center;
}

.pest-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.pest-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 15px 15px;
    pointer-events: none;
    border-radius: 8px;
}

.pest-error .error-triangle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    z-index: 1;
}

.pest-error .triangle-icon {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 3px;
}

.pest-error .error-title {
    font-size: 17px;
    font-weight: bold;
    color: #FF6600;
    margin-bottom: 8px;
    z-index: 1;
}

.pest-error .error-desc {
    font-size: 12px;
    color: #7a8a9a;
    text-align: center;
    z-index: 1;
}

.video-panel {
    background: linear-gradient(135deg, rgba(0, 50, 50, 0.5), rgba(0, 30, 30, 0.5));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 100, 80, 0.3), rgba(0, 50, 50, 0.5));
}

.video-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
    animation: scanline 3s linear infinite;
    z-index: 2;
}

@keyframes scanline {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.video-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1;
    animation: video-pulse 2s ease-in-out infinite;
}

@keyframes video-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.video-label {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-secondary);
    z-index: 1;
}

.video-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.video-status span {
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    font-size: 11px;
    color: #00FF64;
}

.chart-container {
    width: 100%;
    height: 100%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, var(--primary-dark), #1A3A5C);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.modal-header {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.modal-header h3 {
    font-size: 18px;
    color: var(--primary-color);
}

.modal-close {
    width: 30px;
    height: 30px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #FF4444;
    border-radius: 50%;
    color: #FF4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.4);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-tab {
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.modal-tab.active {
    background: var(--primary-color);
    color: #fff;
}

.modal-tab:hover:not(.active) {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

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

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    font-size: 13px;
}

.data-table th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.data-table tr:hover td {
    background: rgba(0, 212, 255, 0.05);
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 6px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-add {
    background: linear-gradient(135deg, #00D4FF, #0080FF);
    color: #fff;
}

.btn-edit {
    background: rgba(255, 200, 0, 0.2);
    color: #FFC800;
    border: 1px solid #FFC800;
}

.btn-delete {
    background: rgba(255, 0, 0, 0.2);
    color: #FF4444;
    border: 1px solid #FF4444;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

@media (max-width: 1920px) {
    .container {
        padding: 8px;
        gap: 8px;
    }

    .header {
        padding: 0 20px;
    }

    .header-title h1 {
        font-size: 24px;
    }

    .time {
        font-size: 20px;
    }
}

@media (min-width: 2560px) {
    .container {
        padding: 15px;
        gap: 15px;
    }

    .header {
        height: 80px;
    }

    .header-title h1 {
        font-size: 36px;
    }
}

@media (min-width: 3840px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 20px;
        gap: 20px;
    }

    .header {
        height: 100px;
        padding: 0 50px;
    }

    .header-title {
        gap: 25px;
    }

    .header-title h1 {
        font-size: 44px;
        letter-spacing: 5px;
    }

    .header-title .icon {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .view-switch button {
        padding: 12px 30px;
        font-size: 18px;
    }

    .datetime .date {
        font-size: 20px;
    }

    .datetime .time {
        font-size: 32px;
    }

    .panel-header {
        height: 55px;
        padding: 0 20px;
    }

    .panel-header h3 {
        font-size: 18px;
    }

    .panel-content {
        padding: 25px;
    }

    .weather-city {
        font-size: 1.4rem;
    }

    .weather-temp {
        font-size: 2.8rem;
    }

    .weather-detail .value {
        font-size: 1.2rem;
    }

    .pest-region {
        font-size: 24px;
    }

    .pest-type {
        font-size: 18px;
    }

    .modal {
        width: 800px;
    }

    .modal-header h3 {
        font-size: 24px;
    }
}

@media (min-width: 5120px) {
    html {
        font-size: 16px;
    }

    .container {
        padding: 30px;
        gap: 30px;
    }

    .header {
        height: 120px;
        padding: 0 60px;
    }

    .header-title {
        gap: 30px;
    }

    .header-title h1 {
        font-size: 56px;
        letter-spacing: 6px;
    }

    .header-title .icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .view-switch button {
        padding: 15px 40px;
        font-size: 22px;
    }

    .datetime .date {
        font-size: 24px;
    }

    .datetime .time {
        font-size: 40px;
    }

    .panel-header {
        height: 65px;
        padding: 0 25px;
    }

    .panel-header h3 {
        font-size: 22px;
    }

    .panel-content {
        padding: 30px;
    }

    .weather-city {
        font-size: 40px;
    }

    .weather-temp {
        font-size: 80px;
    }

    .weather-detail .value {
        font-size: 30px;
    }

    .pest-region {
        font-size: 30px;
    }

    .pest-type {
        font-size: 22px;
    }

    .modal {
        width: 1000px;
    }

    .modal-header h3 {
        font-size: 28px;
    }
}

@media (min-width: 7680px) {
    html {
        font-size: 20px;
    }

    body {
        background: linear-gradient(90deg, #0A1628 0%, #0F2040 20%, #1A2A4A 50%, #0F2040 80%, #0A1628 100%);
    }

    .container {
        padding: 40px;
        gap: 40px;
        min-height: 100vh;
    }

    .header {
        height: 160px;
        padding: 0 80px;
        border-radius: 12px;
    }

    .header::before {
        height: 40px;
        border-radius: 10px 10px 0 0;
    }

    .header-title {
        gap: 40px;
    }

    .header-title h1 {
        font-size: 72px;
        letter-spacing: 8px;
        background: linear-gradient(90deg, #00D4FF, #80E5FF, #FFFFFF, #80E5FF, #00D4FF);
        background-size: 200% auto;
        animation: title-shimmer 3s ease-in-out infinite;
    }

    @keyframes title-shimmer {
        0% {
            background-position: 200% center;
        }

        100% {
            background-position: -200% center;
        }
    }

    .header-title .icon {
        width: 90px;
        height: 90px;
        font-size: 44px;
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    }

    .header-right {
        gap: 50px;
    }

    .view-switch {
        padding: 10px;
        border-radius: 35px;
        border-width: 2px;
    }

    .view-switch button {
        padding: 20px 50px;
        font-size: 28px;
        border-radius: 30px;
    }

    .datetime .date {
        font-size: 32px;
    }

    .datetime .time {
        font-size: 56px;
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    }

    .main-content {
        gap: 25px;
        grid-template-columns: 1.2fr 2.6fr 1.2fr;
    }

    .panel {
        border-radius: 15px;
    }

    .panel::before {
        background-size: 30px 30px;
    }

    .panel-header {
        height: 80px;
        padding: 0 30px;
        border-radius: 15px 15px 0 0;
    }

    .panel-header .dot {
        width: 12px;
        height: 12px;
        margin-right: 12px;
    }

    .panel-header h3 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .panel-content {
        padding: 40px;
    }

    .map-container {
        border-radius: 10px;
    }

    #amap-container {
        border-radius: 10px;
    }

    .weather-card {
        padding: 2.2rem;
        border-radius: 1rem;
    }

    .weather-city {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .weather-main {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .weather-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .weather-icon.sunny::before,
    .weather-icon.晴天::before,
    .weather-icon.晴::before {
        width: 2.4rem;
        height: 2.4rem;
        top: 0.6rem;
        left: 0.6rem;
        box-shadow: 0 0 1.5rem rgba(255, 215, 0, 0.6);
    }

    .weather-icon.cloudy::before,
    .weather-icon.多云::before,
    .weather-icon.阴::before {
        width: 3rem;
        height: 1.8rem;
        top: 0.9rem;
        left: 0.3rem;
    }

    .weather-icon.rainy::before,
    .weather-icon.雨::before,
    .weather-icon.雷阵雨::before,
    .weather-icon.小雨::before,
    .weather-icon.中雨::before,
    .weather-icon.大雨::before {
        width: 3rem;
        height: 1.8rem;
        top: 0.9rem;
        left: 0.3rem;
    }

    .weather-icon.rainy::after,
    .weather-icon.雨::after,
    .weather-icon.雷阵雨::after,
    .weather-icon.小雨::after,
    .weather-icon.中雨::after,
    .weather-icon.大雨::after {
        height: 1.2rem;
        bottom: 0.5rem;
        left: 1rem;
        box-shadow: 1rem 0 0 #00D4FF, 2rem 0 0 #00D4FF;
    }

    .weather-temp {
        font-size: 4rem;
        text-shadow: 0 0 1.5rem rgba(0, 212, 255, 0.6);
    }

    .weather-temp span {
        font-size: 1.5rem;
    }

    .weather-details {
        gap: 1.2rem;
    }

    .weather-detail {
        padding: 1.2rem;
        border-radius: 0.8rem;
    }

    .weather-detail .label {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .weather-detail .value {
        font-size: 2rem;
    }

    .pest-card {
        padding: 35px;
        border-radius: 15px;
    }

    .pest-header {
        margin-bottom: 25px;
    }

    .pest-region {
        font-size: 36px;
    }

    .pest-level {
        padding: 8px 20px;
        font-size: 18px;
        border-radius: 25px;
    }

    .pest-content {
        gap: 20px;
    }

    .pest-item {
        padding: 20px;
        border-radius: 12px;
        border-left-width: 5px;
    }

    .pest-type {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .pest-stats {
        gap: 30px;
        font-size: 18px;
    }

    .pest-warning {
        padding: 18px;
        font-size: 18px;
        border-radius: 10px;
    }

    .video-icon {
        width: 90px;
        height: 90px;
        font-size: 36px;
    }

    .video-label {
        font-size: 22px;
        margin-top: 25px;
    }

    .video-status span {
        padding: 6px 15px;
        font-size: 16px;
    }

    .chart-container {
        min-height: 350px;
    }

    .modal {
        width: 1200px;
        border-radius: 20px;
        border-width: 3px;
    }

    .modal-header {
        padding: 25px 30px;
        border-radius: 20px 20px 0 0;
    }

    .modal-header h3 {
        font-size: 32px;
    }

    .modal-close {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }

    .modal-body {
        padding: 30px;
    }

    .modal-tab {
        padding: 15px 35px;
        font-size: 20px;
        border-radius: 30px;
    }

    .data-table th,
    .data-table td {
        padding: 20px;
        font-size: 18px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 18px;
        border-radius: 8px;
    }

    .context-menu {
        min-width: 200px;
        border-radius: 12px;
        padding: 10px 0;
    }

    .context-menu-item {
        padding: 15px 25px;
        font-size: 18px;
        gap: 15px;
    }

    .context-menu-item .icon {
        font-size: 20px;
    }

    .info-window {
        padding: 20px 25px;
        font-size: 16px;
        border-radius: 12px;
    }

    .info-window h4 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .info-row {
        gap: 25px;
        margin-bottom: 10px;
    }

    .uav-marker-icon {
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
    }

    .team-marker-icon {
        box-shadow: 0 0 25px rgba(255, 149, 0, 0.8);
    }
}

.team-view-content {
    flex: 1;
    display: flex;
    padding: 10px;
    gap: 10px;
    min-height: 0;
}

.team-video-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    min-height: 0;
}

.team-sub-window {
    background: var(--bg-panel);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.team-sub-window:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.team-sub-window.selected {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.team-window-header {
    height: 40px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    flex-shrink: 0;
}

.window-title {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.window-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-indicator {
    font-size: 11px;
    color: #00FF64;
    padding: 2px 8px;
    background: rgba(0, 255, 100, 0.2);
    border-radius: 3px;
    font-weight: bold;
}

.camera-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    outline: none;
}

.camera-select:hover {
    border-color: var(--primary-color);
}

.camera-select option {
    background: var(--primary-dark);
    color: var(--text-color);
}

.start-meeting-btn {
    background: linear-gradient(135deg, #FF9500, #FF5500);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.start-meeting-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

.team-window-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.team-main-window {
    grid-row: 1 / 3;
    grid-column: 2;
    background: var(--bg-panel);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.main-window-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.main-window-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.main-window-text {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.main-window-content {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    height: 100%;
}

.video-placeholder .video-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: video-pulse 2s ease-in-out infinite;
}

.video-placeholder .video-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.video-placeholder.error .video-icon {
    border-color: #FF6400;
    background: rgba(255, 100, 0, 0.2);
}

.video-placeholder.error .video-label {
    color: #FF6400;
}

.meeting-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-cancel {
    background: rgba(255, 100, 0, 0.2);
    color: #FF6400;
    border: 1px solid #FF6400;
}

.btn-cancel:hover {
    background: rgba(255, 100, 0, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #FF9500, #FF5500);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.5);
}