/* seemb5 产品详情页 */

.product-detail-page .content-box {
    background: transparent;
}

.uaf-pd {
    min-height: calc(100vh - 260px);
    padding: 0 0 42px;
}

.uaf-pd-inner {
    width: var(--jq_w1200);
    max-width: 100%;
    margin: 0 auto;
}

.uaf-pd .crumbs-box {
    width: 100%;
    height: auto;
    line-height: 1.5;
    margin: 0 0 14px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    box-shadow: 0 1px 2px rgba(16, 40, 80, 0.03);
    color: var(--jq_color10);
    box-sizing: border-box;
}

.uaf-pd .crumbs-box a {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--jq_color10);
    text-decoration: none;
    transition: color 0.2s ease;
}

.uaf-pd .crumbs-box a:hover {
    color: var(--jq_color14);
}

.uaf-pd .crumbs-box .crumbs-box__sep {
    flex-shrink: 0;
    color: #999;
    font-size: var(--jq_fs1);
    user-select: none;
}

.uaf-pd .crumbs-box [aria-current="page"] {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--jq_color1);
    font-weight: 500;
}

.uaf-pd .crumbs-box__trail--short {
    display: none;
}

.uaf-pd .crumbs-box__trail--full {
    display: contents;
}

.seemb5-page.product-detail-page .uaf-pd-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
    width: 100%;
}

.seemb5-page.product-detail-page .uaf-pd-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
}

.seemb5-page.product-detail-page .uaf-pd-rfq {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    /* 未吸顶时距视口顶略留白；吸顶后由下方 :has 规则避开 fixed 顶栏（92px） */
    top: 16px;
    align-self: start;
    width: 340px;
    max-width: 100%;
    z-index: 2;
}

