* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SimSun', '宋体', 'Microsoft YaHei', '微软雅黑', serif;
    background: linear-gradient(135deg, #f8f4e9 0%, #e8dfca 50%, #d4c9b4 100%);
    min-height: 100vh;
    color: #5c3d2e;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8f4e9"/><path d="M0,50 Q25,40 50,50 T100,50" stroke="%23e8dfca" stroke-width="0.5" fill="none"/></svg>');
    background-size: 200px 200px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px;
}

.header {
    background: linear-gradient(135deg, rgba(248, 244, 233, 0.98), rgba(232, 223, 202, 0.95));
    backdrop-filter: blur(15px);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(92, 61, 46, 0.15),
        0 2px 8px rgba(139, 69, 19, 0.1);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 2px solid #d4a574;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c93c23, #d4a574, #8b4513);
}

.header h1 {
    color: #8b4513;
    font-size: 2.4em;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(139, 69, 19, 0.2);
    font-family: 'SimHei', '黑体', sans-serif;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
    padding: 10px 0;
    border-bottom: 2px solid rgba(212, 165, 116, 0.3);
    width: 100%;
}

.header h1::before {
    content: '';
    display: none;
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-bar input {
    padding: 12px 20px;
    border: 2px solid #d4a574;
    border-radius: 25px;
    font-size: 16px;
    width: 200px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'SimSun', '宋体', serif;
}

.search-bar input:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    background: white;
}

.search-bar button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b4513, #c93c23);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    font-family: 'SimHei', '黑体', sans-serif;
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #c93c23, #8b4513);
}

.filters select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    min-width: 180px;
    cursor: pointer;
    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='%23667eea' d='M6 8.825L1.175 4l.825-.825L6 7.175l4-4 .825.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.filters select:hover {
    border-color: #667eea;
    background-color: white;
}

.filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    height: calc(100vh - 250px);
    min-height: 700px;
}

.graph-container {
    background: rgba(248, 244, 233, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(92, 61, 46, 0.15);
    overflow: hidden;
    border: 2px solid #d4a574;
    position: relative;
    height: 100%;
    min-height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

#knowledgeGraph {
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: block;
    position: relative;
}

#knowledgeGraph svg {
    width: 100%;
    height: 100%;
    display: block;
}

