/* 客服聊天室 - 参考气泡样式 */
.jnd28-main .betup,
.jnd28-main #03 {
	background: #ededed;
	padding: 8px 48px 12px 10px;
}

#03 {
	list-style: none;
	margin: 0;
	padding: 0;
	min-height: 120px;
}

#03 > li,
#03 > .bet-msg,
#03 > .cs-msg {
	list-style: none;
}

/* 顶部提示条 */
#03 .chat-tip-bar {
	text-align: center;
	font-size: 12px;
	color: #999;
	padding: 8px 0 12px;
	margin: 0;
	background: transparent;
	width: auto;
}

/* ========== 客服消息 ========== */
.cs-msg {
	display: flex;
	align-items: flex-start;
	margin: 0 0 14px 0;
	padding: 0;
	clear: both;
}

.cs-msg__avatar {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	margin-right: 8px;
}

.cs-msg__avatar img {
	width: 42px;
	height: 42px;
	border-radius: 4px;
	object-fit: cover;
	background: #d8e8f8;
}

.cs-msg__body {
	flex: 1;
	min-width: 0;
	max-width: calc(100% - 54px);
}

.cs-msg__meta {
	line-height: 1.3;
	margin-bottom: 4px;
	font-size: 12px;
}

.cs-msg__name {
	color: #e74c3c;
	font-weight: 600;
	margin-right: 8px;
}

.cs-msg__time {
	color: #999;
	font-size: 11px;
}

.cs-msg__bubble {
	display: inline-block;
	max-width: 100%;
	background: #fff;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.55;
	color: #333;
	word-break: break-word;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	position: relative;
}

.cs-msg__bubble::before {
	content: '';
	position: absolute;
	left: -6px;
	top: 10px;
	border: 6px solid transparent;
	border-right-color: #fff;
}

.cs-msg__bubble .cs-at {
	color: #e74c3c;
	font-weight: 600;
}

.cs-msg__bubble--record {
	display: block;
	width: 100%;
	max-width: 100%;
}

.cs-msg__bubble--record table {
	width: 100%;
	font-size: 12px;
	border-collapse: collapse;
}

.cs-msg__bubble--record p {
	margin: 4px 0;
}

/* 消息类型标签（可选，气泡上方小字） */
.cs-msg__tag {
	display: inline-block;
	font-size: 10px;
	color: #888;
	background: #f5f5f5;
	border-radius: 2px;
	padding: 1px 5px;
	margin-bottom: 4px;
}

.cs-msg--draw .cs-msg__tag::after { content: '开奖'; }
.cs-msg--close .cs-msg__tag::after { content: '封盘'; }
.cs-msg--bet .cs-msg__tag::after { content: '投注'; }
.cs-msg--record .cs-msg__tag::after { content: '投注记录'; }

/* 隐藏旧版居中灰条 */
.betup li.notice,
.betup li.notices,
.betup .bettime {
	display: none !important;
}

/* ========== 会员投注消息 ========== */
.bet-msg {
	display: flex;
	align-items: flex-start;
	margin: 0 0 14px 0;
	padding: 0;
	clear: both;
}

.bet-msg__avatar {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	margin-right: 8px;
}

.bet-msg__avatar img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
}

.bet-msg__body {
	flex: 1;
	min-width: 0;
	max-width: calc(100% - 54px);
}

.bet-msg__meta {
	font-size: 12px;
	color: #999;
	margin-bottom: 4px;
}

.bet-msg__name {
	color: #666;
	margin-right: 8px;
}

.bet-msg__bubble {
	background: #fff;
	border-radius: 6px;
	padding: 10px 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	font-size: 13px;
	color: #333;
}

.bet-msg__period {
	font-size: 12px;
	color: #888;
	margin-bottom: 6px;
}

.bet-msg__period .bet-msg__sum {
	float: right;
	color: #e74c3c;
}

.bet-msg__lines {
	background: #f7f7f7;
	border-radius: 4px;
	padding: 6px 8px;
}

.bet-msg__line {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
	font-size: 13px;
	border-bottom: 1px solid #eee;
}

.bet-msg__line:last-child {
	border-bottom: none;
}

.bet-msg__amt {
	color: #e74c3c;
	font-weight: 600;
}

/* 福利/规则长文 */
.cs-msg--rules .cs-msg__bubble {
	background: #fff;
	font-size: 13px;
	line-height: 1.6;
}

.cs-msg--rules .cs-msg__bubble::before {
	display: none;
}
