@charset "utf-8";

/* 产品详情页 */
.pd-main {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.pd-white-box {
    background: #fff;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 产品信息区 */
.pd-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 60px;
}

.pd-info-left {
    flex: 1;
}

.pd-info-left h3 {
    font-size: 32px;
    color: #2d2d2d;
    margin-bottom: 20px;
    font-weight: bold;
}

.pd-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.pd-thumb {
    display: flex;
    gap: 12px;
}

.pd-thumb span {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.pd-thumb span.current {
    border-color: #176E22;
}

.pd-thumb span img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-info-right {
    width: 45%;
    flex-shrink: 0;
    background: #fafafa;
    border-radius: 16px;
    overflow: hidden;
}

.pd-swiper {
    width: 100%;
    height: 100%;
}

.pd-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.pd-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Tab区 */
.pd-tab {
    margin-top: 40px;
}

.pd-tab-title ul {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.pd-tab-title li {
    font-size: 18px;
    color: #666;
    padding: 16px 32px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.pd-tab-title li:hover {
    color: #176E22;
}

.pd-tab-title li.current {
    color: #176E22;
    font-weight: bold;
}

.pd-tab-title li.current::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #176E22;
}

.pd-tab-pane {
    display: none;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.pd-tab-pane p {
    margin-bottom: 12px;
}

.pd-tab-pane p:last-child {
    margin-bottom: 0;
}

/* 上下页导航 */
.pd-page-nav {
    margin-top: 16px;
  gap: 10px;
    display: flex;
}

.pd-page-nav a {
    flex: 1;
    text-align: center;
    padding: 24px 0;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
  background: #fff;
}

.pd-page-nav a:last-child {
    border-right: none;
}

.pd-page-nav a:hover {
    color: #176E22;

}

/* 移动端 */
@media screen and (max-width: 768px) {
    .pd-main {
        padding: 0.4rem 0;
        padding-bottom: 0.7rem;
    }

    .pd-white-box {
        border-radius: 0.24rem;
        padding: 0.4rem;
    }

    .pd-info {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .pd-info-left h3 {
        font-size: 0.42rem;
        margin-bottom: 0.2rem;
    }

    .pd-desc {
        font-size: 0.28rem;
        margin-bottom: 0.3rem;
    }

    .pd-thumb {
        justify-content: center;
        margin-bottom: 0.3rem;
    }

    .pd-thumb span {
        width: 1.2rem;
        height: 1.2rem;
    }

    .pd-info-right {
        width: 100%;
        order: 1;
        margin-bottom: 0.4rem;
    }

    .pd-info-left {
        order: 0;
    }

    .pd-swiper .swiper-slide {
        padding: 0.3rem;
    }

    .pd-swiper .swiper-slide img {
        max-height: 4rem;
    }

    .pd-tab {
        margin-top: 0.4rem;
    }

    .pd-tab-title ul {
        margin-bottom: 0.3rem;
    }

    .pd-tab-title li {
        font-size: 0.3rem;
        padding: 0.2rem 0.3rem;
    }

    .pd-tab-pane {
        font-size: 0.28rem;
    }

    .pd-page-nav {
        margin-top: 0.16rem;
    }

    .pd-page-nav a {
        padding: 0.3rem 0;
        font-size: 0.28rem;
    }
}
