
.xq-buy-section{
    padding: 14px 16px 16px;
}

.xq-buy-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin: 0 0 10px;
}

.xq-buy-section .page-title{
    margin:0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.xq-buy-section-more{
    margin-top:0 !important;
}

.xq-buy-related-products{
    margin-top: 12px !important;
}

.xq-buy-faq-related-grid{
    display:flex;
    gap:10px;
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    align-items:stretch;
}

@media (min-width: 992px){
    .xq-buy-faq-related-card{
        flex:0 0 calc((100% - 30px) / 4);
    }
}

@media (min-width: 576px) and (max-width: 991.98px){
    .xq-buy-faq-related-card{
        flex:0 0 40%;
    }
}

@media (max-width: 575.98px){
    .xq-buy-faq-related-card{
        flex:0 0 78%;
    }
}

.xq-buy-faq-card{
    border-color: #dfe5ea !important;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    gap:0;
    overflow:hidden;
    padding:0;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.xq-buy-faq-title{
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.xq-buy-faq-thumb-wrap{
    width:100%;
    aspect-ratio:533 / 300;
    overflow:hidden;
    background:#f3f4f6;
}

.xq-buy-faq-thumb{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.xq-buy-faq-title-wrap{
    padding:12px 14px 13px;
    display:flex;
    flex-direction:column;
    gap:8px;
    min-height: calc(1.5em * 2 + 1.7em * 2 + 34px);
}

.xq-buy-faq-card:hover{
    border-color:#d8e5ea !important;
    box-shadow:0 10px 24px rgba(15, 23, 42, .08);
    transform:translateY(-1px);
}

.xq-buy-faq-desc{
    color:#6b7280;
    font-size:13px;
    line-height:1.7;
    margin:0;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    word-break:break-word;
}

@media (max-width: 991.98px){
    .xq-buy-section{
        padding: 13px 14px 14px;
        margin-top: 5px !important;
    }

    .xq-buy-section-head{
        margin-bottom: 9px;
    }

    .xq-buy-faq-related-grid{
        gap:8px;
    }
}

@media (max-width: 767.98px){
    .xq-buy-section{
        padding: 12px 12px 13px;
    }

    .xq-buy-faq-title-wrap{
        padding:11px 12px 12px;
    }

    .xq-buy-section-head{
        gap:8px;
        margin-bottom:8px;
    }

    .xq-buy-section-more{
        width:auto;
    }
}

/* 2026-05-06 v5: 商品详情页移动端三枚操作按钮始终一行显示 */
.xq-buy-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-wrap:nowrap;
    width:100%;
}
.xq-buy-actions .xq-buy-action-btn{
    flex:1 1 0;
    min-width:0;
    min-height:39px;
    margin-left:0 !important;
    padding:7px 10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:3px;
    white-space:nowrap;
    line-height:1.25;
    font-weight:700;
}
.xq-buy-actions .xq-buy-action-btn i{
    flex:0 0 auto;
}
.xq-buy-actions .xq-buy-action-btn span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
}
@media (max-width:575.98px){
    .xq-buy-actions{
        gap:6px;
    }
    .xq-buy-actions .xq-buy-action-btn{
        min-height:37px;
        padding-left:6px;
        padding-right:6px;
        font-size:13px;
    }
}
@media (max-width:360px){
    .xq-buy-actions{
        gap:5px;
    }
    .xq-buy-actions .xq-buy-action-btn{
        padding-left:4px;
        padding-right:4px;
        font-size:12px;
    }
    .xq-buy-actions .xq-buy-action-btn i{
        margin-right:2px !important;
    }
}

/* 2026-05-07 v1: 购买按钮文案调整后仍保持一行，购物车结算使用通用购物车背景色 */
.xq-buy-actions .xq-buy-cart-checkout-btn{
    border-color:#2563eb;
    background:#2563eb;
    color:#fff !important;
    box-shadow:0 6px 14px rgba(37,99,235,.18);
}
.xq-buy-actions .xq-buy-cart-checkout-btn:hover,
.xq-buy-actions .xq-buy-cart-checkout-btn:focus{
    border-color:#1d4ed8;
    background:#1d4ed8;
    color:#fff !important;
}
.xq-buy-actions .xq-buy-cart-checkout-btn span{
    color:inherit;
}
@media (max-width:575.98px){
    .xq-buy-actions .xq-buy-action-btn span{
        text-overflow:clip;
    }
}

/* 2026-05-08 v2: 商品详情页规格标签选择，价格下方展示并与价格/发货/优惠联动 */
.xq-buy-price-block{
    margin-bottom: 8px;
}
.xq-buy-price-line{
    margin-bottom: 0;
    line-height: 1.35;
}
.xq-spec-tags-block{
    margin-top: -2px;
    margin-bottom: 10px;
}
.xq-spec-tags-title{
    margin-bottom: 7px;
}
.xq-spec-tags{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}
.xq-spec-tag{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 6px 13px;
    border: 1px solid #dfe5ec;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    user-select: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.xq-spec-tag:hover{
    border-color: rgba(234, 84, 85, .55);
    color: #ea5455;
    background: #fffafa;
}
.xq-spec-tag.is-active{
    border-color: #ea5455;
    color: #ea5455;
    background: #fff5f5;
    box-shadow: 0 5px 14px rgba(234, 84, 85, .13);
}
.xq-spec-tag__input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.xq-spec-tag__name{
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xq-wholesale-discount .bg-pifa{
    padding: 8px 10px;
    line-height: 1.55;
    border-radius: 8px;
}
.xq-wholesale-discount .bg-pifa span{
    display: inline-block;
    margin-right: 8px;
}
@media (max-width: 575.98px){
    .xq-spec-tags{
        gap: 7px;
    }
    .xq-spec-tag{
        min-height: 31px;
        padding: 6px 11px;
        font-size: 12px;
    }
}


/* 2026-05-09: 商品详情页规格标签等宽 + 站点暖红色背景 + 移动端一行 3 个居中 */
.xq-buy-spec-select{
    width: 100%;
    margin-top: 8px;
    margin-bottom: 12px;
    text-align: center;
}
.xq-buy-spec-select .xq-spec-tags{
    display: grid;
    grid-template-columns: repeat(auto-fit, 136px);
    justify-content: center;
    justify-items: stretch;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.xq-buy-spec-select .xq-spec-tag{
    width: 136px;
    min-width: 0;
    max-width: 136px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(234, 84, 85, .22);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(234, 84, 85, .10), rgba(255, 250, 250, .98));
    color: #6b3f3f;
    box-shadow: 0 4px 12px rgba(234, 84, 85, .06);
}
.xq-buy-spec-select .xq-spec-tag:hover{
    border-color: rgba(234, 84, 85, .52);
    background: linear-gradient(180deg, rgba(234, 84, 85, .16), #fff7f7);
    color: #ea5455;
    transform: translateY(-1px);
}
.xq-buy-spec-select .xq-spec-tag.is-active{
    border-color: #ea5455;
    background: linear-gradient(180deg, #ea5455, #ff7a70);
    color: #fff;
    box-shadow: 0 7px 18px rgba(234, 84, 85, .24);
}
.xq-buy-spec-select .xq-spec-tag > input[type="radio"]{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.xq-buy-spec-select .xq-spec-tag__name{
    width: 100%;
    text-align: center;
}
@media (max-width: 575.98px){
    .xq-buy-spec-select{
        margin-top: 6px;
        margin-bottom: 10px;
    }
    .xq-buy-spec-select .xq-spec-tags{
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .xq-buy-spec-select .xq-spec-tag{
        width: 100%;
        max-width: none;
        min-height: 36px;
        padding: 7px 6px;
        border-radius: 11px;
        font-size: 12px;
    }
}
@media (max-width: 360px){
    .xq-buy-spec-select .xq-spec-tags{
        gap: 6px;
    }
    .xq-buy-spec-select .xq-spec-tag{
        padding-left: 4px;
        padding-right: 4px;
        font-size: 11px;
    }
}
