/**
 * Mega Menu 全屏下拉菜单组件样式
 * 用于导航栏的"关于我们"、"产品与方案"等下拉展开
 */

/* ==================== 全屏 Mega Menu ==================== */
.mega-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 99, 190, 0.15), 0 2px 8px rgba(0, 99, 190, 0.08);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    max-width: 1400px;
    width: 100%;
    padding: 3rem 0px;
    display: none;
}

.mega-menu-container.active {
    display: flex;
}

/* 通用 Mega Menu 网格布局 */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

.mega-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 99, 190, 0.08);
}

.mega-menu-item:hover {
    background: rgba(0, 99, 190, 0.05);
    border-color: rgba(0, 99, 190, 1);
    transform: translateY(-4px);
}

.mega-menu-item .menu-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tech-blue, #0063be), #4a9eff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.mega-menu-item:hover .menu-icon {
    transform: scale(1.1);
}

.mega-menu-item .menu-icon i {
    font-size: 28px;
    color: white;
}

.mega-menu-item .menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray, #333333);
    margin-bottom: 0.5rem;
}

.mega-menu-item .menu-desc {
    font-size: 0.85rem;
    color: var(--medium-gray, #666666);
    line-height: 1.5;
}

/* ==================== 产品与方案的特殊布局 ==================== */
.product-mega-layout {
    display: flex;
    width: 100%;
    gap: 0;
    min-height: 350px;
}

.product-mega-tabs {
    width: 220px;
    flex-shrink: 0;
    background: var(--light-gray, #F5F5F5);
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    padding: 0.5rem 0;
}

.product-mega-tab {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-gray, #333333);
    font-size: 1rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.product-mega-tab i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.product-mega-tab:hover {
    background: rgba(0, 99, 190, 0.05);
}

.product-mega-tab.active {
    background: white;
    color: var(--tech-blue, #0063be);
    font-weight: 600;
    border-left-color: var(--tech-blue, #0063be);
}

.product-mega-panel {
    flex: 1;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 0 8px 8px 0;
    display: none;
}

.product-mega-panel.active {
    display: block;
}

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(0, 99, 190, 0.15);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 99, 190, 0.12);
    min-height: 120px;
}

.product-list-item:hover {
    background: rgba(0, 99, 190, 0.05);
    border-color: var(--tech-blue, #0063be);
    box-shadow: 0 8px 24px rgba(0, 99, 190, 0.2);
    transform: translateY(-2px);
}

.product-list-item .product-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(0, 99, 190, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-list-item .product-list-icon i {
    font-size: 20px;
    color: var(--tech-blue, #0063be);
}

.product-list-item .product-list-img {
    width: 144px;
    height: 144px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--light-gray, #F5F5F5);
}

.product-list-item .product-list-info h4 {
    font-size: 0.95rem;
    color: var(--dark-gray, #333333);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.product-list-item .product-list-info p {
    font-size: 0.8rem;
    color: var(--medium-gray, #666666);
    line-height: 1.4;
}

.product-list-view-more {
    margin-top: 1.5rem;
    text-align: right;
}

.product-list-view-more a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tech-blue, #0063be);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.product-list-view-more a:hover {
    gap: 0.8rem;
}

.product-list-view-more a i {
    font-size: 0.75rem;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu-overlay {
        display: none !important;
    }
}
