* {
	vertical-align: baseline;
}

/* 主题切换按钮样式 */
.theme-toggle-btn {
	font-style: normal;
	border-radius: 4px;
	padding: 0 14px;
	height: 32px;
	line-height: 32px;
	color: #fff;
	background: #515ddd;
	font-size: 14px;
	text-align: center;
	cursor: pointer;
	border: none;
	transition: background-color 0.2s ease;
}

.theme-toggle-btn:hover {
	background: #3b46b8;
}


.lotteryNum {
	display: flex;
}


.balls {
	margin-right: 4px;
	color: #fff;
	width: 46px;
	height: 46px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.theme1 .balls {
	font-size: 28px;
}

.theme2 .balls, .theme3 .balls,.theme4 .balls,.theme5 .balls,.theme7 .balls {
	font-size: 24px;
}
.theme6 .balls {
  font-size: 20px;
}

.shengxiao {
	font-size: 16px;
	font-weight: 500;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lhcHisCode {
	align-items: center;
	text-align: center;
	justify-content: center;
	color: #414141;
	font-size: 14px;
}

#app .lotteryNum .num .balls {
	width: 66px;
	height: 66px;
	font-size: 32px;
	line-height: 1;
}

#app .lotteryNum .num .ball .open_code_zone_left-item-plus {
	width: 28px;
	height: 66px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #da0f1f;
	font-weight: 400;
}

/* 开奖区大球按风格单独设字号：实心球偏大，球图按内圈收小 */
body.theme1 #app .lotteryNum .num .balls {
	font-size: 44px;
}
body.theme2 #app .lotteryNum .num .balls,
body.theme3 #app .lotteryNum .num .balls,
body.theme4 #app .lotteryNum .num .balls,
body.theme7 #app .lotteryNum .num .balls {
	font-size: 32px;
}
body.theme5 #app .lotteryNum .num .balls {
	font-size: 30px;
}
body.theme6 #app .lotteryNum .num .balls {
	font-size: 28px;
}

/* 历史表、列表与卡片小球按风格设字号 */
#app .historyNum .balls,
#app .lhcHisCode .balls,
#app .postLottery .balls,
#app .numbers-panel .balls,
#app .period-table .balls,
#app .rank-board .historyNum .balls {
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

#app .historyNum .balls span,
#app .lhcHisCode .balls span,
#app .postLottery .balls span,
#app .rank-board .historyNum .balls span {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-style: normal;
	vertical-align: middle;
}

body.theme1 #app .historyNum .balls,
body.theme1 #app .lhcHisCode .balls,
body.theme1 #app .postLottery .balls {
	font-size: 28px;
}
body.theme1 #app .numbers-panel .balls {
	font-size: 24px;
}
body.theme1 #app .period-table .balls {
	font-size: 16px;
}

body.theme2 #app .numbers-panel .balls,
body.theme3 #app .numbers-panel .balls,
body.theme4 #app .numbers-panel .balls,
body.theme7 #app .numbers-panel .balls {
	font-size: 18px;
}
body.theme2 #app .period-table .balls,
body.theme3 #app .period-table .balls,
body.theme4 #app .period-table .balls,
body.theme7 #app .period-table .balls {
	font-size: 13px;
}

body.theme5 #app .historyNum .balls,
body.theme5 #app .lhcHisCode .balls,
body.theme5 #app .postLottery .balls {
	font-size: 22px;
}
body.theme5 #app .numbers-panel .balls {
	font-size: 18px;
}
body.theme5 #app .period-table .balls {
	font-size: 13px;
}

body.theme6 #app .historyNum .balls,
body.theme6 #app .lhcHisCode .balls,
body.theme6 #app .postLottery .balls {
	font-size: 20px;
}
body.theme6 #app .numbers-panel .balls {
	font-size: 16px;
}
body.theme6 #app .period-table .balls {
	font-size: 12px;
}

#app .formula-card .historyNum .balls,
#app .formula-card .balls,
body.theme1 #app .formula-card .historyNum .balls,
body.theme2 #app .formula-card .historyNum .balls,
body.theme3 #app .formula-card .historyNum .balls,
body.theme4 #app .formula-card .historyNum .balls,
body.theme5 #app .formula-card .historyNum .balls,
body.theme6 #app .formula-card .historyNum .balls,
body.theme7 #app .formula-card .historyNum .balls {
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	max-width: 36px;
	max-height: 36px;
	margin-right: 0;
	font-size: 16px !important;
	line-height: 1;
	flex: 0 0 36px;
	background-image: none !important;
	background-size: auto;
	color: #fff !important;
	overflow: hidden;
}

