.product-offer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px 0;
}
/* ============================================
   信息区域
   ============================================ */
.offer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-section--price {
    background: #f9f9fa;
    border-radius: 4px;
    padding: 12px;
}

.offer-section--details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 8px 0;
}

/*.offer-section--sku-selector {*/
/*    gap: 16px;*/
/*}*/

/* ============================================
   价格说明
   ============================================ */
.price-note {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9e9e9;
    font-size: 14px;
}

.price-note__label {
    color: var(--color-text-muted,#999);
    flex-shrink: 0;
}

.price-note__content {
    color: var(--color-text-primary,#333);
}

/* ============================================
   详细信息项
   ============================================ */
.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item__label {
    color: var(--color-text-muted,#999);
    flex-shrink: 0;
    min-width: 50px;
}

.detail-item__value {
    color: var(--color-text-primary,#333);
    word-break: break-all;
}

.detail-item--sku .detail-item__value {
    font-weight: 500;
}

/* 标签容器 */
.detail-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* 认证标签 */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 20px;
    background: var(--color-bg-light,#f0f0f0);
    color: var(--color-text-secondary,#333);
}

.tag--cert {
    background: #e8f0fe;
    color: var(--color-info, #1A73E8);
}



/* ========================================
   1. 价格容器 - 主容器
   ======================================== */
/*.product-offer-info .tier-price-container{*/
/*    height: 61px;*/
/*}*/
.product-offer-info .tier-price-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 5px 4px 6px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #f9f9fa;
}

/* ========================================
   2. 价格头部 - 固定宽度标签区
   ======================================== */
.product-offer-info .price-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 56px;
    flex-shrink: 0; /* 防止头部被压缩 */
}

.product-offer-info .price-header__label {
    line-height: 28px;
    color: var(--color-text-muted,#999);
}

.product-offer-info .price-header__label:last-child {
    line-height: 18px;
    margin-top: 4px;
}

/* ========================================
   3. 阶梯列表 - 横向排列
   ======================================== */
.product-offer-info .tier-list {
    display: flex;
    flex-direction: row;
    gap: 16px; /* 使用项目自身宽度 */
}

/* ========================================
   4. 阶梯项 - 基础样式
   ======================================== */
.product-offer-info .tier-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

/* 阶梯项 - 价格区域 */
.product-offer-info .tier-item__price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    color: var(--color-price);
}

/* 阶梯项 - 货币符号 */
.product-offer-info .tier-item__currency {
    font-size: 14px;
    line-height: 22px;
    margin-right: 2px;
    font-weight: 500;
}

/* 阶梯项 - 价格数字 */
.product-offer-info .tier-item__amount {
    font-size: 24px;
    line-height: 28px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
}

/* 阶梯项 - 数量范围 */
.product-offer-info .tier-item__range {
    display: flex;
    flex-direction: row;
    margin-top: 4px;
}

.product-offer-info .tier-item__range-text {
    line-height: 18px;
    color: var(--color-text-primary,#333);
    white-space: nowrap;      /* 强制文本在一行内显示，不换行 */
    overflow: hidden;         /* 超出容器宽度的内容隐藏 */
    text-overflow: ellipsis;  /* 超出部分显示省略号（...） */
}

/* ========================================
   5. 阶梯项 - 状态修饰符
   ======================================== */

/* 5.1 激活状态 - 高亮显示 */
.product-offer-info .tier-item--active .tier-item__price {
    color: #ff4000;
    font-weight: 700;
}

.product-offer-info .tier-item--active .tier-item__amount {
    color: #ff4000;
    font-weight: 700;
}

/* 5.2 省略占位 - 作为省略项的占位，与普通项区分 */
.product-offer-info .tier-item--ellipsis-placeholder {
    opacity: 0.7;
}

.product-offer-info .tier-item--ellipsis-placeholder .tier-item__price {
    color: var(--color-text-muted,#999);
}

/* 5.3 省略号项 - 独立省略号 */
.product-offer-info .tier-item--ellipsis {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px; /* 省略号独立宽度，非90px */
    flex-shrink: 0;
}

.product-offer-info .tier-item__ellipsis {
    font-size: 18px;
    line-height: 28px;
    color: var(--color-text-muted,#999);
    letter-spacing: 2px;
}

/* ========================================
   方案二：极简登录链接样式
   ======================================== */

/* 登录链接容器 - 保持与阶梯价格容器一致 */
.product-offer-info .tier-price-login-simple {
    padding: 12px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
}

/* 登录链接 - 类似文字链样式 */
.product-offer-info .tier-price-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-price);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

/* 悬停效果 */
.product-offer-info .tier-price-login-link:hover {
    color: var(--color-price-dark);
    border-bottom-color: var(--color-price-dark);
}

/* 点击效果 */
.product-offer-info .tier-price-login-link:active {
    transform: scale(0.98);
}

/* 锁图标 */
.product-offer-info .tier-price-login-link__icon {
    font-size: 16px;
    line-height: 1;
    opacity: 0.7;
}

/* 文字 */
.product-offer-info .tier-price-login-link__text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* 箭头 */
.product-offer-info .tier-price-login-link__arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
    display: inline-block;
}

/* 悬停时箭头右移 */
.product-offer-info .tier-price-login-link:hover .tier-price-login-link__arrow {
    transform: translateX(3px);
}

/* ========================================
   6. 响应式优化
   ======================================== */
@media (max-width: 768px) {
    .product-offer-info .tier-list{
        gap:2px;
    }
    .product-offer-info .tier-item {
        width: 70px;
    }

    .product-offer-info .tier-item__amount {
        font-size: 20px;
        line-height: 24px;
    }

    .product-offer-info .price-header {
        width: 50px;
    }

    .product-offer-info .tier-price-login-simple {
        padding: 10px 0;
        min-height: 36px;
    }

    .product-offer-info .tier-price-login-link {
        font-size: 14px;
        gap: 6px;
    }

    .product-offer-info .tier-price-login-link__text {
        font-size: 14px;
    }

    .product-offer-info .tier-price-login-link__icon {
        font-size: 14px;
    }

    .product-offer-info .tier-price-login-link__arrow {
        font-size: 14px;
    }
}


/* ========================================
   . 产品操作区域
   ======================================== */
.product-action-area {
    padding: 8px 0 20px;
}

.product-action-area__inner {
    /* 内部容器 */
}
.product-action-area .detail-affix-value-1 {
    display: none;
}

.pc-sku-wrapper .prop-item-wrapper .prop-item .prop-item-inner-wrapper .prop-img {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    margin-right: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.pc-sku-wrapper .sku-prop-module-name {
    flex-shrink: 0;
    color: #d8d8d8;
    font-size: 14px;
    padding-bottom: 10px;/*23.2.3添加*/
}
.pc-sku-wrapper .sku-scene-wrapper {
    padding-right: 12px;
    position: relative;
    padding-top: 15px;
    border-top: 1px dashed #e9e9e9;
}
.pc-sku-wrapper .sku-scene-wrapper.expend {
    transition: all .2s linear;
}
/* 规格指示器样式 */

.pc-sku-wrapper .sku-prop-module-name {
    color: var(--color-text-muted,#999);
}
.pc-sku-wrapper .count-widget-wrapper {
    width: 100%;
}
.pc-sku-wrapper .sku-item-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    min-height: 36px;
    border-bottom: 1px dashed #e9e9e9;
    padding-right: 9px;
    position: relative;
}
.pc-sku-wrapper .sku-item-wrapper:last-child {
    border-bottom: 0;
}
.pc-sku-wrapper .sku-item-wrapper .sku-item-left {
    display: flex;
    flex-grow: 1;
    height: 29.6px;
}
.pc-sku-wrapper .sku-item-wrapper .sku-item-left .sku-item-name{
    display: flex;
    flex: 1;
    color: var(--color-text-primary,#333);
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    word-break: break-all;
    padding-right: 10px;
    min-height: 25%;
}
.pc-sku-wrapper .sku-item-wrapper .sku-item-left .sku-item-name {
    flex: 2;
}
.pc-sku-wrapper .sku-prop-module {
    margin-bottom: 15px;
}
.pc-sku-wrapper .sku-module-wrapper {
    /*isplay: flex;*/
}
.pc-sku-wrapper .prop-item-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    padding-bottom: 10px;/*23.2.3添加*/
    padding-top: 10px;/*23.2.3添加*/
}
/* 规格指示器样式 */
.pc-sku-wrapper .prop-item-wrapper .prop-item {
    margin-right: 15px;
    position: relative;
}
.prop-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prop-item.disabled .prop-item-inner-wrapper {
    text-decoration: line-through;
}
.pc-sku-wrapper .prop-item-wrapper .prop-item .prop-item-inner-wrapper {
    padding: 4px 2px;
    display: flex;
    justify-content: flex-start;
    position: relative;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid #ededed;
    align-items: center;
    border-radius: 0.5em;
    min-height: 45px;
}
.pc-sku-wrapper .prop-item-wrapper .prop-item .prop-item-inner-wrapper.active {
    border: 1px solid var(--color-price,#E53935);
    border-radius: 0.5em;
}
.pc-sku-wrapper .prop-item-wrapper .prop-item .prop-item-total {
    position: absolute;
    right: 0;
    top: -10px;
    border-radius: 0.5em;
    background-color: var(--color-price,#E53935);
    padding: 0 0.15em;
    font-size: 12px;
    color: #fff;
}

.pc-sku-wrapper .prop-item-wrapper .prop-item .prop-item-inner-wrapper .prop-name {
    font-size: 13px;
    text-overflow: ellipsis;
    line-height: 1.5;
    padding: 0 5px;
}
.pc-sku-wrapper .sku-item-wrapper .sku-item-left .discountPrice-price {
    justify-content: flex-end;
}
.pc-sku-wrapper .sku-item-wrapper .sku-item-left .discountPrice-price{
    display: flex;
    color: var(--color-price);
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    word-break: break-all;
    min-height: 25%;
}
.pc-sku-wrapper .sku-item-wrapper .sku-item-left .sku-item-sale-num {
    display: flex;
    flex: 1;
    font-size: 13px;
    color: var(--color-text-muted,#999);
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    word-break: break-all;
    padding-right: 10px;
    min-height: 25%;
}
.pc-sku-wrapper .sku-item-wrapper .next-number-picker-inline {
    border: 1px solid #ededed;
    width: 115px;
    margin-left: 40px;
    flex-shrink: 0;
}
.next-number-picker, .next-number-picker *, .next-number-picker :after, .next-number-picker :before {
    box-sizing: border-box;
}
.pc-sku-wrapper .sku-item-wrapper .can-book-0 {
    width: 115px;
    height: 29.6px;
    margin-left: 40px;
    text-align: center;
    color: var(--color-text-muted,#999);
    font-size: 0.95rem;
}

/* ========================================
   . 详情页面阶梯价格表格
   ======================================== */

.price-tiers-wrapper {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}
.tiers-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-primary,#333);
}
.price-tiers-table {
    width: 100%;
    font-size: 15px;
}
.price-tiers-table table {
    width: 100%;
    border-collapse: collapse;
}
.price-tiers-table th,
.price-tiers-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--color-border,#E9E9E9);
}

.price-tiers-table th {
    background: var(--color-bg-alt, #F5F5F5);
    font-weight: 500;
}
.price-tiers-table tr.active-tier {
    background: var( --color-price-bg, #FFF4E6);
    color: var(--color-price);
}


/* ========================================
   . 已选商品项优化
   ======================================== */
.selected-list-container {
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.selected-badge {
    background: var(--color-price);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 10px;
}

.selected-arrow {
    transition: transform 0.3s;
}
.selected-header.expanded .selected-arrow {
    transform: rotate(180deg);
}
.selected-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.selected-item-wrapper:hover {
    background: #fafafa;
}
.selected-item-spec-info {
    flex: 2;
}
.selected-item-spec {
    font-weight: 500;
    margin-bottom: 4px;
}
.selected-item-detail {
    color: var(--color-text-secondary,#666);
}
.selected-item-price {
    color: var(--color-price);
    font-weight: 500;
}

.selected-item-quantity {
    flex: 1;
    text-align: center;
}

.selected-item-total {
    flex: 1;
    text-align: right;
    font-weight: 500;
    color: var(--color-price);
}

.selected-item-remove {
    width: 24px;
    height: 24px;
    margin-left: 15px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text-muted,#999);
    font-size: 18px;
}

.selected-item-remove:hover {
    color: #ff4d4f;
}

.compact-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.compact-quantity-control .qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.compact-quantity-control .qty-value {
    min-width: 30px;
    text-align: center;
}

.selected-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    background: #fafafa;
    border-top: 1px solid #eee;
    border-radius: 0 0 4px 4px;
}
.summary-amount {
    font-size: 15px;
    font-weight: bold;
    color: var(--color-price);
}
.clear-all-btn {
    padding: 4px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.clear-all-btn:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

/* ========================================
   . 数量按钮
   ======================================== */
.next-number-picker {
    display: inline-block;
    box-sizing: border-box;
}
.next-number-picker-inline.next-medium {
    width: 100px;
}
.next-number-picker :before {
    box-sizing: border-box;
}
.next-input-group :before {
    box-sizing: border-box;
}
.next-icon-minus:before{
    content:"\E601"
}
.next-icon.next-xs .next-icon-remote,.next-icon.next-xs:before{width:12px;font-size:12px;line-height:inherit}
.next-icon-add:before{content:"\E655"}
.next-btn .next-icon, .next-btn:before {
    display: inline-block;
    vertical-align: middle;
}
.next-btn:before {
    content: "";
    height: 100%;
    width: 0;
}

.next-input-group {
    display: inline-table;
    border-collapse: separate;
    border-spacing: 0;
    line-height: 0;
    width: 100%;
}

.next-number-picker-inline input {
    text-align: center;
}

.next-input {
    vertical-align: middle;
    display: inline-table;
    border-collapse: separate;
    font-size: 0;
    line-height: 1;
    width: 200px;
    border-spacing: 0;
    transition: all .1s linear;
    border: 1px solid #c4c6cf;
    background-color: #fff;
}

/*.next-input:focus {*/
/*    border-color: #66afe9;*/
/*    outline: 0;*/
/*    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);*/
/*    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);*/
/*}*/


.next-input.next-medium input {
    height: 26px;
    line-height: 26px;
    padding: 0;
    font-size: 14px;
}
.next-input.next-medium {
    height: 28px;
    border-radius: 3px;
}
.next-input-group-auto-width {
    width: 100%;
    border-radius: 0!important;
}
.next-input input, .next-input textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    font-weight: 400;
    vertical-align: middle;
    background-color: transparent;
    color: var(--color-text-primary,#333);
}
.next-btn {
    position: relative;
    display: inline-block;
    box-shadow: none;
    text-decoration: none;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all .1s linear;
    line-height: 1;
    cursor: pointer;
}
.next-btn-normal{
    color:#444;
}

.next-btn.next-btn-normal {
    border-style: solid;
    background-color: #fff;
    border-color: #c4c6cf;
}

.next-btn.next-btn-normal:hover {
    color: #ff4000;
}
.item-removeIcon:hover {
    color: #ff4000;
}

.next-btn.next-medium {
    border-radius: 3px;
    padding: 0 12px;
    font-size: 12px;
    border-width: 1px;
}

.next-input-group-addon {
    width: 1px;
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap;
}
.next-input-group-addon:first-child, .next-input-group-addon:first-child>* {
    border-bottom-right-radius: 0!important;
    border-top-right-radius: 0!important;
}
.next-number-picker, .next-number-picker *, .next-number-picker :after, .next-number-picker :before {
    box-sizing: border-box;
}

.pc-sku-wrapper .sku-item-wrapper .next-number-picker-inline .next-btn.next-btn-normal, .pc-sku-wrapper .sku-item-wrapper .next-number-picker-inline .next-input {
    border: none;
    background-color: transparent;
}
.next-number-picker-inline.next-medium .next-before .next-btn {
    margin-right: 2px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}
.next-number-picker-inline.next-medium .next-after .next-btn {
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
    margin-left: 2px;
}
.next-number-picker-inline .next-btn.next-medium {
    width: 28px;
}
.next-number-picker-inline.next-medium .next-btn {
    height: 28px;
}

.next-icon {
    display: inline-block;
    font-family: NextIcon;
    font-style: normal;
    font-weight: 400;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.next-btn .next-icon {
    font-size: 0;
}
.pc-sku-wrapper .sku-item-wrapper .next-number-picker-inline .next-input {
    border: none;
    background-color: transparent;
}
.next-btn .next-icon, .next-btn:before {
    display: inline-block;
    vertical-align: middle;
}
.pc-sku-wrapper .sku-item-wrapper .sku-number-picker-message {
    width: 130px;
    color: #ff4000;
    font-size: 12px;
    position: absolute;
    bottom: -1px;
    right: 9px;
    text-align: center;
}
.next-btn .next-icon, .next-btn:before {
    display: inline-block;
    vertical-align: middle;
}
.next-number-picker .next-btn {
    padding: 0!important;
    line-height: 0!important;
    box-shadow: none!important;
}

/* ========================================
   . 矩阵选择器布局
   ======================================== */
/* 容器 */
.matrix-size-table-wrapper {
    width: 100%;
    overflow: hidden; /* 防止溢出 */
    border-bottom: 1px solid rgb(233, 233, 233);
}

/* 尺寸列表 */
.size-list-wrapper {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    gap:2px;
}

/* 尺寸项 */
.size-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: all 0.25s ease;
    gap: 8px;
    min-height: 60px;
}

/* 悬停状态 - 只在桌面端 */
@media (hover: hover) {
    .size-item-wrapper:hover {
        border-color: #ff6700;
        box-shadow: 0 2px 12px rgba(255, 103, 0, 0.08);
        transform: translateY(-1px);
    }
}

/* 选中状态 */
.size-item-wrapper--selected {
    border-color: #ff6700;
    background: #fff8f0;
}

/* 缺货状态 */
.size-item-wrapper--out-of-stock {
    opacity: 0.6;
}

.size-item-wrapper--out-of-stock .size-quantity {
    pointer-events: none;
}

/* ========================================
   信息区域
   ======================================== */
.size-item-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* 防止flex溢出 */
    flex-wrap: wrap;
}

/* 尺寸名称 */
.size-name {
    min-width: 80px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    flex-shrink: 0;
}

/* 价格 */
.size-price {
    min-width: 80px;
    color: var(--color-price);
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.size-price .currency {
    font-size: 12px;
    font-weight: 400;
}

/* 库存 */
.size-stock {
    min-width: 70px;
    font-size: 13px;
    flex-shrink: 0;
}

.size-stock--in-stock {
    color: var(--color-success, #52C41A);
}

.size-stock--low-stock {
    color: var(--color-warning, #FAAD14);
}

.size-stock--out-of-stock {
    color: var(--color-danger, #FF4D4F);
}

/* ========================================
   矩阵折叠展开样式
   ======================================== */

/* 尺寸表格容器 */
.matrix-size-table-wrapper {
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* 折叠状态 - 限制高度，显示渐变遮罩 */
.matrix-size-table-wrapper--collapsed {
    max-height: 320px; /* 显示约3行 */
}

/* 展开状态 */
.matrix-size-table-wrapper--expanded {
    max-height: 5000px; /* 足够显示全部 */
}

/* 折叠状态下的渐变遮罩 */
.matrix-size-table-wrapper--collapsed::after {
    content: '';
    position: absolute;
    bottom: 60px; /* 为展开按钮留出空间 */
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #fff 80%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   尺寸项显示控制
   ======================================== */

/* 默认隐藏（超过3个的项） */
.size-item-wrapper--hidden {
    display: none !important;
}

/* 折叠时的隐藏动画 */
.size-item-wrapper--hiding {
    animation: slideUp 0.3s ease forwards;
}

/* 展开时的显示动画 */
.size-item-wrapper--reveal {
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideUp {
    0% {
        opacity: 1;
        transform: translateY(0);
        max-height: 80px;
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 80px;
    }
}

/* ========================================
   展开按钮
   ======================================== */

.matrix-expand-wrapper {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    background: #fff;
    min-height: 32px;
}

/* 1688风格的展开按钮 - 极简设计 */
.matrix-expand-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--color-text-muted,#999);
    transition: all 0.3s ease;
    user-select: none;
    background: transparent;
    border: none;
    position: relative;
}

/* 横线样式 - 在文字下方 */
/*.matrix-expand-btn::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 0;*/
/*    right: 0;*/
/*    height: 1px;*/
/*    background: #e0e0e0;*/
/*    transform: translateY(-50%);*/
/*    z-index: 0;*/
/*}*/

/* 文字背景 - 遮挡横线 */
.matrix-expand-btn .expand-text {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 12px;
    font-size: 12px;
    color: var(--color-text-muted,#999);
    letter-spacing: 0.5px;
}

/* 箭头 - 小三角形 */
.matrix-expand-btn .expand-arrow {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-left: 1.5px solid var(--color-border, #E9E9E9);
    border-bottom: 1.5px solid var(--color-border, #E9E9E9);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-left: -4px;
    flex-shrink: 0;
}

/* 箭头朝上（展开状态） */
.matrix-expand-btn .expand-arrow--up {
    transform: rotate(135deg);
}

/* Hover效果 - 轻微颜色变化 */
.matrix-expand-btn:hover {
    color: #ff6700;
}

.matrix-expand-btn:hover .expand-text {
    color: #ff6700;
}

.matrix-expand-btn:hover .expand-arrow {
    border-color: #ff6700;
}

/* 点击反馈 */
.matrix-expand-btn:active {
    transform: scale(0.95);
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 768px) {
    .matrix-size-table-wrapper--collapsed {
        max-height: 280px; /* 移动端显示更少 */
    }

    .matrix-expand-btn {
        padding: 5px 16px;
        font-size: 12px;
    }

    .matrix-size-table-wrapper--collapsed::after {
        bottom: 50px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .matrix-size-table-wrapper--collapsed {
        max-height: 240px;
    }
}

/* ========================================
   数量控制 - 重点优化
   ======================================== */

/* 数量选择器 - 移动端适配 */
@media (max-width: 768px) {
    .size-quantity {
        min-width: 100px;
        max-width: 140px;
    }

    .size-quantity .next-number-picker {
        max-width: 130px;
        min-width: 90px;
    }

    .size-quantity .next-btn {
        min-width: 24px !important;
        width: 24px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    .size-quantity .next-input.next-medium {
        height: 28px !important;
    }

    .size-quantity .next-input.next-medium input {
        height: 28px !important;
        line-height: 28px !important;
        font-size: 13px !important;
    }
}

/* ========================================
   响应式 - 完整适配
   ======================================== */

/* 平板及以下 */
@media (max-width: 768px) {
    .size-item-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }

    .size-item-info {
        width: 100%;
        gap: 12px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .size-name {
        min-width: 60px;
        font-size: 13px;
        flex: 1;
    }

    .size-price {
        min-width: 60px;
        font-size: 14px;
    }

    .size-stock {
        min-width: 50px;
        font-size: 12px;
    }

    .size-quantity {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        justify-content: flex-start;
    }

    .size-quantity .next-number-picker {
        max-width: 140px;
        min-width: 100px;
        width: auto !important;
    }

    .matrix-submit-btn {
        max-width: 100%;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .size-item-wrapper {
        padding: 10px;
        gap: 8px;
        border-radius: 4px;
    }

    .size-item-info {
        gap: 8px;
    }

    .size-name {
        min-width: 50px;
        font-size: 12px;
    }

    .size-price {
        min-width: 50px;
        font-size: 13px;
    }

    .size-stock {
        min-width: 40px;
        font-size: 11px;
    }

    .size-quantity .next-number-picker {
        max-width: 120px;
        min-width: 80px;
    }

    .size-quantity .next-btn {
        min-width: 22px !important;
        width: 22px !important;
        height: 26px !important;
        font-size: 11px !important;
    }

    .size-quantity .next-input.next-medium {
        height: 26px !important;
    }

    .size-quantity .next-input.next-medium input {
        height: 26px !important;
        line-height: 26px !important;
        font-size: 12px !important;
    }
}


/* ========================================
   . 汇总及已选清单容器
   ======================================== */
.order-price-wrapper {
    background: #f5f5f5;
    margin-top: 20px;
    padding-left: 12px;
    display: flex;
    align-items: baseline;
    position: relative;
}

.order-price-wrapper .selected-list-wrapper {
    color: var(--color-text-secondary,#666);
    background: #fff;
    position: absolute;
    bottom: 58px;
    left: 0;
    width: 100%;
    z-index: 11;
}

.order-price-wrapper .selected-item-wrapper {
    display: flex;
}
.order-price-wrapper .order-left-wrapper {
    display: flex;
    align-items: baseline;
    flex-grow: 1;
}
.order-price-wrapper__count {
    color: var(--color-text-secondary,#666);
    line-height: 56px;
}
.order-price-wrapper__total {
    height: 56px;
    color: var(--color-text-secondary,#666);
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-price-wrapper__total-value {
    color: var(--color-price);
    font-size: 1.3em;
}
@media (max-width: 767px) {
    .order-price-wrapper__total-value {
        font-size: 1em;
        font-weight: 600;
    }
}
.order-price-wrapper .order-has-select-button {
    font-size: 14px;
    width: 148px;
    height: 56px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color:var(--color-text-primary,#555);
}
/** 垂直分割线 **/
.order-price-wrapper .order-has-select-button .order-has-select-line {
    display: block;
    width: 1px;
    border-left: 1px solid var(--color-border, #E9E9E9);
    height: 46px;
    position: absolute;
    left: 0;
    top: 5px;
}

.order-price-wrapper .order-has-select-button .sanjiao {
    position: absolute;
    display: inline-block;
    width: 7px;
    height: 4px;
    background: url(https://img.alicdn.com/imgextra/i3/O1CN01tEJBFe1w7aSwDtL0h_!!6000000006261-2-tps-20-12.png) no-repeat;
    background-size: 100% 100%;
    top: 25px;
    right: 32px;
    transition: all .5s linear;
}
.order-price-wrapper .order-has-select-button .sanjiao.show {
    transform: rotate(180deg);
}

/* ========================================
   . 询盘及加入询盘车 收藏等按钮操作
   ======================================== */

.order-button-wrapper {
    background: #fff;
    display: flex;
}
.order-button-wrapper .order-button-children {
    background: #fff;
    padding-top: 20px;
    display: flex;
}
.order-button-wrapper .order-button-children.fixed {
    position: fixed;
    width: 100%;
    height: 68px;
    padding-top: 12px;
    border-radius: 3px;
    box-shadow: 0 0 10px 5px rgb(0 0 0 / 10%);
}
.order-button-wrapper .order-button-children .order-button-children-list {
    flex-grow: 1;
    display: flex;
    justify-content: left;
}
.order-button-wrapper .order-button-children .order-button-tip-wrapper {
    display: flex;
    flex-direction: column;
}

.order-button-wrapper .order-button-children .order-normal-button {
    border: 1px solid #ff4000;
    width: 126px;
    height: 40px;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    color: #ff4000;
    cursor: pointer;
}
.order-button-wrapper .order-button-children .order-button {
    border: none;
    background: #ff7044 linear-gradient(90deg, #ff7044, #ff4000);
    background-size: 100% 100%;
    color: #fff;
}

.order-button-wrapper .order-button-children .order-favor-button {
    display: flex;
    align-items: center;
    margin-left: 19px;
    cursor: pointer;
    height: 40px;
}
.order-button-wrapper .order-button-children .order-favor-button .order-favor-button-text {
    margin-left: 6px;
    color: #337ab7;
    line-height: 14px;
    font-size: 14px;
}
.order-button-wrapper .order-button-children .order-button-tip-wrapper+.order-button-tip-wrapper {
    margin-left: 10px;
}


/* ========================================
   . 辅助样式
   ======================================== */

.product-offer-line {
    max-width: 100%;
    padding: 10px 0;
}
.product-offer-line .division-line {
    width: 100%;
    height: 1px;
    background-color: #eee;
}

.out-of-stock-tip {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 5px;
}
