/* ==================== 产品详情页样式 ==================== */

/* 主内容区域 */
.main-content {
    min-height: 60vh;
    background: white;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==================== 页面Banner ==================== */
.page-banner {
    position: relative;
    width: 100%;

    overflow: hidden;
    margin-bottom: 0;
}

.page-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-banner-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 0.8s ease-out;
    max-width: 80%;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 16px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #FFD700;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.6);
}

/* 动画效果 */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 产品图片展示区域 ==================== */
.product-gallery-section {
    padding: 60px 0 40px;
    background: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    margin-bottom: 0;
}

.product-gallery-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 产品主图 */
.product-main-image {
    width: 50%;
    margin: auto;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* 尺寸图提示文字覆盖层 */
.size-warning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.size-warning-text {
    color: #333;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
    font-family: 'AlibabaPuHuiTi', Arial, sans-serif;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 缩略图区域 */
.product-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.product-thumbnail {
    width: 180px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0.6;
}

.product-thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.product-thumbnail.active {
    opacity: 1;
    border-color: #8d0004;
    box-shadow: 0 6px 20px rgba(141, 0, 4, 0.3);
}

/* ==================== 产品详情区域 ==================== */
.product-detail-section {
    padding: 80px 0 80px;
    background: #f8f9fa;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    margin-bottom: 0;
}

.product-detail-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 产品内容区域 */
.product-content-section {
    margin-top: 30px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.section-content img {
    width: 80%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* ==================== 左侧主要内容 ==================== */
.detail-main {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* 产品基本信息 */
.product-basic-info {
    margin-bottom: 40px;
}

.detail-title {
    padding-left: 25px;
    font-size: 24px;
    font-weight: bold;
    color: #8d0004;
    margin-bottom: 20px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.meta-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #8d0004;
    font-size: 16px;
}

.product-summary {
    padding: 25px;

    border-radius: 8px;
    margin-bottom: 30px;
}

.product-summary p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

p.product-summary {
    text-align: center;
}

/* 图片上添加文字 */
.image-with-text {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-overlay-text {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(141, 0, 4, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'AlibabaPuHuiTi', Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 产品特点 */
.product-features {
    margin-bottom: 35px;
}

.product-features h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8d0004;
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.features-list li {
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.features-list i {
    color: #8d0004;
    font-size: 18px;
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline {
    background: white;
    color: #8d0004;
    border: 2px solid #8d0004;
}

.btn-outline:hover {
    background: #8d0004;
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 产品详细内容 */
.product-content {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

/* 标签页 */
.content-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-item {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-item:hover {
    color: #8d0004;
}

.tab-item.active {
    color: #8d0004;
    border-bottom-color: #8d0004;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-body {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.content-body p {
    margin-bottom: 15px;
}

/* 产品参数表格 */
.specs-table {
    background: white;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 18px 20px;
    font-size: 15px;
}

.spec-label {
    font-weight: 600;
    color: #333;
    width: 180px;
    background: #f8f9fa;
}

.spec-value {
    color: #666;
}

/* 售后服务 */
.service-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-content h3:first-child {
    margin-top: 0;
}

.service-content h3 i {
    color: #8d0004;
    font-size: 20px;
}

.service-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    padding-left: 30px;
}

/* ==================== 右侧边栏 ==================== */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #8d0004;
}

/* 联系表单 */
.contact-form-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: sticky;

}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8d0004;
    box-shadow: 0 0 0 3px rgba(141, 0, 4, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 验证码组样式 - 确保验证码输入框和图片在同一行 */
.verifycode-group {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 0;
}

.verifycode-group input {
    flex: 1;
    min-width: 0;
}

.verifycode-group img {
    flex-shrink: 0;
}

/* 联系信息 */
.contact-info-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.detail-sidebar .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.detail-sidebar .contact-item:last-child {
    border-bottom: none;
}

.detail-sidebar .contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8d0004, #c41e3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-sidebar .contact-label {
    font-size: 13px;
    color: #999;
}

.detail-sidebar .contact-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 热门产品 */
.hot-products-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.hot-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-product-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hot-product-item:hover {
    background: #8d0004;
    transform: translateX(5px);
}

.hot-product-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.hot-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.hot-product-item h4 {
    font-size: 14px;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.hot-product-item:hover h4 {
    color: white;
}

.hot-product-date {
    font-size: 12px;
    color: #999;
    transition: color 0.3s ease;
}

.hot-product-item:hover .hot-product-date {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== 相关产品区域 ==================== */
@media (min-width: 2500px) {
    .breadcrumb{
        font-size: 24px !important;
    }
    .section-title {
        font-size: 48px !important;
    }
    .detail-title {
        font-size: 30px !important;
    }
    .product-summary p {
        font-size: 24px !important;
    }
    .tab-item {
        font-size: 24px !important;
    }
    .content-body {
        font-size: 24px !important;
    }
    .specs-table td {
        font-size: 24px !important;
    }
    .sidebar-title{
        font-size: 30px !important;
    }
    .contact-info-text h4{
        font-size: 24px !important;
    }
    .contact-info-text p{
        font-size: 24px !important;
    }
    .contact-info-icon{
        width: 80px !important;
    }
    .contact-info-item{
        padding: 60px !important;
    }
    .contact-info-icon{
        width: 100px !important;
        height: 100px !important;
    }
    .contact-info-text h4{
        font-size: 30px !important;
    }
    .contact-info-text p{
        font-size: 30px !important;
    }
    .contact-info-icon{
        width: 120px !important;
        height: 120px !important;
        font-size: 40px !important;
    }
    .contact-info-item{
        padding: 80px !important;
    }
    .contact-info-icon{
        width: 140px !important;
        height: 140px !important;
        font-size: 50px !important;
    }
    .contact-info-text h4{
        font-size: 36px !important;
    }
    .contact-info-text p{
        font-size: 36px !important;
    }
    .contact-info-item{
        padding: 100px !important;
    }
    .contact-info-icon{
        width: 160px !important;
        height: 160px !important;
        font-size: 60px !important;
    }
    .contact-info-text h4{
        font-size: 42px !important;
    }
    .contact-info-text p{
        font-size: 42px !important;
    }
    .form-group input{
        font-size: 24px !important;
    }
    .form-group textarea{
        font-size: 24px !important;
    }
    .detail-layout{
        grid-template-columns: 1fr 500px !important;
    }
    .hot-product-item h4 {
        font-size: 24px !important;
    }
}
.related-products-section {
    padding: 80px 0;
    background: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    margin-bottom: 0;
}

.related-products-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.related-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.1);
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(141, 0, 4, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-item:hover .related-overlay {
    opacity: 1;
}

.related-overlay i {
    color: white;
    font-size: 48px;
}

.related-info {
    padding: 20px;
}

.related-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.related-item:hover .related-info h4 {
    color: #8d0004;
}

.related-info p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.view-more {
    font-size: 14px;
    color: #8d0004;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.related-item:hover .view-more {
    transform: translateX(5px);
}

.view-more i {
    transition: transform 0.3s ease;
}

.related-item:hover .view-more i {
    transform: translateX(3px);
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 */
@media (max-width: 1024px) {

    
    .page-banner-title {
        font-size: 38px;
    }
    
    .product-gallery-section {
        padding: 50px 0 30px;
    }
    
    .product-main-image {
        height: 500px;
    }
    
    .product-thumbnail {
        width: 150px;
        height: 110px;
    }
    
    .detail-layout {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }
    
    .detail-main {
        padding: 15px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动设备 */
@media (max-width: 768px) {

    
    .page-banner-title {
        font-size: 28px;
        max-width: 90%;
    }
    
    .breadcrumb {
        font-size: 14px;
    }
    
    .product-gallery-section {
        padding: 40px 0 30px;
    }
    
    .product-main-image {
        height: 400px;
    }
    
    .product-thumbnail {
        width: 120px;
        height: 90px;
    }
    
    .product-thumbnails {
        gap: 10px;
        padding: 0 10px;
    }
    
    .product-detail-section,
    .related-products-section {
        padding: 50px 0;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-content-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .section-content {
        font-size: 14px;
    }
    
    .detail-main {
        padding: 15px;
    }
    
    .detail-title {
        font-size: 22px;
    }
    
    .detail-meta {
        gap: 20px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .content-tabs {
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-item {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .contact-form-box {
        position: static;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 小型移动设备 */
@media (max-width: 480px) {

    
    .page-banner-title {
        font-size: 22px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .product-gallery-section {
        padding: 30px 0 20px;
    }
    
    .product-main-image {
        height: 300px;
        border-radius: 12px;
    }
    
    .product-thumbnail {
        width: 100px;
        height: 70px;
        border-radius: 8px;
        border-width: 2px;
    }
    
    .product-detail-section,
    .related-products-section {
        padding: 40px 0;
    }
    
    .product-content-section {
        padding: 15px;
        margin-top: 15px;
    }
    
    .section-content {
        font-size: 14px;
    }
    
    .detail-main {
        padding: 10px;
    }
    
    .detail-title {
        font-size: 18px;
    }
    
    .detail-meta {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .product-summary {
        padding: 18px;
    }
    
    .product-summary p {
        font-size: 14px;
    }
    
    .features-list li {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .btn-large {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .tab-item {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .content-body {
        font-size: 14px;
    }
    
    .specs-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .spec-label {
        width: 120px;
    }
    
    .service-content h3 {
        font-size: 16px;
    }
    
    .service-content p {
        font-size: 13px;
        padding-left: 25px;
    }
    
    .contact-form-box,
    .contact-info-box,
    .hot-products-box {
        padding: 20px;
    }
    
    .sidebar-title {
        font-size: 18px;
    }
    
    .related-image {
        height: 180px;
    }
    
    .size-warning-text {
        font-size: 14px;
        padding: 12px 20px;
        max-width: 90%;
    }
}

/* 响应式设计 - 尺寸图提示文字 */
@media (max-width: 1024px) {
    .size-warning-text {
        font-size: 15px;
        padding: 12px 25px;
    }
}

@media (max-width: 768px) {
    .size-warning-text {
        font-size: 14px;
        padding: 10px 20px;
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .size-warning-text {
        font-size: 12px;
        padding: 8px 15px;
        max-width: 90%;
    }
}