.info-panel {
    background: rgba(248, 244, 233, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(92, 61, 46, 0.15);
    padding: 25px;
    overflow-y: auto;
    border: 2px solid #d4a574;
}

.node-info h3 {
    color: #8b4513;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
    font-family: 'SimHei', '黑体', sans-serif;
}

.node-details {
    line-height: 1.7;
}

.node-details h4 {
    color: #c93c23;
    margin: 20px 0 12px 0;
    font-size: 1.2em;
    font-weight: 600;
    font-family: 'SimHei', '黑体', sans-serif;
}

.node-details ul {
    list-style: none;
    padding-left: 0;
}

.node-details li {
    background: linear-gradient(135deg, #f8f4e9, #e8dfca);
    margin: 8px 0;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #c93c23;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(92, 61, 46, 0.1);
    border: 1px solid #d4a574;
}

.node-details li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(201, 60, 35, 0.2);
    border-left: 4px solid #8b4513;
}

.legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(248, 244, 233, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(92, 61, 46, 0.15);
    z-index: 1000;
    border: 2px solid #d4a574;
}

.legend h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

/* 相关链接栏目样式 */
.related-links {
    margin-top: 30px;
    background: rgba(248, 244, 233, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(92, 61, 46, 0.1);
    border: 1px solid #d4a574;
}

.related-links h3 {
    color: #8b4513;
    font-size: 1.1em;
    margin-bottom: 12px;
    text-align: left;
    font-family: 'SimHei', '黑体', sans-serif;
}

.links-simple ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.links-simple li {
    margin: 0;
}

.links-simple a {
    color: #8b4513;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #d4a574;
    font-size: 12px;
    white-space: nowrap;
}

.links-simple a:hover {
    background: rgba(201, 60, 35, 0.1);
    color: #c93c23;
    border-color: #c93c23;
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #8b4513;
    font-size: 14px;
    padding: 20px;
    font-family: 'SimSun', '宋体', serif;
    background: rgba(248, 244, 233, 0.8);
    border-radius: 8px;
    border: 1px solid #d4a574;
}

/* 节点样式 */
.node {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    transform-origin: center;
}

.node:hover {
    filter: brightness(1.15) drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transform: scale(1.05);
    stroke-width: 3 !important;
    stroke: #fff !important;
}

.node.active {
    animation: pulse 2s infinite;
    filter: brightness(1.2) drop-shadow(0 6px 16px rgba(0,0,0,0.5));
}

.node.highlighted {
    filter: brightness(1.3) drop-shadow(0 6px 16px rgba(255, 87, 34, 0.6));
    transform: scale(1.1);
    stroke: #ff5722 !important;
    stroke-width: 4 !important;
}

/* 增强节点视觉效果 */
.node.theory {
    background: radial-gradient(circle at 30% 30%, #4caf50, #388e3c);
}

.node.element {
    background: radial-gradient(circle at 30% 30%, #ff9800, #f57c00);
}

.node.organ {
    background: radial-gradient(circle at 30% 30%, #2196f3, #1976d2);
}

.node.substance {
    background: radial-gradient(circle at 30% 30%, #9c27b0, #7b1fa2);
}

.node.pathogen {
    background: radial-gradient(circle at 30% 30%, #f44336, #d32f2f);
}

.node.concept {
    background: radial-gradient(circle at 30% 30%, #607d8b, #455a64);
}

.node.theory {
    fill: #4caf50;
    background: linear-gradient(145deg, #4caf50, #388e3c);
}

.node.element {
    fill: #ff9800;
    background: linear-gradient(145deg, #ff9800, #f57c00);
}

.node.organ {
    fill: #2196f3;
    background: linear-gradient(145deg, #2196f3, #1976d2);
}

.node.substance {
    fill: #9c27b0;
    background: linear-gradient(145deg, #9c27b0, #7b1fa2);
}

.node.pathogen {
    fill: #f44336;
    background: linear-gradient(145deg, #f44336, #d32f2f);
}

.node.concept {
    fill: #607d8b;
    background: linear-gradient(145deg, #607d8b, #455a64);
}

.node-label {
    font-size: 13px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
    fill: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    font-family: 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

.link {
    stroke: #999;
    stroke-opacity: 0.6;
    stroke-linecap: round;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link:hover {
    stroke-opacity: 0.9;
    stroke-width: 4;
    stroke: #ff5722;
}

.link.highlighted {
    stroke: #ff5722;
    stroke-opacity: 0.9;
    stroke-width: 4;
    animation: linkPulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes linkPulse {
    0% { stroke-width: 3; }
    50% { stroke-width: 5; }
    100% { stroke-width: 3; }
}

.node-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    pointer-events: none !important;
    z-index: 1000 !important;
    max-width: 250px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    transition: opacity 0.2s ease !important;
    line-height: 1.4 !important;
}

.node-tooltip strong {
    color: #ffd54f !important;
    font-size: 14px !important;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 导航菜单和搜索框容器 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

/* 导航菜单样式 */
.main-nav {
    flex: 1;
    min-width: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-link {
    color: #8b4513;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid #d4a574;
    background: rgba(248, 244, 233, 0.9);
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
}

.nav-link:hover {
    background: rgba(201, 60, 35, 0.1);
    border-color: #c93c23;
    color: #c93c23;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 60, 35, 0.2);
}

.nav-link.active {
    background: #8b4513;
    color: white;
    border-color: #8b4513;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* 搜索框样式 */
.search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.search-bar input {
    padding: 12px 20px;
    border: 2px solid #d4a574;
    border-radius: 25px;
    font-size: 16px;
    width: 150px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'SimSun', '宋体', serif;
}

.search-bar input:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    background: white;
}

.search-bar button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b4513, #c93c23);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    font-family: 'SimHei', '黑体', sans-serif;
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #c93c23, #8b4513);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr 350px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 2.2em;
        padding-left: 0;
    }
    
    .header h1::before {
        position: static;
        margin-right: 10px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        height: auto;
        min-height: 800px;
    }
    
    .graph-container {
        min-height: 500px;
        height: 500px;
    }
    
    .info-panel {
        height: 300px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .controls {
        justify-content: center;
    }
    
    .legend {
        position: static;
        margin-top: 15px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .graph-container {
        min-height: 400px;
        height: 400px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #d4a574;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 滚动条样式 */
.info-panel::-webkit-scrollbar {
    width: 8px;
}

.info-panel::-webkit-scrollbar-track {
    background: rgba(212, 165, 116, 0.1);
    border-radius: 4px;
}

.info-panel::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 4px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
    background: #8b4513;
}

/* 信息面板详细样式 */
.node-properties {
    margin-bottom: 20px;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(248, 244, 233, 0.5);
    border-radius: 6px;
    border-left: 3px solid #d4a574;
}

.property-label {
    font-weight: 600;
    color: #8b4513;
    min-width: 80px;
}

.property-value {
    color: #5c3d2e;
    font-weight: 500;
}

.node-description {
    margin-bottom: 20px;
}

.node-description h5 {
    color: #c93c23;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.node-description p {
    line-height: 1.6;
    color: #5c3d2e;
    background: rgba(248, 244, 233, 0.3);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(212, 165, 116, 0.3);
}

.related-nodes h5 {
    color: #2e8b57;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.relations-list {
    max-height: 200px;
    overflow-y: auto;
}

.relation-item {
    padding: 10px 12px;
    margin: 6px 0;
    background: rgba(248, 244, 233, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.relation-item:hover {
    background: rgba(212, 165, 116, 0.2);
    transform: translateX(5px);
}

.relation-type {
    font-weight: 600;
    color: #8b4513;
    min-width: 80px;
}

.related-node {
    font-weight: 500;
    color: #5c3d2e;
    flex: 1;
}

.node-type {
    font-size: 0.9em;
    color: #8b4513;
    opacity: 0.8;
}

/* 关系列表滚动条 */
.relations-list::-webkit-scrollbar {
    width: 6px;
}

.relations-list::-webkit-scrollbar-track {
    background: rgba(212, 165, 116, 0.1);
    border-radius: 3px;
}

.relations-list::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 3px;
}

.relations-list::-webkit-scrollbar-thumb:hover {
    background: #8b4513;
}

/* 信息面板详细样式 */
.node-properties {
    margin-bottom: 20px;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(248, 244, 233, 0.5);
    border-radius: 6px;
    border-left: 3px solid #d4a574;
}

.property-label {
    font-weight: 600;
    color: #8b4513;
    min-width: 80px;
}

.property-value {
    color: #5c3d2e;
    font-weight: 500;
}

.node-description {
    margin-bottom: 20px;
}

.node-description h5 {
    color: #c93c23;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.node-description p {
    line-height: 1.6;
    color: #5c3d2e;
    background: rgba(248, 244, 233, 0.3);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(212, 165, 116, 0.3);
}

.related-nodes h5 {
    color: #2e8b57;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.relations-list {
    max-height: 200px;
    overflow-y: auto;
}

.relation-item {
    padding: 10px 12px;
    margin: 6px 0;
    background: rgba(248, 244, 233, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.relation-item:hover {
    background: rgba(212, 165, 116, 0.2);
    transform: translateX(5px);
}

.relation-type {
    font-weight: 600;
    color: #8b4513;
    min-width: 80px;
}

.related-node {
    font-weight: 500;
    color: #5c3d2e;
    flex: 1;
}

.node-type {
    font-size: 0.9em;
    color: #8b4513;
    opacity: 0.8;
}

/* 关系列表滚动条 */
.relations-list::-webkit-scrollbar {
    width: 6px;
}

.relations-list::-webkit-scrollbar-track {
    background: rgba(212, 165, 116, 0.1);
    border-radius: 3px;
}

.relations-list::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 3px;
}

.relations-list::-webkit-scrollbar-thumb:hover {
    background: #8b4513;
}o { opacity: 1; transform: translateY(0); }
}

.container {
    animation: fadeIn 0.8s ease-out;
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分类状态提示 */
.category-status {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 菜单栏样式 */
.main-nav {
    margin: 15px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #d4a574;
}

.nav-link {
    display: block;
    padding: 12px 24px;
    background: rgba(248, 244, 233, 0.8);
    color: #8b4513;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    border: 1px solid #d4a574;
    font-family: 'SimSun', '宋体', serif;
}

.nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 60, 35, 0.2);
    background: rgba(201, 60, 35, 0.1);
    border-color: #c93c23;
    color: #c93c23;
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(201, 60, 35, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .info-panel {
        height: 400px;
    }
}x;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        height: auto;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .controls {
        justify-content: center;
    }
    
    .search-bar input {
        width: 250px;
    }
    
    .legend {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px auto;
        width: fit-content;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .search-bar {
        flex-direction: column;
        width: 100%;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .filters select {
        width: 100%;
    }
}