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

        body {
            font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
            background: #0a1628;
            min-height: 100vh;
            color: #fff;
            overflow-x: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .app-container {
            width: 100%;
            height: 100vh;
            position: relative;
            overflow: hidden;
        }
        
        .bg-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('img/ypdt.jpg');
            background-size: cover;
            background-position: center;
            z-index: -2;
            transition: opacity 0.3s, background-size 0.3s, background-position 0.3s;
        }

        #canvasOverlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        #canvasOverlay canvas {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .bg-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, rgba(0, 30, 60, 0.1) 0%, rgba(0, 20, 40, 0.1) 50%, rgba(0, 15, 30, 0.1) 100%);
            z-index: -1;
        }

        .bg-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: -1;
        }
        
        .bottom-bg {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40px;
            max-height: 50px;
            z-index: 0;
            pointer-events: none;
            background: #001a40 url("img/imgbottom.gif") no-repeat center center / cover;
        }

         /* 顶部标题栏 */
        .header {
            height: 60px;
            background: linear-gradient(90deg, #00122e, #002855);
            border-bottom: 1px solid #00c3ff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            position: relative;
            width: 100%;
  overflow: hidden;
  /* 背景图片居中核心代码 */
  background: #001a40 url("img/imgbg.gif") no-repeat center center / cover;
        }
        .header-left {
            width: 330px;
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }
        .header-right {
            
            width: 330px;
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
            justify-content: flex-end;
            flex-wrap: wrap;
            flex-direction: column-reverse;
            align-content: flex-end;
        }
        .header::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00c3ff, transparent);
        }
        .header-title {
            margin-bottom: 10px;
            font-size: 20px;
            font-weight: bold;
            font-family: "Microsoft Yahei", sans-serif;
            color: #ffffff;
            /* 关键凹刻阴影配置 */
            text-shadow:
                1px 1px 2px rgba(0,0,0,0.6),
                -1px -1px 2px rgba(255,255,255,0.3),
                3px 3px 6px rgba(0,0,0,0.4);
            /* 额外可选：细微浮雕凹陷 */
            letter-spacing: 2px;
        }
        .header-title img{
             vertical-align: middle; 
            object-fit: contain;
            margin-bottom: 5px;
            padding-bottom: ;: 0px;
          
        }
        .header-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .time-box {
            color: #00ffff;
            font-size: 12px;
            font-family: "Microsoft Yahei", sans-serif;
            color: #ffffff;
            /* 关键凹刻阴影配置 */
            text-shadow: 1px 1px 2px rgb(68 4 110 / 50%), -1px -1px 2px rgba(255, 255, 255, 0.3), 3px 3px 6px rgba(0, 0, 0, 0.12);
            letter-spacing: 2px;
        }
        .time-yf {
            width: 330px;
            margin: 10px auto;
            display: flex;
            align-items: left;
            gap: 15px;
        }
        .time-yf-top {
            color: #00ffff;
            font-size: 12px;
            margin: 5px;
            padding: 3px 3px;
            background: rgba(0, 195, 255, 0.1);
            border: 0px solid rgba(0, 200, 255, 0.4);
            border-radius: 6px;
        }
        .user {
            color: #99e2ff;
            font-size: 14px;
            padding: 4px 12px;
            background: rgba(0, 195, 255, 0.1);
            border: 1px solid #0088ff;
            border-radius: 4px;
        }
        .fullscreen-btn {
            background: rgba(0, 195, 255, 0.1);
            border: 1px solid rgba(0, 195, 255, 0.3);
            color: #00c3ff;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .fullscreen-btn:hover {
            background: rgba(0, 195, 255, 0.2);
            border-color: rgba(0, 195, 255, 0.6);
            transform: scale(1.05);
        }

        .logout-btn {
            background: rgba(255, 182, 193, 0.15);
            border: 1px solid rgba(255, 105, 180, 0.5);
            color: #ff69b4;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
        }

        .logout-btn:hover {
            background: rgba(255, 182, 193, 0.25);
            border-color: rgba(255, 105, 180, 0.8);
            box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
            transform: scale(1.05);
        }
        .screen-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 3px 3px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: bold;
            color: #00d4ff;
            background: rgba(0, 212, 255, 0.15);
            border: 1px solid rgba(0, 212, 255, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .screen-btn:hover {
            background: rgba(0, 212, 255, 0.3);
            border-color: rgba(0, 212, 255, 0.8);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
        }

        .screen-btn svg {
            width: 16px;
            height: 16px;
            fill: #00d4ff;
        }

        .status-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 3px 3px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: bold;
        }

        .status-badge.online {
            background: rgba(0, 255, 136, 0.2);
            color: #00ff88;
            border: 1px solid rgba(0, 255, 136, 0.5);
        }

        .status-badge.offline {
            background: rgba(255, 68, 68, 0.2);
            color: #ff4444;
            border: 1px solid rgba(255, 68, 68, 0.5);
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .status-badge.online .status-dot {
            background: #00ff88;
            box-shadow: 0 0 10px #00ff88;
        }

        .status-badge.offline .status-dot {
            background: #ff4444;
            box-shadow: 0 0 10px #ff4444;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.2); }
        }

        .main-content {
            padding: 20px;
            display: grid;
            grid-template-columns: 270px 1fr 300px;
            grid-template-rows: auto auto;
            gap: 15px;
            height: calc(100% - 90px);
            position: relative;
            z-index: 1;
        }

        .panel {
            background: rgba(0, 30, 60, 0.3);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 12px;
            padding: 10px;
            backdrop-filter: blur(10px);
            position: relative;
        }

        .panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 212, 255, 0.2);
        }

        .panel-title {
            font-size: 16px;
            font-weight: bold;
            color: #00d4ff;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .panel-title::before {
            content: '';
            width: 4px;
            height: 16px;
            background: #00d4ff;
            border-radius: 2px;
        }

        .flip-clock {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4px;
            padding: 10px 5px;
        }

        .flip-group {
            display: flex;
            align-items: center;
        }

        .flip-card {
            width: 26px;
            height: 50px;
            background: rgba(0, 212, 255, 0.1);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(0, 212, 255, 0.3);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .flip-card span {
            font-size: 32px;
            font-weight: bold;
            color: #00d4ff;
            font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
            line-height: 1;
        }

        .flip-card.updating {
            animation: cardUpdate 0.3s ease-in-out;
        }

        @keyframes cardUpdate {
            0% { transform: scale(1); }
            50% { transform: scale(0.95); opacity: 0.6; }
            100% { transform: scale(1); opacity: 1; }
        }

        .flip-colon {
            font-size: 32px;
            color: #00d4ff;
            font-weight: bold;
            margin: 0 2px;
            text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }

        .flip-label {
            font-size: 12px;
            color: #8899aa;
            margin-top: 8px;
            text-align: center;
        }

        .flip-date {
            text-align: center;
            font-size: 12px;
            color: #8899aa;
            padding: 10px 10px;
            border-top: 1px solid rgba(0, 212, 255, 0.2);
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .flip-date span {
            padding: 4px 8px;
            background: rgba(0, 212, 255, 0.1);
            border-radius: 4px;
            border: 1px solid rgba(0, 212, 255, 0.2);
        }

        .weather-panel {
            padding: 1px;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-sizing: border-box;
        }

        .weather-city {
            font-size: 14px;
            color: #00d4ff;
            padding: 8px 12px;
            background: rgba(0, 212, 255, 0.1);
            border-radius: 4px;
            border: 0px solid rgba(0, 212, 255, 0.2);
            text-orientation: mixed;
        }

        .weather-content {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
            justify-content: center;
        }

        .weather-main {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .weather-icon {
            margin-top: 10px;
        }

        .weather-info {
            text-align: center;
        }

        .weather-temp {
            font-size: 28px;
            font-weight: bold;
            color: #00d4ff;
        }

        .weather-desc {
            font-size: 12px;
            color: #8899aa;
            margin-bottom: 5px;
        }

        .weather-details {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .weather-detail-item {
            text-align: left;
        }

        .detail-label {
            font-size: 12px;
            color: #8899aa;
            display: block;
        }

        .detail-value {
            font-size: 14px;
            color: #00d4ff;
            font-weight: bold;
        }

        .camera-panel {
            position: relative;
            border-radius: 3px;
            overflow: hidden;
            border: 1px solid rgba(0, 212, 255, 0.3);
            background: rgba(0, 212, 255, 0.8);
            margin-top: 10px;
        }

        .camera-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
            z-index: 1;
        }

        .camera-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
        }

        .camera-overlay {
            position: absolute;
            bottom: 10px;
            right: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 2;

        }

        .camera-info {
            background: rgba(0, 255, 136, 0.2);
            padding: 3px 3px;
            border-radius: 6px;
            font-size: 12px;
            color: #00d4ff;
            border: 1px solid rgba(0, 212, 255, 0.3);
        }

        .camera-status {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .camera-status .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #00ff88;
            box-shadow: 0 0 8px #00ff88;
            animation: pulse 2s infinite;
        }

        .camera-controls {
            display: flex;
            gap: 5px;
        }
        .camera-control:hover {
            background: rgba(0, 212, 255, 0.3);
            border-color: rgba(0, 212, 255, 0.8);
        }
        .camera-btn {
            width: 32px;
            height: 32px;
            margin: 5px;
            border-radius: 50%;
            background: rgba(0, 30, 60, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color:#00d4ff;
            transition: all 0.3s ease;
        }

        .camera-btn:hover {
            background: rgba(0, 212, 255, 0.3);
            border-color: rgba(0, 212, 255, 0.8);
        }

        .ptz-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            margin-left: 5px;
        }

        .ptz-row {
            display: flex;
            gap: 2px;
        }

        .ptz-btn {
            width: 28px;
            height: 28px;
            border-radius: 4px;
            background: rgba(0, 30, 60, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #00d4ff;
            transition: all 0.2s ease;
            font-size: 14px;
        }

        .ptz-btn:hover {
            background: rgba(0, 212, 255, 0.3);
            border-color: rgba(0, 212, 255, 0.8);
        }

        .ptz-btn:active {
            background: rgba(0, 212, 255, 0.5);
            transform: scale(0.95);
        }

        .camera-btn svg {
            width: 14px;
            height: 14px;
            fill: #00d4ff;
        }

        .camera-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 15px 10px 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 2;
        }

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

        .save-btn {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 100, 150, 0.5));
            border: 1px solid rgba(0, 212, 255, 0.5);
            color: #00d4ff;
            padding: 8px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: bold;
            transition: all 0.3s;
        }

        .save-btn:hover {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.5), rgba(0, 100, 150, 0.7));
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }

        .clear-btn {
            background: linear-gradient(135deg, rgba(255, 68, 68, 0.3), rgba(150, 30, 30, 0.5));
            border: 1px solid rgba(255, 68, 68, 0.5);
            color: #ff4444;
            padding: 8px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: bold;
            transition: all 0.3s;
            margin-left: 10px;
        }

        .clear-btn:hover {
            background: linear-gradient(135deg, rgba(255, 68, 68, 0.5), rgba(150, 30, 30, 0.7));
            box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
        }

        .camera-res {
            font-size: 11px;
            color: #556677;
            background: rgba(0, 0, 0, 0.5);
            padding: 3px 8px;
            border-radius: 4px;
        }

        .left-panel {
            grid-column: 1;
            grid-row: 1 / 3;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-right: 5px;
        }

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

        .right-panel {
            grid-column: 3;
            grid-row: 1 / 3;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .stats-grid {
            margin-top: 10px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .stat-item {
            background: rgba(0, 40, 80, 0.2);
            border-radius: 8px;
            padding: 12px;
            text-align: center;
            border: 1px solid rgba(0, 212, 255, 0.15);
            
        }

        .stat-value {
            font-size: 28px;
            font-weight: bold;
            color: #00ff88;
            margin-bottom: 5px;
        }

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

        .radar-container {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(0, 212, 255, 0.5);
        }
        .radar-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
        }
        #radarCanvas {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center;
        }

        .radar-overlay {
            position: absolute;
            top: 15px;
            left: 15px;
            display: flex;
            gap: 15px;
            z-index: 10;
        }

        .overlay-item {
            background: rgba(0, 30, 60, 0.8);
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 13px;
            border: 1px solid rgba(0, 212, 255, 0.3);
        }

        .monitor-panel {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 30, 60, 0.85);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 10px;
            padding: 12px;
            z-index: 10;
            min-width: 160px;
        }

        .monitor-title {
            font-size: 12px;
            color: rgba(0, 212, 255, 0.8);
            margin-bottom: 10px;
            font-weight: bold;
            border-bottom: 1px solid rgba(0, 212, 255, 0.2);
            padding-bottom: 5px;
        }

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

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

        .monitor-label {
            font-size: 11px;
            color: #8899aa;
            margin-bottom: 3px;
        }

        .monitor-value {
            font-size: 20px;
            font-weight: bold;
            color: #ffaa00;
        }

        .monitor-value-time {
            font-size: 14px;
            font-weight: bold;
            color: #00d4ff;
        }

        .center-targets-panel {
            position: absolute;
            top: 15px;
            left: 15px;
            right: 15px;
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            z-index: 10;
        }

        .center-targets-panel .targets-list {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .center-targets-panel .target-item {
            background: rgba(0, 30, 60, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 8px;
            padding: 10px 15px;
            min-width: 200px;
            flex-shrink: 0;
        }

        .overlay-item .label {
            color: #8899aa;
            margin-right: 8px;
        }

        .overlay-item .value {
            color: #00ff88;
            font-weight: bold;
        }

        .targets-panel {
            flex: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .targets-list {
            flex: 1;
            overflow-y: auto;
            padding-right: 5px;
        }

        .targets-list::-webkit-scrollbar {
            width: 6px;
        }

        .targets-list::-webkit-scrollbar-track {
            background: rgba(0, 30, 60, 0.5);
            border-radius: 3px;
        }

        .targets-list::-webkit-scrollbar-thumb {
            background: rgba(0, 212, 255, 0.5);
            border-radius: 3px;
        }

        .target-item {
            background: rgba(0, 40, 80, 0.5);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 10px;
            border-left: 3px solid #00d4ff;
            transition: all 0.3s ease;
        }

        .target-item:hover {
            background: rgba(0, 50, 100, 0.7);
            transform: translateX(5px);
        }

        .target-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .target-id {
            font-size: 16px;
            font-weight: bold;
            color: #00d4ff;
        }

        .target-amplitude {
            font-size: 12px;
            color: #8899aa;
        }

        .target-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            font-size: 12px;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
        }

        .info-row .label {
            color: #8899aa;
        }

        .info-row .value {
            color: #fff;
        }

        .info-row .value.speed-positive {
            color: #00ff88;
        }

        .info-row .value.speed-negative {
            color: #ff4444;
        }

        .warning-section {
            margin-top: 0;
            padding-top: 10px;
            border-top: 1px solid rgba(0, 212, 255, 0.2);
        }

        .warning-title {
            font-size: 14px;
            color: #ffaa00;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .warning-badge {
            background: #ff4444;
            color: white;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 10px;
            font-weight: bold;
            display: none;
        }

        .warning-badge.show {
            display: inline-block;
        }

        .warning-scroll {
            padding: 10px;
            background: rgba(255, 170, 0, 0.1);
            border-radius: 6px;
            margin-bottom: 10px;
            border-left: 3px solid #ffaa00;
            min-height: 40px;
            display: flex;
            align-items: center;
        }

        .warning-scroll .warning-item {
            font-size: 13px;
            color: #ffcc66;
            animation: scrollWarning 0.5s ease-in-out;
        }

        @keyframes scrollWarning {
            0% { opacity: 0; transform: translateY(-5px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .warning-targets {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 150px;
            overflow-y: auto;
        }

        .warning-targets::-webkit-scrollbar {
            width: 6px;
        }

        .warning-targets::-webkit-scrollbar-track {
            background: rgba(0, 30, 60, 0.5);
            border-radius: 3px;
        }

        .warning-targets::-webkit-scrollbar-thumb {
            background: rgba(0, 212, 255, 0.4);
            border-radius: 3px;
        }

        .warning-targets::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 212, 255, 0.7);
        }

        .warning-target-item {
            background: rgba(0, 212, 255, 0.1);
            border-radius: 4px;
            padding: 8px 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid rgba(0, 212, 255, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .warning-target-item:hover {
            background: rgba(0, 212, 255, 0.2);
            border-color: rgba(0, 212, 255, 0.5);
        }

        .warning-target-item.active {
            background: rgba(255, 170, 0, 0.2);
            border-color: #ffaa00;
        }

        .warning-target-info {
            display: flex;
            flex-direction: column;
        }

        .warning-target-id {
            font-size: 13px;
            font-weight: bold;
            color: #00d4ff;
        }

        .warning-target-dist {
            font-size: 11px;
            color: #8899aa;
        }

        .warning-target-arrow {
            color: #8899aa;
            font-size: 12px;
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

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

        .modal-content {
            background: #0a1929;
            border-radius: 10px;
            width: 400px;
            border: 1px solid rgba(0, 212, 255, 0.3);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

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

        .modal-title {
            font-size: 16px;
            font-weight: bold;
            color: #00d4ff;
        }

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

        .modal-close:hover {
            color: #00d4ff;
        }

        .modal-body {
            padding: 20px;
        }

        .modal-info-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid rgba(0, 212, 255, 0.1);
        }

        .modal-info-row:last-child {
            border-bottom: none;
        }

        .modal-info-label {
            color: #8899aa;
            font-size: 13px;
        }

        .modal-info-value {
            color: #00d4ff;
            font-size: 13px;
            font-weight: bold;
        }

        .charts-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 15px;
        }

        .mini-chart {
            background: rgba(0, 40, 80, 0.6);
            border-radius: 8px;
            padding: 12px;
            border: 1px solid rgba(0, 212, 255, 0.15);
            height: 120px;
            position: relative;
        }

        .chart-title {
            font-size: 12px;
            color: #8899aa;
            margin-bottom: 8px;
        }

        .chart-value {
            font-size: 24px;
            font-weight: bold;
            color: #00d4ff;
        }

        .chart-bar {
            position: absolute;
            bottom: 15px;
            left: 15px;
            right: 15px;
            height: 40px;
            background: rgba(0, 30, 60, 0.5);
            border-radius: 4px;
            overflow: hidden;
        }

        .chart-fill {
            height: 100%;
            background: linear-gradient(90deg, #00d4ff, #00ff88);
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        .alert-panel {
            position: absolute;
            bottom: 5px;
            left: 5px;
            right: 5px;
            background: rgba(0, 26, 64, 0.1);
            border-radius: 10px;
            padding: 10px 10px 0 10px;
            max-height: 180px;
           /* overflow-y: auto;*/
            z-index: 50;
        }
        
        .alert-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid rgba(255, 100, 100, 0.2);
        }
        
        .alert-panel-title {
            color: #ff6464;
            font-size: 14px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .alert-count {
            color: #00d4ff;
            font-size: 12px;
            font-weight: normal;
            background: rgba(0, 212, 255, 0.1);
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 5px;
        }
        
        .alert-refresh-btn {
            background: rgba(255, 100, 100, 0.2);
            border: 1px solid rgba(255, 100, 100, 0.4);
            color: #ff6464;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .alert-refresh-btn:hover {
            background: rgba(255, 100, 100, 0.4);
            transform: rotate(180deg);
        }
        
        .alert-list {
            display: flex;
            gap: 10px;
            padding-bottom: 5px;
        }

        .camera-images-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            width: 100%;
        }

        .camera-image-item {
            width: calc(12.5% - 7px);
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid rgba(0, 212, 255, 0.3);
            cursor: pointer;
            transition: all 0.3s;
        }

        .camera-image-item:hover {
            border-color: #00d4ff;
            transform: scale(1.02);
        }

        .camera-image {
            width: 100%;
            height: 80px;
            object-fit: cover;
        }

        .camera-image-time {
            font-size: 10px;
            color: #8899aa;
            text-align: center;
            padding: 3px 0;
            background: rgba(0, 26, 64, 0.5);
        }

        .no-camera-images {
            color: #8899aa;
            font-size: 12px;
            text-align: center;
            padding: 20px;
            width: 100%;
        }

        .image-preview-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .image-preview-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
        }

        .image-preview-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            z-index: 1001;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
            border: 2px solid rgba(0, 212, 255, 0.5);
        }

        .image-preview-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 40px;
            height: 40px;
            border: none;
            background: rgba(255, 100, 100, 0.9);
            color: #fff;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1002;
            transition: all 0.3s;
        }

        .image-preview-close:hover {
            background: rgba(255, 50, 50, 1);
            transform: scale(1.1);
        }

        #previewImage {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
        }

        .all-images-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 900;
            justify-content: center;
            align-items: center;
        }

        .all-images-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }

        .all-images-content {
            position: relative;
            width: 90%;
            height: 80%;
            background: rgba(0, 26, 64, 0.95);
            border-radius: 12px;
            border: 2px solid rgba(0, 212, 255, 0.5);
            box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
            z-index: 901;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .all-images-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: rgba(0, 212, 255, 0.1);
            border-bottom: 1px solid rgba(0, 212, 255, 0.3);
        }

        .all-images-title {
            color: #00d4ff;
            font-size: 16px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .all-images-close {
            width: 36px;
            height: 36px;
            border: none;
            background: rgba(255, 100, 100, 0.9);
            color: #fff;
            border-radius: 50%;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s;
        }

        .all-images-close:hover {
            background: rgba(255, 50, 50, 1);
            transform: scale(1.1);
        }

        .all-images-body {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }

        .all-images-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: flex-start;
        }

        .all-image-item {
            width: calc(20% - 10px);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(0, 212, 255, 0.3);
            cursor: pointer;
            transition: all 0.3s;
        }

        .all-image-item:hover {
            border-color: #00d4ff;
            transform: scale(1.03);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
        }

        .all-image-thumb {
            width: 100%;
            height: 120px;
            object-fit: cover;
        }

        .all-image-time {
            font-size: 11px;
            color: #8899aa;
            text-align: center;
            padding: 5px 0;
            background: rgba(0, 26, 64, 0.5);
        }

        .loading-all-images {
            color: #8899aa;
            font-size: 14px;
            text-align: center;
            padding: 50px;
            width: 100%;
        }

        .all-images-footer {
            padding: 15px 20px;
            background: rgba(0, 212, 255, 0.05);
            border-top: 1px solid rgba(0, 212, 255, 0.2);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .all-images-pagination {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .pagination-btn {
            padding: 8px 20px;
            border: 1px solid rgba(0, 212, 255, 0.5);
            background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
            border-radius: 6px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .pagination-btn:hover:not(:disabled) {
            background: rgba(0, 212, 255, 0.3);
            border-color: #00d4ff;
        }

        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .pagination-info {
            color: #8899aa;
            font-size: 13px;
        }

        .camera-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1100;
            justify-content: center;
            align-items: center;
        }

        .camera-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
        }

        .camera-modal-content {
            position: relative;
            width: 80%;
            height: 90%;
            background: rgba(0, 26, 64, 0.98);
            border-radius: 12px;
            border: 2px solid rgba(0, 212, 255, 0.5);
            box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
            z-index: 1101;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .camera-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 5px;
            background: rgba(0, 212, 255, 0.1);
            border-bottom: 1px solid rgba(0, 212, 255, 0.3);
            
        }

        .camera-modal-title {
            color: #00d4ff;
            font-size: 18px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .camera-modal-close {
            width: 40px;
            height: 40px;
            border: none;
            background: rgba(255, 100, 100, 0.9);
            color: #fff;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s;
        }

        .camera-modal-close:hover {
            background: rgba(255, 50, 50, 1);
            transform: scale(1.1);
        }

        .camera-modal-body {
            flex: 1;
            padding: 0;
            overflow: hidden;
        }

        .camera-modal-body iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .alert-item {
            flex-shrink: 0;
            width: 120px;
            background: rgba(255, 100, 100, 0.1);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(255, 100, 100, 0.3);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .alert-item:hover {
            transform: translateY(-2px);
            border-color: #ff6464;
        }
        
        .alert-item img {
            width: 100%;
            height: 80px;
            object-fit: cover;
        }
        
        .alert-item-info {
            padding: 5px;
        }
        
        .alert-item-time {
            font-size: 10px;
            color: #ff6464;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .alert-item-message {
            font-size: 11px;
            color: #ccc;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 2px;
        }
        
        .alert-item-empty {
            color: #8899aa;
            font-size: 13px;
            text-align: center;
            padding: 0;
        }

        .bottom-panel {
            grid-column: 1 / 4;
            grid-row: 3;
            margin-top: -15px;
        }

        .bottom-content {
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 15px;
        }

        .bottom-item {
            text-align: center;
            padding: 15px 30px;
            background: rgba(0, 40, 80, 0.5);
            border-radius: 8px;
            border: 1px solid rgba(0, 212, 255, 0.2);
            min-width: 180px;
        }

        .bottom-item .value {
            font-size: 28px;
            font-weight: bold;
            color: #00ff88;
            margin-bottom: 5px;
        }

        .bottom-item .label {
            font-size: 13px;
            color: #8899aa;
        }

        .legend {
            position: absolute;
            bottom: 15px;
            right: 15px;
            display: flex;
            gap: 20px;
            z-index: 10;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #8899aa;
            background: rgba(0, 30, 60, 0.8);
            padding: 6px 12px;
            border-radius: 4px;
        }

        .legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .legend-dot.radar {
            background: #00d4ff;
            box-shadow: 0 0 8px #00d4ff;
        }

        .legend-dot.target {
            background: #00ff88;
            box-shadow: 0 0 8px #00ff88;
        }

        .legend-dot.warning {
            background: #ffaa00;
            box-shadow: 0 0 8px #ffaa00;
        }

        .control-item {
            margin-bottom: 3px;
        }

        .control-item label {
            display: block;
            font-size: 12px;
            color: #00d4ff;
            margin-bottom: 5px;
        }

        .control-item input[type="range"] {
            width: 100%;
            height: 6px;
            -webkit-appearance: none;
            background: rgba(0, 212, 255, 0.2);
            border-radius: 3px;
            outline: none;
        }

        .control-item input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            background: #00d4ff;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }

        .control-item input[type="range"]::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: #00d4ff;
            border-radius: 50%;
            cursor: pointer;
            border: none;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }

        .radar-info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(0, 212, 255, 0.1);
        }

        .radar-info-item:last-child {
            border-bottom: none;
        }

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

        .radar-info-value {
            font-size: 12px;
            color: #00d4ff;
            font-weight: bold;
        }

        .radar-info-value.status-normal {
            color: #00ff88;
        }

        .radar-info-value.status-offline {
            color: #ff4444;
        }

        .radar-info-value.status-error {
            color: #ffaa00;
        }

        @media (max-width: 1200px) {
            .main-content {
                grid-template-rows: auto;
                height: auto;
            }
            
            .left-panel, .center-panel, .right-panel {
                grid-row: auto;
            }
            
            .bottom-panel {
                grid-column: 1;
                grid-row: auto;
            }
        }
       .action-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 10px;
            margin-top: 20px;
        }
        
        .action-button {
            padding: 10px;
            background: #f7fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            text-align: center;
            text-decoration: none;
            color: #4a5568;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .action-button:hover {
            background: #edf2f7;
        }
        
        .action-button i {
            display: block;
            font-size: 1.2rem;
            margin-bottom: 5px;
            color: #667eea;
        }
        
        .camera-section {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .camera-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            font-size: 1.1rem;
            font-weight: 600;
            color: #2d3748;
        }
        
        .camera-feed {
            position: relative;
            width: 100%;
            height: 250px;
            background: #f7fafc;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .camera-feed img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .camera-controls {
            position: absolute;
            bottom: 10px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 15px;
        }
        
        .camera-control {
            width: 32px;
            height: 32px;
            background: rgba(0, 30, 60, 0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            margin: 8px;
        }
        
        .camera-control.active {
            background: rgba(239, 68, 68, 0.8);
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
        }
        
        .camera-control.talking {
            background: rgba(239, 68, 68, 0.9);
            animation: pulse 1.5s infinite;
        }
        
        .camera-control.recording {
            background: rgba(239, 68, 68, 0.95);
            transform: scale(1.15);
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
            }
            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
            }
        }
        
        .talk-indicator {
            position: absolute;
            bottom: 60px;
            left: 60px;
            background: rgba(239, 68, 68, 0.9);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: none;
            align-items: center;
            gap: 6px;
        }
        
        .talk-indicator.show {
            display: flex;
        }
        
        .talk-overlay {
            position: absolute;
            top: 10px;
            left: 0;
            right: 0;
            bottom: 0;
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            z-index: 10;
        }
        
        .talk-overlay.show {
            display: flex;
        }
        
        .talk-overlay-text {
            color: white;
            font-size: 1.2rem;
            font-weight: 600;
            margin-top: 15px;
        }
        
        .talk-overlay-icon {
            font-size: 3rem;
            color: #ef4444;
            animation: pulse 1s infinite;
        }
        
        .volume-slider-container {
            position: absolute;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.7);
            padding: 10px 15px;
            border-radius: 8px;
            display: none;
            align-items: center;
            gap: 10px;
        }
        
        .volume-slider-container.show {
            display: flex;
        }
        
        .volume-slider {
            width: 100px;
            height: 4px;
            background: #4a5568;
            border-radius: 2px;
            cursor: pointer;
        }
        
        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            cursor: pointer;
        }
        
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        }
        
        .footer-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #718096;
            font-size: 0.8rem;
        }
        
        .footer-item.active {
            color: #667eea;
        }
        
        .footer-icon {
            font-size: 1.2rem;
            margin-bottom: 4px;
        }
        .box-tq {
            background: rgba(0, 30, 60, 0.3);
            border-radius: 10px;
            border: 1px solid rgba(0, 212, 255, 0.5);
            position: relative;
        }

        .box-tq::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
        }
        