.buy {
    width: 100%;
    padding: 20px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
}

.buy>.fr {
    width: 300px;
}

.buy>.fr img {
    width: 100%;
    height: 300px;
}

/* 主图下方的商品编号：inline-block 让灰底只包住文字，不铺满整行 */
.buy>.fr .goods-no {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    text-align: left;
    font-size: 13px;
    line-height: 20px;
    color: #64748b;
    background: var(--bs-gray-100);
    border-radius: 4px;
}

.buy>.fl {
    width: calc(100% - 340px);
}

.buy>.fl .title {
    text-overflow: ellipsis;
}

.buy>.fl .title h1 {
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 32px;
    color: var(--bs-gray-800);
}

.buy>.fl .bq {
    width: 100%;
    overflow: hidden;
}

.buy>.fl .bq span {
    display: block;
    float: left;
    padding: 2px 10px;
    background-color: #E3F2FD;
    color: #06f;
    font-size: 13px;
    margin-right: 20px;
    border-radius: 5px;
}

.buy>.fl .jg {
    width: 100%;
    height: 100px;
    display: flex;
    padding: 20px 0;
}

.buy>.fl .jg .fr {
    width: 50%;
    height: 80px;
}

.buy>.fl .jg .fr .jg-title span,
.buy>.fl .jg .fl .jg-title {
    font-size: 14px;
    color: #222;
}

.buy>.fl .jg .fr .jg-title em {
    padding: 2px 20px;
    color: #fff;
    background-color: var(--ay-blue);
    background-image: linear-gradient(to right, var(--bs-red), var(--bs-pink));
    font-size: 14px;
    border-radius: 5px;
    margin-top: 4px;
}

.buy>.fl .jg .fr .jg-jg span {
    font-size: 24px;
    color: var(--bs-red);
    line-height: 30px;
    font-weight: bold;
}

.buy>.fl .jg .fr .jg-jg em {
    font-size: 14px;
    color: #999;
    line-height: 30px;
    margin-left: 15px;
    text-decoration: line-through;
}

.buy>.fl .jg .fl {
    width: 50%;
    height: 80px;
    border-left: 1px solid var(--bs-gray-300);
    padding-left: 40px;
}

.buy>.fl .jg .fl .jg-fw {
    display: flex;
}

.buy>.fl .jg .fl .jg-fw>div {
    width: 33.333333%;
    height: 30px;
    line-height: 30px;
    color: var(--bs-gray-600);
}

.buy>.fl .jg .fl .jg-fw>div .icon {
    position: relative;
    margin-top: -2px;
}

.buy>.fl .buy-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 50px;
    background-color: var(--ay-blue);
    background-image: linear-gradient(to right, var(--ay-blue), var(--bs-info));
    color: #fff;
    border-radius: 5px;
}
.buy>.fl .buy-sellout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 50px;
    background-color: #afafaf;

    color: #fff;
    border-radius: 5px;
}

.buy>.fl .buy-btn .icon {
    position: relative;
}

.buy-info {
    width: 100%;
    background-color: #fff;
}

.buy-info .title {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    line-height: 30px;
    position: relative;
    text-indent: 15px;
    font-weight: 700;
    color: var(--bs-gray-800);
    border-bottom: 1px dashed var(--bs-gray-300);
}

.buy-info .title::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 24px;
    top: 23px;
    left: 20px;
    border-radius: 10px;
    background-color: var(--ay-blue);
}

.buy-info .content {
    padding: 20px;
    text-align: center;
}
.content img{
    max-width: 100%;

}
/* 单价右侧「查看拿货价」：纯 CSS 悬浮层，鼠标移入才显示（选择器多带一层类，压过 .jg-jg span 的 24px 红字样式） */
.buy>.fl .jg .fr .jg-jg .price-tip {
    position: relative;
    display: inline-block;
    margin-left: 14px;
    font-size: 13px;
    font-weight: 400;
    line-height: 30px;
    color: var(--ay-blue);
    vertical-align: top;
}

.buy>.fl .jg .fr .jg-jg .price-tip:hover {
    text-decoration: underline;
}

.buy>.fl .jg .fr .jg-jg .price-tip .price-tip-pop {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 60;
    min-width: 176px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5edf8;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgb(15 40 80 / 12%);
    white-space: nowrap;
}

.buy>.fl .jg .fr .jg-jg .price-tip:hover .price-tip-pop {
    display: block;
}

.buy>.fl .jg .fr .jg-jg .price-tip .pop-head {
    font-size: 12px;
    color: #8a94a6;
    margin-bottom: 6px;
}

.buy>.fl .jg .fr .jg-jg .price-tip .pop-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    color: #475569;
}

.buy>.fl .jg .fr .jg-jg .price-tip .pop-row i {
    font-style: normal;
}

.buy>.fl .jg .fr .jg-jg .price-tip .pop-row b {
    color: var(--bs-red);
}

/* ===== 编号行：左编号、右分享入口 ===== */
.buy>.fr .goods-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.buy>.fr .goods-meta .goods-no {
    margin-top: 0;
}

.buy>.fr .goods-share {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    line-height: 20px;
    color: #64748b;
}

.buy>.fr .goods-share:hover {
    color: #4b89dc;
}

.buy>.fr .goods-share i {
    display: inline-flex;
    width: 14px;
    height: 14px;
    margin-left: 4px;
}

.buy>.fr .goods-share i svg {
    width: 100%;
    height: 100%;
}

/* ===== 分享弹窗（layer type:1 + skin:'layer-share'）=====
   外壳透明：白卡由 .share-card 自己画，关闭按钮要落在白卡外面 */
.layui-layer.layer-share {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.layui-layer.layer-share .layui-layer-content {
    overflow: visible;
}

.share-wrap {
    width: 300px;
}

.share-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.share-img {
    width: 100%;
    height: 260px;
    background: #f5f6f8;
}

.share-img img {
    display: block;
    width: 100%;
    height: 100%;
}

.share-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 14px 16px 18px;
}

.share-info {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.share-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.share-price {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 700;
    color: #F44336;
}

.share-tip {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.share-qr {
    width: 96px;
    height: 96px;
    flex: none;
}

/* 二维码按 260px 画布生成再缩到这里 */
.share-qr img,
.share-qr canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.share-qr-fail {
    font-size: 12px;
    color: #bbb;
}

/* 商品下架提示（含触发同步刚下架的情况） */
.buy-off-tip {
    margin: 0 0 12px;
    padding: 10px 14px;
    background: #fff7e6;
    border: 1px solid #ffe1b3;
    border-radius: 8px;
    color: #b45309;
    font-size: 13px;
    line-height: 1.6;
}

/* 隐藏数量输入框原生上下箭头（已有自定义 +/- 按钮） */
#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#quantity {
    -moz-appearance: textfield;
}

/* 字符范围超出提示：仅红色边框，不阻止输入 */
.char-range-error {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 1px #f44336 !important;
}
