/* ============================================

   产品详情页 - 大气模板补充样式

   主样式见 assets/css/front.css

   ============================================ */



/* 图库主图切换过渡 */

.product-gallery-main img {

    transition: opacity .3s ease, transform .4s ease;

}



/* 特性标签 */

.product-feature-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;

}

.product-feature-tag {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 14px;

    font-size: 13px;

    font-weight: 600;

    color: var(--primary);

    background: linear-gradient(135deg, #eff6ff, #dbeafe);

    border: 1px solid rgba(59, 130, 246, .2);

    border-radius: 20px;

}

.product-feature-tag i {

    font-size: 12px;

    color: var(--accent);

}



/* 侧栏 sticky */

.pd-aside-sticky {

    position: sticky;

    top: calc(var(--nav-h, 72px) + 20px);

}



/* 新闻列表增强 */

.pd-news-list {

    list-style: none;

    padding: 4px 0;

    margin: 0;

}

.pd-news-list li a {

    display: block;

    padding: 12px 20px;

    border-bottom: 1px solid #f1f5f9;

    border-left: 3px solid transparent;

    transition: background .2s, border-color .2s, padding-left .2s;

}

.pd-news-list li:last-child a { border-bottom: none; }

.pd-news-list li a:hover {

    background: #eff6ff;

    border-left-color: var(--primary);

    padding-left: 24px;

}

.pd-news-title {

    font-size: 14px;

    font-weight: 500;

    color: var(--text);

    line-height: 1.5;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

    margin-bottom: 4px;

    transition: color .2s;

}

.pd-news-list li a:hover .pd-news-title { color: var(--primary); }



/* 产品列表 */

.pd-product-list {

    list-style: none;

    padding: 4px 0;

    margin: 0;

}

.pd-product-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 20px;

    border-bottom: 1px solid #f1f5f9;

    color: var(--text);

    font-size: 14px;

    font-weight: 500;

    transition: background .2s, padding-left .2s, box-shadow .2s;

}

.pd-product-list li:last-child .pd-product-item { border-bottom: none; }

.pd-product-item:hover {

    background: #eff6ff;

    padding-left: 24px;

    color: var(--primary);

}

.pd-product-thumb {

    flex-shrink: 0;

    width: 36px;

    height: 36px;

    border-radius: 8px;

    overflow: hidden;

    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    color: var(--primary);

}

.pd-product-thumb img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.pd-product-name {

    flex: 1;

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.pd-product-arrow {

    flex-shrink: 0;

    font-size: 12px;

    color: var(--text-muted);

    transition: transform .2s, color .2s;

}

.pd-product-item:hover .pd-product-arrow {

    color: var(--primary);

    transform: translateX(3px);

}



.pd-aside-empty {

    padding: 20px;

    text-align: center;

    font-size: 13px;

    color: var(--text-muted);

}



/* 响应式微调 */

@media (max-width: 991.98px) {

    .pd-aside-sticky { position: static; }

    .product-trust-four { grid-template-columns: repeat(2, 1fr); }

}



@media (max-width: 575.98px) {
    .product-btn-row {
        flex-direction: column;
    }
    .product-btn-row .btn-product-buy,
    .product-btn-row .btn-product-contact {
        width: 100%;
    }
}

/* 询价弹窗 */
.pd-inquiry-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow-lg, 0 20px 60px rgba(15, 45, 110, 0.15));
    overflow: hidden;
}
.pd-inquiry-modal .modal-header {
    background: linear-gradient(135deg, var(--dark, #0a1628) 0%, var(--primary-dark, #0f2d6e) 100%);
    color: #fff;
    border-bottom: none;
    padding: 18px 24px;
}
.pd-inquiry-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
}
.pd-inquiry-modal .btn-close {
    filter: invert(1);
    opacity: .75;
}
.pd-inquiry-modal .modal-body {
    padding: 24px;
}
.pd-inquiry-intro {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    margin-bottom: 20px;
    line-height: 1.6;
}
.pd-inquiry-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #1e293b);
}
.pd-inquiry-form .form-control {
    border-radius: 8px;
    border-color: var(--border, #e2e8f0);
    padding: 10px 14px;
    font-size: 14px;
}
.pd-inquiry-form .form-control:focus {
    border-color: var(--primary, #1a56db);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}
.pd-inquiry-form .form-control[readonly] {
    background: #f8fafc;
    color: var(--text-muted, #64748b);
}
.pd-inquiry-submit {
    padding: 12px;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 4px;
}
.pd-inquiry-tip {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
}
.pd-inquiry-tip.show.ok { color: #059669; }
.pd-inquiry-tip.show.err { color: #dc2626; }

