* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Microsoft YaHei', sans-serif; }

/* 登录页样式 */
body { overflow: hidden; }
#particles-js { position: absolute; width: 100%; height: 100%; background-color: #0b1e33; z-index: -1; }
.login-container { display: flex; justify-content: center; align-items: center; height: 100vh; }
.login-box { background: rgba(16, 34, 54, 0.8); padding: 40px; border-radius: 10px; box-shadow: 0 0 20px rgba(0, 168, 255, 0.2); border: 1px solid #00a8ff; color: #fff; width: 400px; text-align: center; backdrop-filter: blur(5px); }
.login-box h2 { color: #00a8ff; margin-bottom: 10px; }
.login-box p { color: #8ca0b3; margin-bottom: 30px; font-size: 12px; letter-spacing: 1px; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 5px; color: #ccc; font-size: 14px; }
.input-group input, .input-group select { width: 100%; padding: 10px; background: #0a1520; border: 1px solid #2c3e50; color: #fff; border-radius: 4px; outline: none; }
.input-group input:focus { border-color: #00a8ff; }
.login-btn { width: 100%; padding: 12px; background: linear-gradient(45deg, #00a8ff, #0077b6); border: none; color: white; font-weight: bold; cursor: pointer; border-radius: 4px; margin-top: 10px; transition: 0.3s; }
.login-btn:hover { opacity: 0.9; }

/* Dashboard 样式 */
.dashboard-layout { display: flex; height: 100vh; background: #f0f2f5; }
.sidebar { width: 260px; background: #001529; color: white; display: flex; flex-direction: column; }
.logo-area { padding: 20px; text-align: center; background: #002140; }
.menu-list { list-style: none; flex: 1; overflow-y: auto; padding-top: 10px; }
.menu-list li { padding: 15px 20px; cursor: pointer; transition: 0.3s; border-left: 4px solid transparent; font-size: 14px; }
.menu-list li:hover, .menu-list li.active { background: #1890ff; border-left-color: #fff; }
.user-info { padding: 20px; border-top: 1px solid #333; text-align: center; }
.logout-btn { margin-left: 10px; padding: 5px 10px; background: #ff4d4d; border: none; color: white; cursor: pointer; border-radius: 3px; }

.main-content { flex: 1; display: flex; flex-direction: column; }
.header { background: #fff; padding: 15px 30px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
#graph-container { background: #fff; margin: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); flex: 1; height: auto !important; }

/* css/style.css - 追加或修改以下内容 */

/* 调整主内容区域布局 */
.content-wrapper {
    display: flex;
    flex: 1;
    height: calc(100vh - 60px); /* 减去 header 高度 */
    overflow: hidden;
    position: relative;
}

/* 图谱区域 */
.graph-area {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

#graph-container {
    width: 100%;
    height: 100% !important; /* 强制填满 */
    background: #fff;
}

/* 控制按钮组 */
.control-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-btn {
    padding: 8px 16px;
    margin-right: 5px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.filter-btn:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}

.filter-btn.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

/* 右侧详情面板 */
.info-panel {
    width: 300px;
    background: #fff;
    border-left: 1px solid #e8e8e8;
    box-shadow: -2px 0 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    z-index: 20;
    transition: transform 0.3s ease;
}

.info-header {
    padding: 15px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.info-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
}

.placeholder-text {
    text-align: center;
    color: #ccc;
    margin-top: 50px;
}

