*{

margin:0;

padding:0;

box-sizing:border-box;

font-family:
"Microsoft YaHei";

}


body{

background:#f5f7fa;

}


.container{

display:flex;

height:100vh;

}



/* 左侧 */

.sidebar{

width:230px;

background:#001529;

color:white;

}



.sidebar h2{

text-align:center;

padding:25px;

}


.sidebar ul{

list-style:none;

}


.sidebar li{

padding:18px 30px;

cursor:pointer;

}



.sidebar li:hover,
.active{

background:#1890ff;

}




/* 主体 */


.main{

flex:1;

}



header{

height:60px;

background:white;

display:flex;

justify-content:flex-end;

align-items:center;

padding-right:30px;

box-shadow:
0 1px 5px #ddd;

}




.dashboard{

padding:25px;

}




.cards{

display:flex;

gap:20px;

}



.card{

background:white;

flex:1;

padding:25px;

border-radius:10px;

box-shadow:
0 2px 8px #ddd;

}



.card p{

color:#888;

}


.card h2{

margin-top:15px;

}




/* 图表 */


.chart-box{

background:white;

margin-top:20px;

padding:20px;

border-radius:10px;

}



#salesChart{

height:350px;

}



/* 商品 */


.product-box{

background:white;

margin-top:20px;

padding:20px;

border-radius:10px;

}



.toolbar{

display:flex;

justify-content:space-between;

margin-bottom:20px;

}



input{

padding:10px;

border:1px solid #ddd;

border-radius:5px;

}



button{

background:#1890ff;

color:white;

border:0;

padding:10px 20px;

border-radius:5px;

cursor:pointer;

}



table{

width:100%;

border-collapse:collapse;

}



th,td{

padding:15px;

border-bottom:
1px solid #eee;

text-align:center;

}



/* 弹窗 */


.modal{

display:none;

position:fixed;

top:0;

left:0;

right:0;

bottom:0;

background:
rgba(0,0,0,.4);

}



.dialog{

width:350px;

background:white;

padding:30px;

position:absolute;

top:30%;

left:40%;

border-radius:10px;

}



.dialog input{

width:100%;

margin:10px 0;

}