.product_container {

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /*background-color: #23292e;*/

}

.product_cards {
    position: relative;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    /*align-items: center;*/
    perspective: 1000px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))
}

@media (max-width: 650px) {
    .product_cards {
        grid-template-columns: auto; /* Single column layout */

    }

}


.product_card {
    position: absolute;
    width: 250px;
    height: 280px;
    background: white;
    border-radius: 10px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    cursor: pointer;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    justify-content: center;
    width: 100%;
    height: 250px;
    display: flex;
    background-color: rgb(0, 79, 145, 0.3);

    opacity: 1;

}

.card-bg-img {
    position: absolute;
    height: 250px;
    width: 250px;
    opacity: 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: opacity 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}

.card_product-img {
    height: 100%;
    border-radius: 5px;
    z-index: 1;
    /*clip-path: inset(0 0 100% 0); !* 上 右 下 左 *!*/
    /*transition: clip-path 0.3s ease-in-out, transform 0.3s;*/

}

@keyframes shake {
    0%, 100% {
        transform: translate3d(0, -5%, 10px);
    }
    50% {
        transform: translate3d(0, -10%, 20px);
    }

}

/*.product_card:hover img {*/
/*    clip-path: inset(0 0 0 0);*/
/*    !*animation: shake 2s ease-in-out infinite;*!*/
/*}*/

/*.product_card:hover .card-bg-img {*/
/*    opacity: 0;*/
/*}*/

.card-content {
    width: 100%;
    bottom: 0;
    height: 40px;
    position: absolute;
    gap: 10px;
    display: grid;
}

.table-view {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-column {
    text-align: left;

}

.left-column p {
    font-size: 0.875em;
    font-weight: 600;
}

.right-column {
    color: #333030;
    font-size: 14px;
    text-align: right;
}

.container {
    width: 100%;
    margin: 0 auto;
    background-color: #fff;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 选项卡导航样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none; /* 隐藏滚动条 */
}

.tabs::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}

.tab {
    padding: 1.5rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
}

.tab.active {
    color: var(--textcolor);
    font-weight: 600;
    font-size: 1.2em;
}

/* 选项卡下划线动画 */
.tab-underline {
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: var(--textcolor);
    transition: all 0.3s ease;
    border-radius: 3px 3px 0 0;
}

/* 内容区域样式 */
.content {
    padding: 2rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
    height: 100%;
}

/* 产品展示区域 */
.product-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.product-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background-color: #e8f3ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.pointer {
    --l: 30px; /* 线框四角线长 */
    --t: 3px; /* 线框粗细 */
    --g: 10px; /* 线框与图片的间距 */
    --s: 240px; /* 图片尺寸 */
    --x: 0px; /* 图片左上角的横坐标， 动态 */
    --y: 0px; /* 图片左上角的纵坐标， 动态 */
    position: absolute;
    width: calc(var(--s) + (var(--g) * 2));
    height: calc(var(--s) + (var(--g) * 2));
    border: var(--t) solid #fff;
    left: calc(var(--x) - var(--g));
    top: calc(var(--y) - var(--g));
    transition: 0.3s all;
    border-image-source: radial-gradient(80% 60%, transparent 0px, transparent 100%, var(--textcolor) 100%);
    border-image-slice: 1;
    opacity:0;
    border-width: 2px;
    border-style: solid;
    border-image-outset: 10px;
    /*animation: shakes 1s ease-in-out infinite;*/

}


@keyframes shakes {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }

}



.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.tab-content.active .product-image img {
    transform: scale(1);
}

.tab-content .product-image img {
    transform: scale(0.95);
}

.product-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-name .arrow {
    width: 24px;
    height: 24px;
    color: #165DFF;
    transition: transform 0.3s ease;
}

.tab-content.active .product-name .arrow {
    transform: translateX(5px);
}

.product-info {
    width: 100%;
    max-width: 400px;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-label {
    color: #6b7280;
}

.info-value {
    color: #1f2937;
    font-weight: 500;
}

.brand {
    color: #165DFF;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tabs {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        display: grid!important;
        position:unset;
        grid-template-columns:repeat(auto-fill,minmax(150px,1fr));

    }

    .tab {
        width: 150px;

    }

    .tab-underline{
        display: none;
    }


    .content {
        padding: 1.5rem 1rem;
    }

    .product-name {
        font-size: 1.5rem;
    }
}