@charset "utf-8";
/* CSS Document */
body{
	font-family:"微软雅黑","Microsoft Yahei";
}

.grid-list{
	display:grid;
	grid-template-columns:repeat(4,1fr);
	gap:0 20px;
}

.grid-list .photo{
	position:relative;
	padding-bottom:70%;
	overflow:hidden;
}

.grid-list .photo img{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	object-fit:cover;
}

.grid-list .photo .amount{
	position:absolute;
	bottom:0;
	height:25px;
	background:#00000090;
	color:#ffffff;
	text-align:right;
	padding:0 10px;
	width:100%;
	box-sizing:border-box;
}

.grid-list .title{
	font-size:16px;
	margin-bottom:5px;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	color:#000;
}

.grid-list .content{
	display:-webkit-box;
	overflow:hidden;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:1;
	color:#666;
}

button{
	outline:none !important;
}

.upload.success button,
.preview { 
	display:none;
}

.upload.success .preview{ 
	display:block;
	position: relative;
    width: 100px;
}

.preview img{
	width:100px;
	height:100px; 
	overflow:hidden;
	object-fit:contain;
}

.preview .delete{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:30px;
	text-align:right;
	background:#00000090
}

.preview .delete .delete-button{
	height:20px;
	width:auto;
	cursor:pointer;
}

.popup{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	overflow:hidden;
	background:#00000060;
	opacity:0;
	visibility:hidden;
	pointer-events:none;
	overflow:hidden;
	display:flex;
	align-items:center;
	justify-content:center;
}

.popup.show{
	opacity:1;
	visibility:visible;
	pointer-events:visible;
	transform:scale(1);	
}

.popup .popup-container{
	opacity:0;
	transform:scale(.8);
	transition:all .3s;
	width:90%;
	max-width:400px;
	max-height:90%;
	position:relative;
	border-radius:15px;
	padding:20px;
	background:#ffffff;
	font-size:14px;
    overflow: hidden;
	display:flex;
	flex-cirection:column;
}

.popup.show .popup-container{
	opacity:1;
	transform:scale(1);
}

.popup .close-button{
	position:absolute;
	top:12px;
	right:12px;
	display:flex;
}

.popup .close-button img{
	width:16px;
	height:16px;
}

.popup .list{
	display:flex;
	flex-direction:column;
	overflow:hidden;
}

.popup .head{
	padding: 0 0 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,.125);
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	font-size:16px;
	font-weight:bold;
	margin-bottom:10px;
}

.popup .container{
	padding:10px;
	overflow:hidden;
	box-sizing:border-box;
	flex:1;
	overflow:auto;
	background:#efefef70;
	border-radius:15px;
	margin-bottom:10px;
}

.popup .container img{
	width:auto;
	max-width:100%;
}

.popup .container .title{
	font-size:16px;
	font-weight:bold;
}

.popup .container .photo{
	text-align:center;
}

.popup .container .content{
	font-size:12px;
}

.popup .container .item{
	margin-bottom:10px;
	display:flex;
	gap:10px;
}

.popup .container .item .label{
	width:50px;
	font-weight:normal;
	font-size:14px;
	text-align:right;
}

.popup .container .item .txt{
	flex:1;
	overflow:hidden;
	text-align:right;
	white-space:nowrap;
	text-overflow:ellipsis;
}

.popup .container .title .txt{
	text-align:left;
}

.popup .container .item .txtCont{
	flex:1;
	overflow:hidden;
}

.popup .foot .btn{
	width:100%
}

.message{
	background: #e0f3f5;
    padding: 5px;
    border-radius: 5px;
}

textarea.form-control,
#message .form-control{
	font-size: 14px;
}

.message .form-group{
	margin-bottom: 5px;
}

#message .form-group:last-child{
	margin-bottom: 0;
}

.card-header{
	display:flex;
	align-items:center;
}

.f-1{ flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}

.button{
	outline:none;
	background-color:#007bff;
	color:#ffffff;
	height:50px;
	border-radius:5px;
	width:100%;
	border:none;
	font-size:16px;
}

@media (max-width:768px){
	.grid-list{
		gap:0 10px;
		grid-template-columns:repeat(3,1fr);
	}
}

@media (max-width:640px){
	.grid-list .card-body{
		padding:10px;
	}
	.grid-list{
		gap:0 10px;
		grid-template-columns:repeat(2,1fr);
	}
}

@media (min-width:751px){

	.popup ::-webkit-scrollbar{
		width: 5px;
	}
	
	.popup ::-webkit-scrollbar-thumb{
		background-color: #ccc;
	}
}