
.category-btn {
    background-color: #7a8cf39e;
    align-items: center;
    padding: 8px 12px;
    margin: 0 12px 8px 0;
    border-radius: 15px;
    /*  0 0 10px 5px rgba(199, 199, 199, .1);*/
    -moz-box-shadow: 0 0 10px 5px rgba(199, 199, 199, .1);
    box-shadow: 0 0 10px 5px rgba(199, 199, 199, .1);
    border: 3px solid transparent;
    font-weight: bolder;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    font-size: 16px;
    color: white;
    transition: transform 0.4s ease;
}

.nav-main-link .nav-main-link-name {
    font-weight: bold;
    font-size: 15px;
}

.category-btn-icon {
    height: 35px;
    border-radius: 6px;
}

.category-icon {
    height: 32px;
    width: 32px;
    border-radius: 6px;
    margin-right: 3px;
}


.item-card-icon {
    height: 60px;
    width: 60px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    overflow: hidden; /* 隐藏溢出容器的部分 */
    display: flex; /* 使用Flexbox来居中图片 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    margin: 0 auto;
    border-radius: 20px;
}

.item-card-icon img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; /* 裁剪图片以保持宽高比，覆盖容器 */
    object-position: center; /* 图片居中 */
}

.category-btn-text {
    padding-left: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.item-box {
    transition: transform 0.5s ease-in-out; /* 应用于位置变化 */
    animation: fadeIn 0.5s ease-out; /* 使用fadeIn动画，持续时间1秒，缓动函数ease-out */
}

.home-category-panel {
    background: linear-gradient(to right, #e8e8ffa6, #defdffe6) !important;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px !important;
    border-radius: 18px !important;
}

 .home-list-card {
    box-shadow: rgba(15, 23, 42, 0.06) 0px 8px 24px !important;
    background: rgba(255, 255, 255, 0.77) !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    border-image: initial !important;
    border-radius: 18px !important;
 }

 .home-panel-header {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 12px 14px;
     font-weight: 800;
     color: #2563EB;
     border-bottom: 1px solid rgba(15, 23, 42, 0.08);
     background: rgba(255, 255, 255, 0.55);
     border-top-left-radius: 18px;
     border-top-right-radius: 18px;
     font-size: 16px;
 }

 .home-subcategory-folders {
     display: flex;
     flex-direction: column;
     gap: 10px;
 }

 .home-subcategory-folder {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 12px 14px;
     border-radius: 12px;
     background: rgba(255, 255, 255, 0.75);
     border: 1px solid rgba(15, 23, 42, 0.08);
     text-decoration: none;
     color: inherit;
     cursor: pointer;
 }

 .home-subcategory-folder:hover {
     background: rgba(255, 255, 255, 0.9);
     border-color: rgba(37, 99, 235, 0.35);
 }

 .home-subcategory-folder-icon {
     width: 28px;
     height: 28px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border-radius: 8px;
     background: rgba(122, 140, 243, 0.18);
     color: #7a8cf3;
     flex: 0 0 auto;
 }

 .home-subcategory-folder-name {
     font-weight: 800;
     font-size: 14px;
     line-height: 1.2;
     flex: 1 1 auto;
     min-width: 0;
 }

 .home-subcategory-folder-right {
     margin-left: auto;
     display: inline-flex;
     align-items: center;
     gap: 8px;
     width: 120px;
     justify-content: flex-end;
 }

 .home-subcategory-folder-toggle-text {
     font-weight: 800;
     font-size: 12px;
     color: rgba(15, 23, 42, 0.65);
 }

 @media (max-width: 768px) {
     .home-subcategory-folder-right {
         width: 96px;
     }
 }

 .home-subcategory-folder-arrow {
     width: 22px;
     height: 22px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border-radius: 999px;
     background: rgba(15, 23, 42, 0.06);
     color: rgba(15, 23, 42, 0.65);
     transition: transform 0.2s ease;
 }

 .home-subcategory-folder.is-collapsed .home-subcategory-folder-arrow {
     transform: rotate(-90deg);
 }

 .home-subcategory-folder-count {
     margin-left: auto;
     padding: 2px 10px;
     border-radius: 999px;
     background: rgba(37, 99, 235, 0.12);
     color: #2563EB;
     font-weight: 800;
     font-size: 12px;
 }

 .home-card-header {
     padding: 12px 14px;
     border-bottom: 1px solid rgba(15, 23, 42, 0.08);
     background: rgba(255, 255, 255, 0.85);
     border-top-left-radius: 18px;
     border-top-right-radius: 18px;
 }

 .home-card-title {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     margin: 0;
     font-weight: 800;
 }

 .home-notice-header .home-card-title {
     color: #f44336;
     font-size: 20px;
 }

 .home-notice-extra {
     background: linear-gradient(90deg,#ff9800,#ff5722);
     color: #fff;
     padding: 5px 16px;
     font-size: 14px;
     border-radius: 999px;
     font-weight: 800;
     margin-left: 14px;
     box-shadow: 0 3px 8px rgba(0,0,0,.18);
     display: inline-flex;
     align-items: center;
     animation: homeNoticeBreath 1.8s ease-in-out infinite;
     transform-origin: center center;
 }

 @keyframes homeNoticeBreath {
     0%{
         transform: scale(1);
         box-shadow: 0 3px 8px rgba(0,0,0,.18);
     }
     50%{
         transform: scale(1.06);
         box-shadow: 0 6px 16px rgba(0,0,0,.25);
     }
     100%{
         transform: scale(1);
         box-shadow: 0 3px 8px rgba(0,0,0,.18);
     }
 }

 @media (max-width: 576px){
     .home-notice-header .home-card-title{
         display:flex;
         flex-wrap:wrap;
         width:100%;
     }
     .home-notice-extra{
         margin: 8px auto 0;
     }
 }

 .home-panel-body {
     border-bottom-left-radius: 18px;
     border-bottom-right-radius: 18px;
 }

 .home-category-header {
     background: linear-gradient(to right, rgba(232, 232, 255, 0.55), rgba(222, 253, 255, 0.55));
 }

.home-search-card {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    border-radius: 18px !important;
}

.home-search-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
}

.home-search-label {
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 10px !important;
    color: #2563EB !important;
    font-weight: 800;
    line-height: 40px;
}

 .home-search-group {
     width: 100%;
     align-items: center;
     gap: 10px;
 }

 .home-search-group .input-group-text {
     border-radius: 999px;
 }

.home-search-input {
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.85);
    flex: 1 1 320px;
    text-align: center;
}

 .home-search-input::placeholder {
     text-align: center;
 }

 .search-order-keyword {
     text-align: center;
 }

 .search-order-keyword::placeholder {
     text-align: center;
 }

.home-search-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
}

 #page-container.main-content-boxed>#main-container .content,
 #page-container.main-content-boxed>#page-footer .content,
 #page-container.main-content-boxed>#page-header .content,
 #page-container.main-content-boxed>#page-header .content-header {
     max-width: 85%;
 }

 @media (max-width: 768px) {
     #page-container.main-content-boxed>#main-container .content,
     #page-container.main-content-boxed>#page-footer .content,
     #page-container.main-content-boxed>#page-header .content,
     #page-container.main-content-boxed>#page-header .content-header {
         max-width: 100%;
     }
 }

