/* Featured Product Tabs Widget */
.bj-featured-product-tabs {
    width: 100%;
    max-width: 100%;
}

.bj-tabs-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    min-height: auto;
}

/* 左侧Tab列表 */
.bj-tabs-list {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.bj-tab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: none;
    position: relative;
    text-decoration: none !important;
    color: inherit;
}

.bj-tab-item:hover,
.bj-tab-item:focus,
.bj-tab-item:visited {
    text-decoration: none !important;
}

.bj-tab-item * {
    text-decoration: none !important;
}

.bj-tab-item:last-child {
    border-bottom: none;
}

.bj-tab-item:hover,
.bj-tab-item.active {
    background-color: #f5f5f5;
}

.bj-tab-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bj-tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bj-tab-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    line-height: 1.4;
}

.bj-tab-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.bj-tab-item:hover .bj-tab-arrow,
.bj-tab-item.active .bj-tab-arrow {
    color: #2563eb;
    transform: translateX(4px);
}

/* 右侧内容区域 */
.bj-featured-content {
    padding: 24px 32px;
    margin-left: 32px;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
}

.bj-featured-content::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #d1d5db;
}

.bj-featured-header {
    margin-bottom: 20px;
}

.bj-featured-header h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bj-content-panels {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
}

.bj-content-panel {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    padding-bottom: 60px;
}

.bj-content-panel.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bj-product-image {
    width: 100%;
    max-width: 220px;
    margin-bottom: 24px;
    text-align: center;
}

.bj-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.bj-product-info {
    width: 100%;
    max-width: 400px;
}

.bj-product-title-row {
    display: block;
    margin-bottom: 8px;
}

.bj-product-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
    text-align: left;
}

.bj-product-desc {
    display: none;
}

/* 箭头按钮 - 绝对定位在产品面板右下角 */
.bj-product-link {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 48px;
    height: 48px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    border: 1px solid transparent;
    overflow: hidden;
    z-index: 2;
    transition: all 0.3s ease;
}

/* 三层箭头动画结构 */
/* 第一个图标（初始显示，会向右上滑出） */
.bj-product-link .product-arrow-icon-first {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bj-product-link .product-arrow-icon-first svg {
    display: block;
    width: 24px;
    height: 24px;
}

.bj-product-link .product-arrow-icon-first svg path {
    stroke: #ffffff;
    fill: none;
}

/* 背景层（从底部滑入） */
.bj-product-link .product-arrow-bg {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    background: rgba(255, 255, 255, 0.60);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

/* 第二个图标（从左下滑入） */
.bj-product-link .product-arrow-icon-second {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-150%, 150%);
    transition: transform 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bj-product-link .product-arrow-icon-second svg {
    display: block;
    width: 24px;
    height: 24px;
}

.bj-product-link .product-arrow-icon-second svg path {
    stroke: #06101C;
    fill: none;
}

/* 悬停效果 - 悬停整个产品面板时触发按钮动画 */
.bj-content-panel:hover .product-arrow-icon-first {
    transform: translate(50%, -150%);
}

.bj-content-panel:hover .product-arrow-bg {
    transform: translateY(0%);
}

.bj-content-panel:hover .product-arrow-icon-second {
    transform: translate(-50%, -50%);
}

/* 文字按钮样式 */
.bj-product-link > span:not([class]) {
    padding: 0 12px;
    z-index: 4;
    position: relative;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .bj-tabs-wrapper {
        grid-template-columns: 240px 1fr;
    }
    
    .bj-tab-item {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .bj-tab-icon {
        width: 36px;
        height: 36px;
    }
    
    .bj-tab-title {
        font-size: 14px;
    }
    
    .bj-featured-content {
        padding: 20px 24px;
        margin-left: 24px;
        min-height: 340px;
    }
    
    .bj-featured-content::before {
        left: -12px;
    }
    
    .bj-content-panels {
        max-width: 450px;
    }
    
    .bj-product-image {
        max-width: 180px;
        margin-bottom: 20px;
    }
    
    .bj-product-info {
        max-width: 360px;
    }
    
    .bj-product-name {
        font-size: 15px;
    }
    
    .bj-product-link {
        width: 42px;
        height: 42px;
    }
    
    .bj-product-link .product-arrow-icon-first svg,
    .bj-product-link .product-arrow-icon-second svg {
        width: 20px;
        height: 20px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .bj-tabs-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .bj-tabs-list {
        max-height: 280px;
        overflow-y: auto;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .bj-tab-item {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .bj-tab-icon {
        width: 32px;
        height: 32px;
    }
    
    .bj-tab-title {
        font-size: 13px;
    }
    
    .bj-featured-content {
        padding: 20px 16px;
        margin-left: 0;
        min-height: 300px;
    }
    
    .bj-featured-content::before {
        display: none;
    }
    
    .bj-featured-header h3 {
        font-size: 10px;
        margin-bottom: 16px;
    }
    
    .bj-content-panels {
        max-width: 100%;
    }
    
    .bj-product-image {
        max-width: 160px;
        margin-bottom: 16px;
    }
    
    .bj-product-info {
        max-width: 100%;
    }
    
    .bj-product-title-row {
        gap: 8px;
    }
    
    .bj-product-name {
        font-size: 14px;
    }
    
    .bj-product-link {
        width: 40px;
        height: 40px;
    }
    
    .bj-product-link .product-arrow-icon-first svg,
    .bj-product-link .product-arrow-icon-second svg {
        width: 18px;
        height: 18px;
    }
}

/* Elementor编辑器样式 */
.elementor-editor-active .bj-featured-product-tabs {
    min-height: auto;
}

