*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
}
.bg-light {
    background-color: rgba(52, 219, 191, 0) !important;
}
nav{
    height: 15vh;
}
nav ul li {
    margin: 1rem 0.8rem;
}

nav ul li a {
    font-size: 20px;
}

/* 自定义下拉菜单样式 */
.dropdown-menu .dropdown-item {
    color: #2c3e50; /* 字体颜色 */
    font-weight: 500; /* 字体粗细 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑过渡 */
    display: flex;
    justify-content: left;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #3498db; /* 悬停背景色 */
    color: white; /* 悬停字体色 */
    display: flex;
    justify-content: center;
}

.dropdown-menu .dropdown-item:active {
    background-color: #2980b9; /* 点击时背景色 */
}

.organImages {
    width: 60%;
}

.card-title {
    display: flex;
    justify-content: center;
}

.card-title span {
    font-size: 2rem;
}
.navbar{
    flex-wrap: nowrap !important;
}
.navbar-nav {
    flex-direction: row !important;
}
:root {
    --border-color: #ccc;
    --primary-color: #4a6ee0; /* 定义一个具体的颜色值 */
    --secondary-color: #4a6ee0;
    --height: 100px; /* 定义变量值 */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    height: 100vh;
    overflow: hidden;
}
.bg-light{
    background-color: rgba(52, 219, 191, 0) !important;
}
nav ul li{
    margin: 1rem 0.8rem;
}
nav ul li a{
    font-size: 18px;
}
/* 自定义下拉菜单样式 */
.dropdown-menu .dropdown-item {
    color: #2c3e50; /* 字体颜色 */
    font-weight: 500; /* 字体粗细 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑过渡 */
    display: flex;
    justify-content: left;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #3498db; /* 悬停背景色 */
    color: white; /* 悬停字体色 */
    display: flex;
    justify-content: center;
}

.dropdown-menu .dropdown-item:active {
    background-color: #2980b9; /* 点击时背景色 */
}


/* 左侧筛选面板 */
.sidebar {
    position: sticky;
    top: 0;
    height: 85vh;
    background: white;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
    padding: 20px;
}

.sidebar-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-header h3 {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.4rem;
}

.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-select, .form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 110, 224, 0.25);
}

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

.help-icon {
    color: #6c757d;
    cursor: help;
    margin-left: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #5a7ef0);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 110, 224, 0.3);
}

.btn-outline-secondary {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
}

/* 右侧内容区域 */
.main-content {
    height: 85vh;
    overflow-y: auto;
    padding: 20px;
    background: #fafbfc;
}

.content-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.content-header h2 {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

/* 图表网格布局 */
.charts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.charts-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    position: relative;
}

.chart-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
}

/* 空间切片样式 */
.spatial-slice {
    width: 100%;
    border: 1px dashed #ccc;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: relative;
}

th:hover {
    background-color: #e9ecef;
}

.sort-indicator {
    color: #ddd;
    font-size: 12px;
    margin-left: 5px;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.pagination-controls a {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    background: white;
}

.pagination-controls a:hover {
    background: #e9ecef;
}

.pagination-controls a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-controls a:disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-controls span {
    padding: 6px 12px;
    color: #666;
}
.chart-container {
    width: 100%;
    height: 700px;
    background: white;
    margin: 20px 0;
}
/* 基因选择器样式 */
.gene-selector {
    width: 100%;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.selector-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.selected-count {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 标签选择器容器 */
.tag-select {
    position: relative;
    width: 100%;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    background: white;
    min-height: 44px;
    cursor: text;
    transition: all 0.2s ease;
}

.tag-select.focused {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* 标签容器 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    min-height: 44px;
}

/* 单个标签样式 */
.tag-item {
    background: #f0f4f8;
    border: 1px solid #d6e4f0;
    border-radius: 16px;
    padding: 6px 10px 6px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: tagAppear 0.2s ease;
    cursor: default;
}

@keyframes tagAppear {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 标签关闭按钮 */
.tag-close {
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d1d9e0;
    color: #666;
    font-size: 16px;
    line-height: 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tag-close:hover {
    background: #ff6b6b;
    color: white;
}

/* 搜索输入框 */
.search-input {
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    flex: 1;
    min-width: 60px;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #a8b4c5;
}

/* 下拉菜单容器 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: none;
    animation: dropdownAppear 0.2s ease;
}

@keyframes dropdownAppear {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu.show {
    display: block;
}

/* 下拉选项 */
.option-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f4f8;
}

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

.option-item:hover,
.option-item.highlighted {
    background: #e6f2ff;
}

/* 无结果提示 */
.no-results {
    padding: 20px 16px;
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* 自定义滚动条 */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn-confirm {
    background: #007bff;
    color: white;
}

.btn-confirm:hover {
    background: #0056b3;
}

.btn-reset {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #d1d9e0;
}

.btn-reset:hover {
    background: #e9ecef;
}

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

/* 响应式设计 */
@media (max-width: 640px) {
    .container {
        padding: 15px;
        margin: 10px;
    }

    .tags-container {
        padding: 6px 10px;
    }

    .tag-item {
        font-size: 12px;
        padding: 5px 8px 5px 10px;
    }

    .option-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}
