@charset "utf-8";
/***登录页***/
.login{
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #e1eeff 0%, #fff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-box {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.login-title {
    text-align: center;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.login-title i{
    width: 40px;
    height: 40px;
    background-image: url(../img/icon_01.png);
}



.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border 0.3s;
}

.input-group input:focus {
    border-color: #409eff;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #409eff;
}

.tips {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #7f8c8d;
}


/**头部**/
.header{
    width: 100%;
    background-color: #ffffff;
    position: fixed; /* 固定在顶部（可选） */
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); 
}
.header_con{
    max-width:1200px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;/* 左右两端对齐 */
    align-items: center;
}
.header_logo{
    display: flex;
    align-items: center;
    gap: 10px;
}
.header_logo i{
    width: 30px;
    height: 30px;
    background-image: url(../img/icon_01.png);
    
}
.header_logo h1{
    font-weight: 600;
    font-size: 20px;

}
/**菜单**/
.header_menu{
    display: flex;
    align-items: center;
    gap: 50px; /* 菜单间距 */
    margin: 0 auto; /* 居中显示 */
    padding: 0 10px;
}
.header_menu .nav_menu {
    display: flex;
    list-style: none;
    position: relative;
}

.nav_menu li {
    margin-left: 30px;
    position: relative;
}

.nav_menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 8px 0;
    display: inline-block;
    transition: 0.3s;
}

.nav_menu a:hover {
    color: #409eff;
}
.dropdown-arrow {
    display: inline-block;
    vertical-align: top;
    width: 10px;
    height: 10px;
    border-top: 2px solid #409eff;
    border-right: 2px solid #409eff;
    transform: rotate(135deg);
    transition: 0.3s;
    margin-left: 8px;
    margin-top: 5px;
}
/* ======================
   PC 二级下拉菜单
====================== */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 99;
}

.submenu li {
    margin: 0;
    padding: 0;
}

.submenu a {
    padding: 10px 15px;
    width: 100%;
}

.submenu a:hover {
    background: #f0f7ff;
    color: #409eff;
}

/* PC 悬浮显示二级菜单 */
.nav_menu li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav_menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #409eff;
    transition: 0.3s;
}

.nav_menu a:hover::after {
    width: 100%;
}

/* ======================
    汉堡按钮动画
====================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #409eff;
    border-radius: 3px;
    position: absolute;
    transition: 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; opacity: 1; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}


.nav_menu .nav_admin{
    display: none;
    gap: 5px;

}
.nav_menu .nav_admin i{
    width: 30px;
    height: 30px;
    background-image: url(../img/icon_02.png);
}
.nav_menu .nav_admin span{
    color: #333;
    font-size: 18px;
}
.nav_menu .nav_admin a{
    font-size: 16px;
    color: #f5222d;
}
/* ======================
   汉堡按钮动画（手机用）
====================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #409eff;
    border-radius: 3px;
    position: absolute;
    transition: 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; opacity: 1; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

.header_admin{
    display: flex;
    align-items: center;
    color: #999;
    gap: 5px;
}
.header_admin a{
    color: #999;
}
.header_admin a:hover{
    color: #f5222d;
}
.header_admin i{
    width: 30px;
    height: 30px;
    background-image: url(../img/icon_02.png);
    
}
/***尾部***/
.footer{
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #999;
    background-color: #fcfcfc;
}


/**内容**/
.main{ 
    width:100%; 
    padding:20px 0;
    background-color: #f3f3f3;
}
.container{
    max-width:1200px;
    margin: 80px auto 0;
}
.wrap{
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    margin: 10px 0 20px 0;
    padding: 20px;

}
.min-height{
    min-height: 875px;
}
.pbok{
    display: block;
}
.wbok{
    display: none;
}

.a_mod{
    width: 100%;
}
/***搜索***/
.search-container {
    width: 100%;
    display: flex;
    padding: 0 0px;
    margin-top: 20px;
}

.search-wrapper {
    display: flex;
    height: 45px;
    line-height: 45px;
    align-items: center;
    background: #fff;
    border-radius: 8px 0 0 8px;
    padding: 0px 10px;
    border: 2px solid #e5e5e5;
    border-right: none;
    transition: all 0.3s;
    flex:1;
}

.search-wrapper:focus-within {
    border-color: #409eff;
    background: #fff;
    box-shadow: 0 0 8px rgba(64, 158, 255, 0.2);
}

