/* 产品详情页样式 */

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #38853b;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
}

.product-detail {
    padding: 40px 0;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-image-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-image-main {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #e4e4e4;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-section {
    padding: 20px 0;
}

.product-title {
    font-size: 32px;
    color: #2d2d2d;
    margin-bottom: 30px;
    line-height: 1.4;
}

.product-meta {
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    padding: 20px 0;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    padding: 10px 0;
    font-size: 15px;
}

.meta-label {
    color: #666;
    min-width: 100px;
}

.meta-value {
    color: #333;
    flex: 1;
}

.product-description {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
}

.product-description h3 {
    font-size: 18px;
    color: #2d2d2d;
    margin-bottom: 15px;
}

.product-description p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.product-content {
    margin-bottom: 60px;
}

.product-content h2 {
    font-size: 24px;
    color: #2d2d2d;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #38853b;
}

.content-body {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.content-body img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 20px 0;
    vertical-align: top;
}

.content-body p {
    margin-bottom: 15px;
    display: block;
}
}

.related-products {
    padding-top: 40px;
    border-top: 1px solid #e4e4e4;
}

.related-products h2 {
    font-size: 24px;
    color: #2d2d2d;
    margin-bottom: 30px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-product-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
}

.related-product-image {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #e4e4e4;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-name {
    padding-top: 15px;
    text-align: center;
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image-section {
        position: static;
    }

    .product-title {
        font-size: 24px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