.home-category-hint {
    color: #ff4d4f;
    font-weight: 800;
    margin-left: 8px;
    font-size: 13px;
}

 .home-table-wrap {
     width: 100%;
 }

 .home-table {
     background: transparent;
     margin: 0;
 }

 .home-table thead th {
     font-weight: 800;
     font-size: 13px;
     color: rgba(15, 23, 42, 0.75);
     border-bottom: 1px solid rgba(15, 23, 42, 0.08);
     padding: 10px 12px;
     white-space: nowrap;
 }

 .home-table tbody td {
     padding: 10px 12px;
     border-top: 1px solid rgba(15, 23, 42, 0.06);
     vertical-align: middle;
 }

 .home-item-row:hover {
     background: rgba(255, 255, 255, 0.55);
 }

 .home-item-name-link {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     color: inherit;
     text-decoration: none;
 }

 .home-item-table-icon {
     width: 40px;
     height: 40px;
     border-radius: 8px;
     object-fit: cover;
     flex: 0 0 auto;
 }

 .home-item-table-name {
     font-weight: 700;
     font-size: 14px;
     line-height: 1.2;
 }

 .home-col-stock {
     width: 90px;
 }

 .home-col-price {
     width: 110px;
 }

 .home-col-op {
     width: 120px;
 }

 .home-btn-buy,
 .home-btn-disabled {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-width: 78px;
     height: 36px;
     padding: 0 18px;
     border-radius: 999px;
     font-weight: 900;
     font-size: 16px;
     line-height: 1;
     text-decoration: none;
 }

 .home-btn-buy {
     background: linear-gradient(90deg,#FF6A00,#FF3B01);
     color: #fff !important;
 }

 .home-btn-buy:hover {
     filter: brightness(1.05);
 }

 .home-btn-disabled {
     background: #E5E7EB;
     color: #9CA3AF;
     cursor: not-allowed;
     user-select: none;
 }

 @media (max-width: 768px) {
     .home-table thead {
         display: table-header-group;
     }
     .home-table tbody td {
         padding: 10px 8px;
     }
     .home-table thead th {
         padding: 8px 8px;
         font-size: 12px;
     }
     .home-item-table-name {
         font-size: 13px;
     }
     .home-btn-buy,
     .home-btn-disabled {
         min-width: 66px;
         height: 32px;
         font-size: 14px;
         padding: 0 14px;
     }
     .home-item-table-icon {
         width: 34px;
         height: 34px;
         border-radius: 8px;
     }
 }

.block-notice {
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.block-notice .content-notice {
    text-shadow: none;
}

.block-notice .content-notice .notice-title {
    border-top-left-radius: 14px !important;
}

.home-category-title {
    font-weight: bolder;
    color: #5077c0;
    font-size: 16px;
    margin-bottom: 10px;
}

.home-item-strip {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    border-radius: 18px !important;
}

.home-category-tree .nav-main-submenu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    position: static !important;
}

/* ensure root category list is visible (OneUI may hide nav-main-submenu by default) */
 .home-category-tree > .nav-main-submenu,
 .home-category-tree > ul.nav-main-submenu {
     display: block !important;
     height: auto !important;
     overflow: visible !important;
 }

/* default collapsed for nested categories (cat_html puts aria-expanded on the <a>) */
 .home-category-tree .nav-main-link-submenu + .nav-main-submenu {
     display: none;
 }

 .home-category-tree .nav-main-item.open > .nav-main-submenu,
 .home-category-tree .nav-main-link-submenu[aria-expanded="true"] + .nav-main-submenu {
     display: block;
 }

.home-category-tree .nav-main-submenu .nav-main-item {
    opacity: 1 !important;
    transform: none !important;
}

.home-category-tree .nav-main-item {
    margin-bottom: 6px;
}

.home-category-tree .nav-main-link {
    display: flex;
    align-items: center;
    padding: 8px 25px 7px 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.55);
    box-shadow: rgba(100, 100, 111, 0.12) 0px 7px 18px 0px;
    color: #334155;
}

.home-category-tree .category-count-badge {
    margin-left: auto;
    background: #2563EB;
    color: #fff;
    min-width: 28px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 20px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}
.home-category-tree .nav-main-link-name {
    color: #334155;
    font-size: 15px;
}

.home-category-tree .nav-main-link:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.home-category-tree .nav-main-submenu .nav-main-submenu {
     padding-left: 12px;
     margin-top: 6px;
 }

.home-item-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

html.home-view-grid .home-list-table-header,
body.home-view-grid .home-list-table-header {
     grid-template-columns: 1fr 120px;
 }

html.home-view-grid .home-list-th-stock,
body.home-view-grid .home-list-th-stock,
html.home-view-grid .home-list-th-price,
body.home-view-grid .home-list-th-price {
     display: none;
 }

html.home-view-grid .home-list-th-op,
body.home-view-grid .home-list-th-op {
     text-align: right;
 }

html.home-view-grid .home-item-list,
body.home-view-grid .home-item-list {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 12px;
 }

html.home-view-grid .home-row-link,
body.home-view-grid .home-row-link {
     height: 100%;
 }

