/* body样式 */
html, body {
	height: 100%;
	margin: 0px;
	padding: 0px;
	background-color: #efeff4;
	overflow: hidden;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
}

/* 消息列表区域 */
.mui-content {
	height: 100%;
	padding-bottom: 50px; /* 底部内边距，与footer标签的高度保持一致 */
}
#message-list {
	height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.message-item {
	padding: 8px;
	clear: both;
}
.message-item .avatar {
	width: 38px;
	height: 38px;
	border-radius: 3px;
	float: left;
}
.message-item .nickname {
	color: #333;
	font-size: 15px;
	margin: 0px 45px;
}
.message-item .nickname .date {
	color: #888;
	margin: 0 0.5em;
}
.message-item .message-content {
	display: inline-block;
	border-radius: 5px;
	border: solid 1px #d3d3d3;
	background-color: #FFFFFF;
	color: #333;
	padding: 8px;
	vertical-align: top;
	font-size: 15px;
	position: relative;
	margin: 0px 8px;
	max-width: 75%;
	min-width: 35px;
	float: left;
	word-wrap: break-word;
	word-break: break-all;
}
.message-item .message-content .message-content-inner .mui-icon,
.message-item .message-content .message-content-inner .mui-icon-extra {
	font-size: 20px;
	font-weight: bold;
}
.message-item .message-content .message-content-inner .file-size {
	margin-bottom: 0;
}
.message-item .message-content .message-content-inner .action {
	margin-bottom: 0;
	color: #007aff;
}
.message-item .message-content .message-content-inner .action span {
	cursor: pointer;
}
.message-item .message-content .message-content-inner .action span:active {
	opacity: 0.3;
}
/* 设为block可以移除img标签底部多出的5px的边距 */
.message-item .message-content .message-content-inner img {
	display: block;
}
/* 隐藏视频操作栏中的音量控制 */
.message-item .message-content .message-content-inner video::-webkit-media-controls-mute-button {
	display: none !important;
}
.message-item .message-content .message-content-inner .map-map {
	width: 200px;
	height: 150px;
}
.message-item .message-content .message-content-inner.pc .map-map {
	width: 300px;
	height: 180px;
}
.message-item .message-content .message-content-inner .map-neighborhood {
	width: 200px;
	font-size: 14px;
	text-align: right;
}
.message-item .message-content .message-content-inner.pc .map-neighborhood {
	width: 300px;
}
.message-item .message-content .message-content-arrow {
	position: absolute;
	border: inherit;
	border-right: none;
	border-top: none;
	background-color: inherit;
	width: 10px;
	height: 10px;
	left: -5px;
	top: 12px;
	-webkit-transform: rotateZ(45deg);
	transform: rotateZ(45deg);
}
.message-item-self .avatar,
.message-item-self .message-content {
	float: right;
}
.message-item-self .nickname {
	text-align: right;
}
.message-item-self .message-content .message-content-inner .mui-icon-extra {
	margin-left: 4px;
}
.message-item-self .message-content .message-content-arrow {
	left: auto;
	right: -5px;
	-webkit-transform: rotateZ(225deg);
	transform: rotateZ(225deg);
}
.message-item-self[data-media='1'] .message-content,
.message-item-self[data-media='1'] .message-content .message-content-arrow {
	background-color: lightgreen;
	color: #333;
	border-color: #4CD964;
}

/* 底部区域 */
footer {
	position: fixed;
	width: 100%;
	height: 50px;
	min-height: 50px;
	border-top: solid 1px #bbb;
	left: 0px;
	bottom: 0px;
	overflow: hidden;
	padding: 0px 50px;
	background-color: #fafafa;
	z-index: 2;
}
.footer-left, .footer-right {
	position: absolute;
	width: 50px;
	height: 50px;
	bottom: 0;
	text-align: center;
	vertical-align: middle;
	line-height: 100%;
	padding: 12px 4px;
}
.footer-left {
	left: 0;
}
.footer-right {
	right: 0;
}
.footer-right .mui-icon-paperplane:before {
	content: "发送";
}
.footer-right .mui-icon-paperplane {
	font-size: 16px;
	word-break: keep-all;
	line-height: 100%;
	padding-top: 6px;
	color: rgba(0, 135, 250, 1);
}
.footer-center {
	height: 100%;
	padding: 5px 0px;
}
.footer-center [class*=input] {
	width: 100%;
	height: 100%;
	border-radius: 5px;
}
.footer-center .input-text {
	background: #fff;
	border: solid 1px #ddd;
	padding: 10px !important;
	font-size: 16px !important;
	line-height: 18px !important;
	font-family: verdana !important;
	overflow: hidden;
}
#btn-tape {
	-webkit-user-select: none !important;
	user-select: none !important;
}

