* {
	box-sizing: border-box;
}

/* 在原有 style.css 基础上补充 */
html,
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.scroll-container {
	flex: 1;
	/* 内容区域自适应，避免被压缩 */
	overflow-y: auto;
}

#inputContent {
	position: fixed;
	/* 固定在底部，输入法弹出时上推而非缩放 */
	bottom: 0;
	left: 0;
	right: 0;
}

body,
.body {
	max-width: 640px;
	min-width:320px;
	width:100%;
	margin: 0 auto;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	/* margin: 0; */
	background-color: #000000;
	overflow: hidden;
}

.container {
	position: absolute;
	bottom: 0;
	z-index: 2;
	/* 距离底部 20px */
	width: 100%;
	height: 60px;

}

.container .inputbox {
	position: relative;
	background-color: #F6F6F6;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 10px;
	box-sizing: border-box;
	width: 100%;
	/* 设置高度 */
	align-items: center;
	/* 垂直居中内容 */
	
}

@keyframes slideDown {
	0% {
		transform: translateY(0);
		opacity: 1;
	}

	100% {
		transform: translateY(100px);
		/* 向下移动 100px */
		opacity: 0;
		/* 渐变消失 */
	}
}

@keyframes slideUp {
	0% {
		transform: translateY(100px);
		opacity: 0;
	}

	100% {
		transform: translateY(0px);
		/* 向下移动 100px */
		opacity: 1;
		/* 渐变消失 */
	}
}

/* 动画类 */
.hide-with-animation {
	animation: slideDown 0.5s forwards;
	/* forwards 保持动画结束状态 */
}

/* 动画类 */
.show-with-animation {
	animation: slideUp 0.5s forwards;
	/* forwards 保持动画结束状态 */
}

/* 滚动视图容器 */
.scroll-container {
	position: absolute;
	/* 绝对定位 */
	bottom: 60px;
	/* 距离顶部 50px */
	max-width: 640px;
	min-width:320px;
	width: 88%;
	/* 设置容器宽度 */
	height: 30vh;
	/* 设置容器高度 */
	overflow-y: auto;
	/* 启用垂直滚动 */
	border: 1px solid rgba(0, 0, 0, 0.0);
	/* 添加边框（可选） */
	background: rgba(0, 0, 0, 0.0);
	/* 半透明背景 */
	padding: 5px;
	box-sizing: border-box;
}
@media (min-width:431px){
.scroll-container{
	width:80%;
}	
}

/* 自定义滚动条样式 */
.scroll-container::-webkit-scrollbar {
	width: 8px;
	/* 设置滚动条宽度 */
}

.scroll-container::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.0);
	/* 滚动条轨道颜色 */
	border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.3);
	/* 滚动条滑块颜色 */
	border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.5);
	/* 鼠标悬停时滑块颜色 */
}

/* 左右元素容器 */
.item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	position: relative;
	z-index: 10;
	/* 元素之间的间距 */
}

/* 左边元素样式 */
.left {
	background-color: #549877;
	background-color: rgba(84, 152, 119, 0.5);
	padding: 10px;
	border-radius: 5px;
	/* margin-left: 10px; */
	color: #fff;
	max-width: 100%;
	word-wrap: break-word;
	white-space: normal;
	box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
	/* 添加阴影 */
}

/* 右边元素样式 */
.right {
	background-color: #1880FF;
	background-color: rgba(24, 128, 255, 0.5);
	/* 半透明蓝色 */
	padding: 13px 15px;
	border-radius: 5px;
	color: #fff;
	/* margin-right: 10px; */
	font-size: 16px;
	max-width: 70%;
	word-wrap: break-word;
	white-space: normal;
	box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
	/* 添加阴影 */
}

/* 靠左对齐 */
.align-left {
	justify-content: flex-start;
	/* 靠左 */
}

/* 靠右对齐 */
.align-right {
	justify-content: flex-end;
	/* 靠右 */
}






#userInput {

	/* margin-left: -10px; */
	flex: 1;
	/* 输入框占据剩余空间 */
	padding: 10px;
	padding-left: 30px;
	font-size: 16px;
	border: none;
	/* 去掉默认边框 */
	border-radius: 4px;
	outline: none;
	/* 去掉聚焦时的外边框 */
	/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
	/* 添加阴影 */
	transition: box-shadow 0.3s ease;
	/* box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); */
	/* 添加阴影 */
	/* 添加阴影过渡效果 */
	background-color: #FFFFFF;
	height: 100%;
}

/* #userInput:focus {
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
     
    } */

