/* 商品详情弹窗样式 */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
}

.modal-content {
    position: relative;
    width: 620px;
    height: 812px;
    max-width: 90%;
    background: #F7F8FA;
    border-radius: 12px;
    z-index: 1002;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #FFFFFF;
    border-bottom: 1px solid #EEEEEE;
}

.modal-title {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 25px;
    color: #333333;
    margin: 0;
}

.close-button {
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F5F5F5;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: #E8E8E8;
}

.close-icon {
    width: 16px;
    height: 16px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    flex: 1;
}

.product-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F7F8FA;
    width: 100%;
    height: 350px;
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
}

#productDetailCarousel,
#productDetailCarousel .layui-carousel,
#productDetailCarousel [carousel-item] {
    width: 100%;
    height: 100%;
}

#productDetailCarousel [carousel-item] > div {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
}

.product-image-section .carousel-image-item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-section .carousel-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.points-info-section {
    background: #333333;
    color: #FFFFFF;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.points-main-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.points-value {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 39px;
    color: #FFFFFF;
}

.points-limit {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #999999;
}

.points-note {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #999999;
}

.product-details-section {
    padding: 24px;
    background: #FFFFFF;
}

.product-name-section {
    margin-bottom: 32px;
}

.product-name {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 33px;
    color: #333333;
    margin-bottom: 12px;
    max-width: 100%;
}
.product-name span{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-points {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.points-icon {
    font-size: 20px;
    margin-right: 4px;
}

.points-number {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #E21C34;
}

.exchange-count {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #999999;
    margin-left: 16px;
    min-width: 70px;
}

.delivery-info {
    margin-top: 24px;
}

.section-title {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: #333333;
    margin-bottom: 12px;
}

.delivery-text {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #666666;
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #EEEEEE;
}

.footer-points-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-required-points {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #E21C34;
}

.footer-current-points {
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #999999;
}

.footer-current-points span {
    margin-left: 4px;
    color: #666666;
    font-weight: 500;
}

.exchange-button {
    background: #E21C34;
    border-radius: 25px;
    width: 150px;
    height: 50px;
    box-sizing: border-box;
    font-family: 'SourceHanSansCN', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exchange-button:hover {
    background: #c01528;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 28, 52, 0.3);
}
@media (max-width: 1400px) {
    .modal-content{
        height: 90%;
        overflow: auto;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .product-image-section {
        padding: 12px;
    }

    .product-image-section img {
        height: 100%;
    }

    .points-info-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .exchange-button {
        width: 100%;
    }
}