html.home-view-grid .home-list-row,
body.home-view-grid .home-list-row {
     grid-template-columns: 1fr 1fr 120px;
     grid-template-rows: auto auto;
     gap: 10px 12px;
     padding: 14px;
     align-items: center;
     border: 1px solid rgba(15, 23, 42, 0.08);
     border-radius: 14px;
     background: rgba(255, 255, 255, 0.72);
     box-shadow: rgba(15, 23, 42, 0.05) 0px 8px 24px;
     height: 100%;
 }

html.home-view-grid .home-list-row::after,
body.home-view-grid .home-list-row::after {
     content: '';
     grid-column: 1 / -1;
     grid-row: 2;
     display: block;
     justify-self: stretch;
     align-self: start;
     height: 1px;
     background: rgba(15, 23, 42, 0.06);
     pointer-events: none;
 }

html.home-view-grid .home-row-link:hover .home-list-row,
body.home-view-grid .home-row-link:hover .home-list-row {
     background: rgba(255, 255, 255, 0.9);
 }

html.home-view-grid .home-list-td-name,
body.home-view-grid .home-list-td-name {
     grid-column: 1 / -1;
     grid-row: 1;
     display: flex;
     align-items: center;
     gap: 10px;
     min-width: 0;
 }

html.home-view-grid .home-list-row-icon,
body.home-view-grid .home-list-row-icon {
     width: 54px;
     height: 54px;
     border-radius: 12px;
     flex: 0 0 auto;
 }

html.home-view-grid .home-list-row-title,
body.home-view-grid .home-list-row-title {
     font-size: 13px;
     line-height: 1.25;
     flex: 1 1 auto;
     min-width: 0;
     overflow: hidden;
     text-overflow: ellipsis;
     display: -webkit-box;
     line-clamp: 2;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
 }

html.home-view-grid .home-list-td-stock,
body.home-view-grid .home-list-td-stock {
     grid-column: 1;
     grid-row: 2;
     text-align: left;
     color: #E11D48;
     font-weight: 900;
     padding-top: 10px;
     white-space: nowrap;
 }

html.home-view-grid .home-list-td-stock::before,
body.home-view-grid .home-list-td-stock::before {
     content: '库存：';
     color: rgba(15, 23, 42, 0.55);
     font-weight: 800;
     margin-right: 4px;
 }

html.home-view-grid .home-list-td-price,
body.home-view-grid .home-list-td-price {
     grid-column: 2;
     grid-row: 2;
     text-align: left;
     color: rgba(15, 23, 42, 0.75);
     font-weight: 800;
     padding-top: 10px;
     white-space: nowrap;
 }

html.home-view-grid .home-list-td-price::before,
body.home-view-grid .home-list-td-price::before {
     content: '价格：';
     color: rgba(15, 23, 42, 0.55);
     font-weight: 800;
     margin-right: 4px;
 }

html.home-view-grid .home-list-td-op,
body.home-view-grid .home-list-td-op {
     grid-column: 3;
     grid-row: 2;
     text-align: right;
     padding-top: 10px;
     justify-self: end;
     white-space: nowrap;
 }

html.home-view-grid .home-item-buy,
body.home-view-grid .home-item-buy,
html.home-view-grid .home-item-buy-disabled,
body.home-view-grid .home-item-buy-disabled {
     min-width: 64px;
     height: 32px;
     font-size: 13px;
     padding: 0 12px;
 }

