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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    perspective: 1000px;
}

.controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    max-width: 250px;
    min-width: 200px;
}

/* 右侧定位控制面板 */
.navigation-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    width: 200px;
    /* 默认隐藏 */
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.nav-control-group {
    margin-bottom: 12px;
}

.nav-control-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    color: #ccc;
    font-weight: 500;
}

.nav-control-group input[type="range"] {
    width: 100%;
    background: transparent;
    margin: 5px 0;
}

.nav-button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background: rgba(0, 242, 254, 0.3);
    border: 1px solid rgba(0, 242, 254, 0.5);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(0, 242, 254, 0.5);
    border-color: rgba(0, 242, 254, 0.8);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.nav-button:active {
    transform: scale(0.95);
}

.nav-button.center {
    background: rgba(255, 255, 0, 0.3);
    border-color: rgba(255, 255, 0, 0.5);
}

.nav-button.center:hover {
    background: rgba(255, 255, 0, 0.5);
    border-color: rgba(255, 255, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.nav-button.reset {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
}

.nav-button.reset:hover {
    background: rgba(255, 0, 0, 0.5);
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.nav-button.danger {
    background: rgba(255, 69, 0, 0.3);
    border: 1px solid rgba(255, 69, 0, 0.5);
    color: #fff;
    transition: all 0.2s ease;
}

.nav-button.danger:hover {
    background: rgba(255, 69, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

/* 方向键控制样式 */
.dpad-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.dpad-row {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.dpad-cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpad-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.dpad-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5) !important;
}

.center-cell {
    background: rgba(0, 242, 254, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.center-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    background: rgba(0, 242, 254, 0.3) !important;
    border: 1px solid rgba(0, 242, 254, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.center-btn:hover {
    background: rgba(0, 242, 254, 0.5) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.6) !important;
}

/* 快速控制样式 */
.quick-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
}

.quick-btn {
    height: 36px !important;
    padding: 0 !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.quick-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.4) !important;
}

.quick-btn.reset {
    background: rgba(255, 165, 0, 0.3) !important;
    border: 1px solid rgba(255, 165, 0, 0.5) !important;
}

.quick-btn.reset:hover {
    background: rgba(255, 165, 0, 0.5) !important;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.4) !important;
}

/* 状态历史样式 */
.status-history {
    max-height: 120px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px;
}

.status-history::-webkit-scrollbar {
    width: 4px;
}

.status-history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.status-history::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 2px;
}

.status-history::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.5);
}

.zoom-display {
    text-align: center;
    font-size: 12px;
    color: #00f2fe;
    font-weight: bold;
    margin: 6px 0;
    padding: 6px;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.position-display {
    font-size: 9px;
    color: #888;
    text-align: center;
    margin: 4px 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #ccc;
}

.control-group select, .control-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
}

.control-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

.control-group select:focus {
    outline: none;
    border-color: rgba(0, 242, 254, 0.8);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.control-group select option {
    background: rgba(0, 0, 0, 0.95) !important;
    color: #fff !important;
    padding: 8px !important;
    border: none !important;
}

.control-group select option:hover {
    background: rgba(64, 64, 64, 0.8) !important;
}

.control-group select option:checked {
    background: rgba(80, 80, 80, 0.9) !important;
}

.control-group select option:focus {
    background: rgba(72, 72, 72, 0.85) !important;
}

/* 节点创建和编辑对话框中的下拉框样式 */
.node-dialog select {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 242, 254, 0.5) !important;
}

.node-dialog select option {
    background: rgba(0, 0, 0, 0.95) !important;
    color: #fff !important;
    padding: 8px !important;
    border: none !important;
}

.node-dialog select option:hover {
    background: rgba(64, 64, 64, 0.8) !important;
}

.node-dialog select option:checked {
    background: rgba(80, 80, 80, 0.9) !important;
}

.node-dialog select option:focus {
    background: rgba(72, 72, 72, 0.85) !important;
}

/* 确保下拉框在深色主题下可见 */
.node-dialog select:focus {
    outline: none !important;
    border-color: rgba(0, 242, 254, 0.8) !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3) !important;
}

