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

:root {
    /* Cloud Dancer 主题色系（Atmospheric 色盘） */
    --color-canvas: #F0EEE9;          /* Cloud Dancer - 全局背景 */
    --color-surface: #FFFFFF;         /* 主内容卡片 */
    --color-sidebar: #487AB7;         /* Regatta - 侧边栏主色 */
    --color-sidebar-top: #3A6597;     /* 略深侧边栏顶部 */
    --color-sidebar-active: #B7D0EA;  /* Nantucket Breeze - 激活/悬浮 */
    --color-text-main: #2B2C30;       /* 深色正文（Stretch Limo） */
    --color-text-muted: #AAAAC4;      /* 次级文字（Cosmic Sky） */
    --color-primary: #487AB7;         /* 主按钮 / 主高亮 */
    --color-accent: #E3CC81;          /* 辅助强调（Dusky Citron） */
}

/* 登录页样式 */
html, body { 
    height: 100%; 
    width: 100%; 
    overflow: hidden; 
    margin: 0;
    padding: 0;
    background: var(--color-canvas);
}
#particles-js { 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    background: radial-gradient(circle at top, rgba(183, 208, 234, 0.85), rgba(72, 122, 183, 0.9));
    z-index: 0; 
}
.login-container { 
    position: relative;
    z-index: 1;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    width: 100%;
}
.login-box { 
    background: rgba(240, 238, 233, 0.95); 
    padding: 40px; 
    border-radius: 10px; 
    box-shadow: 0 10px 30px rgba(72, 122, 183, 0.25); 
    border: 1px solid var(--color-sidebar-active); 
    color: var(--color-text-main); 
    width: 400px; 
    text-align: center; 
    backdrop-filter: blur(8px); 
}
.login-box h2 { color: var(--color-primary); margin-bottom: 10px; }
.login-box p { color: var(--color-text-muted); 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: var(--color-text-muted); font-size: 14px; }
.input-group input, .input-group select { 
    width: 100%; 
    padding: 10px; 
    background: #fff; 
    border: 1px solid #d9d9d9; 
    color: var(--color-text-main); 
    border-radius: 4px; 
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.input-group input:focus, .input-group select:focus { 
    border-color: var(--color-primary); 
    background: #fff;
}
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--color-text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 密码输入框包装器 */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 70px;
}

