/* 228168lh：导航下拉 + 首页澳门彩展示区（仿香港六合彩） */
.header ul #hkheader,
.header ul #macauheader {
	display: none;
	position: absolute;
	top: 80px;
	left: 0;
	width: 120px;
	background: #fff;
	z-index: 99;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header ul #HKcai,
.header ul #Macaucai,
.header ul .Fastkai {
	position: relative;
	padding-right: 22px !important;
}

/* 下拉三角：在彩种文字右侧，不压住文字 */
.header ul #HKcai:after,
.header ul #Macaucai:after,
.header ul .Fastkai:after {
	display: block;
	position: absolute;
	top: 50%;
	right: 8px;
	left: auto;
	width: 0;
	height: 0;
	margin-top: -5px;
	content: "";
	border: 6px solid transparent;
	border-top-color: #797979;
	pointer-events: none;
}

.header ul #HKcai:hover:after,
.header ul #Macaucai:hover:after,
.header ul .Fastkai:hover:after {
	margin-top: -2px;
	transform: rotate(180deg);
}

.header ul #HKcai:hover #hkheader,
.header ul #Macaucai:hover #macauheader,
.header ul .Fastkai:hover .faheader {
	display: block;
}

.header ul #hkheader li,
.header ul #macauheader li {
	float: none;
	width: 100%;
	height: 57px;
	line-height: 57px;
	box-sizing: border-box;
}

.header ul #hkheader li a,
.header ul #macauheader li a {
	padding: 0 10px;
	font-size: 14px;
	height: 55px;
	line-height: 55px;
	background: #fff !important;
	color: #333 !important;
}

.header ul #hkheader li:hover,
.header ul #macauheader li:hover {
	border-bottom: 3px solid #f8223c;
}

.header ul #hkheader li:hover a,
.header ul #macauheader li:hover a {
	color: #f8223c !important;
}

.box_first_macau {
	margin-top: 20px;
	margin-bottom: 20px;
}

.box_first_macau .box_firstr {
	height: auto;
	min-height: 117px;
}

.box_first_macau .macau-data {
	margin-right: 20px;
}

/* 导航：开奖网 + 手机版紧跟首页，避免折行到第二排 */
.header ul {
	width: auto;
	max-width: none;
	flex-wrap: nowrap;
}

.headerbox .header {
	display: flex;
	align-items: center;
}

.headerbox .header > ul {
	display: flex;
	flex-wrap: nowrap;
	float: none;
	flex: 1;
	margin-left: 24px;
}

.header ul li {
	width: auto !important;
	min-width: 72px;
	padding: 0 6px;
	font-size: 14px;
}

.header ul li.kjwurl,
.header ul li.nav-mobile {
	min-width: 64px;
}

.header ul li#HKcai,
.header ul li#Macaucai,
.header ul li.Fastkai {
	min-width: 108px;
}

.header ul li#HKcai > a,
.header ul li#Macaucai > a,
.header ul li.Fastkai > a {
	display: inline-block;
	width: auto;
	max-width: 100%;
	padding-right: 4px;
	box-sizing: border-box;
}

/* NEW 角标在链接文字上，避免被 overflow:hidden 裁切 */
.header ul li#Macaucai > a.macauSix {
	overflow: visible;
}

.header ul li a {
	font-size: 14px;
	display: inline-block;
	width: auto;
}

.haomabox-macau {
	margin-top: 12px;
}

/* 澳门六合彩专用圆形图标（不影响香港 logo.png / 极速 fastsmsixlogo） */
.haomabox-macau .haomaimg img,
#Macaubox .haomaimg img {
	width: 90px;
	height: 90px;
	object-fit: contain;
}

/* 澳门彩倒计时：覆盖 newindexAdd 的 230px 宽度，避免「秒」被 overflow 裁切 */
.haomabox-macau .haomaqur {
	width: 400px;
}

.bodybox .haomabox-macau .haomaqu .haomaqur .line.linetime {
	overflow: visible;
}

.bodybox .haomabox-macau .haomaqu .haomaqur .linetime {
	width: 100%;
	max-width: 100%;
	margin-top: 20px;
	padding: 0 14px 0 6px;
	box-sizing: border-box;
	text-align: center;
}

.haomabox-macau .haomaqur .linetime .cuttime {
	display: inline-block;
	white-space: nowrap;
	line-height: 1;
	font-size: 0;
	margin-right: 4px;
}

.haomabox-macau .haomaqur .linetime .cuttime .bgtime,
.haomabox-macau .haomaqur .linetime .cuttime .hourtxt,
.haomabox-macau .haomaqur .linetime .cuttime > span:not(.bgtime):not(.hourtxt) {
	display: inline-block;
	vertical-align: middle;
	font-size: 14px;
	line-height: 40px;
	margin: 0 3px;
}

.haomabox-macau .haomaqur .linetime .cuttime .bgtime {
	width: 52px;
	height: 52px;
	line-height: 52px;
	font-size: 22px;
}