.search-icon {
    color: #999;
    font-size: 18px;
}

.rounded-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding-left:10px;
    font-size: 16px;
}

.rounded-btn {
    width: 80px;
    height: 45px;
    line-height: 45px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius:0 8px 8px 0;
    padding: 0px 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
}

.rounded-btn:hover {
    background: #409eff;
}
/****首页****/
.stock_node{
    width: 100%;
}
.stock_data{
    width: 100%;
}
.stock_dataH{
    width: 100%;
    display: flex;
    font-size: 30px;
    justify-content: center;
    gap: 20px;
    color: #409eff;
    font-weight: 500;
}
.stock_dataH i{
    width: 40px;
    height: 40px;
    background-image: url(../img/icon_09.png);
}
.stock_flex{
    justify-content: center;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 25px;
}
.stock_flex .stock_tab{
    padding: 10px 25px;
    font-size: 18px;
    cursor: pointer;
    background-color: #fff;
    color: #409eff;
    border: 1px solid #409eff;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stock_flex .stock_tab.tab_active {
    background-color: #409eff;
    color: #fff;
}
.stock_flex .stock_tab:nth-child(1){
    border-radius: 8px 0 0 8px;
}
.stock_flex .stock_tab:nth-child(2){
    border-radius: 0 8px 8px 0;
}
.stock_stat{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 60px;
    margin-top: 50px;
}

.stock_node .stock_card{
    background: #fff;
    border-radius: 5px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    border-left: 5px solid #409eff;   
}
.stock_node .stock_card:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
    border-left-color:#f56c6c;
}
.stock_node .stock_card .stock_cardT{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    color: #4096ff; /* 匹配参考样式的蓝色 */
    margin-bottom: 16px;
    font-weight: 500;
}
.stock_node .stock_card .stock_cardT i{
    width: 30px;
    height: 30px;
}
.stock_node .stock_card:nth-child(1) .stock_cardT i{
    background-image: url(../img/icon_06.png);
}
.stock_node .stock_card:nth-child(2) .stock_cardT i{
    background-image: url(../img/icon_07.png);
}
.stock_node .stock_card:nth-child(3) .stock_cardT i{
    background-image: url(../img/icon_08.png);
}
.stock_node .stock_card:nth-child(4) .stock_cardT i{
    background-image: url(../img/icon_09.png);
}
.stock_node .stock_card .stock_cardT span{
    color:#333;
}
.stock_node .stock_card .stock_cardN{
    font-size: 48px;
    font-weight: bold;
    color: #f5222d; 
    line-height: 1;
}
.product_tit{
    color: #333;
    font-size: 22px;
    margin-top: 50px;
    font-weight: 600;
}

/****库存管理****/
.product_bar{
    margin-top: 30px;
}
.product_bar h2{
    font-size: 22px;
    color: #333;
    font-weight: 600;
}
.product_bar h2 span{
    color: #f5222d;
}
.product_mod{
    width: 100%;
    display: grid;
    gap: 20px;
    padding: 15px 0px;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 10px;
}
.product-card {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}

.agent-section {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}
.agent-section i{
    color: #409eff;
}
.agent-section input{
    width: 16px;
    height: 16px;
    border: 1px solid #666;
    border-radius: 3px;
}
.product-main {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.product-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background-size: contain;
    border: 1px solid #f3f3f3;
}

.product-title-area {
    flex: 1;
}

.product-title {
    font-size: 15px;
    color: #666;
    line-height: 140%;
    margin-bottom: 10px;
}

.product-stock {
    display: inline-block;
    height: 35px;
    line-height: 35px;
    font-size: 16px;
    color: #f5222d;
    background-color: #fff2f0;
    padding: 0px 20px;
    border-radius: 5px;
}

.product-meta {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-top: 10px;
}
.product-number{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}
.product-number p{
    color: #409eff;
    font-size: 15px;
}
.product-beizhu{
    width: 100%;
    font-size: 14px;
    color: #333;
    height: 60px;
    line-height: 140%;
}

.product-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}


/* 编辑按钮 */
.product-btn-group .edit-btn {
    background-color: #409eff;
    color: #fff;
}

.product-btn-group .edit-btn:hover {
    background-color: #007aff;
}

/* 删除按钮 */
.product-btn-group .delete-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
}

.product-btn-group .delete-btn:hover {
    background-color: #f5f5f5;
    border-color: #bfbfbf;
}

