@font-face {
    font-family: "myfont";
    src: url("/font/AlibabaPuHuiTi-3-45-Light.woff2"),
    url("/font/AlibabaPuHuiTi-3-45-Light.woff");
    font-weight: normal;
    font-style: normal;
}
/* 全局基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    font-size: 16px;
}
html, body{
    height: 100%;
    width: 100%;
}
body {
    font-family: "myfont", sans-serif;
    display: flex;
    flex-direction: column;
    /*overflow-x: hidden; !* 防止横向滚动条 *!*/
    background-color: #ffffff;
}
/* 小屏幕：1366px 以下 */
@media (max-width: 1366px) {
    html { font-size: 12px; }
}

/* 中等屏幕：1440px~1600px */
@media (min-width: 1440px) and (max-width: 1600px) {
    html { font-size: 14px; }
}

/* 大屏幕：1920px */
@media (min-width: 1920px) and (max-width: 2560px) {
    html { font-size: 16px; }
}

/* 超大屏幕：4K及以上 */
@media (min-width: 2560px) {
    html { font-size: 18px; }
}
#container{
    display: flex;
    flex: 1;
    min-height: 0;
}
/*header*/
#header {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #3F51B5;
    height: 4%;
    color: #ffffff;
}

/*sidebar*/
#sidebar {
    height: 100%;
    width: 8%;
    min-width: 140px;
    border-right: 1px solid gainsboro;
    color: #333333;
}

#main {
    margin-left: 0.5%;
    margin-top: 0.5%;
    /*padding-top: 1%;*/
    height: 96%;
    width: 92%;
    overflow-x: hidden;
    overflow-y: hidden;
}

/*Toast弹窗*/
#toast-container {
    display: flex;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    flex-direction: column;
}

