/* imgstream.css */
body,
html {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	font-family: Arial, sans-serif;
}

.imgstream {
	width: 100%;
	max-width: 400px;
	/* 设置最大宽度以避免在大屏幕上过宽 */
	position: relative;
	padding: 15px;
	box-sizing: border-box;
	/* 确保padding不超出容器边界 */
	margin: 0 auto;
	/* 居中对齐 */
}

.div-img {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	/* 垂直居中 */
}

.avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 15px;
	/* 给用户名留出空间 */
}

.username p {
	margin: 0;
	text-indent: 0;
	/* 移除文本缩进 */
}

.other-info ul {
	list-style-type: none;
	padding: 0;
}

.other-info ul li {
	width: 100%;
	/* 宽度100%以填充整个父级容器 */
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	margin-top: 15px;
	/* 上下间距 */
}

.other-info-i {
	width: 100%;
	/* 图片宽度100%，高度自动 */
	height: auto;
	margin-top: -16px;
	/* 如果需要，可以调整为正数 */
}

.img-container {
	padding: 10px;
	border-radius: 3px;
	box-shadow: 5px 4px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 600px) {
	.imgstream {
		padding: 20px;
	}

	.img-container {
		padding: 10px;
		border-radius: 3px;
		box-shadow: 5px 4px 8px rgba(0, 0, 0, 0.1);
	}

}

.avatar {
	width: 40px;
	height: 40px;
	margin-right: 10px;
}

.username p {
	font-size: 0.9em;
}

.other-info ul li {
	margin-top: 10px;
}

.other-info-i {
	margin-top: 0;
}

video {
	padding: 10px;
	border-radius: 3px;
	box-shadow: 5px 4px 8px rgba(0, 0, 0, 0.1);
}

/* 图片容器的样式 */
.img-container {
	position: relative;
	display: inline-block;
}

/* 图片全屏时样式 */
.enlarged {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	overflow: hidden;
}

p.p1 {
	margin: 16px 0 4px 12px;
}

.enlarged img {
	width: 100vw;
	height: auto;
	max-height: 90vh;
	object-fit: contain;
}

/*弹窗提示*/
.div-popup {
	position: fixed;
	top: 20px;
	left: 50%;
	/* transform: translateX(-50%); */
	padding: 11px 10px;
	width: 208px;
	background-color: #17a5f9;
	color: #fff;
	font-size: 16px;
	border-radius: 5px;
	z-index: 1000;
	animation: 1s slideIn ease;
}

@media (max-width: 600px) {
	.div-popup {
		position: fixed;
		top: 20px;
		left: 25%;
	}

}


@keyframes slideIn {
	from {
		transform: translateY(-50%);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes slideOut {
	from {
		transform: translateY(0);
		opacity: 1;
	}

	to {
		transform: translateY(-50%);
		opacity: 0;
	}
}