#app .formula-card .historyNum .balls span,
#app .formula-card .balls span,
body.theme1 #app .formula-card .historyNum .balls span,
body.theme2 #app .formula-card .historyNum .balls span,
body.theme3 #app .formula-card .historyNum .balls span,
body.theme4 #app .formula-card .historyNum .balls span,
body.theme5 #app .formula-card .historyNum .balls span,
body.theme6 #app .formula-card .historyNum .balls span,
body.theme7 #app .formula-card .historyNum .balls span {
	font-size: 16px !important;
	line-height: 1 !important;
}

#app .formula-card .historyNum .balls.red,
#app .formula-card .balls.red,
body.theme1 #app .formula-card .historyNum .balls.red,
body.theme2 #app .formula-card .historyNum .balls.red,
body.theme3 #app .formula-card .historyNum .balls.red,
body.theme4 #app .formula-card .historyNum .balls.red,
body.theme5 #app .formula-card .historyNum .balls.red,
body.theme6 #app .formula-card .historyNum .balls.red,
body.theme7 #app .formula-card .historyNum .balls.red {
	background-color: #e74c3c !important;
	color: #fff !important;
}

#app .formula-card .historyNum .balls.blue,
#app .formula-card .balls.blue,
body.theme1 #app .formula-card .historyNum .balls.blue,
body.theme2 #app .formula-card .historyNum .balls.blue,
body.theme3 #app .formula-card .historyNum .balls.blue,
body.theme4 #app .formula-card .historyNum .balls.blue,
body.theme5 #app .formula-card .historyNum .balls.blue,
body.theme6 #app .formula-card .historyNum .balls.blue,
body.theme7 #app .formula-card .historyNum .balls.blue {
	background-color: #3498db !important;
	color: #fff !important;
}

#app .formula-card .historyNum .balls.green,
#app .formula-card .balls.green,
body.theme1 #app .formula-card .historyNum .balls.green,
body.theme2 #app .formula-card .historyNum .balls.green,
body.theme3 #app .formula-card .historyNum .balls.green,
body.theme4 #app .formula-card .historyNum .balls.green,
body.theme5 #app .formula-card .historyNum .balls.green,
body.theme6 #app .formula-card .historyNum .balls.green,
body.theme7 #app .formula-card .historyNum .balls.green {
	background-color: #27ae60 !important;
	color: #fff !important;
}

#app .formula-card td.is-dim .historyNum .balls,
#app .formula-card td.is-dim .balls,
#app .formula-card td.is-dim .balls.red,
#app .formula-card td.is-dim .balls.blue,
#app .formula-card td.is-dim .balls.green,
body.theme1 #app .formula-card td.is-dim .balls,
body.theme2 #app .formula-card td.is-dim .balls,
body.theme3 #app .formula-card td.is-dim .balls,
body.theme4 #app .formula-card td.is-dim .balls,
body.theme5 #app .formula-card td.is-dim .balls,
body.theme6 #app .formula-card td.is-dim .balls,
body.theme7 #app .formula-card td.is-dim .balls,
body.theme1 #app .formula-card td.is-dim .balls.red,
body.theme1 #app .formula-card td.is-dim .balls.blue,
body.theme1 #app .formula-card td.is-dim .balls.green,
body.theme2 #app .formula-card td.is-dim .balls.red,
body.theme2 #app .formula-card td.is-dim .balls.blue,
body.theme2 #app .formula-card td.is-dim .balls.green,
body.theme3 #app .formula-card td.is-dim .balls.red,
body.theme3 #app .formula-card td.is-dim .balls.blue,
body.theme3 #app .formula-card td.is-dim .balls.green,
body.theme4 #app .formula-card td.is-dim .balls.red,
body.theme4 #app .formula-card td.is-dim .balls.blue,
body.theme4 #app .formula-card td.is-dim .balls.green,
body.theme5 #app .formula-card td.is-dim .balls.red,
body.theme5 #app .formula-card td.is-dim .balls.blue,
body.theme5 #app .formula-card td.is-dim .balls.green,
body.theme6 #app .formula-card td.is-dim .balls.red,
body.theme6 #app .formula-card td.is-dim .balls.blue,
body.theme6 #app .formula-card td.is-dim .balls.green,
body.theme7 #app .formula-card td.is-dim .balls.red,
body.theme7 #app .formula-card td.is-dim .balls.blue,
body.theme7 #app .formula-card td.is-dim .balls.green {
	background-color: #d9d9d9 !important;
	background-image: none !important;
	color: #222 !important;
}

