/* ===== 产品详情页专用样式 ===== */

/* 静态 Banner */
.page-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 200px;
    background-image: url('/assets/home/images/product-detail-banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 142, 79, 0.8) 0%, rgba(0, 142, 79, 0.4) 100%);
}

.page-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner h1 span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #008e4f;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.breadcrumb .current {
    color: #008e4f;
    font-weight: 500;
}

/* ===== 产品详情主区域 ===== */
.product-detail {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* 产品概览 - 左右布局 */
.product-overview {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* ===== 左侧：产品信息 ===== */
.product-info-left {
    flex: 1;
}

.product-category {
    display: inline-block;
    background: rgba(0, 142, 79, 0.1);
    color: #008e4f;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-model {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.product-model strong {
    color: #008e4f;
    margin-right: 0.3rem;
}

.product-brief {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* 关键参数卡片 */
.key-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.key-spec-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.key-spec-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.key-spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

/* 询盘按钮 */
.inquiry-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-inquiry {
    flex: 2;
    background: #008e4f;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-inquiry:hover {
    background: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.3);
}

.btn-contact {
    flex: 1;
    background: white;
    color: #008e4f;
    border: 2px solid #008e4f;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-contact:hover {
    background: rgba(0, 142, 79, 0.05);
    transform: translateY(-2px);
}

/* ===== 右侧：产品图片 ===== */
.product-image-right {
    width: 500px;
    flex-shrink: 0;
}

/* 主图 */
.main-image {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 1.5rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.main-image:hover img {
    transform: scale(1.05);
}

/* 缩略图容器 - 横向滚动 */
.thumbnail-container {
    position: relative;
    width: 100%;
}

.thumbnail-list {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #008e4f #e2e8f0;
}

.thumbnail-list::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: #008e4f;
    border-radius: 10px;
}

.thumbnail-list::-webkit-scrollbar-thumb:hover {
    background: #006f3d;
}

.thumbnail-item {
    flex: 0 0 90px;
    height: 90px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail-item:hover {
    border-color: #008e4f;
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: #008e4f;
    box-shadow: 0 0 0 3px rgba(0, 142, 79, 0.2);
}

.thumbnail-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== 产品详情标签页 - 修复显示问题 ===== */
.product-tabs {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 4rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab-btn:hover {
    color: #008e4f;
}

.tab-btn.active {
    color: #008e4f;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #008e4f;
}

.tabs-content {
    padding: 2.5rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.tab-pane p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.tab-pane ul {
    padding-left: 1.5rem;
    color: #475569;
    line-height: 1.8;
}

.tab-pane li {
    margin-bottom: 0.5rem;
}

/* ===== 相关产品 - 修复绿色线位置 ===== */
.related-products {
    margin-top: 4rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    display: flex;
    justify-content: center; /* 居中对齐 */
}

.section-title span {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #008e4f;
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #008e4f;
}

.related-image {
    height: 150px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.related-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-info {
    padding: 1.2rem;
}

.related-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.related-spec {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.8rem;
}

.related-link {
    color: #008e4f;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.related-link i {
    transition: transform 0.2s;
}

.related-link:hover i {
    transform: translateX(3px);
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-image-right {
        width: 450px;
    }
}

@media screen and (max-width: 1024px) {
    .product-overview {
        flex-direction: column-reverse;
    }

    .product-image-right {
        width: 100%;
    }

    .main-image {
        height: 350px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        height: 150px;
    }

    .page-banner h1 {
        font-size: 1.5rem;
    }

    .product-overview {
        padding: 1.5rem;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .key-specs {
        grid-template-columns: 1fr;
    }

    .inquiry-actions {
        flex-direction: column;
    }

    .tabs-header {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }

    .tabs-content {
        padding: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 280px;
    }

    .thumbnail-item {
        flex: 0 0 70px;
        height: 70px;
    }
}

@media screen and (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 0 1rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .product-detail {
        padding: 0 1rem;
    }
}

/* ===== 询盘弹窗样式 ===== */
.inquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.inquiry-modal.active {
    display: flex;
}

.inquiry-modal-content {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inquiry-modal-header {
    padding: 20px 25px;
    background: #008e4f;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inquiry-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.inquiry-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.inquiry-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.inquiry-modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.inquiry-form .form-group {
    margin-bottom: 20px;
}

.inquiry-form label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
}

.inquiry-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s;
    background: #f8fafc;
}

.inquiry-form .form-control:focus {
    outline: none;
    border-color: #008e4f;
    box-shadow: 0 0 0 3px rgba(0, 142, 79, 0.1);
    background: white;
}

.inquiry-form .form-control.error {
    border-color: #dc2626;
}

.inquiry-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.inquiry-form .btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: #008e4f;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inquiry-form .btn-submit:hover {
    background: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.3);
}

.inquiry-form .btn-submit:active {
    transform: translateY(0);
}

/* 表单验证提示 */
.inquiry-form .error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* 成功提示 */
.inquiry-success {
    text-align: center;
    padding: 30px;
}

.inquiry-success i {
    font-size: 4rem;
    color: #008e4f;
    margin-bottom: 20px;
}

.inquiry-success h4 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.inquiry-success p {
    color: #64748b;
    margin-bottom: 20px;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .inquiry-modal-content {
        width: 95%;
    }

    .inquiry-modal-header {
        padding: 15px 20px;
    }

    .inquiry-modal-body {
        padding: 20px;
    }

    .inquiry-form .form-control {
        padding: 10px 12px;
    }
}

/* 确保弹窗中的文字没有下划线 */
.inquiry-modal *,
.inquiry-modal *:hover,
.inquiry-modal a,
.inquiry-modal a:hover {
    text-decoration: none !important;
}
/* 询盘按钮 - 绿色渐变 */
.btn-inquiry {
    flex: 2;
    background: linear-gradient(135deg, #008e4f 0%, #00b35f 100%);
    color: white;
    border: none;
    border-radius: 12px;              /* 改为 12px */
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 142, 79, 0.2);
}

.btn-inquiry:hover {
    background: linear-gradient(135deg, #006f3d 0%, #008e4f 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 142, 79, 0.35);
}

/* 下载按钮 - 白色系 */
.btn-download {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    color: #475569;
    padding: 0.9rem 2rem;
    border-radius: 12px;              /* 改为 12px，与询盘按钮一致 */
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.btn-download i {
    font-size: 1.2rem;
    color: #dc2626;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #1e293b;
}

.btn-download:hover i {
    color: #008e4f;
    transform: translateY(2px);
}

.btn-download:active {
    transform: translateY(0);
}

/* 响应式：移动端两个按钮上下排列 */
@media screen and (max-width: 768px) {
    .inquiry-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-inquiry,
    .btn-download {
        width: 100%;
        flex: auto;
    }
}