/*
 * 聊天室新皮肤 — 2026-11-11 Echo 重写
 * 清爽浅色 + 微信绿点缀，手机优先
 * 注意：不要改动任何 id / JS 用的 class 名，只改样式
 */

/* ---------- 全局 ---------- */
* { -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	color: #1f2329;
	background: #f2f4f7;
}
body > .scrollbar-macosx {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
}
a { cursor: pointer; color: #1f2329; text-decoration: none; }
a:hover { color: #07c160; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
.container { margin-top: 56px; max-width: 960px; }

/* ---------- 顶栏 ---------- */
.header {
	position: fixed;
	z-index: 7778;
	width: 100%;
	height: 56px;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid #e8eaed;
	box-shadow: 0 2px 12px rgba(31, 35, 41, .05);
	color: #1f2329;
}
.header .toptext { line-height: 56px; padding: 0 18px; float: left; font-size: 16px; }
.header .toptext a { color: #1f2329; font-weight: 600; }
.header .toptext a:hover { color: #07c160; }
.header .toptext .room-title { color: #8a8f98; font-weight: 500; margin-left: 10px; font-size: 14px; }
.header .topnavlist { float: right; }
.header .topnavlist > li { height: 56px; line-height: 56px; text-align: center; float: left; }
.header .topnavlist li a {
	display: block;
	position: relative;
	z-index: 8889;
	margin-right: 8px;
	padding: 0 10px;
	height: 56px;
	color: #5f6368;
	font-size: 14px;
}
.header .topnavlist li a:hover { color: #07c160; }

/* 在线用户弹窗 */
.header .popover {
	position: relative;
	z-index: 8889;
	left: -235px;
	color: #1f2329;
	max-width: 300px;
	width: 300px;
	border: 1px solid #eceef1;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(31, 35, 41, .14);
	padding: 0;
}
.header .popover .arrow { border-bottom-color: #fff; }
.header .popover-title {
	background: #fff;
	border-bottom: 1px solid #f0f1f3;
	border-radius: 14px 14px 0 0;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 16px;
	margin: 0;
}
.header .popover-content { text-align: center; padding: 6px 8px 10px; }
.header .userlist .popover { left: -150px; width: 300px; }
.header .userlist .popover-content { max-height: 400px; overflow-y: auto; }
.header .userlist .popover .arrow { margin-left: 20px; }
.header .userlist .popover li {
	text-align: left;
	height: 44px;
	line-height: 44px;
	padding: 0 10px;
	border-radius: 10px;
	font-size: 14px;
}
.header .userlist .popover li:hover { background-color: #f4f6f8; cursor: pointer; }
.header .userlist .popover li img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 8px;
	vertical-align: middle;
}
.header .userinfo .popover { left: -160px; }
.header .clapboard {
	position: fixed;
	z-index: 8888;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(31, 35, 41, .35);
}

/* ---------- 登录页 ---------- */
.login { background: linear-gradient(160deg, #e9f9f0 0%, #eef4fb 55%, #f7f1fb 100%); }
.login .main.container { max-width: 480px; margin-top: 0; }
.login .jumbotron {
	background: #fff;
	text-align: center;
	border-radius: 24px;
	box-shadow: 0 16px 48px rgba(31, 35, 41, .10);
	padding: 38px 34px 30px;
	margin: 7vh auto 0;
}
.login .jumbotron h3 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: #1f2329; }
.login .jumbotron .sub { color: #8a8f98; font-size: 14px; margin: 0 0 22px; }
.login .user_portrait { margin: 0 0 6px; }
.login .user_portrait img {
	width: 104px;
	height: 104px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #e6f7ee;
	box-shadow: 0 6px 18px rgba(7, 193, 96, .18);
}
.login .select_portrait { margin: 16px 0 4px; }
.login .select_portrait img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	opacity: .55;
	cursor: pointer;
	margin: 4px;
	border: 2px solid transparent;
	transition: all .15s ease;
}
.login .select_portrait img:hover { opacity: 1; transform: scale(1.08); }
.login .select_portrait .t {
	opacity: 1;
	border-color: #07c160;
	box-shadow: 0 0 0 3px rgba(7, 193, 96, .18);
}
.login .input-group { display: block; margin: 22px auto 0; max-width: 320px; }
.login .input-group input {
	display: block;
	width: 100%;
	height: 46px;
	margin: 10px auto;
	padding: 0 14px;
	font-size: 15px;
	border: 1px solid #dfe3e8;
	border-radius: 12px;
	box-shadow: none;
}
.login .input-group input:focus {
	border-color: #07c160;
	box-shadow: 0 0 0 3px rgba(7, 193, 96, .15);
	outline: none;
}
.login .input-group .btn {
	display: block;
	width: 100%;
	height: 48px;
	margin-top: 16px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, #07c160, #05a854);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(7, 193, 96, .28);
}
.login .input-group .btn:hover {
	background: linear-gradient(135deg, #08d367, #07b356);
	color: #fff;
	box-shadow: 0 8px 20px rgba(7, 193, 96, .34);
}
.login .footer {
	position: fixed;
	z-index: 8888;
	left: 50%;
	transform: translateX(-50%);
	bottom: 20px;
	width: auto;
	height: auto;
	line-height: 1;
	padding: 10px 20px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: #5f6368;
	font-size: 14px;
	box-shadow: 0 6px 20px rgba(31, 35, 41, .10);
}
.login .footer span { color: #07c160; font-weight: 700; }

/* ---------- 大厅（房间列表） ---------- */
.rooms { background: linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%); }
.rooms .main.container { max-width: 960px; }
.rooms .room_list { margin-top: 24px; }
.rooms .room_list .thumbnail {
	display: block;
	position: relative;
	padding: 0;
	margin-bottom: 20px;
	border: none;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 20px rgba(31, 35, 41, .08);
	transition: transform .2s ease, box-shadow .2s ease;
}
.rooms .room_list .thumbnail:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(31, 35, 41, .14);
}
.rooms .room_list .thumbnail img { width: 100%; height: 132px; object-fit: cover; display: block; }
.rooms .room_list .thumbnail .room-name {
	padding: 12px 14px 13px;
	font-size: 15px;
	font-weight: 600;
	color: #1f2329;
}
.rooms .room_list a > span {
	position: absolute;
	top: 10px;
	right: 10px;
	bottom: auto;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
}

/* ---------- 聊天室 ---------- */
.room { background: #f2f4f7; }
.room .main.container { max-width: 860px; }
.room .main.container.private { margin-top: 0; }
.room .chat_info { margin-bottom: 132px; padding: 8px 4px 0; }
.room .chat_info li { margin-top: 18px; overflow: hidden; }
.room .chat_info li > img {
	width: 42px;
	height: 42px;
	margin: 0 10px 0 0;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(31, 35, 41, .12);
}
.room .chat_info .right > img { margin: 0 0 0 10px; }
.room .chat_info li > b { font-size: 13px; font-weight: 500; color: #8a8f98; }
.room .chat_info li > i { display: block; margin: 2px 0 6px; font-size: 12px; font-style: normal; color: #b0b6bf; }
.room .chat_info .left > i { margin-left: 52px; }
.room .chat_info .right > i { margin-right: 52px; }
.room .chat_info div {
	text-align: left;
	padding: 10px 14px;
	margin: 0 52px;
	word-break: break-all;
	line-height: 1.65;
	font-size: 15px;
	border-radius: 16px;
	max-width: 68%;
}
.room .chat_info .left div {
	background: #fff;
	border: 1px solid #e8eaed;
	border-top-left-radius: 4px;
	box-shadow: 0 2px 8px rgba(31, 35, 41, .05);
}
.room .chat_info .right div {
	background: #95ec69;
	border-top-right-radius: 4px;
	box-shadow: 0 2px 8px rgba(7, 193, 96, .18);
}
.room .chat_info div > img { max-width: 100%; max-height: 250px; border-radius: 12px; display: block; }
.room .chat_info .left { text-align: left; }
.room .chat_info .right { text-align: right; }
.room .chat_info .left img,
.room .chat_info .left div { float: left; }
.room .chat_info .right > img,
.room .chat_info .right > div { float: right; }
.room .chat_info .systeminfo { text-align: center; }
.room .chat_info .systeminfo span {
	display: block;
	width: fit-content;
	max-width: 90%;
	margin: 0 auto;
	padding: 5px 14px;
	text-align: center;
	border-radius: 999px;
	font-size: 12px;
	background: #e3e6ea;
	color: #7a8089;
}

/* 底部输入栏 */
.room .input { z-index: 7777; width: 100%; }
.room .input .center {
	max-width: 860px;
	width: 100%;
	margin: 0 auto;
	background: #fff;
	border-top: 1px solid #e6e8eb;
	box-shadow: 0 -6px 24px rgba(31, 35, 41, .07);
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	height: auto;
}
.room .input .tools { flex: 0 0 100%; height: 30px; line-height: 30px; margin: 0 0 6px 2px; }
.room .input .tools span { padding: 6px; cursor: pointer; color: #7a8089; font-size: 20px; }
.room .input .tools span:hover { color: #07c160; }
.room .input .text { flex: 1 1 auto; margin: 0; height: auto; line-height: normal; min-width: 0; }
.room .input .text > div { padding: 0; }
.room .input .text .emojionearea { border: 1px solid #dfe3e8; border-radius: 12px; box-shadow: none; }
.room .input .text .emojionearea.focused { border-color: #07c160; box-shadow: 0 0 0 3px rgba(7, 193, 96, .15); }
.room .input .text .emojionearea .emojionearea-editor { min-height: 42px; padding: 10px 12px; font-size: 15px; line-height: 1.5; }
.room .input ._submit { flex: 0 0 auto; margin: 0 0 0 10px; height: auto; line-height: normal; }
.room .input ._submit > div { padding: 0; }
.room .input #subxx {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #07c160;
	color: #fff;
	box-shadow: 0 4px 12px rgba(7, 193, 96, .30);
}
.room .input #subxx:hover { background: #08d367; color: #fff; }
.room .input #subxx .glyphicon { font-size: 18px; top: 0; }
.room .input .text a { color: #07c160; }
