/* ========================================
   解决方案下拉菜单样式 - 海康威视风格
   ======================================== */

/* 下拉菜单容器 - 全屏宽度 */
.dropdown-menu.solutions-dropdown {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: #ffffff !important;
    border: none !important;
    border-top: 1px solid #e8e8e8 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 9998 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 300px !important;
    height: calc(100vh - 80px) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden !important;
}

/* 显示下拉菜单 */
.nav-item:hover .dropdown-menu.solutions-dropdown {
    opacity: 1;
    visibility: visible;
}

/* 下拉菜单内部容器 */
.solutions-dropdown .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* 下拉菜单内部布局 - 两栏布局 */
.solutions-dropdown-inner {
    display: flex;
    height: 100%;
    min-height: 300px;
}

/* 左侧分类列表 */
.solutions-categories-list {
    width: 220px;
    flex-shrink: 0;
    background: #f8f8f8;
    border-right: 1px solid #e8e8e8;
    list-style: none;
    margin: 0;
    padding: 20px 0;
    overflow-y: auto;
}

/* 下拉菜单标题 */
.solutions-dropdown-title {
    padding: 0 20px 15px;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

/* 分类项 */
.solutions-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333333;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.solutions-category-item:hover,
.solutions-category-item.active {
    background: #ffffff;
    color: #0066cc;
    border-left-color: #0066cc;
}

.category-name {
    font-weight: 500;
}

.category-arrow {
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.solutions-category-item:hover .category-arrow,
.solutions-category-item.active .category-arrow {
    opacity: 1;
}

/* 右侧内容区域 */
.solutions-content-area {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
    max-height: 100%;
}

/* 内容包装器 */
.solutions-content-wrapper {
    display: flex;
    gap: 30px;
    height: 100%;
}

/* 方案列表 */
.solutions-list {
    flex: 1;
    overflow-y: auto;
    max-height: 100%;
}

/* 单个方案项 */
.solution-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.solution-item:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.solution-item-image {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.solution-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-item:hover .solution-item-image img {
    transform: scale(1.05);
}

.solution-item-info {
    flex: 1;
    min-width: 0;
}

.solution-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.solution-item:hover .solution-item-title {
    color: #0066cc;
}

.solution-item-summary {
    font-size: 13px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 右侧视觉图 */
.solutions-visual {
    width: 300px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    max-height: 100%;
}

.solutions-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

/* 查看更多链接 */
.solutions-view-more {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.solutions-view-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.solutions-view-more a:hover {
    color: #0099ff;
}

.solutions-view-more a i {
    transition: transform 0.2s ease;
}

.solutions-view-more a:hover i {
    transform: translateX(4px);
}

/* 无方案提示 */
.no-solutions {
    text-align: center;
    padding: 60px 20px;
    color: #999999;
    font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .solutions-dropdown .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .solutions-visual {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .solutions-dropdown-inner {
        flex-direction: column;
    }
    
    .solutions-categories-list {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .solutions-dropdown-title {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .solutions-category-item {
        width: auto;
        padding: 8px 15px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .solutions-category-item:hover,
    .solutions-category-item.active {
        border-left-color: transparent;
        border-bottom-color: #0066cc;
    }
    
    .solutions-content-area {
        padding: 15px;
    }
    
    .solutions-content-wrapper {
        flex-direction: column;
    }
    
    .solutions-visual {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu.solutions-dropdown {
        position: fixed !important;
        top: 60px !important;
        min-height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
    }
    
    .solution-item {
        flex-direction: column;
    }
    
    .solution-item-image {
        width: 100%;
        height: 150px;
    }
}