/* 输入文本的预格式化标签，样式与输入框input-text保持一致 */
#message-input-pre {
	background: #fff;
	border: solid 1px #ddd;
	padding: 10px !important;
	font-size: 16px !important;
	font-family: verdana !important;
	line-height: 18px !important;
	overflow: visible;
	position: absolute;
	left: -1000px;
	right: 0px;
	word-break: break-all;
	word-wrap: break-word;
}

/* 录音操作的提示框 */
.tape-progress {
	width: 140px;
	height: 140px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -70px;
	margin-top: -70px;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 5px;
	-webkit-transition: .15s;
	z-index: 2;
}
.progress-schedule {
	background-color: rgba(0, 0, 0, 0);
	border: 5px solid rgba(0, 183, 229, 0.9);
	opacity: 0.9;
	border-left: 5px solid rgba(0, 0, 0, 0);
	border-right: 5px solid rgba(0, 0, 0, 0);
	border-radius: 50px;
	box-shadow: 0 0 15px #2187e7;
	width: 46px;
	height: 46px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -23px;
	margin-top: -23px;
	-webkit-animation: spinner-spin 1s infinite linear;
	animation: spinner-spin 1s infinite linear;
}
.progress-sigh {
	display: none;
	border-radius: 50px;
	box-shadow: 0 0 15px #2187e7;
	width: 46px;
	height: 46px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -23px;
	margin-top: -23px;
	text-align: center;
	line-height: 46px;
	font-size: 40px;
	font-weight: bold;
	color: #2187e7;
}
.progress-sigh-show .progress-schedule {
	display: none !important;
}
.progress-sigh-show .progress-sigh {
	display: block !important;
}
.progress-tip {
	font-size: 12px;
	color: #bbb;
	text-align: center;
	position: absolute;
	border-radius: 5px;
	width: 130px;
	margin: 5px 5px;
	padding: 5px;
	left: 0px;
	bottom: 0px;
}
.tip-cancel {
	background-color: darkred;
}

/* 底部弹出的操作表 */
#action-sheet .action-list {
	width: min-content;
	min-width: 100%;
	height: 284px;
	padding-bottom: 16px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: center;
	justify-content: flex-start;
}
#action-sheet .action-list .action-item {
	width: 20%;
	height: 100px;
	margin: 0 2.5%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
#action-sheet .action-list .action-item .action-icon {
	width: 44px;
	height: 44px;
	padding: 10px;
	background-color: white;
	font-weight: bold;
	border-radius: 10px;
}
#action-sheet .action-list .action-item .action-icon:active {
	opacity: 0.3;
}
#action-sheet .action-list .action-item .action-text {
	font-size: 14px;
	color: #888;
	padding: 4px 0;
}
#action-sheet .action-list .action-item input[type=file] {
	position: absolute;
	width: inherit;
	height: inherit;
	opacity: 0;
}
/* 隐藏遮罩层 */
.mui-backdrop {
	display: none;
}

/* 消息长按菜单 */
#message-content-popover {
	width: 120px;
}
#message-content-popover,#message-content-popover .mui-popover-arrow:after {
	background-color: #555;
}
#message-content-popover .action-list {
	width: min-content;
	min-width: 100%;
	height: max-content;
	color: white;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: center;
	justify-content: flex-start;
}
#message-content-popover .action-list .action-item {
	width: 49%;
	height: 50px;
	margin: 8px 0;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
}
#message-content-popover .action-list .action-item a {
	color: unset;
}
#message-content-popover .action-list .action-item .action-icon:active {
	opacity: 0.3;
}
#message-content-popover .action-list .action-item .action-text {
	font-size: 12px;
}