.toast {
    min-width: 140px;
    max-width: 80vw;
    margin-top: 10px;
    padding: 14px 24px;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.toast-success {
    background-color: #2ecc7190;
}

.toast-error {
    background-color: #e74c3c90;
}

.toast-warning {
    background-color: #f39c1290;
}

.toast-info {
    background-color: #3498db90;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/*星星必填*/
label[class="star-flag"] {
    color: red;
}

/**筛选区域**/
.filter-zone {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;       /* 自动换行 */
    gap: 6px 10px;         /* 行间距 6px，列间距 10px */
    margin-bottom: 10px;
}

.filter-zone > div {
    flex: 0 0 16%;          /* 一行 6 个 div */
    display: flex;
    align-items: center;
    min-width: 100px;       /* 防止太小 */
}

.filter-zone span {
    margin-right: 4px;      /* span 与 input 间距 */
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;         /* ⭐ 不缩小 */
}

.filter-zone input,
.filter-zone select {
    flex: 1 1 auto;         /* 剩余宽度给输入框 */
    padding: 4px 6px;       /* 输入框更小 */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-zone input:focus,
.filter-zone select:focus {
    border-color: #3F51B5;
    box-shadow: 0 0 2px rgba(63, 81, 181, 0.3);
}

/*分页区域*/
.page-zone {
    /*margin-top: 10px;*/
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    /*position: relative;*/
    /*height: 40px;*/
    width: 600px;
    /*border: 1px solid #f5f5f5;*/
    /*border-radius: 5px;*/
    /*box-shadow: 3px 3px 6px 0 rgba(0, 0, 0, 0.1);*/
    align-items: center;
    justify-content: center;
    /*color: #333333;*/
}
.page-zone div{
    padding-right: 10px;
}

.page-zone span {
    padding: 0 5px 0 5px;
}

.page-zone input {
    margin: 0 10px 0 10px;
    padding: 4px 6px;
    width: 40px;
    border: 1px solid #ccc;
    outline: none;
    border-radius: 5px;
}

.page-zone button {
    margin: 0 10px 0 10px;
}

.page-zone svg {
    fill: #333333;
}

.page-zone svg:hover {
    cursor: pointer;
    fill: #3F51B5;
}
.page-zone input:focus{
    border-color: #3F51B5;
    box-shadow: 0 0 2px rgba(63, 81, 181, 0.3);
}

/*弹窗蒙层*/
.modal-mask {
    position: fixed;
    min-width: 100vw;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* 半透明黑色背景 */
    z-index: 9990;
    display: none;
    top: 0;
    left: 0;
}

.modal-mask.active {
    display: flex;
}
.modal-banner{
    margin-bottom: 10px;
}

/*新增弹窗*/
.list-add-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*opacity: 0;*/
    display: none;
    width: 400px;
    height: 600px;
    background-color: #ffffff;
    z-index: 10010;
    border-radius: 10px;
}

.list-add-container > div {
    display: flex;
    margin-bottom: 10px;
    margin-left: 30px;
}

.list-add-container > div span {
    min-width: 100px;
    display: inline-block;
    text-align: right;
}

.list-add-container input,
.list-add-container select {
    width: 220px;
    max-width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;

}

.list-add-container .modal-banner {
    width: 100%;
    height: 40px;
    background-color: #3F51B5;
    margin-top: 0;
    border-radius: 5px 5px 0 0;

}

.list-add-container.active {
    display: flex;
    flex-direction: column;
    /*opacity: 1;*/
}

.list-add-btn-group {
    box-sizing: border-box;
    display: flex;
    justify-content: right;
}

.list-add-btn-group > button {
    margin-right: 10px;
}


/*更新弹窗*/
.list-update-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*opacity: 0;*/
    display: none;
    width: 400px;
    height: 600px;
    background-color: #ffffff;
    z-index: 10000;
    border-radius: 10px;
}

.list-update-container > div {
    display: flex;
    margin-bottom: 10px;
    margin-left: 30px;
}

.list-update-container > div span {
    min-width: 100px;
    display: inline-block;
    text-align: right;
}

.list-update-container input,
.list-update-container select {
    width: 220px;
    max-width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;

}

.list-update-container .modal-banner {
    width: 100%;
    height: 40px;
    background-color: #3F51B5;
    margin-top: 0;
    border-radius: 5px 5px 0 0;

}

.list-update-container.active {
    /*opacity: 1;*/
    display: flex;
    flex-direction: column;
}

.list-update-btn-group {
    box-sizing: border-box;
    display: flex;
    justify-content: right;
}

.list-update-btn-group > button {
    margin-right: 10px;
}

.list-update-btn-group {
    box-sizing: border-box;
    display: flex;
    justify-content: right;
}

.list-update-btn-group > button {
    margin-right: 10px;
}

.item-order {
    display: flex;
    flex-direction: column;
    align-items: end;
    margin-right: 10px;
}

/*订单详情*/
.list-order-detail-container {
    box-sizing: border-box;
    margin: 0;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 1200px;
    height: 400px;
    background-color: #ffffff;
    z-index: 10000;
    border-radius: 10px;
    overflow-y: auto;
}

.list-order-detail-container-header {
    display: flex;
}

.list-order-detail-container-header div {
    flex: 1;
}

.list-order-detail-container-body {
    display: flex;
    flex-direction: column;
}

.list-order-detail-container-body-row {
    display: flex;
}

.list-order-detail-container-body-row div {
    flex: 1;
    white-space: nowrap;
    overflow-x: hidden;
}

.list-order-detail-container .modal-banner {
    min-width: 100%;
    min-height: 40px;
    background-color: #3F51B5;
    margin-top: 0;
    border-radius: 5px 5px 0 0;
}

.list-order-detail-container.active {
    display: flex;
    flex-direction: column;
}

/*更改销售状态*/
.list-sale-status-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*opacity: 0;*/
    display: none;
    width: 500px;
    height: 500px;
    background-color: #ffffff;
    z-index: 10000;
    border-radius: 10px;
}

.list-sale-status-container > div:not(.item-product) {
    display: flex;
    margin-bottom: 10px;
    margin-left: 30px;
}

.list-sale-status-container > div span {
    min-width: 100px;
    display: inline-block;
    text-align: right;
}

.list-sale-status-container input,
.list-sale-status-container select {
    width: 220px;
    max-width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.list-sale-status-container .modal-banner {
    width: 100%;
    height: 40px;
    background-color: #3F51B5;
    margin-top: 0;
    border-radius: 5px 5px 0 0;

}

.list-sale-status-container.active {
    display: flex;
    flex-direction: column;
    /*opacity: 1;*/
}

.list-sale-status-btn-group {
    box-sizing: border-box;
    display: flex;
    justify-content: right;
}

.list-sale-status-btn-group > button {
    margin-right: 10px;
}

.product-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.product-row-sale-num {
    box-sizing: border-box;
    flex: 0 0 100%;
    margin-top: 5px;
    margin-left: 400px;
    overflow-x: hidden;
    margin-bottom: 8px;
}

.item-product .product-row span {
    min-width: fit-content;
}
.item-product .product-row div{
    padding-right: 5px;
}


/*************仓库管理*************/
/*旧货翻新弹窗*/
.list-product-renew {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*opacity: 0;*/
    display: none;
    width: 500px;
    height: 500px;
    background-color: #ffffff;
    z-index: 10000;
    border-radius: 10px;
}

header > .wp-site-blocks{

}
