* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #0a0a0f;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    touch-action: manipulation;
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 白色半透明导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #000;
}

.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #555;
    font-size: 1.5rem;
    cursor: pointer;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px; /* 为导航栏留出空间 */
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
}

.logo {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    color: #4fc3f7;
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.6);
    animation: pulse 4s infinite ease-in-out;
}

h1 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #4fc3f7, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: #90a4ae;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

#chart-container {
    flex: 1;
    width: 100%;
    min-height: 70vh;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 195, 247, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#chart-container:hover {
    border-color: rgba(79, 195, 247, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ECharts 节点样式优化 - 三维球体效果 */
.echarts-graph-node {
    filter: drop-shadow(0 0 5px rgba(79, 195, 247, 0.5));
    transition: all 0.3s ease;
}

.echarts-graph-node:hover {
    filter: drop-shadow(0 0 12px rgba(79, 195, 247, 0.8));
    transform: scale(1.05);
}

/* 自定义节点样式 - 三维球体效果 */
.custom-sphere-node {
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
                              rgba(255, 255, 255, 0.8) 0%, 
                              rgba(255, 255, 255, 0.2) 20%, 
                              transparent 60%), 
                radial-gradient(circle at 65% 25%, 
                              rgba(255, 255, 255, 0.4) 0%, 
                              transparent 30%);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.4),
        inset 0 0 40px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(79, 195, 247, 0.6),
        0 5px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.custom-sphere-node::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
                              rgba(255, 255, 255, 0.5) 0%, 
                              transparent 60%);
    opacity: 0.3;
    transform: rotate(25deg);
    transition: all 0.3s ease;
}

.custom-sphere-node:hover {
    box-shadow: 
        inset 0 0 25px rgba(255, 255, 255, 0.5),
        inset 0 0 50px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(79, 195, 247, 0.8),
        0 8px 40px rgba(0, 0, 0, 0.6);
    transform: scale(1.08);
}

.custom-sphere-node:hover::before {
    opacity: 0.4;
    transform: rotate(25deg) translate(10px, 10px);
}

/* 不同类型节点的颜色变体 */
.sphere-blue {
    background: radial-gradient(circle at 30% 30%, 
                              rgba(255, 255, 255, 0.8) 0%, 
                              rgba(255, 255, 255, 0.2) 20%, 
                              transparent 60%), 
                radial-gradient(circle at 65% 25%, 
                              rgba(255, 255, 255, 0.4) 0%, 
                              transparent 30%),
                radial-gradient(circle at center, 
                              #4fc3f7 0%, 
                              #2a8cbb 100%);
}

.sphere-purple {
    background: radial-gradient(circle at 30% 30%, 
                              rgba(255, 255, 255, 0.8) 0%, 
                              rgba(255, 255, 255, 0.2) 20%, 
                              transparent 60%), 
                radial-gradient(circle at 65% 25%, 
                              rgba(255, 255, 255, 0.4) 0%, 
                              transparent 30%),
                radial-gradient(circle at center, 
                              #7b68ee 0%, 
                              #5d4fd1 100%);
}

.sphere-teal {
    background: radial-gradient(circle at 30% 30%, 
                              rgba(255, 255, 255, 0.8) 0%, 
                              rgba(255, 255, 255, 0.2) 20%, 
                              transparent 60%), 
                radial-gradient(circle at 65% 25%, 
                              rgba(255, 255, 255, 0.4) 0%, 
                              transparent 30%),
                radial-gradient(circle at center, 
                              #20b2aa 0%, 
                              #178f88 100%);
}

.sphere-orange {
    background: radial-gradient(circle at 30% 30%, 
                              rgba(255, 255, 255, 0.8) 0%, 
                              rgba(255, 255, 255, 0.2) 20%, 
                              transparent 60%), 
                radial-gradient(circle at 65% 25%, 
                              rgba(255, 255, 255, 0.4) 0%, 
                              transparent 30%),
                radial-gradient(circle at center, 
                              #ff7f50 0%, 
                              #e56739 100%);
}

.sphere-light-blue {
    background: radial-gradient(circle at 30% 30%, 
                              rgba(255, 255, 255, 0.8) 0%, 
                              rgba(255, 255, 255, 0.2) 20%, 
                              transparent 60%), 
                radial-gradient(circle at 65% 25%, 
                              rgba(255, 255, 255, 0.4) 0%, 
                              transparent 30%),
                radial-gradient(circle at center, 
                              #6495ed 0%, 
                              #4a76c9 100%);
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    color: #90a4ae;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: #cfd8dc;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #4fc3f7;
    transform: translateY(-3px);
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.7; transform: scale(0.95); }
}

/* 节点信息面板 */
.node-info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(30, 30, 40, 0.85);
    border-radius: 8px;
    padding: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 195, 247, 0.2);
    max-width: 320px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.node-info-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.node-info-panel h3 {
    color: #4fc3f7;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.node-info-panel h3 i {
    margin-right: 8px;
}

.node-info-panel p {
    color: #cfd8dc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.node-info-panel .node-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #4fc3f7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.node-info-panel .node-link:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .node-info-panel {
        max-width: 280px;
        left: 10px;
        bottom: 10px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 25px;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .node-info-panel {
        position: relative;
        left: 0;
        bottom: 0;
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    /* 移动端简化节点效果 */
    .custom-sphere-node {
        box-shadow: 
            inset 0 0 15px rgba(255, 255, 255, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.15),
            0 0 10px rgba(79, 195, 247, 0.4),
            0 3px 20px rgba(0, 0, 0, 0.4);
    }
}