/* 产品详情页独立样式 */
.main-content {
    padding: 0 0 80px 0;
}

.product-detail-main {
}
.product-detail-top {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
}

/* 图片轮播样式 */
.product-gallery {
    flex: 0.8;
    min-width: 600px;
    display: flex;
    gap: 20px;
}

.main-image-container {
    flex: 1;
    min-width: 350px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.main-img {
    width: 100%;
    height: 100%;
    display: none;
    border-radius: 10px;
    object-fit: inherit;
    max-height: 500px;
    transition: opacity 0.3s ease;
}

.main-img.active {
    display: block;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80px;
    flex-shrink: 0;
}

.thumbnail-item {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.thumbnail-item:hover {
    border-color: #e74c3c;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-img {
    flex: 1;
    min-width: 320px;
}
.product-detail-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}
.product-detail-info {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
}
.product-detail-info h1 {
    font-size: 22px;
    font-weight: 700;
}
.product-detail-info .desc {
    margin: 10px 0 0 0;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 400px; /* 设置最大高度为420px */
    overflow: hidden; /* 超出部分隐藏 */
}
.product-detail-info .interest {
    margin: 0 0 20px 0;
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
    text-align: left;

}
.product-detail-info .interest a {
    margin: 0;
    color: #020202;
    background: transparent;
    border: 2px solid #020202;
    padding: 3px 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.product-detail-info .interest a:hover,
.product-detail-info .interest a.active {
    color: #fff;
    background: #e74c3c;
    border: 2px solid #e74c3c;

}
.product-detail-section {
    margin: 40px 0;
}
.product-detail-section img {
    width: 100%;
}

/* 产品特色图片展示样式 */
.product-feature-section {
    margin: 40px 0;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-content:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.product-detail-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.product-detail-gallery {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.product-detail-gallery img {
    width: 100%;
    border-radius: 10px;
}
.product-detail-collapse {
    margin-bottom: 40px;
}
.product-detail-collapse details {
    margin-bottom: 10px;
    background: #f7f8fa;
    border-radius: 6px;
    padding: 10px 20px;
}
.product-detail-collapse summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.product-detail-form {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}
.product-detail-form .title {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.product-detail-form input,
.product-detail-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 1rem;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.product-detail-form button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.product-detail-form button:hover {
    background: #c0392b;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-top {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .product-gallery {
        flex-direction: column;
        gap: 10px;
        min-width: 100%;
    }

    .thumbnail-container {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: center;
    }

    .thumbnail-item {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
    }

    .main-image-container {
        min-width: auto;
        height: auto;
    }

    .main-image {
        max-width: 100%;
        height: auto;
    }
    .interest{
        text-align: center !important;

    }
}

@media (max-width: 480px) {
    .product-detail-info h1 {
        font-size: 18px;
    }

    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
}