html.home-view-grid .home-list-mobile-meta-inline,
body.home-view-grid .home-list-mobile-meta-inline {
     display: none !important;
 }

 @media (max-width: 992px) {
     html.home-view-grid .home-item-list,
     body.home-view-grid .home-item-list {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }
 }

 @media (max-width: 576px) {
     html.home-view-grid .home-item-list,
     body.home-view-grid .home-item-list {
         grid-template-columns: 1fr;
     }
     html.home-view-grid .home-list-row-icon,
     body.home-view-grid .home-list-row-icon {
         width: 54px;
         height: 54px;
     }

     html.home-view-grid .home-list-row,
     body.home-view-grid .home-list-row {
         grid-template-columns: 1fr auto;
         grid-template-rows: auto auto auto;
         gap: 8px 10px;
         padding: 12px;
         align-items: center;
     }

     html.home-view-grid .home-list-td-name,
     body.home-view-grid .home-list-td-name {
         grid-column: 1 / -1;
         grid-row: 1;
     }

     html.home-view-grid .home-list-td-stock,
     body.home-view-grid .home-list-td-stock {
         grid-column: 1;
         grid-row: 2;
         padding-top: 8px;
     }

     html.home-view-grid .home-list-td-price,
     body.home-view-grid .home-list-td-price {
         grid-column: 1;
         grid-row: 3;
         padding-top: 0;
     }

     html.home-view-grid .home-list-td-op,
     body.home-view-grid .home-list-td-op {
         grid-column: 2;
         grid-row: 2 / span 2;
         padding-top: 8px;
         justify-self: end;
         align-self: center;
     }
 }

 .home-list-table-header {
     display: grid;
     grid-template-columns: 1fr 90px 110px 120px;
     align-items: center;
     gap: 17px;
     padding: 10px 12px;
     border-bottom: 1px solid rgba(15, 23, 42, 0.08);
     color: rgba(15, 23, 42, 0.75);
     font-weight: 900;
     font-size: 13px;
     position: relative;
     padding-right: 60px;
 }

 .home-list-th-op {
     position: absolute;
     right: 12px;
     top: 50%;
     transform: translateY(-50%);
     width: 44px;
     display: flex;
     justify-content: flex-end;
     align-items: center;
 }

 .home-list-th-name {
     display: inline-flex;
     align-items: center;
     gap: 10px;
     min-width: 0;
 }

 .home-list-th-title {
     color: #8B5CF6;
 }

 .home-list-th-sub {
     color: #ff4d4f;
     font-weight: 800;
 }

 .home-list-th-stock,
 .home-list-th-price {
     text-align: center;
     font-size: 14px;
 }

 .home-row-link {
     display: block;
     text-decoration: none;
     color: inherit;
 }

 .home-list-row {
     display: grid;
     grid-template-columns: 1fr 90px 110px 120px;
     align-items: center;
     gap: 12px;
     padding: 15px 12px;
     border-top: 1px solid rgba(15, 23, 42, 0.06);
 }

 .home-row-link:hover .home-list-row {
     background: rgba(255, 255, 255, 0.55);
 }

 .home-list-header {
     display: block;
 }

 .home-list-table-header-in-title {
     width: 100%;
     padding: 0;
     border-bottom: 0;
 }

 .home-list-main-title {
     color: #2563EB;
     font-weight: 900;
     font-size: 16px;
 }

 .home-list-td-name {
     display: flex;
     align-items: center;
     gap: 10px;
     min-width: 0;
     position: relative;
 }

 .home-list-row-icon {
     width: 38px;
     height: 38px;
     border-radius: 10px;
     object-fit: cover;
     flex: 0 0 auto;
 }

 .home-list-row-title {
     font-weight: 700;
     font-size: 14px;
     line-height: 1.25;
     color: rgba(15, 23, 42, 0.9);
     flex: 1 1 auto;
     min-width: 0;
     white-space: normal !important;
     overflow: visible !important;
     text-overflow: clip !important;
     word-break: break-word;
 }

 .home-list-td-stock {
     text-align: center;
     color: #A855F7;
     font-weight: 900;
 }

 .home-list-td-price {
     text-align: center;
     color: #16A34A;
     font-weight: 900;
 }

 .home-list-td-op {
     text-align: center;
 }

 @media (max-width: 768px) {
     .home-list-table-header,
     .home-list-row {
         grid-template-columns: 1fr 96px;
         grid-template-rows: auto auto;
         gap: 8px;
     }
     .home-list-th-name {
         flex-wrap: wrap;
         gap: 6px;
     }
     .home-list-th-sub {
         font-size: 12px;
     }
     .home-list-row-icon {
         width: 34px;
         height: 34px;
         border-radius: 10px;
     }

     .home-list-th-stock,
     .home-list-th-price {
         display: none;
     }

     html.home-view-grid .home-list-th-op,
     body.home-view-grid .home-list-th-op {
         display: flex !important;
         justify-content: flex-end;
         align-items: center;
     }

     .home-list-td-name {
         align-items: anchor-center;
         flex-wrap: wrap;
         grid-column: 1 / -1;
         grid-row: 1;
     }

     .home-list-td-stock {
         grid-column: 1;
         grid-row: 2;
         text-align: left;
         color: rgba(15, 23, 42, 0.72);
         font-weight: 700;
     }

     .home-list-td-price {
         display: none;
     }

     .home-list-td-op {
         grid-column: 2;
         grid-row: 2;
         text-align: right;
         align-self: center;
         justify-self: end;
     }

     .home-list-row-title {
         width: calc(100% - 44px);
         margin-left: 0;
     }

     html.home-view-grid .home-list-td-name,
     body.home-view-grid .home-list-td-name {
         display: flex !important;
         flex-direction: row !important;
         align-items: center !important;
         flex-wrap: nowrap !important;
         gap: 10px !important;
     }

     html.home-view-grid .home-list-row-title,
     body.home-view-grid .home-list-row-title {
         width: auto !important;
         margin-left: 0 !important;
     }

     .home-list-stock-only {
         display: none !important;
     }

     .home-list-mobile-meta-inline {
         display: inline-flex !important;
         align-items: center;
         gap: 10px;
         font-size: 12px;
     }

     .home-list-mobile-meta-inline .home-meta-k,
     .home-list-mobile-meta-inline .home-meta-v {
         display: inline !important;
         opacity: 1 !important;
         visibility: visible !important;
     }

     .home-meta-k {
         color: rgba(15, 23, 42, 0.6);
         font-weight: 800;
     }

     .home-meta-stock {
         color: #A855F7;
         font-weight: 900;
     }

     .home-meta-price {
         color: #16A34A;
         font-weight: 900;
     }

     html.home-view-grid .home-list-row,
     body.home-view-grid .home-list-row {
         grid-template-columns: 1fr 1fr 120px !important;
         grid-template-rows: auto auto !important;
         gap: 10px 12px !important;
         padding: 14px !important;
         align-items: center !important;
     }

     html.home-view-grid .home-list-row-icon,
     body.home-view-grid .home-list-row-icon {
         width: 54px !important;
         height: 54px !important;
         border-radius: 12px !important;
     }

     html.home-view-grid .home-list-td-price,
     body.home-view-grid .home-list-td-price {
         display: block !important;
         visibility: visible !important;
     }

     html.home-view-grid .home-list-stock-only,
     body.home-view-grid .home-list-stock-only {
         display: inline !important;
         visibility: visible !important;
     }

     html.home-view-grid .home-list-td-stock,
     body.home-view-grid .home-list-td-stock,
     html.home-view-grid .home-list-td-price,
     body.home-view-grid .home-list-td-price {
         display: flex !important;
         align-items: center;
         gap: 4px;
     }

     html.home-view-grid .home-list-mobile-meta-inline,
     body.home-view-grid .home-list-mobile-meta-inline {
         display: none !important;
     }
 }

 @media (max-width: 576px) {
     html.home-view-grid .home-list-row,
     body.home-view-grid .home-list-row {
         grid-template-columns: 1fr 1fr auto !important;
         grid-template-rows: auto auto !important;
         gap: 8px 10px !important;
         padding: 12px !important;
         align-items: center !important;
     }

     html.home-view-grid .home-list-td-name,
     body.home-view-grid .home-list-td-name {
         grid-column: 1 / -1 !important;
         grid-row: 1 !important;
     }

     html.home-view-grid .home-list-td-stock,
     body.home-view-grid .home-list-td-stock {
         grid-column: 1 !important;
         grid-row: 2 !important;
         padding-top: 8px !important;
         display: flex !important;
         align-items: center;
         gap: 4px;
     }

     html.home-view-grid .home-list-td-price,
     body.home-view-grid .home-list-td-price {
         grid-column: 2 !important;
         grid-row: 2 !important;
         padding-top: 8px !important;
         display: flex !important;
         align-items: center;
         gap: 4px;
     }

     html.home-view-grid .home-list-td-op,
     body.home-view-grid .home-list-td-op {
         grid-column: 3 !important;
         grid-row: 2 !important;
         padding-top: 8px !important;
         justify-self: end !important;
         align-self: center !important;
     }

     html.home-view-grid .home-list-row-icon,
     body.home-view-grid .home-list-row-icon {
         width: 54px !important;
         height: 54px !important;
     }
 }

 .home-list-mobile-meta-inline {
     display: none;
 }

 .home-list-stock-only {
     display: inline;
 }