/* 滚动后 #alssc-box.flex 固定顶栏会挡住侧栏，需下移 sticky 偏移 */
.layout-container:has(.alssc-box.flex) .seemb5-page.product-detail-page .uaf-pd-rfq {
    top: 104px;
    max-height: calc(100vh - 104px - 12px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.seemb5-page.product-detail-page .uaf-pd-main-card,
.seemb5-page.product-detail-page .uaf-pd-spec-block,
.seemb5-page.product-detail-page .uaf-pd-rfq,
.seemb5-page.product-detail-page .uaf-pd-section {
    background: #fff;
    border: 1px solid #e6e9ef;
    box-shadow: 0 1px 3px rgba(15, 30, 60, 0.05);
    box-sizing: border-box;
}

.seemb5-page.product-detail-page .uaf-pd-main-card {
    padding: 24px 28px 28px;
    width: 100%;
}

.seemb5-page.product-detail-page .uaf-pd-spec-block {
    padding: 22px 28px 26px;
    width: 100%;
}

.seemb5-page.product-detail-page .uaf-pd-spec-title {
    margin: 0 0 10px;
    color: #1d4f93;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.uaf-pd-title {
    margin: 0;
    color: #1d4f93;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.uaf-pd-subtitle {
    margin: 10px 0 22px;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.uaf-pd-summary {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.uaf-pd-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    border: 1px solid #edf0f5;
    background: #fff;
}

.uaf-pd-media img {
    display: block;
    max-width: 220px;
    max-height: 220px;
    object-fit: contain;
}

.uaf-pd-media-empty {
    width: 180px;
    height: 180px;
    border-radius: 4px;
    background: linear-gradient(145deg, #f1f3f6, #e5e9ef);
}

.uaf-pd-meta-list {
    margin: 0;
}

.uaf-pd-meta-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f5;
    color: #333;
    font-size: var(--jq_fs2);
    line-height: 1.45;
}

.uaf-pd-meta-row:last-child {
    border-bottom: none;
}

.uaf-pd-meta-row dt {
    margin: 0;
    color: #666;
    font-weight: 600;
}

.uaf-pd-meta-row dd {
    margin: 0;
    word-break: break-word;
}

.uaf-pd-meta-row a,
.uaf-pd-sheet {
    color: #1d62ad;
    text-decoration: none;
}

.uaf-pd-sheet + .uaf-pd-sheet {
    margin-left: 8px;
}

.uaf-pd-meta-row a:hover,
.uaf-pd-sheet:hover {
    text-decoration: underline;
}

.uaf-pd-meta-cat-path {
    line-height: 1.5;
}

.uaf-pd-meta-cat-sep {
    color: #666;
}

.uaf-pd-rfq {
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: start;
    padding: 18px 18px 18px;
}

.uaf-pd-rfq h2,
.uaf-pd-section h2 {
    margin: 0 0 10px;
    color: #1d4f93;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    flex-shrink: 0;
}

.uaf-pd-rfq-lead {
    margin: 0 0 10px;
    color: #666;
    font-size: var(--jq_fs1);
    line-height: 1.5;
}

.uaf-pd-rfq-form {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    margin-top: 0;
}

.uaf-pd-rfq-form label {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
    font-size: var(--jq_fs1);
}

.uaf-pd-rfq-form span {
    white-space: nowrap;
}

.uaf-pd-req {
    margin-left: 2px;
    color: #e53935;
}

.uaf-pd-captcha-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.uaf-pd-captcha-img {
    display: block;
    flex: 0 0 120px;
    width: 120px;
    height: 40px;
    cursor: pointer;
    border: 1px solid #dce2ea;
    border-radius: 3px;
    object-fit: contain;
}

.uaf-pd-rfq-msg {
    margin: 0 0 4px;
    min-height: 0;
    color: #666;
    font-size: var(--jq_fs1);
    line-height: 1.4;
}

.uaf-pd-rfq-msg.is-success {
    color: #2e7d32;
}

.uaf-pd-rfq-msg.is-error {
    color: #c62828;
}

.uaf-pd-rfq-form input,
.uaf-pd-rfq-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #dce2ea;
    border-radius: 3px;
    padding: 8px 9px;
    color: #333;
    font-size: var(--jq_fs1);
    line-height: 1.4;
    box-sizing: border-box;
}

.uaf-pd-rfq-form textarea {
    resize: vertical;
}

.uaf-pd-captcha-row input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.uaf-pd-rfq-form button {
    display: block;
    width: 100%;
    margin-top: 4px;
    border: none;
    border-radius: 3px;
    padding: 10px 18px;
    background: var(--jq_color5);
    color: #fff;
    font-size: var(--jq_fs2);
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.uaf-pd-rfq-form button:hover {
    opacity: 0.92;
}

.uaf-pd-rfq-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.uaf-pd-success-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.uaf-pd-success-backdrop.is-open {
    display: flex;
}

.uaf-pd-success-dialog {
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    box-sizing: border-box;
}

.uaf-pd-success-dialog__title {
    margin: 0 0 12px;
    color: #222;
    font-size: 18px;
    font-weight: 700;
}

.uaf-pd-success-dialog__msg {
    margin: 0 0 22px;
    color: #555;
    line-height: 1.55;
}

.uaf-pd-success-dialog .button-reset {
    display: inline-block;
    min-width: 120px;
    border: none;
    border-radius: 3px;
    padding: 10px 18px;
    background: var(--jq_color5);
    color: #fff;
    font-size: var(--jq_fs2);
    font-weight: 600;
    cursor: pointer;
}

.uaf-pd-success-dialog .button-reset:hover {
    opacity: 0.92;
}

.uaf-pd-section {
    margin-top: 18px;
    padding: 22px 28px 26px;
}

.uaf-pd-spec-table {
    border-top: 1px solid #e5eaf2;
    border-left: 1px solid #e5eaf2;
}

.uaf-pd-spec-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 42px;
    border-right: 1px solid #e5eaf2;
    border-bottom: 1px solid #e5eaf2;
}

.uaf-pd-spec-name,
.uaf-pd-spec-value {
    padding: 11px 14px;
    color: #333;
    font-size: var(--jq_fs2);
    line-height: 1.45;
    word-break: break-word;
}

.uaf-pd-spec-name {
    background: #f4f7fb;
    color: #555;
    font-weight: 600;
    border-right: 1px solid #e5eaf2;
}

.uaf-pd-interest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.uaf-pd-interest-card {
    min-width: 0;
}

.uaf-pd-interest-link {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid #edf0f5;
    color: #333;
    text-decoration: none;
    background: #fff;
}

.uaf-pd-interest-link:hover {
    border-color: #b9cee8;
    background: #f8fbff;
}

.uaf-pd-interest-pn {
    color: #1d62ad;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uaf-pd-interest-desc {
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uaf-pd-interest-action {
    color: #c57600;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .seemb5-page.product-detail-page .uaf-pd-body {
        grid-template-columns: 1fr;
    }

    .seemb5-page.product-detail-page .uaf-pd-left,
    .seemb5-page.product-detail-page .uaf-pd-rfq {
        grid-column: 1;
        width: 100%;
    }

    .seemb5-page.product-detail-page .uaf-pd-rfq {
        position: static;
        grid-row: auto;
    }

    .uaf-pd-summary {
        grid-template-columns: 1fr;
    }

    .uaf-pd-media {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .product-detail-page .uaf-pd {
        padding: 0 12px 30px;
        box-sizing: border-box;
    }

    .uaf-pd-inner {
        max-width: 100%;
    }

    .uaf-pd .crumbs-box__trail--full {
        display: none;
    }

    .uaf-pd .crumbs-box__trail--short {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        min-width: 0;
    }

    .uaf-pd .crumbs-box__trail--short a:last-of-type {
        color: var(--jq_color1);
        font-weight: 500;
    }

    .seemb5-page.product-detail-page .uaf-pd-main-card,
    .seemb5-page.product-detail-page .uaf-pd-spec-block,
    .seemb5-page.product-detail-page .uaf-pd-section {
        padding: 18px 14px 20px;
    }

    .uaf-pd-title {
        font-size: 22px;
    }

    .uaf-pd-meta-row,
    .uaf-pd-rfq-form label,
    .uaf-pd-spec-row,
    .uaf-pd-interest-grid,
    .uaf-pd-interest-link {
        grid-template-columns: 1fr;
    }

    .uaf-pd-meta-row {
        gap: 4px;
    }

    .uaf-pd-spec-name {
        border-right: none;
        border-bottom: 1px solid #e5eaf2;
    }

    .uaf-pd-interest-link {
        gap: 4px;
    }
}
