/* 产品详情页排版修复 */

/* 确保产品详情容器正确布局 */
.wp-new-prodcuts-detail-outside {
    width: 100%;
    overflow: hidden;
}

.wp-new-prodcuts-detail {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* 左侧图片区域 */
.wp-new-prodcuts-detail-left {
    flex-shrink: 0;
    width: 350px;
}

/* 右侧信息区域 */
.wp-new-prodcuts-detail-right {
    flex: 1;
    min-width: 0;
}

/* 产品标题 */
.prodetail_title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* 产品描述 */
.wp-new-prodcuts-descone {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.wp-new-prodcuts-specs {
    margin: 0 0 20px;
}

.wp-new-prodcuts-specs .product-specs-block {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 4px;
}

.wp-product_detail_content .imported-product-block .product-specs-block {
    margin-top: 12px;
}


.wp-new-prodcuts-specs .product-specs-title {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.wp-new-prodcuts-specs .product-spec-list {
    margin: 0;
    padding-left: 18px;
}

.wp-new-prodcuts-specs .product-spec-list li {
    margin: 2px 0;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

/* Product detail content typography (applies to both CN/EN pages) */
.wp-product_detail_content .wp-products-artview_info.desc,
.wp-product_detail_content .wp-products-detail-desc.detail,
.wp-product_detail_content .wp-products-detail-desc.detail blockquote {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #4d4d4d;
}

.wp-product_detail_content .wp-products-detail-desc.detail p,
.wp-product_detail_content .wp-products-detail-desc.detail li,
.wp-product_detail_content .wp-products-detail-desc.detail span,
.wp-product_detail_content .wp-products-detail-desc.detail div {
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* imported product block: direct flex layout */
.wp-product_detail_content .wp-products-detail-desc.detail .imported-product-block {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    flex-direction: column;
}

.wp-product_detail_content .wp-products-detail-desc.detail .imported-product-block img {
    flex: 0 0 auto;
    margin: 0;
}

/* imported product block right-side typography */
.wp-product_detail_content .wp-products-detail-desc.detail .imported-product-block > :not(img),
.wp-product_detail_content .wp-products-detail-desc.detail .imported-product-block > :not(img) p,
.wp-product_detail_content .wp-products-detail-desc.detail .imported-product-block > :not(img) li,
.wp-product_detail_content .wp-products-detail-desc.detail .imported-product-block > :not(img) span,
.wp-product_detail_content .wp-products-detail-desc.detail .imported-product-block > :not(img) div {
    font-size: 20px !important;
    line-height: 1.5 !important;
}

.wp-product_detail_content .wp-products-detail-desc.detail .imported-product-block > :not(img) strong,
.wp-product_detail_content .wp-products-detail-desc.detail .imported-product-block > :not(img) b {
    font-size: 22px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

/* 价格区域 */
.wp-new-prodcuts-market-price,
.wp-new-prodcuts-price {
    margin-bottom: 15px;
    font-size: 16px;
}

.wp-new-prodcuts-market-price .title,
.wp-new-prodcuts-price .title {
    display: inline-block;
    width: 80px;
    color: #999;
}

/* 图片放大镜区域 */
.wp-magnifier_box {
    position: relative;
}

.wp-magnifier_small {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.wp-magnifier_small img.wp-product_detail-imgpreview {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block !important;
    object-fit: contain;
}

.wp-magnifier_mark {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #999;
    cursor: move;
}

#wp-magnifier_boxbig {
    display: none;
    position: absolute;
    left: 320px;
    top: 0;
    width: 400px;
    height: 400px;
    border: 1px solid #ddd;
    overflow: hidden;
    z-index: 1000;
    background: #fff;
}

.wp-magnifier_big {
    position: relative;
    width: 100%;
    height: 100%;
}

.wp-magnifier_big img {
    position: absolute;
    max-width: none;
}

/* 缩略图区域 - 只有一张图时隐藏 */
.wp-new-prodcuts-detail-picture-small {
    margin-top: 10px;
    display: none; /* 默认隐藏缩略图区域 */
    align-items: center;
    gap: 5px;
}

.wp-new-prodcuts-detail-picture-small-c {
    flex: 1;
    overflow: hidden;
}

.wp-new-prodcuts-detail-picture-small-width {
    display: flex;
    gap: 5px;
}

.wp-new-prodcuts-detail-picture-small-element {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.wp-new-prodcuts-detail-picture-small-element:hover,
.wp-new-prodcuts-detail-picture-small-local {
    border-color: #0037c0;
}

.wp-new-prodcuts-detail-picture-small-element img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block !important;
    object-fit: contain;
}

/* 隐藏加载动画 */
.imgloading {
    display: none !important;
}

/* 箭头按钮 */
.wp-new-prodcuts-detail-picture-small-prev,
.wp-new-prodcuts-detail-picture-small-next {
    width: 20px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.arrow_left,
.arrow_right {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
}

.arrow_left {
    transform: rotate(-135deg);
}

.arrow_right {
    transform: rotate(45deg);
}

/* 产品详情标签页 */
.wp-new-prodcuts-detail-tab {
    margin-top: 30px;
}

.wp-new-prodcuts-detail-tab-title {
    border-bottom: 2px solid #0037c0;
    margin-bottom: 20px;
}

.wp-new-prodcuts-detail-tab-title li {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.wp-new-prodcuts-detail-tab-title li.active {
    color: #0037c0;
    font-weight: bold;
}

.wp-new-prodcuts-detail-tab-content {
    padding: 20px 0;
    line-height: 1.8;
    color: #666;
}

/* 上一个/下一个产品链接 */
.wp-new-prodcuts-detail-prevnext {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.wp-new-prodcuts-detail-prevnext a {
    color: #0037c0;
    text-decoration: none;
}

.wp-new-prodcuts-detail-prevnext a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wp-new-prodcuts-detail {
        flex-direction: column;
    }
    
    .wp-new-prodcuts-detail-left {
        width: 100%;
    }
    
    .wp-new-prodcuts-detail-right {
        width: 100%;
    }
}

.product-inquiry-entry {
    margin-top: 24px;
}

.product-inquiry-launch {
    min-width: 200px;
    padding: 10px 26px;
    border: 1px solid #0037c0;
    border-radius: 3px;
    background: #0037c0;
    color: #fff;
    font-family: Microsoft YaHei, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.product-inquiry-launch:hover {
    background: #002ea0;
    border-color: #002ea0;
}

.product-inquiry-launch:active {
    background: #002780;
}

.product-inquiry-modal[hidden] {
    display: none !important;
}

.product-inquiry-open {
    overflow: hidden;
}

.product-inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-inquiry-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.product-inquiry-dialog {
    position: relative;
    width: min(820px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.product-inquiry-header {
    margin: 18px 18px 0;
    padding: 10px 20px;
    background: #0037c0;
}

.product-inquiry-header h3 {
    margin: 0;
    color: #fff;
    font-family: Arial, Microsoft YaHei, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.product-inquiry-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #999;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.product-inquiry-close:hover {
    color: #0037c0;
}

.product-inquiry-form {
    padding: 18px;
    font-family: Microsoft YaHei, Arial, sans-serif;
}

.product-inquiry-summary {
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background: #fafafa;
}

.product-inquiry-summary-label {
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-inquiry-summary-value {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
}

.product-inquiry-recipient {
    margin-bottom: 18px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

.product-inquiry-recipient strong {
    color: #0037c0;
    font-weight: 700;
}

.product-inquiry-section-title {
    margin-bottom: 16px;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
}

.product-inquiry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.product-inquiry-field {
    display: block;
}

.product-inquiry-field-full {
    grid-column: 1 / -1;
}

.product-inquiry-field span {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.product-inquiry-field strong {
    color: #dc2626;
}

.product-inquiry-field input,
.product-inquiry-field select,
.product-inquiry-field textarea {
    width: 100%;
    height: 38px;
    padding: 7px 10px;
    border: 1px solid #d6d6d6;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-family: Arial, Microsoft YaHei, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}

.product-inquiry-field input:focus,
.product-inquiry-field select:focus,
.product-inquiry-field textarea:focus {
    outline: none;
    border-color: #0037c0;
    box-shadow: none;
}

.product-inquiry-field textarea {
    min-height: 120px;
    height: auto;
    resize: vertical;
}

.product-inquiry-feedback {
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
}

.product-inquiry-feedback.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.product-inquiry-feedback.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.product-inquiry-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

.product-inquiry-submit {
    min-width: 138px;
    padding: 10px 22px;
    border: 1px solid #0037c0;
    border-radius: 3px;
    background: #0037c0;
    color: #fff;
    font-family: Microsoft YaHei, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.product-inquiry-submit:hover {
    background: #002ea0;
    border-color: #002ea0;
}

.product-inquiry-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .product-inquiry-modal {
        padding: 12px;
    }

    .product-inquiry-header,
    .product-inquiry-form {
        padding-left: 14px;
        padding-right: 14px;
    }

    .product-inquiry-header h3 {
        font-size: 20px;
    }

    .product-inquiry-section-title {
        font-size: 16px;
    }

    .product-inquiry-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-inquiry-actions {
        justify-content: stretch;
    }

    .product-inquiry-submit,
    .product-inquiry-launch {
        width: 100%;
        min-width: 0;
    }
}