.home-item-link {
    text-decoration: none;
    display: block;
}

.home-item-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(to right, #e8e8ffa6, #defdffe6) !important;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px !important;
    border-radius: 18px !important;
    position: relative;
}

.home-item-strip:hover {
    transform: translateY(-2px);
}

.home-item-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 20px 45px -18px, rgba(0, 0, 0, 0.25) 0px 12px 24px -18px;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.home-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-item-title {
    font-weight: bolder;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    overflow: visible;
    text-overflow: initial;
    white-space: normal;
    word-break: break-word;
}

 .home-item-price-label {
     font-weight: 900;
     margin-right: 6px;
 }

 .home-item-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(90deg,#FF6A00,#FF3B01);
    color: #fff;
    flex: 0 0 auto;
}

 .home-item-buy-disabled {
     background: #E5E7EB;
     color: #9CA3AF;
 }

.home-item-price {
    color: #fff;
    background-color: #18b346ab;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    flex: 0 0 auto;
}

.home-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-weight: bolder;
    font-size: 12px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-item-bottom .item-number {
    color: #60eeb7 !important;
}

.item-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 25px !important;
    filter: blur(4px);
}

.item-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .1);
    border-radius: 25px;
}

.ribbon-item-price {
    color: #fff;
    background-color: #18b346ab;
    position: absolute;
    top: 1.75rem;
    right: 0;
    padding: 0 .75rem;
    height: 2.25rem;
    line-height: 2.25rem;
    z-index: 5;
    font-weight: 700;
    border-top-left-radius: .375rem;
    border-bottom-left-radius: .375rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.support-wholesale {
    position: absolute;
    top: 10px;
    left: 10px;
}

.ribbon-item-box::before {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    content: "";
}

.ribbon-item-stock {
    background-color: #00b8ff52;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    padding: 0 .75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    z-index: 5;
    font-weight: bolder;
    font-size: 12px;
    text-align: center;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    display: flex;
    justify-content: space-between; /* 左右对齐 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ribbon-item-stock .item-stock {
    color: white;
    margin-left: 10px;
}

.ribbon-item-stock .item-sold {
    color: white;
    margin-right: 10px;
}


.item-block .item-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.ribbon-item-stock .item-stock .item-number {
    color: #60eeb7 !important;
}

.ribbon-item-stock .item-sold .item-number {
    color: #b4ee60 !important;
}

.block-notice {
    position: relative;
    border-radius: 25px !important;
}

.block-notice .content-notice {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
}

.block-notice .content-notice p {
    margin: 0;
}

.notice-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 25px !important;
    filter: blur(4px);
}

.notice-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .1);
    border-radius: 25px;
}

.block-notice .content-notice .notice-title {
    border-top-left-radius: 25px !important;
}

.item-image-main {
    background: linear-gradient(to right, rgb(156 119 255 / 33%), rgb(244 255 249));
    padding: 2px !important;
    height: 236px ;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 10px;
}

.item-image-main .img-link {
    display: revert !important;
}

.item-image-show {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.item-image-list {
    margin-top: 5px;
    text-align: center;
    background: linear-gradient(to right, rgb(106 151 181 / 7%), rgb(233 213 252 / 27%));
    border-radius: 10px;
    padding: 5px 0px;
    display: flex; /* 使用 flex 布局使图片横向排列 */
    overflow-x: hidden; /* 隐藏水平滚动条但允许滚动 */
    overflow-y: hidden;
    white-space: nowrap; /* 防止图片换行 */
    position: relative; /* 定位，以便于控制滚动 */
}

.item-image-list .item-image-sku-mini.image-active {
    border: 1px solid #ff87c4;
}

.item-image-list .item-image-sku-mini:hover {
    transform: scale(1.1);
}

.item-image-list .item-image-sku-mini:first-child {
    margin-left: 2px;
}

.item-image-list .item-image-sku-mini {
    cursor: pointer;
    border-radius: 4px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    display: inline-block;
    transition: transform 0.1s ease;
    transform: scale(1);
    flex: 0 0 auto;
    margin-right: 5px;
}

.item-image-list img {
    height: 64px;
    width: 64px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .item-image-main,
    .item-image-list {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .category-btn:not(article) {
        border: none;
        transition: all 0.4s;
    }

    .category-btn:not(article):hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 8px rgba(73, 90, 47, .6);
    }

    .category-submenu {
        width: 100vh !important;
    }

    .item-block:not(article) {
        transition: all 0.4s;
    }

    .item-block:not(article):hover {
        transform: translateY(-4px);
        box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    }
}

@media (max-width: 767.98px) {
    .category-btn:active {
        transform: scale(1.01);
    }

    .item-block:active {
        transform: scale(1.01);
    }

    .nav-main-horizontal.nav-main-hover .nav-main-item:hover > .nav-main-submenu {
        padding-left: 2rem !important;
    }
}


/**
商品页面
 */

.item-title-content {
    background: #ebeef2;
    background: linear-gradient(to right, rgb(106 151 181 / 7%), rgb(233 213 252 / 27%));
    border-radius: 10px;
    padding: 15px;
}

.item-controls {
    margin-top: 5px;
    /*   background: #ebeef2;*/
    /*background: linear-gradient(to right, rgb(106 151 181 / 7%), rgb(233 213 252 / 27%));*/
    border-radius: 10px;
    padding: 15px;
}

.sku-wrapper {
    display: flex; /* 启用Flexbox */
    flex-wrap: wrap; /* 允许子元素换行 */
}

.sku-item {
    flex: 0 1 auto;
    display: inline-block;
    margin-right: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #ffffffa6;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    background: linear-gradient(to right, rgb(211, 204, 227), rgb(233, 228, 240));
    align-items: center;
    display: flex;
    margin-top: 4px;
    margin-bottom: 4px;
    transition: transform 0.5s ease-in-out; /* 应用于位置变化 */
    animation: fadeIn 0.5s ease-out; /* 使用fadeIn动画，持续时间1秒，缓动函数ease-out */
}

.sku-current {
    border: 1px solid #87cbd485;
    background: linear-gradient(to right, rgb(185 241 215), rgb(243 255 246)) !important;
}

.sku-wrapper .sku-item .sku-icon {
    display: flex;
    align-items: center; /* 确保图片在.sku-icon内垂直居中 */
    justify-content: center; /* 如果你还想要图片水平居中 */
    margin-right: 5px;
}

.sku-wrapper .sku-item .sku-icon img {
    height: 24px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 4px;
}

.sku-cate-td {
    vertical-align: middle;
    padding: 0 0 0 10px !important;
}

.sku-cate-td .cate-name {
    font-size: 16px;
    color: #7f7f7f;
    font-weight: revert;
}

.table .sku-attr-value {
    word-break: break-word; /* 对于较长的单词进行断行 */
    overflow-wrap: break-word; /* 确保内容被适当地包裹 */
}

.item-controls .form-check {
    min-height: inherit !important;
    margin-bottom: inherit !important;
    font-size: 16px;
}

@media (max-width: 767.98px) {
    .sku-item:active {
        transform: scale(1.01);
    }

    .introduce-content img {
        height: auto !important;
    }

    .introduce-content video {
        height: auto !important;
    }

    .introduce-content iframe {
        height: auto !important;
    }
}

@media (min-width: 992px) {
    .sku-item:not(article) {
        transition: all 0.4s;
    }

    .sku-item:not(article):hover {
        transform: translateY(-4px);
        box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    }
}

.introduce-content img {
    max-width: 100%;
}

.introduce-content video {
    max-width: 100%;
}

.introduce-content iframe {
    max-width: 100%;
}

.shop-checkout-btn {
    display: flex; /* 按钮并排显示 */
    
}

.d-hide {
    display: none !important;
}

.checkout-btn {
    flex: 0 1 auto; /* 确保按钮平均分配空间 */
    border: none; /* 移除边框 */
    color: white; /* 文字颜色设置为白色 */
    padding: 10px 20px; /* 按钮内边距 */
    cursor: pointer; /* 鼠标悬停时显示指针 */
    outline: none; /* 移除焦点时的边框 */
    box-shadow: rgba(255, 203, 0, 0.2) 0px 9px 13px 0px;
    width: 160px;
}


.btn-buy-now {
    background: linear-gradient(90deg, rgb(255, 119, 0), rgb(255, 73, 0)); /* 左按钮背景渐变 */
    border-right: none; /* 移除右边框以避免中间出现间隔 */
}

.btn-add-cart {
    background: linear-gradient(90deg, rgb(255, 203, 0), rgb(255, 148, 2)); /* 右按钮背景渐变 */
}

.btn-no-stock {
    background: linear-gradient(90deg, #d9dfe8, #999);
    border-radius: 34px;
}

/* 为了更好的视觉效果，可能需要调整按钮的圆角 */
.shop-checkout-btn .btn-buy-now {
    border-top-left-radius: 34px; /* 左上角圆角 */
    border-bottom-left-radius: 34px; /* 左下角圆角 */
}

.shop-checkout-btn .btn-add-cart, .shop-checkout-btn .btn-add-stock {
    border-top-right-radius: 34px; /* 右上角圆角 */
    border-bottom-right-radius: 34px; /* 右下角圆角 */
}

.bg-gradient-blue {
    background: linear-gradient(to right, rgb(106 151 181 / 7%), rgb(233 213 252 / 27%));
}

.bg-lime-green {
    background: #44ca6d;
}

.bg-light-gray {
    background: #d2d2d2;
}


/**
checkout 页面
 */
/*
.pay-wrapper {
    display: flex; !* 启用Flexbox *!
    flex-wrap: wrap; !* 允许子元素换行 *!
}

.pay-item {
    flex: 0 1 auto;
    margin-right: 10px;
    padding: 8px 16px;
    border-radius: 15px;
    background-color: #ffffffa6;
    border: none;
    cursor: pointer;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
    background: linear-gradient(to right, rgb(177 255 219), rgb(246 246 255));
    align-items: center;
    display: flex;
    margin-top: 4px;
    margin-bottom: 4px;
    transition: transform 0.5s ease-in-out; !* 应用于位置变化 *!
    animation: fadeIn 0.5s ease-out; !* 使用fadeIn动画，持续时间1秒，缓动函数ease-out *!
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #61af61;
}

.pay-current {
    border: none;
    background: linear-gradient(to right, rgb(0 113 192), rgb(255 120 227)) !important;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.pay-wrapper .pay-item .pay-icon {
    display: flex;
    align-items: center; !* 确保图片在.sku-icon内垂直居中 *!
    justify-content: center; !* 如果你还想要图片水平居中 *!
    margin-right: 5px;
}

.pay-wrapper .pay-item .pay-icon img {
    height: 24px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 4px;
}*/

.shop-checkout-pay-btn {
    display: flex;
    justify-content: center; /* 将子元素居中对齐 */
    align-items: center; /* 垂直居中 */
    gap: 20px; /* 设置按钮之间的间距，可以根据需要调整 */
    margin-bottom: 40px;
}

.btn-pay-now, .btn-cancel-order {
    padding: 10px 20px; /* 按钮内边距，可以根据需要调整 */
    border: 1px solid transparent; /* 去除边框，或根据需要调整 */
    background-color: #007bff; /* 设置支付按钮的背景颜色，可以根据需要调整 */
    color: white; /* 文字颜色 */
    cursor: pointer; /* 鼠标悬停时显示手指指针 */
    border-radius: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
}

.btn-cancel-order {
    background-color: #ff0000; /* 设置取消按钮的背景颜色，可以根据需要调整 */
}


.render-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.2), 0 0 20px 5px rgb(253, 224, 244);
}

