
.products-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.main-product {
    margin-bottom: 40px;
    padding-bottom: 30px;
}

.main-product img {
    width: 100%;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.product-info {
    flex: 1;
    text-align: center;
}

.product-name {
    font-size: 68px;
    font-weight: 900;
    color: #000000;
    margin: 0 0 10px 0;
}

.product-model {
    font-size: 86px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.others_bg {
    background: url('../../img/other_bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 18px;
    transition: all 0.3s ease;
}
.product-card {
    background: rgba(255, 255, 255, 0.1);
    /*border-radius: 20px;*/
    padding: 0; /* 移除padding，让图片完全填充 */
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    position: relative; /* 添加相对定位 */
    overflow: hidden; /* 确保内容不溢出 */
}


.product-card img {
    width: 90%;
    height: auto;
    /*border-radius: 20px;*/
    display: block; /* 确保图片正确显示 */
}

/* card-content 样式 */
.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center; /* 保持居中 */
    align-items: center;
    justify-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /*border-radius: 20px;*/
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    cursor: pointer; /* 鼠标悬停时显示手掌形状 */
}

/* 鼠标悬停时显示card-content */
.product-card:hover .card-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 点击时显示card-content */
.product-card.active .card-content {
    opacity: 1;
    visibility: visible; /* 显示并接受点击事件 */
    pointer-events: auto; /* 恢复点击事件 */
}

.card-title {
    font-size: 20px;
    color: #ffffff;
    margin: 40px 0 10px 0;
    line-height: 1.8;
}

.card-date {
    font-size: 18px;
    color: #FFB400;
    margin: 0 0 60px 0; /* 增加下边距，让价格显示在底部 */
    line-height: 1.6;
}

.card-price {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    font-family: SHanSanR;
    position: absolute; /* 绝对定位到底部 */
    bottom: 20px;
    left: 50%; /* 添加left: 50%来配合transform实现完全居中 */
    transform: translateX(-50%); /* 水平居中 */
    white-space: nowrap; /* 防止换行 */
    text-align: center; /* 文本居中对齐 */
}



/* 响应式设计 - 手机端产品网格 */
@media screen and (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        margin: 2vw;
    }
    .product-card {
        padding: 0 !important;
    }
    /* 点击激活状态 */
    .product-card.active .card-content {
        opacity: 1 !important; /* 点击时显示 */
        visibility: visible !important; /* 显示 */
        pointer-events: auto !important; /* 恢复点击事件 */
    }
    /* 手机端card-content优化 */
    .card-content {
        padding: 15px !important;
        background: rgba(0, 0, 0, 0.3) !important; /* 更深的背景 */
        opacity: 0 !important; /* 默认隐藏 */
        visibility: hidden !important; /* 完全隐藏 */
        pointer-events: none !important; /* 不接受点击事件 */
    }
    .card-title {
        font-size: 18px !important;
        margin: 0 0 10px 0 !important;
    }
    .card-date {
        font-size: 16px !important;
        margin: 0 0 10px 0 !important;
    }

    .card-price {
        font-size: 14px !important;
    }
}


@media screen and (max-width: 768px) {
    .main-product {
        margin-bottom: 5px;
        padding-bottom: 30px;
    }
    /* 移动端product-card样式调整 */
    .product-card {
        padding: 20px; /* 移动端恢复padding */
    }

    .product-card .card-content {
        position: absolute; /* 移动端不使用绝对定位 */
        opacity: 0.5; /* 移动端始终显示内容 */
        background: none; /* 移动端不需要遮罩 */
        padding: 0;
    }

}
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 8px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: white;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.pagination-btn:hover:not(:disabled) {*/
/*    border-color: #000000;*/
/*    color: #000000;*/
/*}*/

.pagination-btn.active {
    background-color: #000000;
    border-color: #000000;
    color: white;
}

.pagination-btn:disabled {
    background-color: #000000;
    border-color: #000000;
    color: white;
    cursor: not-allowed;
}

.nav-btn:disabled {
    background-color: #000000;
    border-color: #000000;
    color: white;
}

.page-btn:not(.active) {
    background-color: white;
    border-color: #ddd;
    color: #666;
}

.product-detail {
    position: absolute;
    top: 575px;
    right: 18%;
    background-image: url('../../img/detail_0903.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 65px 30px 65px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none; /* 移除链接下划线 */
    color: inherit; /* 继承文字颜色 */
}
/* 悬停效果 */
.product-detail:hover {
    transform: translateY(-2px) scale(1.05);
    text-decoration: none; /* 悬停时也不显示下划线 */
}

/* 点击效果 */
.product-detail:active {
    transform: translateY(0) scale(1.02);
}

.product-detail:visited {
    color: inherit; /* 访问后保持原有颜色 */
}

.product-detail .product-name {
    color: #ffa000;
    font-size: 24px;
    font-family: SHanSanM;
}

.product-detail-more {
    position: absolute;
    bottom: 30px;
    right: 40%;
    background-image: url('../../img/more2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 65px 30px 65px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-detail-more:hover {
    transform: translateY(-2px) scale(1.05);
    text-decoration: none;
}

.product-detail-more:active {
    transform: translateY(0) scale(1.02);
}

.product-detail-more .product-name {
    color: #ffa000;
    font-size: 24px;
    font-family: SHanSanM;
}

.product-detail-content {
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.product-detail-content img {
    width: 100%;
    height: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media screen and (max-width: 1200px){
    .product-detail {
        position: absolute;
        top: 46.5vw;
        right: 18%;
        padding: 25px 50px 30px 50px;
    }
    .product-detail .product-name {
        font-size: 18px;
    }

    .product-detail-more {
        position: absolute;
        bottom: 30px;
        right: 40%;
        padding: 30px 50px 30px 50px;
    }

    .product-detail-more .product-name {
        font-size: 18px;
    }
    .others_bg{
        padding: 2.2vw;
    }
}
@media screen and (max-width: 768px){
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 2vw;
    }
    .product_bg{
        padding:10px ;
    }
    .product-detail {
        position: absolute;
        top: 45vw;
        right: 15%;
        padding: 2vw 5vw 3vw 5vw;
    }
    .product-detail .product-name {
        font-size: 12px;
        font-family: SHanSanM;
    }

    .product-detail-more {
        position: absolute;
        bottom: 5px;
        right: 40%;
        padding: 3vw 5vw;
    }

    .product-detail-more .product-name {
        font-size: 12px;
        font-family: SHanSanM;
    }
    .others_bg{
        padding: 2.2vw;
    }
}
.otherspng{
    display: flex;
    justify-items: center;
    justify-content: center;
    margin: 30px auto;
}

.otherspng img{
    width: 100%;
}

@media screen and (max-width: 1200px) {
    .otherspng{
        margin: 30px 20px;
    }
}

@media screen and (max-width: 768px) {
    .otherspng{
        margin: 30px 10px;
    }
}