/* 按钮图标 */
.btn-icon {
    margin-right: 5px;
}
.product-tui{
    position: absolute;
    bottom: 0px;
    right: 5px;
}

/********添加产品库存********/
.product_box{

}
.product_box .product_group{
    display: grid;
    grid-template-columns:50% 30% 14%;    
    gap: 3%;
    justify-content: space-between;
}

.product_box .form-group{
    margin: 10px 0;
    
}
.product_num {
    display: grid;
    grid-template-columns:50% 30%;
    gap: 3%;
    margin-top: -95px;
}
.product_form{
    min-height: 250px;
} 
.product_form .product_group{
    display: grid;
    grid-template-columns:83% 14%;    
    gap: 3%;
    justify-content: space-between;
}
.product_form .product_num {
    display: grid;
    grid-template-columns:83% 0%;
    gap: 3%;
    margin-top: -95px;
}
.product_box .form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}
.product_box .form-group input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s;
}
.product_box .form-group input:focus-within {
    border-color: #409eff;
}
.product_box .form-group input[type="text"]::placeholder {
    color: #9ca3af;
}
.product_box .form-group.flex{
    display: flex;
    align-items: center;
    gap: 5px;
}
.product_box .form-group input[type="checkbox"]{
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #d1d5db;
}
.product_box .form-group span{
    color: #666;
    font-size: 16px;
}
.product_box .form-group.product_pic{
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-top: 30px;
}
.product_box .form-group.wbok{
    display: none;
}
.product_box .upload-area {
    position: relative;
    width: 150px;
    height: 150px;
    align-items: center;
}

.product_box .upload-btn {
    width: 150px;
    height: 150px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #111;
    cursor: pointer;
    transition: background-color 0.2s;
}
.product_box .upload-btn:hover {
    background-color: #e5e7eb;
}
.product_box #imageInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.product_box #previewImage{
    width: 150px;
    height: 150px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    object-fit: cover;
    border-radius: 4px;
    display: none;
}
 /* 图片下方删除按钮 */
 .product_box .delete-btn {
    width: 150px;
    padding: 4px 8px;
    font-size: 14px;
    color: #333;
    background: rgba(255,255,255,0.7);
    border-radius: 0 0 4px 4px;
    cursor: pointer;
    display: none;
    position:absolute;
    border: none;
    right: 0;
    bottom: 0;

}
.delete-btn:hover {
    color: #f5222d;
    background-color: #f3f3f3;
}
.product_box .form-group select{
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    color: #666;
}
.product_box .form-group textarea{
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    min-height: 100px;
}
.product_box .form-group select:focus-within, .product_box .form-group textarea:focus-within{
    border-color: #409eff;
}
/* 按钮组：保存 + 取消 并排 */
.product_btn_group{
    display: flex;
    gap: 12px;
    margin: 30px 0;
    justify-content:flex-end;
}


/* 保存按钮 */
.product_btn_group .save-btn {
    color: #fff;
    background-color: #409eff;
    padding: 10px 30px;
    border-radius: 8px;
}
.product_btn_group .save-btn:hover {
    background-color: #007aff;
}
/* 取消按钮 */
.product_btn_group .cancel-btn {
    color: #333;
    background-color: #fff;
    border: 1px solid #999;
    padding: 10px 30px;
    border-radius: 8px;
}
.product_btn_group .cancel-btn:hover {
    background-color: #e0e0e0;
}