/* 分组对话框样式 */
.group-dialog select option {
    background: rgba(0, 0, 0, 0.95) !important;
    color: #fff !important;
    padding: 8px !important;
    border: none !important;
}

.group-dialog select option:hover {
    background: rgba(64, 64, 64, 0.8) !important;
}

.group-dialog select option:checked {
    background: rgba(80, 80, 80, 0.9) !important;
}

.group-dialog select option:focus {
    background: rgba(72, 72, 72, 0.85) !important;
}

.group-dialog select:focus {
    outline: none !important;
    border-color: rgba(0, 242, 254, 0.8) !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3) !important;
}

/* 服务器对话框样式 */
.server-dialog select {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 255, 0, 0.5) !important;
}

.server-dialog select option {
    background: rgba(0, 0, 0, 0.95) !important;
    color: #fff !important;
    padding: 8px !important;
    border: none !important;
}

.server-dialog select option:hover {
    background: rgba(64, 64, 64, 0.8) !important;
}

.server-dialog select option:checked {
    background: rgba(80, 80, 80, 0.9) !important;
}

.server-dialog select option:focus {
    background: rgba(72, 72, 72, 0.85) !important;
}

.server-dialog select:focus {
    outline: none !important;
    border-color: rgba(0, 255, 0, 0.8) !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
}

/* 服务器编辑对话框样式 */
.server-edit-dialog select {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 255, 0, 0.5) !important;
}

.server-edit-dialog select option {
    background: rgba(0, 0, 0, 0.95) !important;
    color: #fff !important;
    padding: 8px !important;
    border: none !important;
}

.server-edit-dialog select option:hover {
    background: rgba(64, 64, 64, 0.8) !important;
}

.server-edit-dialog select option:checked {
    background: rgba(80, 80, 80, 0.9) !important;
}

.server-edit-dialog select option:focus {
    background: rgba(72, 72, 72, 0.85) !important;
}

.server-edit-dialog select:focus {
    outline: none !important;
    border-color: rgba(0, 255, 0, 0.8) !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
}

/* 确保服务器对话框中的select在所有浏览器中都有正确的背景 */
.server-dialog select,
.server-edit-dialog select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 16px !important;
    padding-right: 30px !important;
}

/* 针对不同浏览器的option样式 */
.server-dialog select option,
.server-edit-dialog select option {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Firefox特定样式 */
@-moz-document url-prefix() {
    .server-dialog select,
    .server-edit-dialog select {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }
    
    .server-dialog select option,
    .server-edit-dialog select option {
        background-color: rgba(0, 0, 0, 0.95) !important;
        color: #fff !important;
    }
}

/* Webkit浏览器特定样式 */
.server-dialog select::-webkit-select-placeholder,
.server-edit-dialog select::-webkit-select-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.control-group input[type="range"] {
    background: transparent;
}



.main-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    cursor: grab;
}

.node-3d {
    position: absolute;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.node-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.node-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.node-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateZ(-20px);
}

.node-top {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    transform: rotateX(90deg) translateZ(10px);
}

.node-bottom {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    transform: rotateX(-90deg) translateZ(10px);
}

.node-left {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    transform: rotateY(-90deg) translateZ(10px);
}

.node-right {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    transform: rotateY(90deg) translateZ(10px);
}

.connection-3d {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4facfe, #00f2fe);
    transform-origin: left center;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f2fe;
    animation: particle-flow 2s linear infinite;
}

@keyframes particle-flow {
    0% {
        transform: translateX(0) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translateX(50%) scale(1);
    }
    100% {
        transform: translateX(100%) scale(0.5);
        opacity: 0;
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 新增的3D效果样式 */
.holographic-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
    animation: holographic-pulse 8s ease-in-out infinite;
}

@keyframes holographic-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.energy-field {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        conic-gradient(from 0deg, transparent, rgba(0, 242, 254, 0.1), transparent, rgba(255, 0, 255, 0.1), transparent);
    animation: energy-rotate 20s linear infinite;
}

@keyframes energy-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.depth-layers {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.depth-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    animation: depth-float 6s ease-in-out infinite;
}

.depth-layer:nth-child(2) {
    animation-delay: -2s;
    background: 
        radial-gradient(ellipse at center, rgba(255, 0, 255, 0.05) 0%, transparent 70%);
}

.depth-layer:nth-child(3) {
    animation-delay: -4s;
    background: 
        radial-gradient(ellipse at center, rgba(0, 255, 0, 0.05) 0%, transparent 70%);
}

@keyframes depth-float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.6; }
}

