﻿*{margin:0;padding:0;font-family:"Microsoft YaHei";}
li{list-style:none}
img{border:none;}

/* 右侧快捷菜单（换彩 / 群规 / 客服 …） */
.game-float-menu {
	position: fixed;
	right: 6px;
	bottom: 68px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	pointer-events: none;
}

.game-float-menu__item {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-float-menu__item:active {
	transform: scale(0.94);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.game-float-menu__item--switch { background: #f5b731; }
.game-float-menu__item--rules { background: #8d6e63; }
.game-float-menu__item--kefu { background: #26c6da; }
.game-float-menu__item--recharge { background: #43a047; }
.game-float-menu__item--verify { background: #9575cd; }
.game-float-menu__item--trend { background: #c4a574; }
.game-float-menu__item--peek { background: #e53935; }
.game-float-menu__item--back { background: #ec407a; }

@keyframes jnd28PeekFlash {
	0%, 100% { box-shadow: 0 0 0 0 rgba(61, 161, 254, 0); }
	50% { box-shadow: 0 0 0 6px rgba(61, 161, 254, 0.45); }
}

.jnd28-peek-flash {
	animation: jnd28PeekFlash 0.6s ease 2;
}

/* 兼容旧类名，避免缓存样式残留 */
.OnlineService_Bg { display: none !important; }

/* 聊天区右侧留白，避免被快捷菜单遮挡 */
.main #03,
.main .betup {
	padding-right: 48px;
	box-sizing: border-box;
}

body.jnd28-page .main.jnd28-main {
	padding-right: 48px;
	box-sizing: border-box;
}

.bet-msg__body,
.cs-msg__body {
	max-width: calc(100% - 54px);
}

/* 快投面板打开时隐藏右侧快捷菜单，避免遮挡下注按钮 */
body.quick-bet-open .game-float-menu {
	display: none !important;
}

/* 换彩：layer 底部弹层 */
.layui-layer.game-switch-layer {
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	border-radius: 16px 16px 0 0 !important;
	overflow: hidden;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15) !important;
}
.layui-layer.game-switch-layer .layui-layer-title {
	height: 48px;
	line-height: 48px;
	padding: 0 42px;
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(to right, #3ea0fe, #21d0fe);
	border: none;
}
.layui-layer.game-switch-layer .layui-layer-setwin {
	top: 10px;
	right: 10px;
}
.layui-layer.game-switch-layer .layui-layer-setwin .layui-layer-close1 {
	background-position: 1px -40px;
	filter: brightness(10);
}
.layui-layer.game-switch-layer .layui-layer-content {
	padding: 0 !important;
	background: #f7f8fa;
}
.game-switch-layer-list {
	margin: 0;
	padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
	list-style: none;
}
.game-switch-layer-item {
	margin-bottom: 10px;
}
.game-switch-layer-item:last-child {
	margin-bottom: 0;
}
.game-switch-layer-item a {
	display: flex;
	align-items: center;
	padding: 12px 14px;
	background: #fff;
	border-radius: 12px;
	text-decoration: none;
	color: #242424;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.game-switch-layer-item.is-current a {
	background: #eef6ff;
	border: 1px solid #b8d9ff;
	box-shadow: none;
}
.game-switch-layer-item__icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	margin-right: 12px;
	border-radius: 50%;
	overflow: hidden;
	background: #f0f0f0;
}
.game-switch-layer-item__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.game-switch-layer-item__info {
	flex: 1;
	min-width: 0;
}
.game-switch-layer-item__name {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #242424;
}
.game-switch-layer-item__name i {
	font-style: normal;
	font-size: 14px;
	color: #666;
	font-weight: 500;
}
.game-switch-layer-item__tag,
.game-switch-layer-item__go {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-style: normal;
	line-height: 1.2;
}
.game-switch-layer-item__tag {
	color: #3da1fe;
}
.game-switch-layer-item__go {
	color: #999;
}
.game-switch-layer-item__arrow {
	flex-shrink: 0;
	font-size: 22px;
	color: #ccc;
	margin-left: 8px;
	line-height: 1;
}
.game-switch-layer-item.is-current .game-switch-layer-item__arrow {
	color: #3da1fe;
}
