/* ========== 产品详情页样式 ========== */

/* 首页轮播横幅样式 - 覆盖全局style.css */
.body-inner .home-banner {
    height: 600px;
}

.body-inner .home-banner .swiper-slide {
    height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.body-inner .home-banner .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.body-inner .home-banner .container.banner-container {
    height: auto;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.body-inner .home-banner .box-slider-text {
    max-width: 800px;
    position: relative;
    z-index: 2;
    color: #fff;
}

.body-inner .home-banner .box-slide-title {
    font-size: 70px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease;
}

.body-inner .home-banner .box-slide-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 - 轮播横幅 */
@media (max-width: 1000px) {
    .body-inner .home-banner {
        height: 400px;
    }

    .body-inner .home-banner .swiper-slide {
        height: 400px;
    }

    .body-inner .home-banner .box-slide-title {
        font-size: 32px;
    }

    .body-inner .home-banner .box-slide-description {
        font-size: 14px;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .body-inner .home-banner {
        height: 350px;
    }

    .body-inner .home-banner .swiper-slide {
        height: 350px;
    }

    .body-inner .home-banner .box-slide-title {
        font-size: 26px;
    }

    .body-inner .home-banner .box-slide-description {
        font-size: 13px;
        margin-top: 10px;
    }
}

/* 产品详情区域美化 */
.product-details {
    padding: 60px 0;
    background: #fff;
}

.product__details__pic {
    height: 586px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 20px;
}

.mySwiper {
    width: 100%;
    height: 106px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mySwiper2 {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.swiper-slide img:hover {
    transform: scale(1.02);
}

.mySwiper .swiper-slide {
    opacity: 0.4;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mySwiper .swiper-slide.swiper-slide-thumb-active {
    opacity: 1;
    transform: scale(1.05);
}

/* 产品信息区域美化 */
.product__details__text {
    height: 586px;
    overflow-y: auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.product__details__text h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
}

.product__details__rating {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.product__details__rating a,
.product__details__rating span {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.product__details__rating a:hover {
    color: #0066FF;
}

.product__details__price {
    font-size: 36px;
    font-weight: 700;
    color: #ff4757;
    margin: 25px 0;
    padding: 15px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.product__details__price.text-warning {
    color: #ffa502;
}

.product__details__text p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.product__details__text ul {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.product__details__text ul li {
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.product__details__text ul li b {
    color: #333;
    min-width: 100px;
    font-weight: 600;
    font-size: 18px;
}

.product__details__text ul li span {
    color: #666;
    font-size: 18px;
}

/* 按钮美化 */
.btn-primary {
    background: linear-gradient(135deg, #0066FF 0%, #0052D9 100%);
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    background: linear-gradient(135deg, #0052D9 0%, #003d99 100%);
}

/* 分享按钮美化 */
.share {
    display: inline-flex;
    gap: 12px;
}

.share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    transition: all 0.3s ease;
}

.share a:hover {
    background: #0066FF;
    color: #fff;
    transform: translateY(-2px);
}

/* Tab标签美化 */
.product__details__tab {
    margin-top: 50px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: #0066FF;
    background: transparent;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066FF 0%, #0052D9 100%);
    border-radius: 3px 3px 0 0;
}

.product__details__tab__desc {
    line-height: 1.8;
    color: #666;
    font-size: 18px;
}

/* Swiper导航按钮美化 */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    color: #0066FF;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
    transform: scale(1.1);
}

/* 相关产品区域美化 */
.home-product {
    padding: 60px 0;
    background: #fff;
}

.property-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pi-pic {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: block;
}

.pi-pic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-item:hover .pi-pic::before {
    opacity: 1;
}

.pi-text {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pi-text h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 50px;
    overflow: hidden;
}

.pi-text h5 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pi-text h5 a:hover {
    color: #0066FF;
}

.pi-text .desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.pi-meta {
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.pi-meta .views {
    font-size: 13px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pi-meta .views i {
    font-size: 12px;
}

.label {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.c-magenta {
    background: linear-gradient(135deg, #0066FF 0%, #0052D9 100%);
    color: #fff;
}

/* 响应式优化 */
@media (max-width: 1000px) {
    .product-details {
        padding: 40px 0;
    }

    .mySwiper {
        width: 100%;
        height: 60px;
    }

    .mySwiper2 {
        width: 100%;
        height: 300px;
    }

    .product__details__text h3 {
        font-size: 24px;
    }
}