.neural-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: neural-pulse 4s ease-in-out infinite;
}

@keyframes neural-pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
}

.quantum-field {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 0, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.05) 0%, transparent 60%);
    animation: quantum-fluctuate 12s ease-in-out infinite;
}

@keyframes quantum-fluctuate {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    25% { opacity: 0.5; transform: scale(1.05) rotate(90deg); }
    50% { opacity: 0.4; transform: scale(0.95) rotate(180deg); }
    75% { opacity: 0.6; transform: scale(1.1) rotate(270deg); }
}

.cyber-matrix {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        );
    animation: matrix-scan 3s linear infinite;
}

@keyframes matrix-scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.stellar-field {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 2%);
    animation: stellar-twinkle 4s ease-in-out infinite;
}

@keyframes stellar-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.plasma-field {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        conic-gradient(from 0deg, 
            transparent, 
            rgba(255, 0, 255, 0.1), 
            transparent, 
            rgba(0, 242, 254, 0.1), 
            transparent, 
            rgba(255, 255, 0, 0.1), 
            transparent
        );
    animation: plasma-rotate 15s linear infinite;
}

@keyframes plasma-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.crystal-field {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 242, 254, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 0, 255, 0.05) 50%, transparent 70%);
    animation: crystal-shimmer 8s ease-in-out infinite;
}

@keyframes crystal-shimmer {
    0%, 100% { opacity: 0.2; transform: translateX(0); }
    50% { opacity: 0.5; transform: translateX(20px); }
}

.nebula-field {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(0, 242, 254, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(255, 255, 0, 0.06) 0%, transparent 40%);
    animation: nebula-drift 25s ease-in-out infinite;
}

@keyframes nebula-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    33% { transform: translate(20px, -10px) scale(1.05); opacity: 0.5; }
    66% { transform: translate(-10px, 15px) scale(0.95); opacity: 0.4; }
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hologram-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 242, 254, 0.1) 2px,
            rgba(0, 242, 254, 0.1) 4px
        );
    animation: hologram-scan 3s linear infinite;
}

@keyframes hologram-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.depth-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(
            circle at 50% 50%,
            rgba(0, 242, 254, 0.1) 0%,
            transparent 70%
        );
    animation: depth-pulse 4s ease-in-out infinite;
}

@keyframes depth-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.neural-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f2fe;
    animation: neural-pulse 2s ease-in-out infinite;
}

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

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00f2fe, transparent);
    animation: neural-flow 3s linear infinite;
}

@keyframes neural-flow {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0;
        transform: scaleX(0);
    }
}

.matrix-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100%;
    animation: matrix-fall 10s linear infinite;
}

@keyframes matrix-fall {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

.cyber-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: cyber-scan 4s linear infinite;
}

@keyframes cyber-scan {
    0% {
        transform: translateX(-50px) translateY(-50px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

.energy-field {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(
            circle at 30% 30%,
            rgba(0, 242, 254, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 70%,
            rgba(79, 172, 254, 0.2) 0%,
            transparent 50%
        );
    animation: energy-wave 6s ease-in-out infinite;
}

@keyframes energy-wave {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.quantum-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.quantum-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ff00ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff00ff;
    animation: quantum-float 8s ease-in-out infinite;
}

@keyframes quantum-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) scale(0.8);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.9;
    }
}

.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 242, 254, 0.6);
    border-radius: 12px;
    padding: 0;
    color: #fff;
    font-size: 12px;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translateY(5px) scale(0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.3);
    min-width: 180px;
    max-width: 250px;
}

.tooltip-header {
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(0, 242, 254, 0.1));
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 10px 10px 0 0;
}