@media (max-width: 768px) {
	#app .formula-card .historyNum .balls,
	#app .formula-card .balls,
	body.theme1 #app .formula-card .historyNum .balls,
	body.theme2 #app .formula-card .historyNum .balls,
	body.theme3 #app .formula-card .historyNum .balls,
	body.theme4 #app .formula-card .historyNum .balls,
	body.theme5 #app .formula-card .historyNum .balls,
	body.theme6 #app .formula-card .historyNum .balls,
	body.theme7 #app .formula-card .historyNum .balls {
		width: 28px;
		height: 28px;
		min-width: 28px;
		min-height: 28px;
		max-width: 28px;
		max-height: 28px;
		font-size: 13px !important;
		flex: 0 0 28px;
		overflow: hidden;
	}

	#app .formula-card .historyNum .balls span,
	#app .formula-card .balls span,
	body.theme1 #app .formula-card .historyNum .balls span,
	body.theme2 #app .formula-card .historyNum .balls span,
	body.theme3 #app .formula-card .historyNum .balls span,
	body.theme4 #app .formula-card .historyNum .balls span,
	body.theme5 #app .formula-card .historyNum .balls span,
	body.theme6 #app .formula-card .historyNum .balls span,
	body.theme7 #app .formula-card .historyNum .balls span {
		font-size: 13px !important;
		line-height: 1 !important;
	}
}

#app .tjzs-container .bopeak-table .balls {
	width: 36px;
	height: 36px;
	margin-right: 0;
}

#app .tjzs-container .matrix-table .balls {
	width: 28px;
	height: 28px;
	margin-right: 0;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.theme1 #app .tjzs-container .bopeak-table .balls {
	font-size: 20px;
}
body.theme1 #app .tjzs-container .matrix-table .balls {
	font-size: 14px;
}
body.theme2 #app .tjzs-container .matrix-table .balls,
body.theme3 #app .tjzs-container .matrix-table .balls,
body.theme4 #app .tjzs-container .matrix-table .balls,
body.theme7 #app .tjzs-container .matrix-table .balls {
	font-size: 13px;
}
body.theme5 #app .tjzs-container .matrix-table .balls {
	font-size: 13px;
}
body.theme6 #app .tjzs-container .matrix-table .balls {
	font-size: 12px;
}


/* 平滑过渡效果 */
* {
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}



/* 主题1样式 - 预留 */
.theme1 .ball .balls.red,
.theme1 .lhcHisCode .balls.red,
.theme1 .historyNum .balls.red,
.theme1 #modalNumbers .open_code_zone_left-item-number.red {
	/* 主题1红色球样式 */
	background: red;
}

.theme1 .ball .balls.blue,
.theme1 .lhcHisCode .balls.blue,
.theme1 .historyNum .balls.blue,
.theme1 #modalNumbers .open_code_zone_left-item-number.blue {
	/* 主题1蓝色球样式 */
	background: blue;
}

.theme1 .ball .balls.green,
.theme1 .lhcHisCode .balls.green,
.theme1 .historyNum .balls.green,
.theme1 #modalNumbers .open_code_zone_left-item-number.green {
	/* 主题1绿色球样式 */
	background: green;
}

.theme5 .balls span{
	position: relative; top: -3px; left: -3px;
}
.theme6 .balls span {
	position: relative; left: -2px; top: 2px;
}

.balls.open_code_zone_left-item-plus {
	width: 20px !important;
}

.theme5 .drawing span {
  top: 0!important;
  left: 0!important;
}

/* 弹窗号码样式 */
#modalNumbers .open_code_zone_left-content {
	display: flex;
	align-items: center;
	gap: 8px;
}

#modalNumbers .open_code_zone_left-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

#modalNumbers .open_code_zone_left-item-number {
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 500;
	color: #000;
	background-size: cover;
	background-position: center;
}

#modalNumbers .open_code_zone_left-item-zodiac {
	color: #666;
	text-align: center;
}

#modalNumbers .open_code_zone_left-item-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: #d21e1e;
}
