/* ==================== 产品详情页面样式 ==================== */

/* 页面标题横幅 */
.product-banner {
    background: #7a9c3d;
    padding: 25px 0;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
}

/* 详情区域 */
.detail-section {
    padding: 0 0 60px;
    background: transparent;
}

.detail-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* 图片轮播 */
.gallery-wrap {
    position: relative;
    margin-bottom: 30px;
}

.gallery-main {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.gallery-list-static {
	margin-top: 10px;
}

.gallery-list-static .gallery-item {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
	margin-top: 10px;
}

.gallery-list-static .gallery-item img {
    width: 100%;
    height: auto;
    /*max-height: 500px;*/
    object-fit: contain;
    display: block;
}

.gallery-list {
    display: flex;
    transition: transform 0.4s ease;
}

.gallery-list .gallery-item {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-list .gallery-item img {
    width: 100%;
    height: auto;
    /*max-height: 500px;*/
    object-fit: contain;
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.gallery-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-dots .dot.active {
    background: #7a9c3d;
}

/* 商品信息 */
.detail-info {
    max-width: 800px;
    margin: 0 auto;
}

.detail-info h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.detail-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.detail-desc img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* 空状态 */
.detail-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .page-title {
        font-size: 24px;
    }

    .detail-container {
        padding: 20px;
    }

    .gallery-list .gallery-item img {
        /*max-height: 400px;*/
    }

    .detail-info h2 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .product-banner {
        padding: 20px 0;
        margin-bottom: 25px;
    }

    .page-title {
        font-size: 20px;
    }

    .detail-section {
        padding: 0 0 40px;
    }

    .detail-container {
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .gallery-arrow.prev {
        left: 5px;
    }

    .gallery-arrow.next {
        right: 5px;
    }

    .gallery-list .gallery-item img {
        /*max-height: 300px;*/
    }

    .detail-info h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .detail-desc {
        font-size: 15px;
    }
}
