/* 产品页面专用样式 */

/* 产品容器样式 */
.products-container {
    padding: 2rem 0;
}

/* 产品板块样式 */
.product-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 产品内容包装 */
.product-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

/* 产品图片容器 */
.product-image-container {
    flex: 0 0 400px;
    max-width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-section:hover .product-image-container img {
    transform: scale(1.05);
}

/* 产品详情区域 */
.product-details {
    flex: 1;
    min-width: 300px;
}

/* 产品标题样式 */
.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* 产品描述样式 */
.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

/* 富文本内容样式 */
.product-description h3,
.product-description h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.product-description ul,
.product-description ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

.product-description p {
    margin-bottom: 1rem;
}

/* 查看详情按钮 */
.view-details-btn {
    display: inline-block;
    background-color: #ff9900;
    color: rgb(0, 0, 0);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.view-details-btn:hover {
    background-color: #b36500;
}

/* 详情按钮容器（右下角） */
.details-btn-container {
    text-align: right;
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-content-wrapper {
        flex-direction: column;
    }
    
    .product-image-container {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        height: 200px;
    }
    
    .product-section {
        padding: 1rem;
    }
}