.tooltip-title {
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tooltip-node-icon {
    display: inline-block;
    line-height: 1;
}

.tooltip-node-icon i {
    font-size: 16px;
    color: #00f2fe;
    text-shadow: 0 0 6px rgba(0, 242, 254, 0.8);
}

.tooltip-content {
    padding: 10px 15px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 2px 0;
}

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

.tooltip-label {
    color: #ccc;
    font-size: 11px;
    font-weight: 500;
}

.tooltip-value {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    position: relative;
}

.status-online {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    box-shadow: 0 0 8px #00ff00, inset 0 0 4px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-warning {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    box-shadow: 0 0 8px #ffaa00, inset 0 0 4px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-offline {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    box-shadow: 0 0 8px #ff4444, inset 0 0 4px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.node-icon {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
}

.node-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.8));
}

.node-icon.online {
    animation: icon-pulse 2s ease-in-out infinite;
}

.node-icon.warning {
    animation: icon-warning 1s ease-in-out infinite;
}

.node-icon.offline {
    opacity: 0.7;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes icon-warning {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 状态通知样式 */
.status-notification {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.node-name {
    font-weight: bold;
    color: #00f2fe;
}

.status-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.status-change .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* 状态历史样式 */
.status-history {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 6px;
    padding: 8px;
    margin-top: 5px;
    font-size: 10px;
}

.status-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    color: #ccc;
}

.status-history-item:last-child {
    border-bottom: none;
}

.status-history-node {
    font-weight: bold;
    color: #00f2fe;
}

.status-history-change {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
}

.status-history-time {
    color: #888;
    font-size: 8px;
}

/* 分组框样式 */
.group-info {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 242, 254, 0.5);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-size: 12px;
    z-index: 1000;
    max-width: 250px;
    display: none;
}

.group-info h3 {
    margin: 0 0 10px 0;
    color: #00f2fe;
    font-size: 14px;
}

.group-info p {
    margin: 5px 0;
    color: #ccc;
}

.group-nodes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 242, 254, 0.3);
}

.group-node {
    display: inline-block;
    background: rgba(0, 242, 254, 0.2);
    border: 1px solid rgba(0, 242, 254, 0.5);
    border-radius: 4px;
    padding: 2px 6px;
    margin: 2px;
    font-size: 10px;
}

/* 节点选择器样式 */
#groupNodeSelector {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

#groupNodeSelector div {
    transition: all 0.2s ease;
}

#groupNodeSelector div:hover {
    background: rgba(0, 242, 254, 0.1) !important;
    border-color: rgba(0, 242, 254, 0.6) !important;
}

#groupNodeSelector input[type="checkbox"] {
    cursor: pointer;
}

#groupNodeSelector label {
    cursor: pointer;
    user-select: none;
}

/* 调整手柄样式 */
.resize-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffff00;
    border: 1px solid #000000;
    border-radius: 1px;
}

.resize-handle:hover {
    background: #ffcc00;
    transform: scale(1.2);
}

/* 右键菜单样式 */
.context-menu-item:hover {
    background: rgba(0, 242, 254, 0.2) !important;
    border: 1px solid rgba(0, 242, 254, 0.4) !important;
}

.context-menu-item[data-action="deleteNode"]:hover,
.context-menu-item[data-action="deleteConnection"]:hover {
    background: rgba(255, 107, 107, 0.2) !important;
    border: 1px solid rgba(255, 107, 107, 0.4) !important;
}

/* 左侧清空按钮悬停效果 */
#clearAllDataLeft:hover {
    background: rgba(255, 69, 0, 0.6) !important;
    border-color: rgba(255, 69, 0, 0.8) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

#clearAllDataLeft:active {
    transform: scale(0.95);
    background: rgba(255, 69, 0, 0.5);
}

/* 右侧导航栏切换按钮样式 */
.nav-toggle-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
}

.nav-toggle-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 254, 0.4);
    border: 2px solid rgba(0, 242, 254, 0.6);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.nav-toggle-btn:hover {
    background: rgba(0, 242, 254, 0.6);
    border-color: rgba(0, 242, 254, 0.9);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
    transform: scale(1.05);
}

.nav-toggle-btn:active {
    transform: scale(0.95);
}

/* 导航栏显示状态 */
.navigation-controls.show {
    transform: translateX(0);
}