
.cart-header {
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1); /* 更柔和的阴影 */
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    margin-bottom:5px;
}
.cart-header th{
    font-size: 13px;
}
.header-bar-container{
    background: #f8f9fa;
    border-bottom: 1px solid var(--color-border);
}
.header-bar {
    padding: 12px 0;
}
.header-bar-table{
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
}
.header-bar-table th {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
    padding: 12px 15px;
}

.header-bar-colCheckbox {
    text-align: left;
    width: 114px;
}
.header-bar-colImage{
    text-align: center;
    width: 114px;
}
.header-bar-colGoods {
    text-align: left;
}
.header-bar-colQuantity {
    text-align: center;
    width: 216px;
}
.header-bar-colPrice {
    text-align: center;
    width: 160px;
}
.header-bar-colSubtotal {
    text-align: center;
    width: 150px;
}
.cart-content {
    position: relative;
}

.cart-items-container a:hover {
    color: inherit !important;
}
.item-group-container {
    padding: 3px 20px;
    margin: 0 -20px;
    will-change: transform, opacity;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.item-group-container:not(:last-child) {
    margin-bottom: 16px;
}

.item-group-container .item-group-container-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.item-group-colMainImage {
    text-align: center;
    vertical-align: top;
    width: 114px;
}
.item-group-imageWrapper {
    display: inline-block;
    margin: 0 0 0 3px;
    position: relative;
}
.item-group-lazyLoad {
    display: inline-block;
    height: 70px;
    vertical-align: middle;
    width: 70px;
}

.item-group-image {
    border-radius: 6px;
    height: 70px;
    width: 70px;
    overflow: hidden;
}
.item-lazyLoad {
    height: 30px;
    margin-left: 2px;
    width: 30px;
    display: inline-block;
    vertical-align: middle;
}
.item-image {
    border-radius: 4px;
    height: 30px;
    width: 30px;
}

.item-group-container-title .item-group-title {
    color: var(--color-text);
    font-size: 14px;
    vertical-align: middle;
}

.item-title {
    background: #f9f9f9;
    border-radius: 4px;
    color: var(--color-text);
    display: inline-block;
    line-height: 16px;
    margin-left: 2px;
    min-height: 30px;
    padding: 7px 9px;
    vertical-align: middle;
    width: -moz-calc(100% - 70px);
    width: calc(100% - 70px);
    overflow: hidden;
}

.item-title .item-stretch {
    width: -moz-calc(100% - 28px);
    width: calc(100% - 28px);
}
.item-cellInner{
    position: relative;
}
/*.next-checkbox-wrapper input[type=checkbox] {*/
/*    opacity: 0;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 16px;*/
/*    height: 16px;*/
/*    margin: 0;*/
/*    cursor: pointer;*/
/*}*/
.next-number-picker.next-number-picker-inline.next-medium {
    width: 130px;
}
.next-number-picker.next-number-picker-inline {
    border: 1px solid #ededed;
}
.item-numberPicker {
    margin: 0 15px;
}
.next-number-picker-inline.next-medium {
    width: 100px;
    min-width: 84px;
}
.item--numberPicker {
    margin: 0 24px 0 44px;
}

.next-number-picker {
    display: inline-block;
}
.next-number-picker.next-number-picker-inline .next-btn.next-btn-normal, .next-number-picker.next-number-picker-inline .next-input {
    border: none;
}
.item-colQuantity {
    text-align: center;
    width: 216px;
}
.item-colSummary {
    text-align: right;
    color: var(--color-secondary,#666);
}
.item-removeIcon {
    color: var(--color-text-muted, #999999);
    cursor: pointer;
}

.item-removeIcon:hover {
    color: var(--color-price);
}
.item-colPublishPrice {
    text-align: center;
    width: 160px;
}
.item-colSubtotal {
    text-align: center;
    width: 150px;
}
.item-subtotal {
    color: var(--color-price);
    font-size: 14px;
}
.item-colMemo {
    text-align: center;
    width: 150px;
}
.item-memo {
    font-size: 14px;
}
.item-group-bottom-iconWrapper{
    background: #f7f7f7;
    border-top-left-radius: 4px;
    bottom: 7px;
    padding: 0 12px;
    position: absolute;
    right: 22px;
    text-align: right;
}

.item-group-bottom-icon:hover{
    color: var(--color-price);
}
.item-group-bottom-icon{
    color: var(--color-text-muted, #999999);
    cursor: pointer;
    padding: 8px;
}
.item-group-bottom-holder {
    min-height: 28px;
}

.cart-summary-container{
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden; /* 避免闪烁 */
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1); /* 更柔和的阴影 */
    background: #fff;
    border-radius: 0 0 8px 8px;

    /* 内容对齐 */
    margin: 15px auto 0;
    box-sizing: border-box;

    /* 定位上下文 */
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
}

.bottom-bar-stickyBlock {
    left: 160px;
    /*width: 1200px;*/
    /*position: fixed;*/
    bottom: 0;
    -webkit-box-shadow: 0 -2px 4px 0 hsl(0deg 0% 60% / 12%);
    box-shadow: 0 -2px 4px 0 hsl(0deg 0% 60% / 12%);
}
.bottom-bar-content {
    /*background-color: #fff;*/
    display: flex;
    background-color: #f7f7f7;
    /*min-height: 70px;*/
    /*padding: 0 20px;*/
}
.bottom-bar-leftPanel{
    flex-grow:1;
    padding-top: 20px;
}
.bottom-bar-rightPanel {
    /*float: right;*/
}
.bottom-bar-rightPanel .bottom-bar-infoPanel {
    display: inline-block;
    padding: 10px 0;
    vertical-align: top;
}
.bottom-bar-rightPanel .bottom-bar-totalInfoOnly {
    text-align: right;
    padding-top: 6px;
    padding-right: 6px;
}
.bottom-bar-rightPanel .bottom-bar-item {
    color: var(--color-text);
    font-size: 14px;
    margin-left: 16px;
}
.bottom-bar-totalPrice {
    font-size: 1.5em;
}
.bottom-bar-textStress {
    color: var(--color-price);
}
.bottom-bar-totalPrice .bottom-bar-usd {
    font-size: 0.7em;
}
.bottom-bar-rightPanel .bottom-bar-miscInfo {
    text-align: right;
}
.bottom-bar-rightPanel .bottom-bar-operationPanel {
    display: inline-block;
    padding: 14px 10px 14px 30px;
    vertical-align: top;
}
.next-btn.next-btn-primary {
    border-style: solid;
    background: #ff602d;
    border-color: transparent;
}
.next-btn>.next-btn-helper {
    text-decoration: inherit;
}
.next-btn>.next-btn-helper, .next-btn>div, .next-btn>span {
    display: inline-block;
    vertical-align: middle;
}
.next-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f5f5f5;
    border-color: #d9d9d9;
}
.next-btn.disabled .fa {
    color: #bfbfbf;
}

.cart-checkbox {
    position: absolute;
    opacity: 0;
    width: 100%;      /* 覆盖整个容器 */
    height: 100%;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.15s ease;
}
.checkbox-container, .select-all-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    margin:0 8px;
}
.select-all-container {
    margin-left:3px;
}
.checkbox-container::after, .select-all-container::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 精确居中 */
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: white;
}