.render-pay .pay-icon {
    display: flex; /* 启用Flexbox布局 */
    align-items: center; /* 垂直居中所有子元素 */
    justify-content: center; /* 水平居中所有子元素（如果需要） */
    margin: 20px auto 30px auto;
    font-weight: bold;
    font-size: 26px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), /* 添加阴影效果 */ -2px -2px 4px rgba(255, 255, 255, 0.5); /* 可选：添加更多层次的阴影以增强立体感 */
}

.render-pay .pay-icon svg {
    vertical-align: middle;
    width: 1.1em;
    height: 1.1em;
}

.pay-icon-alipay {
    color: #1578ff;
}

.pay-icon-wxpay {
    color: #26b240;
}

.pay-icon-qqpay {
    color: #0099fe;
}

.pay-title span {
    margin-left: 1px;
    margin-right: 1px;;
}

.hour {
    color: #c8a531;
}

.minute {
    color: #28a745; /* 绿色背景 */
}

.second {
    color: #dc3545; /* 红色背景 */
}

.time-title {
    color: #5d75a0;
}

@media (max-width: 767.98px) {
    .pay-item:active {
        transform: scale(1.01);
    }
}

@media (min-width: 992px) {
    .pay-item:not(article) {
        transition: all 0.4s;
    }

    .pay-item:not(article):hover {
        transform: translateY(-4px);
    }
}

