/* 产品详情页面样式 */

/* 面包屑导航白色背景（仅产品详情页使用） */
.sub-nav-white-bg {
    background-color: #ffffff;
}

/* 面包屑导航底部阴影（仅产品详情页使用） */
.sub-nav-section.sub-nav-shadow-bottom {
    box-shadow: 0 5px 10px rgb(0 0 0 / 20%);
    position: relative;
    z-index: 10;
}

/* 页面内容白色背景（仅产品详情页使用） */
.page-content.page-content-white {
    background-color: #ffffff;
    padding-bottom: 40px;
}

/* 产品布局 */
.product-layout {
    display: flex;
    gap: 30px;
}

.product-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    align-self: flex-start;
}

.sidebar-header {
    background-color: #c30b00;
    padding: 20px;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 30px;
    font-family: Microsoft YaHei;
    color: #fff;
    margin: 0 0 5px;
    font-weight: normal;
}

.sidebar-header p {
    font-size: 14px;
    font-family: Arial;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

.product-category {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-category li {
    font-size: 18px;
    font-family: Arial;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 15px 20px 15px 80px;
}

.product-category li::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #666666;
}

.product-category li:hover,
.product-category li.active {
    color: #c30b00;
}

.product-main {
    flex: 1;
}

/* 产品详情页样式 */
.product-detail-layout {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.product-detail-image {
    flex-shrink: 0;
    width: 450px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 450px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background-color: #fff;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.thumbnail-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumb-prev,
.thumb-next {
    width: 30px;
    height: 60px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-prev:hover,
.thumb-next:hover {
    background-color: #f5f5f5;
}

.thumbnail-list {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumb-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-item.active {
    border-color: #c30b00;
}

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

.product-detail-info {
    flex: 1;
}

.detail-product-title {
    font-size: 28px;
    color: #333333;
    margin: 0 0 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: normal;
}

.detail-product-category {
    font-size: 15px;
    color: #666666;
    margin-bottom: 30px;
}

.category-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #c30b00;
}

.detail-product-contact {
    margin-bottom: 40px;
}

.product-detail-info .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-family: Arial;
    color: #333333;
}

.product-detail-info .contact-icon {
    flex-shrink: 0;
}

.detail-product-actions {
    display: flex;
    gap: 15px;
}

.btn-inquiry,
.btn-related {
    flex: 1;
    height: 44px;
    border: none;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-inquiry {
    background-color: #c30b00;
}

.btn-inquiry:hover {
    background-color: #000000;
}

.btn-related {
    background-color: #606060;
}

.btn-related:hover {
    background-color: #c30b00;
}

/* 产品描述样式 */
.product-description {
    margin-top: 50px;
}

.description-title {
    font-size: 28px;
    color: #191919;
    margin: 0 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    font-weight: normal;
}

.description-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #c30b00;
}

.description-image-container {
    width: 100%;
}

.description-image-container img {
    width: 100%;
    display: block;
}

/* 相关产品样式 */
.related-products-section {
    background-color: #f5f5f5;
    padding: 50px 0;
}

.related-products-title {
    font-size: 40px;
    color: #212121;
    text-align: center;
    margin: 0 0 30px;
    font-weight: normal;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* 产品详情页相关产品网格（4列） */
.related-products-section .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-item {
    background-color: #fff;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.15);
}

.product-name {
    font-size: 18px;
    color: #333333;
    margin: 0;
    font-weight: normal;
    transition: color 0.3s ease;
    cursor: pointer;
}

.product-name:hover {
    color: #c30b00;
}

/* 在线留言表单样式 */
.message-form-wrapper {
    background-color: #f9f9f9;
    padding: 50px 40px;
    margin: 40px 0;
    border-radius: 4px;
}

.message-title {
    font-size: 40px;
    color: #212121;
    text-align: center;
    margin: 0 0 20px;
    font-weight: normal;
}

.message-desc {
    font-size: 20px;
    color: #212121;
    text-align: center;
    margin: 0 0 40px;
    line-height: 1.5;
}

.message-form {
    max-width: 90%;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #c30b00;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: #c30b00;
    color: #fff;
    border: none;
    padding: 12px 50px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.submit-btn:hover {
    background-color: #a00900;
}

/* 移动端产品详情页样式 */
@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }
    
    .product-sidebar {
        width: 100%;
    }
    
    .product-category {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px 20px;
    }
    
    .product-category li {
        padding: 10px 0 10px 20px;
        font-size: 14px;
    }
    
    .product-category li::before {
        left: 0;
        width: 6px;
        height: 6px;
    }
    
    .product-detail-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-detail-image {
        width: 100%;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumb-item {
        width: 60px;
        height: 60px;
    }
    
    .detail-product-title {
        font-size: 16px;
    }
    
    .detail-product-category {
        font-size: 14px;
    }
    
    .product-detail-info .contact-item {
        font-size: 16px;
    }
    
    .description-title {
        font-size: 20px;
    }
    
    .related-products-title {
        font-size: 24px;
    }
    
    .detail-product-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    /* 移动端产品列表网格（2列） */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 140px;
    }
    
    /* 移动端产品详情页相关产品网格（2列） */
    .related-products-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 移动端相关产品容器边距 */
    .related-products-section .container {
        padding: 0 15px;
    }
    
    /* 移动端留言表单样式 */
    .message-form-wrapper {
        padding: 30px 20px;
    }
    
    .message-title {
        font-size: 24px;
    }
    
    .message-desc {
        font-size: 14px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}