/* 移除选中状态边框 */
.cart-checkbox:checked ~ .checkmark {
    background: var(--color-price);
    border-color: transparent; /* 移除边框避免蓝色线条 */
}

/* 优化对勾样式 */
.checkmark:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg); /* 精确居中并旋转 */
}
/* 移除焦点轮廓 */
.cart-checkbox:focus-visible ~ .checkmark {
    box-shadow: 0 0 0 2px rgba(255, 64, 0, 0.3);
    outline: none;
}

/* 新增/修改的CSS样式 */
.select-all-wrapper {
    display: flex !important;        /* 强制flex布局 */
    align-items: center;             /* 垂直居中 */
    gap: 8px;                        /* 元素间距 */
}

.select-all-label,.delete-all-btn {
    font-size: 14px;
    color: var(--color-secondary,#666);
    user-select: none;               /* 禁止文字选中 */
    transition: color 0.2s;
}
.delete-all-btn:hover {
    color: var(--color-price);
}

/* 悬停效果 */
.select-all-container:hover .select-all-label {
    color: var(--color-text);
}

/* 选中状态 */
.select-all-container input:checked ~ .select-all-label {
    color:var(--color-price);
    font-weight: 500;
}
/* summary位置处理 */
.bottom-bar-content .bottom-bar-leftPanel .select-all-wrapper{
    margin-left: 15px
}

/* 移动端优化 */
@media (max-width: 767px) {
    .checkbox-container {
        width: 20px;
        height: 20px;
    }

    .checkmark {
        width: 16px;
        height: 16px;
    }

    .checkmark:after {
        width: 4px;
        height: 8px;
    }
}


.empty-cart {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}
.empty-image {
    width: 100px;
    opacity: 0.6;
}
.empty-cart .content{
    margin-left: 20px;
}
h3 {
    color: var(--color-text-primary, #333);
    margin-bottom: 15px;
}
p {
    color: var(--color-text-secondary, #666666);
    margin-bottom: 30px;
}
.empty-cart .btn-explore {
    background: linear-gradient(135deg, var(--color-price-light), var(--color-price));
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    transition: transform 0.2s;
    display:inline-block;
    margin-top: 10px;
}
.empty-cart .btn-explore:hover {
    transform: translateY(-2px);
    color: white !important;
}

.login-prompt {
    --close-btn-size: 28px;
    position: relative;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    margin: 15px 20px;
    padding: 12px 40px 12px 20px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
    z-index: 50;
}

/* 移动端适配 */
.ns-mobile .login-prompt {
    margin: 45px 12px 0; /* 顶部留出空间 */
    padding: 12px 36px 12px 15px;
}
.ns-mobile .prompt-text{
    font-size: 13px;
    line-height: 1.4;
}

.ns-mobile .login-link{
    margin-top: 6px;
    display: inline-block;
}

.ns-mobile .prompt-content{
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fa-info-circle {
    color: var(--color-info);
    font-size: 20px;
    flex-shrink: 0;
}

.prompt-text {
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
}

.login-link {
    color: var(--color-primary);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: underline;
}

/* 关闭按钮优化 */
.prompt-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: var(--close-btn-size);
    height: var(--close-btn-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;

    svg {
        fill: #64748b;
        transition: fill 0.2s;
    }

    &:hover {
        background: rgba(0,0,0,0.05);
        svg { fill: #475569; }
    }

    /* 移动端优化 */
    .ns-mobile & {
        right: 4px;
        width: 24px;
        height: 24px;
        svg { width: 12px; height: 12px; }
    }
}

/* 动画优化 */
@keyframes slideIn {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}



/* 调整移动端数量控制器宽度 */
.ns-mobile .next-input-group {
    max-width: 140px; /* 控制整体宽度 */
    margin: 0 auto;   /* 居中显示 */
}
.ns-mobile .next-input.next-medium input{
    width: 100% !important; /* 输入框填满容器 */
    text-align: center;
}
.ns-mobile .next-number-picker.next-number-picker-inline.next-medium{
    border:none!important;
    margin:0;
    background: transparent;
    width:auto;
}

.ns-mobile .next-btn.next-medium.next-btn-normal{
    border: var(--color-border) 1px solid;
    border-radius: 10px;
    margin:0!important;
}
.next-input-group-addon:last-child, .next-input-group-addon:last-child>*{
    border-bottom-left-radius:0!important;
    border-top-left-radius:0!important;
}
.ns-mobile .next-number-picker.next-number-picker-inline .next-input{
    width:50px;
    border-top: var(--color-border) 1px solid;
    border-bottom: var(--color-border) 1px solid;
}

.nb-mobile label{line-height:0!important}
.ns-mobile .wap-item-specWrapper{
    cursor:pointer;
}
.ns-mobile .wap-item-imageWrapper{
    max-width: 18%;
    margin:0 0 0 10px;
    cursor:pointer;
    overflow: hidden;    /* 隐藏空白内容 */
}

.ns-mobile .wap-item-imageWrapper img{
    border:#eee 1px solid;
    border-radius: 8px;
}

.ns-mobile .wap-item-contentWrapper{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:0 0 0 10px;
    width:100%;
}
.ns-mobile .wap-item-priceWrapper{
    display:flex;
    justify-content:space-between;
}

/* 价格样式 */
.ns-mobile .amount-display-container {
    --symbol-font-size: clamp(12px, 3.5vw, 14px);
    --int-font-size: clamp(14px, 4.5vw, 18px);
    flex:1;
    align-items:center
}
.ns-mobile .amount-display-int {
    font-weight: 600;
    color: var(--color-price);
}
.ns-mobile .wap-item-quantityWrapper{
    margin-right:0;
    text-align:right;
    margin-top:0;
}
.ns-mobile .wap-item-quantityWrapper{
    -moz-box-flex: 1;
    flex: 1;
    display: -moz-box;
    display: flex;
    -moz-box-orient: horizontal;
    -moz-box-direction: normal;
    flex-direction: row;
    -moz-box-pack: justify;
    justify-content: space-between;
    -moz-box-align: center;
    align-items: center
}

/* 触摸反馈 */
.item-input-group:active {
    background-color: rgba(0,0,0,0.1);
}


/* 商品标题 */
.ns-mobile .wap-item-group-title {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.4;
    color: var(--color-text-primary,#333);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

/* 商品规格 */
.ns-mobile .wap-item-spec {
    padding: 1vw 2.1vw;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    background-color: #f9f9f9;
    border-radius: 0.6rem;
    line-height: 1.5;
}
.ns-mobile .wap-item-spec-text {
    font-size: clamp(12px, 3.2vw, 14px);
    color: var(--color-secondary,#666);
    word-break:break-all;
}

/* 操作按钮优化 */
.ns-mobile .item-removeIcon {
    font-size: 1.4rem;
    padding: 0.8rem;
    color: var(--color-secondary,#666);
    transition: color 0.2s;
}

.ns-mobile .item-removeIcon:active {
    color: var(--color-price);
}


@keyframes loading {
    to { background-position: -200% 0; }
}

/* 断点调整 */
@media (min-width: 480px) {
    .ns-mobile .wap-item-group-thumbnailWrapper {
        width: 25vw;
    }

    .ns-mobile .wap-item-group-title {
        -webkit-line-clamp: 3;
    }
}

/* 横屏优化 */
@media (orientation: landscape) {
    .wap-bottom-bar-container {
        position: sticky;
        bottom: env(safe-area-inset-bottom);
    }
}

.mobile-context-menu {
    position: absolute;
    border-radius: 8px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    width:100%;
    margin-top:-70px;
    padding: 10px 10px 10px;
    background-color:aliceblue;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.ns-mobile .select-all-wrapper{
    margin-left:8px;
}

/* 滑动操作反馈 */
.mobile-item-container {
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-item-container.show-actions {
    transform: translateX(-80px);
}

.mobile-summary {
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-bottom-left-radius:1.6vw;
    border-bottom-right-radius:1.6vw;
    display:flex;
    justify-content:space-between;
}
.summary-rightPanel{
    text-align:right;
}

.mobile-summary-total {
    display: flex;
    justify-content: end;
    align-items: center;
    font-size: 16px;
}

.total-amount {
    color: var(--color-price);
    font-weight: bold;
    font-size: 20px;
}

.total-amount .currency {
    font-size: 16px;
}

.mobile-summary-details .detail-item {
    display: flex;
    justify-content: end;
    color: var(--color-secondary,#666);
    font-size: 14px;
    gap: 8px;
}

.mobile-summary-packaging {
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--color-secondary,#666);
    font-size: 12px;
}

.summary-note {
    text-align: right;
    color: var(--color-text-muted, #999999);
    font-size: 12px;
}

.submission-tip-wrapper {
    border-left: 4px solid var(--color-info, #1A73E8);
    padding: 1rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
}
.submission-tip-wrapper h4 {
    margin-bottom: 0.5em;
    color: var(--color-text-primary,#333);

}
.submission-tip-wrapper ol {
    padding-left: 1.2rem
}
.submission-tip-wrapper ol li{
    margin: 5px 0;
}

.submission-tip-wrapper .tip {
    color:var(--color-price)
}
.submission-tip-wrapper .email{
    color: var(--color-info, #1A73E8);
    text-decoration: underline;
}