/**
订单查询
 */

.flex-container {
    display: flex;
    align-items: center;
}

.item-info .item-logo {
    margin-right: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    width: 50px; /* 容器宽度 */
    height: 50px; /* 容器高度 */
    overflow: hidden; /* 隐藏溢出容器的部分 */
    display: flex; /* 使用Flexbox来居中图片 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    border-radius: 10px;
}

.item-info .item-logo img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; /* 裁剪图片以保持宽高比，覆盖容器 */
    object-position: center; /* 图片居中 */
}

.item-info .item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* 确保有足够的高度进行对齐 */
}

.item-info .item-content .item-name {
    font-weight: bold;
    font-size: 18px;
    color: #5077c0;
    margin-bottom: 4px;
}

.item-info .item-content .item-sku-name {
    color: #2ab875;
}


.order-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    background-color: #6c96f9;
    color: #ffffff;
    padding: 12px;
}

.order-header h2 {
    margin: 0;
}

.order-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-info span {
    display: block;
    margin-bottom: 5px;
}

.order-pay-type pay {
    color: #0dc8ff;
}


.order-pay-type img {
    width: 16px;
    height: 16px;
    position: relative;
    top: -0.095rem;
}

.order-pay-type .pay-name {
    font-weight: bold;
    color: #5f8bf3;
}

@media (max-width: 768px) {
    .order-body {
        flex-direction: column;
    }
}

.search-order-btn {
    cursor: pointer;
}


/**
购物车
 */
.table-cart tbody tr:not(:last-child) {
    border-bottom: 20px solid transparent;
}

.quantity-change {
    display: flex;
    align-items: stretch; /* 确保按钮和输入框高度一致 */
    border: 1px solid #e9ddf7; /* 整体边框 */
    width: 88px;
    border-radius: 10px;
}

.quantity-change button,
.quantity-change input[type="text"] {
    display: block;
    flex: 0 0 auto; /* 确保按钮和输入框平分空间 */
    text-align: center;
    line-height: 30px; /* 调整行高以垂直居中文本 */
    font-size: 14px;
}