#submitButton {
	/* padding: 10px 20px;
      font-size: 16px;
      background-color: #007bff; */
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	/* box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); */
	/* 添加阴影 */
}

/* #submitButton:hover {
      background-color: #0056b3;
      鼠标悬停时改变按钮颜色
    } */


#switchMode {
	/* margin-left: -10px; */
	/* padding: 10px 10px; */
	font-size: 16px;
	width:30px;
	height:30px;
	background: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	/* position: absolute;
	  top:22px;
	  left:10px; */
}

/* #switchMode img {

      box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    } */

video,
canvas {}

#video {
	position: absolute;
	top: -9999px;
	left: -9999px;
	width: 1px;
	height: 1px;
	object-fit: contain;
}

video::-webkit-media-controls-picture-in-picture-button {
	display: none;
}
.videobox{
	width:100%;
	height:100vh;
	
	max-height:100vh;
	object-fit: cover;
	position: relative;
}
#canvas_video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#canvas_gl {
	position: absolute;
	top: -9999px;
	left: -9999px;
	width: 128px;
	height: 128px;
}


#screen {
	position: absolute;
	bottom: -1000;
	right: -1000;
	width: 1px;
	height: 1px;
}

#uploadButton {
	width: 100%;
	height: 50px;
	margin-top: 10px;
}





#overlayButton {
	pointer-events: none;
	position: fixed;
	/* 固定定位 */
	top: 0;
	left: 0;
	width: 100%;
	/* 宽度 100% */
	height: 100%;
	/* 高度 100% */
	background-color: rgba(0, 0, 0, 0.5);
	/* 半透明背景 */
	display: flex;
	justify-content: center;
	flex-direction: column;
	/* 水平居中 */
	align-items: center;
	/* 垂直居中 */
	font-size: 30px;
	color: white;
	cursor: pointer;
	/* 鼠标指针为手型 */
	z-index: 1000;
	/* 确保在最上层 */
}

#overlayButton .loading {
	font-size: 30px;
}

#overlayButton .loading::after {
	content: '...';
	display: inline-block;
	width: 20px;
	animation: dots 1.5s infinite;
}

/* 定义动画 */
@keyframes dots {

	0%,
	20% {
		content: '.';
	}

	40% {
		content: '..';
	}

	60% {
		content: '...';
	}

	80%,
	100% {
		content: '';
	}
}



/* 按钮文字样式 */
#overlayButton span {
	padding: 20px 40px;
	background-color: rgba(255, 255, 255, 0.0);
	/* 半透明背景 */
	border-radius: 8px;
	font-size: 30px;
	transition: background-color 0.3s ease;
	/* 过渡效果 */
}

/* 鼠标悬停效果 */
#overlayButton:hover span {
	background-color: rgba(255, 255, 255, 0.0);
	/* 背景变亮 */
}



/* 覆盖全屏的视频容器 */
#videoOverlay {
	position: fixed;
	/* 固定定位 */
	top: 0;
	left: 0;
	width: 100%;
	/* 宽度 100% */
	height: 100%;
	/* 高度 100% */
	background-color: black;
	/* 背景为黑色 */
	display: flex;
	justify-content: center;
	/* 水平居中 */
	align-items: center;
	/* 垂直居中 */
	z-index: 1000;
	/* 确保在最上层 */
}

/* 视频样式 */
#videoOverlay video {
	width: auto;
	/* 视频宽度 100% */
	height: 100vh;
	/* 视频高度 100% */
	object-fit: cover;
	/* 保持视频比例，覆盖整个容器 */
}

/* 提示文字样式 */
#videoOverlay .hint {
	position: absolute;
	bottom: 20px;
	color: white;
	font-size: 18px;
	text-align: center;
	width: 100%;
}





.voiceInfo {
	flex: 1;
	/* 输入框占据剩余空间 */
	padding: 10px;
	font-size: 16px;
	border: none;
	/* 去掉默认边框 */
	border-radius: 4px;
	outline: none;
	/* 去掉聚焦时的外边框 */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	/* 添加阴影 */
	transition: box-shadow 0.3s ease;
	box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
	/* 添加阴影 */
	/* 添加阴影过渡效果 */
	display: flex;
	/* 使用 Flexbox 布局 */
	justify-content: center;
	/* 水平居中 */
	align-items: center;
	/* 垂直居中 */
	text-align: center;
	/* 文字内容居中 */
}