/****当前位置****/
.note{
    width: 100%;
    display: flex;
    gap: 5px;
    color:#999;
}
.note a{
    font-size: 14px;
    color: #999;
}
/****出库管理列表****/
.stock_cont{
    width: 100%;
}
.stock_contH{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:40px 0 0px 0;
}
.stock_contH h1 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}
.stock_contH .add-btn {
    background-color: #409eff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.stock_contL{
    padding:15px 0 20px 0;
    display: grid;
    gap: 20px;
}
.stock_contM{
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.stock_contM_item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom:3px solid #f5f5f5;

}
.stock_contM_item .stock_contM_itemU{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}
.stock_contM_item .stock_contM_itemU input {
    transform: scale(1.2);
}
.stock_contM_item .stock_contM_itemU span {
    color: #2196F3;
    font-weight: 500;
}
.stock_contM_item .stock_contM_itemU .stock_contM_time{
    display: flex;
}
.stock_contM_item .stock_contM_itemU .stock_contM_time i{
    margin: 0 5px;
}
.stock_contM_btn{
    
}
.stock_contM_btn .check_btn{
    width: 60px;
    height: 30px;
    text-align: center;
    border: 1px solid #dfdfdf;
    background-color: #fcfcfc;
    border-radius: 4px;
    transition: all 0.3s;
}
.stock_contM_btn .check_btn:hover{
    background-color: #f3f3f3;
}
.stock_contM_list{
    padding: 10px 20px;  
}
.stock_contM_listM{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0; 
}
.stock_contM_listM img{
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
}
.stock_contM_listM .stock_contM_listT{
    flex: 1;
}
.stock_contM_listT .stock_contM_listN {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}
.stock_contM_listT .stock_contM_listQ {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}
.stock_contM_listT .stock_contM_listQ span{
    color: #f5222d;
}
.stock_contM_listT .stock_contM_listB {
    font-size: 14px;
    color: #666;
}
.stock_contM_listT .stock_contM_listB span{
    color: #409eff;
}
.stock_contM_beizhu{
    font-size: 14px;
    color: #666;  
    border-top: 3px solid #f5f5f5;
    padding: 10px 20px 30px 20px;  
    line-height: 150%;
}





/****出库管理&编辑****/
.stock{

}

.stock_form{
    width: 100%;     
}
.stock_form h2{
    color: #333;
    display: flex;
    font-size: 16px;
    align-items: center;
    gap: 5px;
}
.stock_form h2::before{
    content: "";
    background-image: url(../img/icon_03.png);
    width: 26px;
    height: 26px;
    background-size: contain;
    background-repeat: no-repeat;

}
.stock_form h2.stock_put::before{
    content: "";
    background-image: url(../img/icon_04.png);

}
.stock_form h2.stock_check::before{
    content: "";
    background-image: url(../img/icon_05.png);

}
.stock_formB{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:20px 30px;
    margin-top: 20px;
}
.stock_formB_col{
    grid-template-columns: repeat(3, 1fr);
}
.stock_formB_col .stock_formB_time{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
}
.stock_formB_col .stock_formB_time .stock_formB_input{
    background-color: #fff;
}
.stock_formB .stock_inputBg{
    background-color: #f3f3f3;
}

