@import 'common.scss';

.scroll-view-index{
	@include scroll-view-container(calc(100vh - 250rpx));
	overflow: auto;
}
.dynamic-item{
		background-color: white;
		width: 100%;
		min-height: 400rpx;
		margin-bottom: 20rpx;
		padding: 16rpx 34rpx 36rpx 34rpx;
		box-sizing: border-box;
		.user-info-box{
			height: 120rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.avatar{
				width: 80rpx;
				height: 80rpx;
				border-radius: 50%;
			}
			.user-name{
				width: calc(100% - 168rpx);
				color: rgba(16, 16, 16, 1);
			}
			.more-icon{
				width: 48rpx;
				height: 48rpx;
			}
		}
		
		.topics-box{
			display: flex;
			flex-wrap: wrap;
			margin-bottom: 10rpx;
		}
		
		.dynamic-content-box{
			margin-bottom: 20rpx;
			.text{
				color: rgba(16, 16, 16, 1);
				font-size: 32rpx;
				margin-bottom: 20rpx;
			}
			.imgs{
				display: grid;
				grid-template-columns: 1fr 1fr 1fr;
				grid-template-rows: auto;
				row-gap: 6rpx;
				column-gap: 6rpx;
				margin-top: 12rpx;
				.item{
					width: 100%;
					height: 224rpx;
				}
			}
		}
		.datetime-box{
			color: rgba(187, 187, 187, 1);
			margin-bottom: 20rpx;
		}
		
		.operation-box{
			display: flex;
			align-items: center;
			justify-content: space-between;
			.favorite-box{
				width: 112rpx;
				height: 60rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				border: 1px solid rgba(245, 245, 245, 1);
				.icon{
					width: 36rpx;
					height: 36rpx;
					margin-right: 12rpx;
				}
				.num{
					color: rgba(162, 170, 184, 1);
					font-size: 24rpx;
				}
				.active{
					color: rgba(245, 166, 35, 1);
				}
			}
			
			.comment-box{
				display: flex;
				align-items: center;
				.icon{
					width: 36rpx;
					height: 36rpx;
					margin-right: 12rpx;
				}
				.text{
					color: rgba(142, 153, 171, 1);
					font-size: 14px;
				}
			}
		}
		.pk-box{
			border-top: 1px solid #eee;
			margin-top: 32rpx;
			.pk-title-box{
				height: 104rpx;
				display: flex;
				align-items: center;
				.pk-icon{
					width: 40rpx;
					height: 40rpx;
					margin-right: 8rpx;
				}
				.pk-title-text{
					color: rgba(16, 16, 16, 1);
					font-size: 24rpx;
				}
			}
			
			.pk-imgs{
				display: flex;
				align-items: center;
				justify-content: center;
				.img{
					width: 160rpx;
					height: 160rpx;
					margin: 0 6rpx;
				}
			}
			
			.pk-btns{
				margin: 20rpx 0;
				display: flex;
				align-items: center;
				justify-content: center;
				.btns{
					width: 208rpx;
					height: 76rpx;
					line-height: 76rpx;
					color: rgba(255, 255, 255, 1);
					font-size: 28rpx;
					text-align: center;
				}
				.red-btn{
					border-radius:  38rpx 6rpx 6rpx 38rpx;
					background-color: rgba(255, 100, 95, 1);
				}
				.blue-btn{
					border-radius: 6rpx 38rpx 38rpx 6rpx;
					background-color: rgba(52, 132, 253, 1);
				}
				
				.img{
					width: 72rpx;
					height: 72rpx;
					margin: 0 16rpx;
				}
				
			}
			
			.pk-tips{
				margin-top: 12rpx;
				color: rgba(153, 153, 153, 1);
				font-size: 24rpx;
			}
			
			.pk-results{
				margin-top: 20rpx;
				margin-bottom: 10rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				font-size: 24rpx;
				.left{
					width: 100%;
					flex: 1;
					.left-num{
						color: rgba(255, 100, 95, 1);
						margin-bottom: 10rpx;
					}
				}
				.right{
					width: 100%;
					flex: 1;
					text-align: right;
					.right-num{
						color: rgba(52, 132, 253, 1);
						margin-bottom: 10rpx;
					}
				}
				
				.results-item{
					width: 100%;
					height: 12rpx;
					color: rgba(255, 255, 255, 1);
					font-size: 28rpx;
					
				}	
				.left-item{
					border-radius: 6rpx 0 0 6rpx;
					margin-right: 10rpx;
					background-color: rgba(255, 100, 95, 1);
				}
				.right-item{
					border-radius: 0 6rpx 6rpx 0;
					margin-left: 10rpx;
					background-color: rgba(52, 132, 253, 1);
				}
				
			}
			
			
			.results-sum{
				color: rgba(153, 153, 153, 1);
				font-size: 24rpx;
				margin-top: 20rpx;
				display: flex;
				align-items: center;
				.icon{
					width: 24rpx;
					height: 24rpx;
				}
			}
		}
	    
		.comment-box{
			
			
			.comment-display-box{
				background-color: rgba(245, 245, 247, 1);
				min-height: 80rpx;
				margin-top: 32rpx;
				padding:24rpx 20rpx;
				box-sizing: border-box;
				.comment-item{
					.user-info{
						display: flex;
						justify-content: space-between;
						
						.username{
							color: black;
							color:#0058B6;
						}
						.datetime{
							color: #999999;
							margin-left: 16rpx;
						}
						
						.operation-text {
							width: 180rpx;
							text-align: right;
							
							display: flex;
							align-items: center;
							justify-content: flex-end;
						}
					}
					.content{
						color: black;
						margin: 10rpx 0;
						display: flex;
						.text {
							width: 100%;
						}
						
						
						.mr10{
							margin-right: 12rpx;	
						}
						.add-text {
							color: #0058B6;
						}
					}
					.tips{
						font-size: 24rpx;
						color:#F5A623 ;
					}
				}
			}
		}
	}

.add-dynamic-box{
	width: 76rpx;
	height: 76rpx;
	border-radius: 50%;
	background-color: $color-main-blue;
	display: flex;
	align-items: center;
	justify-content: center;
	// position: fixed;
	// right: 34rpx;
	// top: 700rpx;
	.icon{
		width: 44rpx;
		height: 44rpx;
	}
}

.comment-dialog-shadow{
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 999;
	position:fixed;
	top:0;
	left:0;
	
	.comment-edit-box{
		width: 100vw;
		height: 480rpx;
		background-color: white;
		position:fixed;
		bottom:top;
		left:0;
		z-index: 999;
		padding:34rpx;
		box-sizing: border-box;
		overflow: auto;
		
		.textarea{
			width: 100%;
			height: 320rpx
		}
		.btns{
			height: 80rpx;
			display: flex;
			align-items: flex-end;
			justify-content: flex-end;
			.btn{
				margin-left: 20rpx !important;
				margin-right: 20rpx !important;
			}
		}
	}
}