.toggle-password-btn {
    position: absolute;
    right: 5px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #d9d9d9;
    color: var(--color-text-muted);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.toggle-password-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* 优化select下拉框 */
.input-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238ca0b3' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.input-group select option {
    background: #fff;
    color: var(--color-text-main);
    padding: 10px;
}
.login-btn { width: 100%; padding: 12px; background: linear-gradient(45deg, var(--color-primary), #355f8f); border: none; color: white; font-weight: bold; cursor: pointer; border-radius: 4px; margin-top: 10px; transition: 0.3s; }
.login-btn:hover { opacity: 0.9; box-shadow: 0 6px 16px rgba(72, 122, 183, 0.35); }

/* Dashboard 样式 */
.dashboard-layout { display: flex; height: 100vh; background: var(--color-canvas); }
.sidebar { width: 260px; background: var(--color-sidebar); color: white; display: flex; flex-direction: column; }
.logo-area { padding: 20px; text-align: center; background: var(--color-sidebar-top); }
.dashboard-nav-links { padding: 8px 12px 12px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.dashboard-nav-link { display: block; padding: 10px 16px; color: rgba(255,255,255,0.95); text-decoration: none; border-radius: 8px; font-size: 14px; transition: background 0.2s, color 0.2s; }
.dashboard-nav-link:hover { background: var(--color-sidebar-active); color: var(--color-text-main); }
.dashboard-nav-link + .dashboard-nav-link { margin-top: 4px; }
.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: var(--color-sidebar-active); border-left-color: var(--color-canvas); color: var(--color-text-main); }
.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; }
.admin-login-btn { width: 100%; padding: 10px; background: var(--color-primary); border: none; color: white; cursor: pointer; border-radius: 4px; font-size: 14px; }
.admin-login-btn:hover { background: #355f8f; }
.header-user-info { 
    display: flex !important; 
    flex-direction: row !important;
    align-items: center; 
    gap: 10px !important; 
    flex-wrap: nowrap !important;
    flex-shrink: 0;
}

/* 组织选择器样式 */
.organization-selector-wrapper {
    display: none !important; /* 隐藏右上角组织选择器 */
}

.organization-label {
    color: #666;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.organization-select {
    padding: 6px 30px 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.organization-select:hover {
    border-color: #1890ff;
}

.organization-select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 用户信息包装器 */
.user-info-wrapper {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 4px 8px !important;
    background: #f5f5f5;
    border-radius: 6px;
    order: 2 !important;
}

.user-name-label {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.user-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.header-user-info span { color: #333; font-size: 14px; }

/* 权限提示样式 */
.permission-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 10px 0;
    background: linear-gradient(135deg, #E4EDF8 0%, #B7D0EA 100%);
    border: 1px solid #487AB7;
    border-left: 4px solid #487AB7;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(72, 122, 183, 0.25);
}

.permission-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.permission-alert-content {
    flex: 1;
    color: #2B2C30;
    font-size: 14px;
    line-height: 1.5;
}

.permission-alert-content strong {
    color: #487AB7;
    margin-right: 6px;
}

/* 无权限阻止页面样式 - 全屏显示 */
.no-permission-block {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    background: var(--color-canvas);
    z-index: 100;
}

.no-permission-content {
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.no-permission-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-permission-content h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.no-permission-content > p {
    color: #666;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.no-permission-help {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.no-permission-help p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.no-permission-content ul {
    text-align: left;
    color: #666;
    font-size: 14px;
    line-height: 2.2;
    padding-left: 20px;
    list-style: none;
}

.no-permission-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 24px;
}

.no-permission-content ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: bold;
}

.main-content { flex: 1; display: flex; flex-direction: column; }
.header { 
    background: #fff !important; 
    padding: 8px 30px !important; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 44px !important;
    height: auto !important;
}
.header h2 {
    margin: 0 !important;
    flex: 1;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.3 !important;
    padding: 0 !important;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.control-panel .search-box {
    width: 100%;
    margin-top: 5px;
}

.search-type-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.search-type-select:focus {
    outline: none;
    border-color: #1890ff;
}

.search-input-wrapper {
    position: relative;
    display: inline-block;
}

.search-box input {
    padding: 8px 30px 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.search-box input:focus {
    outline: none;
    border-color: #1890ff;
}

.clear-input-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    line-height: 1;
    padding: 2px 5px;
    user-select: none;
}

.clear-input-btn:hover {
    color: #333;
}

.clear-search-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.clear-search-btn:hover {
    background: #e0e0e0;
}

/* 搜索结果列表 */
.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: -20px; /* 向左延伸到控制面板左边缘（与全部按钮对齐） */
    width: calc(100% + 20px); /* 加宽到控制面板左边缘 */
    background: white; /* 白色背景 */
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    padding: 8px;
    margin-top: 5px;
}

/* 滚动条样式 */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #355f8f;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-result-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 4px;
    background: #fafafa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background: #B7D0EA;
    border-color: #487AB7;
    transform: translateX(2px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-node-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.result-match {
    font-size: 12px;
    color: #666;
    margin-left: 12px;
    margin-top: 4px;
    line-height: 1.5;
}

.result-match-type {
    color: var(--color-primary);
    margin-right: 6px;
    font-weight: 500;
}

.result-match-content {
    color: #333;
}

.highlight-text {
    background: #fffbe6;
    color: #d48806;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 2px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
#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% !important;
    height: 100% !important; /* 强制填满 */
    min-height: 600px;
    background: #fff;
    position: relative;
    overflow: visible; /* 确保可以拖动空白区域 */
    display: block !important;
}

/* 控制按钮组 */
.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);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-panel .filter-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

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

.filter-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* 显示全部按钮 - 默认灰色 */
.filter-btn.filter-all {
    border-color: #d9d9d9;
    color: #666;
}

.filter-btn.filter-all.active {
    background: #666;
    color: white;
    border-color: #666;
}

/* 知识图谱按钮 - 绿色 #91cc75 */
.filter-btn.filter-knowledge {
    border-color: #91cc75;
    color: #91cc75;
}

.filter-btn.filter-knowledge.active {
    background: #91cc75;
    color: white;
    border-color: #91cc75;
}

.filter-btn.filter-knowledge:hover {
    border-color: #7ab85d;
    color: #7ab85d;
}

/* 能力图谱按钮 - 黄色 #fac858 */
.filter-btn.filter-ability {
    border-color: #fac858;
    color: #fac858;
}

.filter-btn.filter-ability.active {
    background: #fac858;
    color: white;
    border-color: #fac858;
}

.filter-btn.filter-ability:hover {
    border-color: #f9b428;
    color: #f9b428;
}

/* 素质图谱按钮 - 紫色 #9a60b4 */
.filter-btn.filter-quality {
    border-color: #9a60b4;
    color: #9a60b4;
}

.filter-btn.filter-quality.active {
    background: #9a60b4;
    color: white;
    border-color: #9a60b4;
}

.filter-btn.filter-quality:hover {
    border-color: #8549a0;
    color: #8549a0;
}

/* 右侧详情面板 */
.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;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-btn {
    padding: 4px 12px;
    background: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.edit-btn:hover {
    background: #73d13d;
}

.info-body {
    padding: 20px;
    overflow-y: auto;
    flex: 0 0 50%; /* 减半高度 */
    max-height: 50%;
    border-bottom: 1px solid #e8e8e8;
}

/* 最短路径查询区域 */
.path-query-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.path-query-body {
    padding: 15px 20px;
    overflow-y: auto;
    flex: 1;
}

.path-select-group {
    margin-bottom: 15px;
}

.path-select-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.path-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
}

.path-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.path-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.path-btn {
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.path-btn:hover {
    background: #5C8FC6;
}

.path-btn:active {
    background: #355f8f;
}

.path-result {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    min-height: 50px;
    max-height: 150px;
    overflow-y: auto;
}

/* 编辑对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background: white;
    border-radius: 8px;
    width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dialog-header {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header h3 {
    margin: 0;
    font-size: 18px;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.dialog-close:hover {
    color: #333;
}

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

.dialog-footer {
    padding: 15px 20px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.property-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.property-item input {
    flex: 1;
    padding: 6px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.add-property-btn, .delete-property-btn {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 12px;
}

.add-property-btn:hover {
    background: #e0e0e0;
}

.delete-property-btn {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
}

.delete-property-btn:hover {
    background: #ff7875;
}

.delete-btn {
    padding: 8px 16px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #ff7875;
}

.save-btn, .cancel-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.save-btn {
    background: var(--color-primary);
    color: white;
}

.save-btn:hover {
    background: #5C8FC6;
}

.cancel-btn {
    background: #f0f0f0;
    color: #333;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.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;
}