.stock_formB_label{
    color: #666;
    font-size: 14px;
}
.stock_formB_input{
    width: 100%;
    font-size: 16px;
    height: 40px;
    border-radius: 5px;
    border: 2px solid #e5e5e5;
    padding:0.5rem 0.75rem;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: all 0.3s;
    color: #333;
    margin-top: 10px;
}
.stock_formB_input:focus-within {
    border-color: #409eff;
}
/****出库列表****/
.stock_mod{


}
.stock_mod .stock_itex{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 15px 0;
}
.stock_mod .stock_itex h2{
    font-size: 22px;
    font-weight: 600;
    color: #333;
}
.stock_mod .stock_itex .btn-add {
    background-color: #40a9ff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stock_mod .stock_itex .btn-add:hover {
    background-color: #007aff;
}
/***出入库产品列表***/
.stock_box{
    background-color: #fff;
    padding:10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
/***暂无产品出库***/
.stock_none{
    width: 100%;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
    font-size: 16px;
    color: #999;
    display: block;
    border: 1px solid #f3f3f3;
}
.stock_list {
    margin-bottom: 24px;
    
}
.stock_item {
    display: flex;
    align-items: flex-start;
    padding: 20px 10px;
    border-bottom: 5px solid #e8e8e8;
}
.stock_att{
    display: flex;
    flex: 1;
}
.stock_img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}
.stock_info {
    flex: 1;
}
.stock_name {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}
.stock_spec {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
.stock_spec .stock_quantity{
    color: #f5222d;
}
.stock_code {
    font-size: 12px;
    color: #666;
}
.stock_code .stock_code_text{
    color: #409eff;
}
.stock_actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-edit {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.btn-delete {
    background-color: #f56c6c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
/* 备注区域 */
.stock_section {

}
.stock_label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}
.stock_input {
    width: 100%;
    height: 100px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: all 0.3ms;
}
.stock_input:focus-within{
    border-color: #409eff;
} 
/* 底部操作按钮 */
.stock_btn {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 25px 0;
}
.btn-cancel {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-save {
    background-color: #40a9ff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.btn-save:hover {
    background-color: #007aff;
}
/* 弹窗样式 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    display: none;
}
.modal-content {
    width: 600px;
    background: #fff;
    border-radius: 8px;
    padding: 25px 0;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 5px solid #f3f3f3;
}
.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.modal-close {
    font-size: 32px;
    cursor: pointer;
    color: #999;
    background-color: #f1f1f1;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}
.modal-close:hover {
    color: #333;
}
.modal-body{
    padding: 10px 20px;
}
.form_item {
    padding: 10px 0;
}
.form_label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}
.form_pic{
    display: grid;
    grid-template-columns: 79% 20%;
    gap: 20px;
    justify-content: space-between;
}

.form_pic span{
    font-size: 14px;
    color: #f5222d;
    float: left;
    margin: 3px 0 5px 5px;
}
.form_pic .form_img{
    width: 100px;
    height: 100px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 50px;
}
.form_pic .form_img img{
    width: 100%;
    height: auto;
    object-fit:cover;
}
.form_input {
    width: 100%;
    height: 35px;
    line-height: 35px;
    padding: 0px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}
.form_text{
    width: 100%;
    height: 100px;
    line-height: 150%;
    padding: 0px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}
.form_input:focus-within,.form_text:focus-within{
    border-color: #409eff;
    outline: none;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding:0 20px 10px 20px;
}
.btn-modal-cancel {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.btn-modal-confirm {
    background-color: #1890ff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}


/* 产品选择下拉面板 */
.product-input {
    outline: none;
    cursor: pointer;
    transition: 0.3s;
}
.product-input:focus {
    border-color: #409eff;
}

.product-dropdown {
    max-width: 470px;
    position: absolute;
    width: 100%;
    max-height: 350px;
    padding: 10px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    display: none;
    z-index: 99;
}
.product-dropdown.show {
    display: block;
}

/* 产品项 */
.product-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    transition: 0.2s;
}
.product-item:hover {
    
    background: #f5f9ff;
}

/* 产品图片 */
.product-item .product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
    border: 1px solid #eee;
}

/* 产品名称 + 规格 */
.product-info {
    flex: 1;
}
.product-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}
.product-spec {
    font-size: 13px;
    color: #999;
}

/* 容器 */
.input-wrapper {
    position: relative;
    width: 100%;
}
/******产品管理******/
.product_node{
    display: grid;
    gap: 20px;
    margin-top: 20px;
}
.product_case{
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}
.product_case_brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.product_case_brandLogo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #f3f3f3;
    overflow: hidden;
}
.product_case_brandLogo img{
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    
}
.product_case_brandName {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}
.product_case_item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}
.product_case_item:last-child{
    border-bottom: none;
}
.product_checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.product_case_img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #f3f3f3;
}
.product_case_info {
    flex: 1;
    font-size: 16px;
    color: #666;
}
.product_arrow {
    width: 35px;
    height: 35px;
    background-image: url(../img/icon_10.png);
    background-size: contain;
    background-position: center right;
    transition: all 0.3s;
    
}
.product_arrow:hover{
    background-image: url(../img/icon_11.png);
}


/******入库状态管理******/
.state{

}
.action-bar {
    display: flex;
    gap: 12px;
    margin: 50px 0 10px 0;
    justify-content:space-between;
}
.action-bar h2{
    font-size: 22px;
    color: #333;
}
.action-bar .action_btn{

}
.action-bar .btn-primary {
    background-color: #409eff;
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
}
.action-bar .btn-danger {
    background-color: #f56c6c;
    color: #fff;    
    font-size: 14px;
    border-radius: 8px;
}
.state_box{

}
.state_box p{
    color: #666;
    font-size: 14px;
}
.state_box .table_w01{width: 10%;}
.state_box .table_w02{width: 70%;}
.state_box .table_w03{width: 20%;}
.state_box table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}
.state_box th, .state_box td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e5e5e5;
    border-top: none; 
}
.state_box td { 
    border-right: none; 
}
.state_box th {
    border:1px solid #e5e5e5;
    background-color: #f5f7fa;
    font-weight: normal;
}
.state_box .state_img{
    width: 60px;
    height: 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.state_box .state_img img{
    width: 100%;
    height: auto;
    object-fit:cover;
}
.state_box .table-actions {
    text-align: center;
}
.state_box .btn-edit {
    width: 80px;
    background-color: #409eff;
    color: #fff;
    padding: 6px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}
.state_box .btn-delete {
    width: 80px;
    background-color: #f56c6c;
    color: #fff;
    padding: 6px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}
.state_form_group {
    min-height: 120px;
    margin-top: 15px;
}
.state_form_group label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}
.state_form_group input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s;
}
.state_form_group input:focus-within {
    border-color: #409eff;
}
.state_form_group input[type="text"]::placeholder {
    color: #9ca3af;
}
.state_btn_group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}
/* 保存按钮 */
.state_btn_group .save_btn {
    width: 80px;
    background-color: #409eff;
    color: #fff;
}