.poster {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height:calc(100vh - 60px) ;
	/*height:100vh;*/
	background-image: url('../image/bg.webp');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: left top;
	z-index: 2;
}
.poster .pepoleimg{
	
	position: absolute;
	width: 20vh;
	bottom: 10%;
	left: 33%;
	z-index: 1;
}
.poster .ckjt{
	position: absolute;
	top:0;
	left:0;
}

#stopButton {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	padding: 10px 20px;
	font-size: 16px;
	background-color: #FFFFFF;
	color: #333;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#stopButton i {
	display: inline-block;
	width: 23px;
	height: 23px;
	background-image: url(../image/stop.png);
	background-size: 100% 100%;
	vertical-align: middle;
}


/* 确保弹窗在小屏幕上居中显示 */
/* 确保弹窗在小屏幕上居中显示 */
.modal {
	display: none;
	position: absolute;

	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

/* 调整弹窗内容的宽度和高度 */
.modal-content {
	position: absolute;
	top: 50%;
	left: 50%;

	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	background-color: transparent;
	/* padding: 15px; */
	/* 减小内边距以适应小屏幕 */
	border-radius: 8px;
	max-width: 90%;
	/* 确保在小屏幕上宽度合适 */
	min-width: 60%;
	width: auto;
	/* 重置宽度为自动 */
	max-height: 90vh;
	/* 确保高度不超过屏幕 */
	overflow-y: auto;
	/* 允许垂直滚动 */
}

.modal-content .modal-title {
	background-image: url(../image/titlebg.png);
	background-size: 100% 100%;
	padding: 15px;
	font-size: 18px;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-content .modal-title i {
	display: inline-block;
	width: 25px;
	height: 25px;
	background-image: url(../image/close.png);
	background-size: 100% 100%;
	cursor: pointer;
}

.modal-content .modal-main {
	background-color: white;
	padding: 15px;
}

/* 调整图片容器的布局 */
.image-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
	/* 减小间隔 */
	/* margin-top: 10px; */
}

/* 调整图片项的宽度 */
.image-item {
	max-width: calc(50% - 5px);
	/* 在小屏幕上每行显示 2 张图片 */
	margin-bottom: 5px;
	/* 减小底部外边距 */
}

/* 确保图片自适应容器 */
.image-item img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#voiceBtn {
	width: 100%;
	height: 35px;
	background-color: #ffffff;
	border: 0;
	font-size: 16px;
	color: #333;
	border-radius: 4px;
	padding:0;
}

#voiceBtn.active {
	background-color: #a3a3a3;
}


.xiaohu {
	width:10vh;
	position: absolute;
	bottom: 12%;
	left: 10%;
	z-index: 1;
}

.xiaohu img {
	width: 100%;
}

.tips {
	position: absolute;
	top: 29%;
	right: 8%;
	
	
}


.tips img {
	width: 29vw;
}
@media all and (min-width:640px){
	.tips img{
		width:20vh;
	}
	.tips{
		top:18%;
		right:16%
	}
}
.tips img.active{
	display: block;
}
.tips img.hover{
	display: none;
}
.tips:hover img.active{
	display: none;
}
.tips:hover img.hover{
	display: block;
}

#inputContent {

	position: absolute;
	bottom: 0;
	z-index: 2;
	width: 100%;
	height: 60px;

}

#inputContent>.container {
	display: none;
}
 #inputContent>.container.active{
	 display: block;
 }
 
 /* 在 style2.css 中添加或修改以下样式 */

/* 统一输入框容器的布局和尺寸 */
#TextInputDiv .inputbox,
#VoiceInputDiv .inputbox {
    display: flex;          /* 使用Flex布局 */
    align-items: center;    /* 垂直居中内容 */
    gap: 15px;              /* 统一间距 */
    padding: 10px 15px;          /* 统一内边距 */
    width: 100%;            /* 占满父容器宽度 */
    box-sizing: border-box; /* 包含内边距和边框 */
}

/* 统一输入框和按钮的宽度和样式 */
#userInput,
#voiceBtn {
    flex: 1;                /* 占据剩余空间，确保宽度一致 */
    height: 38px;           /* 统一高度 */
    padding: 10px 15px;          /* 统一内边距 */
    font-size: 16px;        /* 统一字体大小 */
    border: 1px solid #e0e0e0; /* 统一边框（可选） */
    border-radius: 4px;     /* 统一圆角 */
    outline: none;          /* 移除聚焦外边框 */
    background-color: #ffffff; /* 统一背景色 */
}
#voiceBtn{
	padding:0;
}

/* 确保容器激活时的样式一致 */
#inputContent>.container.active {
    display: flex;          /* 使用Flex布局 */
    width: 100%;            /* 占满宽度 */
}

