/* 资源导航菜单样式 */
.bj-resources-navigation {
    width: 100%;
    padding: 32px 0 48px;
    background: #fff;
}

.bj-nav-wrapper {
    display: flex;
    justify-content: center;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 30px;
}

.bj-nav-content {
    width: 100%;
    padding-right: 388px;
    position: relative;
}

.bj-nav-list {
    position: relative;
}

.bj-nav-list > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 导航项样式 */
.bj-nav-item > a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 56px 8px 8px;
    position: relative;
    color: #06101C;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bj-nav-item > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(6, 16, 28, 0.1);
}

.bj-nav-item:hover > a {
    background: #0055B8;
    color: #fff;
}

.bj-nav-icon {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bj-nav-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 导航标题 */
.bj-nav-title {
    flex: 1;
}

/* 箭头图标 - 向右箭头 */
.bj-nav-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.bj-nav-arrow svg {
    width: 100%;
    height: 100%;
}

.bj-nav-item:hover .bj-nav-arrow {
    color: #ffffff;
    transform: translateX(4px);
}

/* 悬停内容面板 */
.bj-hover-content {
    position: absolute;
    top: 0;
    left: calc(100% + 40px);
    min-height: 100%;
    width: 348px;
    padding-left: 40px;
    border-left: 1px solid rgba(6, 16, 28, 0.25);
    opacity: 0;
    visibility: hidden;
    background: #fff;
    transition: all 0.2s ease;
    z-index: 10;
}

.bj-hover-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: calc(100% - 1px);
    width: 42px;
    height: 100%;
}

.bj-nav-item:hover .bj-hover-content,
.bj-nav-item:first-child .bj-hover-content {
    opacity: 1;
    visibility: visible;
}

/* 特色资源标签 */
.bj-featured-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #6b7280;
}

/* 资源列表 */
.bj-resource-list {
    margin-bottom: 20px;
}

.bj-resource-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bj-resource-item {
    margin-bottom: 0;
}

.bj-resource-item a {
    display: flex;
    align-items: center;
    min-height: 48px;
    background: #F2F2F2;
    color: #06101C;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    position: relative;
    letter-spacing: 0.16px;
    padding: 12px 52px 12px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bj-resource-item a:hover {
    background: #0055B8;
    color: #fff;
}

.bj-resource-item a span {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bj-resource-item a span img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bj-resource-item a::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M7 7H17V17M17 7L7.5 16.5" stroke="%2306101C" stroke-width="1.5"/></svg>') no-repeat center;
    transition: filter 0.2s ease;
}

/* "查看全部"链接 */
.bj-link-arrow {
    display: inline-flex;
    align-items: center;
    color: #0055B8;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bj-link-arrow:hover {
    color: #003879;
}

.bj-arrow-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.bj-arrow-icon::before,
.bj-arrow-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.bj-arrow-icon::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M7 7H17V17M17 7L7.5 16.5" stroke="%230055B8" stroke-width="1.5"/></svg>') no-repeat center;
    transform: translate(0, 0);
}

.bj-arrow-icon::after {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M7 7H17V17M17 7L7.5 16.5" stroke="%23003879" stroke-width="1.5"/></svg>') no-repeat center;
    transform: translate(-100%, 100%);
}

.bj-link-arrow:hover .bj-arrow-icon::before {
    transform: translate(100%, -100%);
}

.bj-link-arrow:hover .bj-arrow-icon::after {
    transform: translate(0, 0);
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .bj-nav-wrapper {
        padding: 0 20px;
    }
    
    .bj-nav-content {
        padding-right: 320px;
    }
    
    .bj-hover-content {
        width: 300px;
        left: calc(100% + 30px);
        padding-left: 30px;
    }
    
    .bj-hover-content::before {
        width: 32px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .bj-resources-navigation {
        padding: 24px 0 32px;
    }
    
    .bj-nav-wrapper {
        padding: 0 18px;
    }
    
    .bj-nav-content {
        padding-right: 0;
    }
    
    .bj-nav-item > a {
        padding: 10px 48px 10px 8px;
        font-size: 15px;
    }
    
    .bj-nav-icon {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }
    
    .bj-nav-item > a::after {
        width: 20px;
        height: 20px;
        right: 12px;
        background-size: 20px 20px;
    }
    
    /* 手机端隐藏悬停内容，可以后续改为点击展开 */
    .bj-hover-content {
        display: none;
    }
    
    .bj-featured-label {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .bj-resource-item a {
        font-size: 14px;
        padding: 10px 44px 10px 10px;
    }
    
    .bj-resource-item a span {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    .bj-resource-item a::after {
        width: 20px;
        height: 20px;
        right: 10px;
        background-size: 20px 20px;
    }
    
    .bj-link-arrow {
        font-size: 14px;
    }
    
    .bj-arrow-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
}

/* Elementor编辑器样式 */
.elementor-editor-active .bj-resources-navigation {
    min-height: auto;
}

.elementor-editor-active .bj-nav-item:first-child .bj-hover-content {
    opacity: 1;
    visibility: visible;
}

/* 隐藏编辑器模式下的下划线 */
.elementor-editor-active .bj-nav-item > a::before {
    display: none;
}