.state_btn_group .save_btn:hover {
    background-color: #007aff;
}

/* 取消按钮 */
.state_btn_group .cancel_btn {
    width: 80px;
    background-color: #fcfcfc;
    color: #666;
    border: 1px solid #d9d9d9;
}

.state_btn_group .cancel_btn:hover {
    background-color: #f5f5f5;
    border-color: #bfbfbf;
}






/* =========手机端样式（1023px以下）========= */
@media (max-width: 1023px) {
    .header{
        padding: 0 20px;
    }
    .header_con{
        height: 65px;
    }
    .header_logo i{
        width: 35px;
        height: 35px;
    }
    .header_menu{
        margin: 0;
        padding: 0;
        gap: 0;
    }
    .hamburger {
        display: block;
    }

    .header_menu .nav_menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: 0.4s ease;
        overflow-y: auto;
    }

    .nav_menu.active {
        left: 0;
    }

    .nav_menu li {
        margin: 0 0 10px 0;
    }

    /* 手机端二级菜单折叠 */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        display: none;
    }

    .submenu.show {
        display: block;
    }

    /* 展开箭头 */
    .dropdown-arrow {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-top: 2px solid #409eff;
        border-right: 2px solid #409eff;
        transform: rotate(135deg);
        transition: 0.3s;
        margin-left: 8px;
    }
    .dropdown-arrow.active {
        transform: rotate(45deg) scale(1.2);
        margin-top: 8px;
    }
    .nav_menu .nav_admin{
        display: flex;
        align-items:center;
    }
    .header_admin{
        display: none;
    }
    .footer{font-size: 0.75rem;}
    .container{
        max-width: 100%;
        padding: 0 20px;
        margin-top: 60px;
    }
    .wrap{
        padding: 15px;
    }
    /***搜索***/
    .search-wrapper{
        height: 40px;
        line-height: 40px;
    }
    .rounded-input{ 
        font-size: 14px;
    }
    .rounded-btn{
        width: 70px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
    }
    /*** 库存量 ***/
    .stock_stat{
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .stock_node .stock_card{
        padding: 15px 20px;
    }
    /* 产品 */
    .product_mod {
        grid-template-columns: repeat(2, 1fr);    
    }
    .stock_formB {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px 0;
        margin-top: 10px;
    }
    .stock_formB_col{
        grid-template-columns: repeat(1, 1fr);
    }

    /****出库管理列表****/
    .stock_contM_list{
        padding: 10px 15px;
    }
    .stock_contM_item{
        padding: 15px;
    }
    .stock_contM_item .stock_contM_itemU{
        font-size: 13px;
    }
    .stock_contM_item .stock_contM_itemU .stock_contM_time{
        flex-wrap: wrap;
    }
    .stock_contM_listM{
        gap:10px;
    }
    .stock_contM_listT .stock_contM_listN{ 
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 控制显示几行 */
        -webkit-box-orient: vertical;
        /* 下面两个可选，让文字更整齐 */
        word-break: break-all;
        line-height: 1.3;
    }
    .stock_contM_listT .stock_contM_listQ,.stock_contM_listT .stock_contM_listB{
        font-size: 13px;
    }
    .stock_contM_beizhu{
        font-size: 13px;
        padding: 10px 15px 20px 15px;
    }

    /****出库管理&编辑****/

    .stock_formB_input{
        height: 36px;
        font-size: 14px;
        padding: 0.2rem 0.5rem;
        margin-top: 5px;
    }
    .stock_box{
        padding: 10px 10px;
    }
    .stock_name{
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 控制显示几行 */
        -webkit-box-orient: vertical;
        /* 下面两个可选，让文字更整齐 */
        word-break: break-all;
        line-height: 1.3;
    }

    /****库存管理****/
    .product_box .product_group{
        grid-template-columns:47% 30% 17%;
    }
    .product_box .form-group.product_pic{
        margin-top:55px;
    }
    .product_box .upload-area{
        width: 120px;
        height: 120px;
    }
    .product_box #previewImage{
        width: 120px;
        height: 120px;
    }
    .product_box .upload-btn{
        width: 120px;
        height: 120px;
    }
    .product_box .delete-btn{
        width: 120px;
    }
    .product_num{
        grid-template-columns: 47% 30%;
    }
    .state_box th, .state_box td{
        padding: 8px;
    }
    .state_box .btn-edit,.state_box .btn-delete{
        margin: 3px 0;
    }
}

