/* seemb7 产品详情页（对齐 seemb4 双栏布局） */

.product-detail-page .pd-main {
    background: #f0f0f0;
    padding-bottom: 24px;
}

.pd-wrap {
    max-width: 100%;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 16px 20px 24px;
    box-sizing: border-box;
}

.pd-breadcrumb {
    margin-top: 0;
    margin-bottom: 12px;
}

.pd-intro-stock {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.pd-intro {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.pd-stock {
    width: 100%;
    max-width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .pd-intro-stock {
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .pd-intro {
        flex: 3 1 0;
        min-width: 0;
    }

    .pd-stock {
        flex: 1 1 280px;
        max-width: 360px;
    }
}

.pd-intro-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    flex: 1;
    width: 100%;
    min-height: 0;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    align-items: flex-start;
}

.pd-media {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 220px;
}

.pd-image-box {
    border: 1px solid #eee;
    padding: 12px;
    background: transparent;
    box-sizing: border-box;
    width: 100%;
}

.pd-image {
    display: block;
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.pd-info {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pd-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    line-height: 1.3;
}

.pd-props {
    font-size: 14px;
    color: #333;
}

.pd-prop {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    line-height: 1.5;
}

.pd-prop-label {
    flex: 0 0 100px;
    max-width: 40%;
    color: #666;
}

.pd-prop-value {
    flex: 1;
    min-width: 160px;
}

.pd-link {
    color: var(--jq_color14, #1a5fb4);
    text-decoration: none;
}

.pd-link:hover {
    text-decoration: underline;
}

.pd-sheets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.pd-sheets .pd-sheet-link {
    color: #c99700;
    text-decoration: none;
}

.pd-sheets .pd-sheet-link:hover {
    text-decoration: underline;
}

.pd-buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .pd-buy-row {
        margin-top: auto;
        padding-top: 20px;
    }
}

.pd-qty-label {
    font-size: 14px;
    color: #666;
}

.pd-qty-input {
    width: 100px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-sizing: border-box;
}

.pd-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.pd-btn--primary {
    background: var(--jq_color14, #1a5fb4);
    color: #fff;
    border: 1px solid var(--jq_color14, #1a5fb4);
}

.pd-btn--primary:hover {
    filter: brightness(0.92);
}

.pd-btn--ghost {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.pd-btn--ghost:hover {
    border-color: #999;
}

.pd-btn--warning {
    background: #c99700;
    color: #fff;
}

.pd-btn--warning:hover {
    filter: brightness(0.92);
}

.pd-stock-card {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pd-stock-head {
    margin-bottom: 10px;
}

.pd-stock-line {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ff7b21;
    line-height: 1.3;
}

.pd-stock-num {
    font-weight: 700;
    color: inherit;
}

.pd-stock-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.pd-price-table {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    font-size: 13px;
}

.pd-price-head,
.pd-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    min-height: 36px;
    align-items: center;
}

.pd-price-head {
    background: #f6f8fc;
    font-weight: 600;
}

.pd-price-row:nth-child(2n + 2) {
    background: #fff;
}

.pd-price-row:nth-child(2n + 3) {
    background: #f3f3f3;
}

.pd-price-row span:nth-child(2),
.pd-price-row span:nth-child(3) {
    color: #e65100;
}

.pd-information {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.pd-tabs-head {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e5e5e5;
    box-sizing: border-box;
}

.pd-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.pd-tabs-body {
    padding: 16px 20px 20px;
}

.pd-tab-panel.is-active {
    display: block;
}

.pd-attr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.pd-attr-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 44px;
    font-size: 14px;
    font-weight: 400;
    color: #222;
}

.pd-attr-row:nth-child(odd) {
    background: #fff;
}

.pd-attr-row:nth-child(even) {
    background: #f7f7f7;
}

.pd-attr-name {
    flex: 0 0 38%;
    max-width: 420px;
    padding: 12px 16px;
    color: #222;
    box-sizing: border-box;
    border-right: 1px solid #eee;
    align-self: center;
}

.pd-attr-val {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    box-sizing: border-box;
    word-break: break-word;
    color: #222;
    align-self: center;
}

.pd-remark-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.pd-product-content {
    margin-bottom: 0;
    overflow-x: auto;
}

.pd-product-content img {
    max-width: 100%;
    height: auto;
}

.pd-product-content table {
    width: 100%;
    border-collapse: collapse;
}

.pd-product-content th,
.pd-product-content td {
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
}

.pd-recommended .product-list-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.pd-recommended .product-list.list-block {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.pd-recommended .product-list-item {
    width: calc(25% - 16px);
    margin: 8px;
    position: relative;
    border: 1px solid var(--jq_color9, #e8e8e8);
    padding: 8px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s ease;
}

.pd-recommended .product-list-item:hover {
    border-color: var(--jq_color8, #ccc);
}

.pd-recommended .product-list-item__main {
    display: flex;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.pd-recommended .product-list-item__main:hover {
    color: inherit;
}

.pd-recommended .product-list-item .img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.pd-recommended .product-list-item .img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-recommended .product-list-item .text {
    width: calc(100% - 80px);
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.pd-recommended .product-list-item .text .max {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-recommended .product-list-item .text .min {
    font-size: 12px;
    color: #666;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .pd-wrap {
        width: calc(100% - 24px);
        padding: 12px 12px 20px;
    }

    .pd-media {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .pd-recommended .product-list-item {
        width: calc(50% - 16px);
    }

    .pd-buy-row {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .pd-buy-row .pd-btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 576px) {
    .pd-tabs-body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pd-recommended .product-list-item {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .pd-attr-row {
        flex-wrap: nowrap;
        align-items: center;
        min-height: 40px;
    }

    .pd-attr-name {
        flex: 0 0 40%;
        max-width: 40%;
        min-width: 0;
        padding: 10px 8px;
        border-right: 1px solid #eee;
        border-bottom: none;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pd-attr-val {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
        word-break: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