.quantity-change .change-left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.quantity-change .change-right {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.quantity-change button {
    background-color: #fff5fd63;
    border: none;
    cursor: pointer;
    color: #333;
    width: 24px;
}

/* 移除输入框的外观，使其看起来与按钮融为一体 */
.quantity-change input[type="text"] {
    border: none;
    outline: none;
    margin: 0; /* 移除默认的外边距 */
    width: 38px;
    color: #31a2d6;
}

/* 添加分隔线来区分按钮和输入框 */
.quantity-change button:first-child,
.quantity-change input[type="text"] {
    border-right: 1px solid #e9ddf7;
}

.quantity-change button:last-child {
    border-left: 1px solid #e9ddf7;
}

/* 鼠标悬停效果 */
.quantity-change button:hover {
    background-color: #e0e0e0;
}

.cart-widgets {
    /* 基础样式 */
    padding: 10px;
    position: relative; /* 为了定位修改按钮 */
    border: 2px solid transparent; /* 设置一个透明边框以防止内容跳动 */
}

.cart-widget-edit {
    /* 修改按钮的初始样式 */
    position: absolute;
    top: -12px;
    right: -12px;
    padding: 2px 5px;
    background-color: #f40;
    border: none;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    font-size: 12px;
    color: white;
    visibility: hidden; /* 初始隐藏 */
    margin: 10px; /* 根据容器的padding值调整，确保显示在虚线内 */
    cursor: pointer;
}

.cart-widgets:hover {
    /* 鼠标悬停时的虚线边框 */
    border: 2px dashed #ccc;
}

.cart-widgets:hover .cart-widget-edit {
    /* 鼠标悬停时显示修改按钮 */
    visibility: visible; /* 显示修改按钮 */
}

.cart-widget:not(:last-child) {
    /* 商品信息的基础样式 */
    margin-bottom: 8px; /* 商品信息之间的间距 */
}

.block-cart-btn {
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: space-between; /* 两个按钮分别对齐到容器的两侧 */
    width: 100%; /* 容器宽度设置为 100%，确保充满父容器 */
}

.btn-cart-bill, .btn-cart-clear {
    border: 1px solid transparent; /* 设置透明边框 */
    color: white; /* 设置文字颜色 */
    text-align: center; /* 文字居中 */
    padding: 8px 16px; /* 设置内边距 */
    font-size: 14px; /* 设置字体大小 */
    transition: background-color 0.3s, color 0.3s; /* 添加过渡动画 */
    cursor: pointer; /* 设置鼠标指针为手型 */
    width: auto; /* 宽度自动，根据内容调整 */
    border-radius: 5px;
}

.btn-cart-bill {
    background-color: #007bff; /* 结账按钮的背景颜色 */
    margin-left: auto; /* 推到右边 */

}

.btn-cart-clear {
    background-color: #dc3545; /* 清空购物车按钮的背景颜色 */
    margin-right: auto; /* 推到左边 */
}

.btn-cart-bill:hover, .btn-cart-clear:hover {
    opacity: 0.8; /* 鼠标悬停时的透明度变化，添加视觉反馈 */
}

.sku-quantity-wrapper {
    display: flex;
    align-items: center; /* 确保内容在垂直方向上居中对齐 */
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.sku-quantity-wrapper .quantity-input {
    width: 100px;
    border-radius: 4px 0 0 4px; /* 只对输入框的左侧和上下设置圆角 */
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #334155;
    background-color: #fff;
    background-clip: padding-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #dfe3ea;
    border-right: none; /* 移除输入框右侧的边框，使其和库存数量看起来更连贯 */
}

@media (max-width: 767.98px) {
    .sku-quantity-wrapper .quantity-input {
        width: 50px;
    }
}

.sku-stock {
    padding: .53rem .75rem; /* 添加一些内边距 */
    border: 1px solid #ccc; /* 设置边框颜色保持一致性 */
    border-radius: 0 4px 4px 0; /* 只对库存数量的右侧和上下设置圆角 */
    font-size: 0.9rem; /* 调整字体大小以匹配输入框 */
    font-weight: 400;
    color: white;
    border-left: none;
}

.sku-wholesale {
    padding: .53rem .75rem; /* 添加一些内边距 */
    border: 1px solid #ccc; /* 设置边框颜色保持一致性 */
    font-size: 0.9rem; /* 调整字体大小以匹配输入框 */
    font-weight: 400;
    color: white;
    border-left: none;
    border-right: none;
    background: #ee6969;
    cursor: pointer;
}

/**
支付功能
 */

.pay-container .layout-box {
    margin-bottom: 16px;
    margin-top: 10px;
}

.pay-container .layout-box .title {
    margin-bottom: 8px;
    color: #9e9c9c;
}

.pay-container .pay-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start; /* 确保列表项靠左对齐 */
    margin: 0 -10px;
}

.pay-container .pay-list .pay-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    margin: 6px 10px 6px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.pay-container .pay-list .pay-item img {
    width: 26px;
    height: 26px;
    margin-right: 6px;
}

.pay-container .pay-list .pay-item:hover, .pay-container .pay-list .pay-item:focus {
    border-color: #aca8ff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
    background-color: #eef4fe;
}

.pay-container .pay-list .pay-current {
    background-color: #e8f0fe;
    border-color: #aca8ff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.pay-container button {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    margin-bottom: 8px;
}

.pay-container button:hover {
    background-color: #0056b3;
}

.btn-pay-now[disabled="disabled"] {
    background-color: #007bf5;
    cursor: not-allowed;
}


.shop-name {
    display: inline-flex; /* 使用flex布局让图标和名称在同一行显示 */
    align-items: center; /* 垂直居中对齐 */
    padding: 5px 8px; /* 添加一些内边距让它看起来不那么拥挤 */
    border-radius: 8px; /* 给元素添加圆角边框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加一些阴影效果让它立体一些 */
    transition: all 0.3s ease; /* 添加一个过渡效果让鼠标悬停时有一个小动画 */
    cursor: pointer;
}


.shop-name .shop-logo {
    width: 26px; /* 图标的大小，根据需要调整 */
    height: 26px; /* 图标的大小，根据需要调整 */
    border-radius: 50%; /* 使图标变成圆形 */
    margin-right: 6px; /* 在图标和名称之间添加一些间隔 */
}

.shop-name .shop-title {
    font-size: 20px; /* 名称的字体大小，根据需要调整 */

    font-weight: bolder;
    white-space: nowrap;
}

.block-notice img {
    max-width: 100%;
}

.block-notice video {
    max-width: 100%;
}

.block-notice iframe {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .block-notice img, .block-notice video, .block-notice iframe {
        height: auto !important;
    }
}


.language-select-theme {
    width: auto !important;
}

.language-select-theme .select2-dropdown .select2-results__options:not(.select2-results__options--nested) {
    max-height: initial !important;
    overflow: hidden;
}

.language-select-theme.select2-container--open {
    width: 150px !important;
}

.language-select-theme.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: transparent !important;
    box-shadow: none !important;
}

.language-select-theme .select2-selection {
    background-color: #283547 !important;
    border: none !important;
    color: #fff !important;
}

.language-select-theme .select2-selection--single {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

.language-select-theme .select2-selection__rendered .table-item-name {
    color: #ffffff !important;
}

/* 收银台 layer 弹窗样式 - 确保按钮在白色标题栏内 */
.layui-layer-iframe {
    overflow: visible;
}

.layui-layer-iframe .layui-layer-title {
    padding-right: 100px;
    position: relative;
}

.layui-layer-iframe .layui-layer-title .mcy-icon {
    width: 36px;
    height: 36px;
    vertical-align: middle;
    margin-right: 4px;
}

/* 关闭/最小化/最大化按钮：固定在标题栏白色区域内右上角（标题高56px，垂直居中） */
.layui-layer-iframe .layui-layer-setwin {
    position: absolute !important;
    right: 12px !important;
    top: 14px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
}

.layui-layer-iframe .layui-layer-setwin .layui-layer-min,
.layui-layer-iframe .layui-layer-setwin .layui-layer-max,
.layui-layer-iframe .layui-layer-setwin .layui-layer-close,
.layui-layer-iframe .layui-layer-setwin .layui-layer-close1,
.layui-layer-iframe .layui-layer-setwin a.layui-layer-close,
.layui-layer-iframe .layui-layer-setwin a.layui-layer-close1 {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #64748b !important;
    text-decoration: none !important;
    margin-left: 2px !important;
}

.layui-layer-iframe .layui-layer-setwin .layui-layer-close2,
.layui-layer-iframe .layui-layer-setwin a.layui-layer-close2 {
    right: auto !important;
    top: auto !important;
}

.layui-layer-iframe .layui-layer-setwin .layui-layer-close:hover,
.layui-layer-iframe .layui-layer-setwin .layui-layer-close1:hover {
    color: #334155 !important;
    opacity: 0.8;
}

.layui-layer-iframe .layui-layer-setwin .layui-layer-close1.layui-icon-close:empty::before,
.layui-layer-iframe .layui-layer-setwin .layui-layer-close2.layui-icon-close:empty::before {
    content: "×";
    font-size: 20px;
    font-weight: 300;
}