/* =========手机端样式（767px以下）========= */
@media (max-width: 767px) {
    .pbok{
        display: none;
    }
    .wbok{
        display: block;
    }
    /*** 库存量 ***/
    .stock_dataH{
        font-size: 24px;
    }
    .stock_dataH i{
        width: 35px;
        height: 35px;
    }
    .stock_flex{
        margin-top: 20px;
    }
    .stock_stat {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }
    .stock_node .stock_card{
        padding: 15px;
    }
    .stock_node .stock_card .stock_cardT{
        justify-content: flex-start;
        font-size: 1.0625rem;
    }
    .stock_node .stock_card .stock_cardT i{
        width: 25px;
        height: 25px;
    }
    .stock_node .stock_card .stock_cardN{
        font-size: 42px;
    }
    /*** 产品 ***/
    .product_tit{
        font-size: 20px;
        margin-top: 40px;
    }
    .product_mod {
        grid-template-columns: repeat(1, 1fr);    
    }
    .stock_contM_item .stock_contM_itemU .stock_contM_time{
        display: block;
    }
    .stock_contM_item .stock_contM_itemU .stock_contM_time i {
        display: none;
    }
    .stock_list{
        margin-bottom: 15px;
    }
    .stock_item{
        display: block;
        padding: 15px 10px;
    }
    .stock_actions{
        justify-content: flex-end;
    }

    .stock_btn{
        padding: 20px 0;
    }

    /*** 弹窗样式 ***/
    .form_item{
        padding: 8px 0;
    }
    .form_pic{
        grid-template-columns: 69% 27%;
        gap: 15px;
    }
    .form_pic .form_img{
        width: 90px;
        height: 90px;
    }
    .product-dropdown.show{
        max-width: 62%;
    }
    .product-item{
        padding: 5px 10px;
    }
    .product-name{
        font-size: 0.875em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 控制显示几行 */
        -webkit-box-orient: vertical;
        /* 下面两个可选，让文字更整齐 */
        word-break: break-all;
        line-height: 1.3;
    }
    /****产品管理****/
    .product_case{
        padding: 15px;
    }
    .product_case_brandName{
        font-size: 1rem;
    }
    .product_case_item{
        gap: 10px;
        padding: 10px 0;
    }
    .product_case_info{
        font-size: 0.8125rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 控制显示几行 */
        -webkit-box-orient: vertical;
        /* 下面两个可选，让文字更整齐 */
        word-break: break-all;
        line-height: 1.4;
    }
    .product_arrow{
        width: 30px;
        height: 30px;
    }
    /****库存管理****/
    .product_box .product_group{
        display: block;
    }
    .product_num{
        display: block;
        margin-top: 20px;
    }
    .product_form .product_num{
        display: block;
        margin-top: 20px;
    }
    .product_box .form-group.product_pic{
        justify-content: flex-start;
        margin-top: 20px;
    }
    .product_box .delete-btn{
        left: 0;
    }
    .product_box .form-group.pbok{
        display: none;
    }

    /***品牌管理***/
    .state_box p{
        font-size: 0.8125rem;
    }
    .state_box th, .state_box td{
        padding: 8px;
    }
    .state_box .state_img{
        width: 50px;
    }
    .state_box .btn-edit,.state_box .btn-delete{
        width: 50px;
        margin: 3px 0;
    }

    /***入库状态管理***/
    .action-bar h2{
        font-size: 20px;
    }
    .action-bar .btn-primary,.action-bar .btn-danger{
        font-size: 12px;
        padding: 7px 10px;
    }
    .state_box .table_w01{width: 10%;}
    .state_box .table_w02{width: 50%;}
    .state_box .table_w03{width: 40%;}
    .state_form_group input[type="text"]{
        font-size: 14px;
    }
}

