/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 100;
}

h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.controls > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

label {
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

select, button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

select {
    background: white;
    min-width: 120px;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: translateY(0);
}

/* 数据来源按钮样式 */
.data-source-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.data-source-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 数据来源弹窗样式 */
.data-source-modal .modal-content {
    max-width: 500px;
    width: 90%;
}

.data-source-info {
    padding: 20px 0;
    line-height: 1.6;
}

.data-source-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.data-source-info p {
    margin-bottom: 8px;
    color: #555;
}

.data-source-info .source-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.data-source-info .status-default {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.data-source-info .status-uploaded {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* 主内容区域 */
main {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.graph-container {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#graph {
    width: 100%;
    height: 100%;
    cursor: grab;
}

#graph:active {
    cursor: grabbing;
}

/* 加载动画 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 信息面板 */
.info-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 300px;
    max-height: 70%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
}

.info-panel.show {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: none;
    box-shadow: none;
}

.panel-content {
    padding: 20px;
    max-height: calc(70vh - 60px);
    overflow-y: auto;
}

/* 图例 */
.legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legend h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.legend-item.hidden-type {
    opacity: 0.4;
    text-decoration: line-through;
}

.legend-item.hidden-type .legend-color {
    filter: grayscale(80%);
    opacity: 0.5;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 节点颜色 */
.key-product { background: #e74c3c; }
.raw-material { background: #3498db; }
.intermediate { background: #f39c12; }
.downstream-product { background: #2ecc71; }
.application { background: #9b59b6; }
.company { background: #34495e; }

/* 统计信息 */
.stats {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 15px;
}

.stat-item {
    text-align: center;
    font-size: 14px;
}

.stat-label {
    display: block;
    color: #666;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

/* 节点和连线样式 */
.node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.node:hover {
    stroke-width: 3px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.node.selected {
    stroke-width: 4px;
    stroke: #fff;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.link {
    stroke: #999;
    stroke-opacity: 0.6;
    stroke-width: 1.5px;
    fill: none;
    transition: all 0.3s ease;
}

.link:hover:not(.edge-hover) {
    stroke-opacity: 0.8;
    stroke-width: 2px;
}

.link.highlighted {
    stroke: #667eea;
    stroke-opacity: 0.8;
    stroke-width: 2.5px;
}

/* 层次布局专用样式 */
path.link {
    stroke: #999;
    stroke-opacity: 0.6;
    stroke-width: 2px;
    fill: none;
    transition: all 0.3s ease;
}

path.link:hover:not(.edge-hover) {
    stroke-opacity: 1;
    stroke-width: 3px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

path.link.highlighted {
    stroke: #667eea;
    stroke-opacity: 1;
    stroke-width: 3px;
}

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

.column-separator {
    stroke: #e0e0e0;
    stroke-width: 1;
    stroke-dasharray: 5, 5;
}

.node-group {
    cursor: pointer;
}

.node-supplement {
    font-size: 10px;
    fill: #666;
}

/* 文本标签 */
.node-label {
    font-size: 15px;
    font-weight: 500;
    fill: #333;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

.node-label.large {
    font-size: 17px;
    font-weight: 600;
}

/* 工具提示 */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    max-width: 200px;
    word-wrap: break-word;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .controls > div {
        width: 100%;
        justify-content: space-between;
    }
    
    .info-panel {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
    }
    
    .stats {
        flex-direction: column;
        gap: 8px;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 产业链高亮样式 */
.node.chain-highlighted,
.node-group.chain-highlighted circle {
    stroke: #ff6b6b;
    stroke-width: 4px;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.6));
    animation: pulse 1.5s infinite;
}

.node.chain-dimmed,
.node-group.chain-dimmed circle {
    opacity: 0.2;
    filter: grayscale(80%);
}

/* 产业链边高亮样式 */
.link.chain-highlighted,
path.link.chain-highlighted,
line.link.chain-highlighted {
    stroke: #ff6b6b !important;
    stroke-width: 4px !important;
    stroke-opacity: 1 !important;
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
    animation: flow 2s linear infinite;
}

.link.chain-dimmed,
path.link.chain-dimmed,
line.link.chain-dimmed {
    stroke-opacity: 0.1 !important;
}

/* 产业链标签高亮样式 */
.node-label.chain-highlighted-label {
    font-weight: bold !important;
    font-size: 16px !important;
    fill: #ff6b6b !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

.node-label.chain-dimmed-label {
    opacity: 0.2;
}

/* 产业链边标签高亮样式 */
.edge-label-group.chain-highlighted-edge-label text {
    font-weight: bold !important;
    fill: #ff6b6b !important;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

.edge-label-group.chain-dimmed-edge-label text {
    opacity: 0.1 !important;
}

/* 边悬停样式 - 简化版本 */
.edge-hover {
    stroke: #ff6b6b !important;
    stroke-opacity: 1 !important;
    stroke-width: 5px !important;
    filter: drop-shadow(0 0 12px rgba(255, 107, 107, 0.8)) !important;
    animation: edgePulse 1.5s infinite !important;
    cursor: pointer !important;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        stroke-width: 4px;
    }
    50% {
        stroke-width: 6px;
        filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.8));
    }
    100% {
        stroke-width: 4px;
    }
}

/* 连线悬停专用脉冲动画 */
@keyframes edgePulse {
    0% {
        stroke-width: 5px !important;
        filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6)) !important;
        stroke: #ff6b6b !important;
    }
    50% {
        stroke-width: 8px !important;
        filter: drop-shadow(0 0 20px rgba(255, 107, 107, 1.0)) !important;
        stroke: #ff4444 !important;
    }
    100% {
        stroke-width: 5px !important;
        filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6)) !important;
        stroke: #ff6b6b !important;
    }
}


/* 流动动画（用于边） */
@keyframes flow {
    0% {
        stroke-dasharray: 0 100;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 100 0;
        stroke-dashoffset: -100;
    }
    100% {
        stroke-dasharray: 0 100;
        stroke-dashoffset: -200;
    }
}

/* 确保高亮元素在最上层 */
.chain-highlighted {
    z-index: 999 !important;
}

/* 平滑过渡效果 */
.node,
.node-group circle,
.link,
path.link,
line.link,
.node-label {
    transition: all 0.3s ease;
}

/* 力导向布局的层次背景样式 */
.layer-backgrounds {
    pointer-events: none;
}

.layer-bg {
    transition: all 0.3s ease;
}

.layer-title {
    pointer-events: none;
    user-select: none;
}

.layer-separator {
    opacity: 0.6;
}

/* 增强的连线样式 */
path.link {
    transition: all 0.3s ease;
    cursor: pointer;
}

path.link:hover:not(.edge-hover) {
    stroke-opacity: 1;
    stroke-width: 4px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* 新增：贝塞尔曲线和S形曲线的特殊样式 */
path.link[d*="C"] {
    /* 贝塞尔曲线 - 更平滑的渲染 */
    stroke-linecap: round;
    stroke-linejoin: round;
}

path.link[d*="Q"] {
    /* 二次贝塞尔曲线 - 柔和的弯曲 */
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 改进的节点组布局样式 */
.node-group {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.node-group:hover {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* 修复：通过缩放内部元素而不是整个group来避免transform冲突 */
.node-group:hover circle {
    transform: scale(1.05);
}

.node-group:hover text {
    font-weight: 600;
}

.node-group.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 不同关系类型的连线样式 */
path.link[stroke="#e74c3c"] {
    /* 合成反应 - 红色实线 */
    stroke-width: 3px;
}

path.link[stroke="#f39c12"] {
    /* 同义词 - 橙色虚线 */
    stroke-dasharray: 5,5;
}

path.link[stroke="#9b59b6"] {
    /* 应用关系 - 紫色点线 */
    stroke-dasharray: 3,3;
}

path.link[stroke="#34495e"] {
    /* 公司关系 - 深灰色细点线 */
    stroke-dasharray: 2,2;
    stroke-width: 1.5px;
}

/* 节点在力导向布局中的增强样式 */
.node-group circle {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.node-group:hover circle {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transform: scale(1.1);
}

.node-group.selected circle {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    stroke-width: 4px;
    stroke: #fff;
}

/* 层次背景悬停效果 */
.layer-bg:hover {
    fill-opacity: 0.15;
    transition: all 0.3s ease;
}

/* 新增：改进的布局样式 */
.circular-layout .node-group {
    animation: circleEntry 0.8s ease-out;
}

.grid-layout .node-group {
    animation: gridEntry 0.6s ease-out;
}

.flexible-layout .node-group {
    animation: waveEntry 1s ease-out;
}

@keyframes circleEntry {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes gridEntry {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes waveEntry {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 连线动画增强 */
path.link.synthesis {
    stroke-dasharray: 8 4;
    animation: flowDash 2s linear infinite;
}

@keyframes flowDash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 24; }
}

/* 节点类型特殊效果 */
.node-group[data-type="key_product"] circle {
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
    animation: keyProductPulse 2s ease-in-out infinite;
}

@keyframes keyProductPulse {
    0%, 100% { 
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) brightness(1);
    }
    50% { 
        filter: drop-shadow(0 4px 8px rgba(231, 76, 60, 0.3)) brightness(1.1);
    }
}

/* 改进的tooltip样式 */
.tooltip {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 连线路径平滑度增强 */
path.link {
    shape-rendering: geometricPrecision;
    vector-effect: non-scaling-stroke;
}

/* 不同连线模式的特殊样式 */

.link-mode-orthogonal path.link {
    /* 正交路由模式 - 清晰的转角 */
    stroke-linejoin: miter;
    stroke-linecap: square;
    opacity: 0.9;
}

.link-mode-direct path.link {
    /* 直线模式 - 简洁明快 */
    stroke-linecap: round;
    opacity: 0.8;
    stroke-dasharray: none;
}

/* 连线模式切换过渡动画 */
path.link {
    transition: d 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 新增控件样式 */
.category-selector,
.product-selector,
.link-mode-selector {
    min-width: 150px;
}

.category-selector select,
.product-selector select,
.link-mode-selector select {
    min-width: 150px;
    max-width: 200px;
}

/* 控件组合样式调整 */
.controls {
    flex-wrap: wrap;
    gap: 15px;
}

.controls > div {
    min-width: 140px;
    white-space: nowrap;
}

/* 下拉框样式增强 */
select {
    transition: all 0.3s ease;
    cursor: pointer;
}

select:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 维度隐藏控制样式 */
.visibility-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visibility-buttons {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    border-color: #28a745;
    background: #f8fff9;
    color: #28a745;
}

.toggle-btn.inactive {
    border-color: #dc3545;
    background: #fff5f5;
    color: #dc3545;
    opacity: 0.8;
}

.toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-btn .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-btn .legend-color.company {
    background-color: #34495e;
}

.toggle-btn .legend-color.application {
    background-color: #9b59b6;
}

.toggle-btn .legend-color.raw_material {
    background-color: #3498db;
}

.toggle-btn .legend-color.intermediate {
    background-color: #f39c12;
}

.toggle-btn .legend-color.downstream_product {
    background-color: #2ecc71;
}

/* 通用颜色样式 - 适用于下拉菜单和按钮 */
.legend-color.company {
    background-color: #34495e;
}

.legend-color.application {
    background-color: #9b59b6;
}

.legend-color.raw_material {
    background-color: #3498db;
}

.legend-color.intermediate {
    background-color: #f39c12;
}

.legend-color.downstream_product {
    background-color: #2ecc71;
}

/* 下拉菜单样式 */
.dimension-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.dropdown-trigger:hover {
    border-color: #007bff;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-trigger .icon {
    font-size: 16px;
}

.dropdown-trigger .arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: #666;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-of-type {
    border-bottom: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    width: 100%;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

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

.dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.batch-btn {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.batch-btn:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.batch-btn:active {
    transform: translateY(0);
}

/* 上传按钮样式 */
.upload-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* PDF导出按钮样式 */
.export-pdf-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.export-pdf-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.export-pdf-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
}

/* 上传区域样式 */
.upload-area {
    border: 3px dashed #667eea;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background-color: #e9ecef;
    border-color: #764ba2;
}

.upload-area.drag-over {
    background-color: #e3f2fd;
    border-color: #2196F3;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.upload-area h3 {
    color: #495057;
    margin-bottom: 15px;
}

.upload-area p {
    color: #6c757d;
    margin: 10px 0;
}

.select-file-btn {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.select-file-btn:hover {
    background-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.upload-hint {
    font-size: 14px;
    color: #6c757d;
    margin-top: 15px;
}

/* 上传状态 */
.upload-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.upload-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.upload-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.upload-status.processing {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
    display: block;
}

/* 最近上传记录 */
.recent-uploads {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.recent-uploads h4 {
    color: #495057;
    margin-bottom: 15px;
}

.upload-list {
    max-height: 200px;
    overflow-y: auto;
}

.upload-item {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.upload-item:hover {
    background-color: #e9ecef;
}

.upload-item-info {
    flex: 1;
}

.upload-item-name {
    font-weight: 500;
    color: #495057;
}

.upload-item-time {
    font-size: 12px;
    color: #6c757d;
}

.upload-item-action {
    display: flex;
    gap: 10px;
}

.load-data-btn, .delete-data-btn {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-data-btn {
    background-color: #28a745;
    color: white;
}

.load-data-btn:hover {
    background-color: #218838;
}

.delete-data-btn {
    background-color: #dc3545;
    color: white;
}

.delete-data-btn:hover {
    background-color: #c82333;
}

.no-uploads {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* 模板下载 */
.template-download {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.template-download a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.template-download a:hover {
    color: #5a67d8;
    text-decoration: underline;
}


/* 数据验证错误显示面板 */
.validation-errors {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    min-width: 400px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.error-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.error-content {
    padding: 15px 20px;
    max-height: 300px;
    overflow-y: auto;
}

.error-item {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.error-item:last-child {
    margin-bottom: 0;
}

.error-critical {
    background: #ffe6e6 !important;
    border: 1px solid #ff9999;
    color: #721c24;
}

.warning-item {
    background: #fff3cd !important;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.error-section h4 {
    color: #d63031;
    margin: 0 0 10px 0;
}

.warning-section h4 {
    color: #856404;
    margin: 15px 0 10px 0;
}

.warning-note {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0 10px 0;
    font-style: italic;
}

.more-warnings {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0 0 0;
    text-align: center;
}

.error-type {
    font-weight: 600;
    margin-right: 8px;
}

.error-location {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 4px;
}

/* 节点信息提示框样式 */
.node-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 300px;
    word-wrap: break-word;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.node-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.85);
}

.tooltip-content {
    font-weight: 500;
}

/* 节点补充信息增强显示 */
.tooltip {
    max-width: 250px !important;
    line-height: 1.4;
}

.tooltip .supplement-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    color: #ccc;
}

/* 信息面板的补充信息样式 */
.node-info .supplement-section {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 123, 255, 0.05);
    border-left: 4px solid #007bff;
    border-radius: 0 4px 4px 0;
}

.node-info .supplement-section h5 {
    margin: 0 0 8px 0;
    color: #007bff;
    font-size: 14px;
    font-weight: 600;
}

.node-info .supplement-text {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* AI智能分析模态框样式 */
.llm-analysis-modal {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.analysis-config {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.analysis-config h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.config-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.config-item {
    flex: 1;
    min-width: 200px;
}

.config-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.config-item select,
.config-item input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.api-config {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-config input {
    font-family: monospace;
    font-size: 12px;
}

.config-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.start-analysis-btn,
.test-api-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-analysis-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.start-analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.test-api-btn {
    background: #28a745;
    color: white;
}

.test-api-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* 批量分析样式 */
.analysis-mode-item {
    flex: 1 1 100%;
}

.analysis-mode-selector {
    display: flex;
    gap: 20px;
    align-items: center;
}

.analysis-mode-selector input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.analysis-mode-selector label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.analysis-mode-selector input[type="radio"]:checked + label {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.batch-analysis-config {
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    background: #fafafa;
}

.batch-category-selector {
    display: none;
}

.batch-category-selector.show {
    display: block;
}

.batch-preview {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.batch-preview h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.preview-list {
    max-height: 200px;
    overflow-y: auto;
}

.preview-task {
    padding: 8px 12px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

.preview-task.category-task {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-color: #c3e6c3;
}

.preview-task.product-task {
    background: linear-gradient(135deg, #fff3e0 0%, #ffeaa7 100%);
    border-color: #ffcc02;
}

.no-tasks {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

/* 批量分析进度样式 */
.batch-progress-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.batch-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.batch-stat {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 80px;
}

.batch-stat .stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.batch-stat .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.batch-task-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.batch-task-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

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

.batch-task-item.pending {
    background: #f8f9fa;
    color: #666;
}

.batch-task-item.running {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

.batch-task-item.completed {
    background: #e8f5e8;
    color: #2e7d32;
}

.batch-task-item.error {
    background: #ffebee;
    color: #c62828;
}

.batch-task-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.batch-task-status.pending {
    background: #e0e0e0;
    color: #666;
}

.batch-task-status.running {
    background: #2196f3;
    color: white;
}

.batch-task-status.completed {
    background: #4caf50;
    color: white;
}

.batch-task-status.error {
    background: #f44336;
    color: white;
}

.progress-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.pause-btn,
.resume-btn,
.cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pause-btn,
.resume-btn {
    background: #ff9800;
    color: white;
}

.pause-btn:hover,
.resume-btn:hover {
    background: #f57c00;
}

.cancel-btn {
    background: #f44336;
    color: white;
}

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

/* 批量分析结果样式 */
.batch-result {
    margin-top: 20px;
}

.batch-summary {
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6c3;
}

.batch-summary h4 {
    margin: 0 0 15px 0;
    color: #2e7d32;
    font-size: 18px;
}

.summary-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.summary-stat .stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #2e7d32;
}

.summary-stat .stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.batch-reports-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.batch-report-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.batch-report-item:hover {
    background: #f8f9fa;
}

.report-info {
    flex: 1;
}

.report-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.report-meta {
    font-size: 12px;
    color: #666;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.download-single-btn,
.view-report-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-single-btn {
    background: #2196f3;
    color: white;
}

.download-single-btn:hover {
    background: #1976d2;
}

.view-report-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.view-report-btn:hover {
    background: #e9ecef;
}

.download-all-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 分析进度样式 */
.analysis-progress {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.progress-header h3 {
    color: #1976d2;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-pulse 2s infinite;
}

@keyframes progress-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

#progressText {
    color: #666;
    font-size: 14px;
}

/* 分析结果样式 */
.analysis-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.result-header h3 {
    color: #2c3e50;
    font-size: 20px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.export-report-btn,
.copy-report-btn,
.new-analysis-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.copy-report-btn {
    background: #6c757d;
    color: white;
}

.new-analysis-btn {
    background: #17a2b8;
    color: white;
}

.export-report-btn:hover,
.copy-report-btn:hover,
.new-analysis-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.result-metadata {
    background: #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.result-metadata h4 {
    color: #495057;
    margin-bottom: 10px;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.metadata-label {
    font-weight: 500;
    color: #6c757d;
}

.metadata-value {
    color: #495057;
}

.result-content {
    background: white;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #dee2e6;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.6;
}

.result-content h1,
.result-content h2,
.result-content h3,
.result-content h4 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.result-content h1 {
    font-size: 24px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.result-content h2 {
    font-size: 20px;
    color: #495057;
}

.result-content h3 {
    font-size: 18px;
    color: #6c757d;
}

.result-content p {
    margin-bottom: 10px;
    color: #555;
}

.result-content ul,
.result-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.result-content li {
    margin-bottom: 5px;
    color: #555;
}

/* 错误信息样式 */
.analysis-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.error-header h3 {
    color: #721c24;
    margin-bottom: 15px;
}

.error-content {
    background: white;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #dc3545;
}

.error-actions {
    display: flex;
    gap: 10px;
}

.retry-analysis-btn,
.check-config-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-analysis-btn {
    background: #dc3545;
    color: white;
}

.check-config-btn {
    background: #6c757d;
    color: white;
}

.retry-analysis-btn:hover,
.check-config-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .llm-analysis-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    .config-row {
        flex-direction: column;
    }
    
    .config-item {
        min-width: auto;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .result-actions {
        justify-content: center;
    }
    
    .metadata-grid {
        grid-template-columns: 1fr;
    }
}

/* 产品检索功能样式 */
.product-search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

#productSearchInput {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

#productSearchInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-suggestions {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    margin-top: 0;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item.active {
    background-color: #e7f3ff;
}

.suggestion-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 3px;
}

.suggestion-meta {
    font-size: 12px;
    color: #6c757d;
}

.suggestion-meta .industry-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 5px;
}

.suggestion-meta .industry-tag.chemical {
    background-color: #e3f2fd;
    color: #1976d2;
}

.suggestion-meta .industry-tag.biomass {
    background-color: #e8f5e9;
    color: #388e3c;
}

.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 6px 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.no-results {
    padding: 10px 12px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}