/* Ad component styles */

/* Pause ad overlay */
#pause-ad {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}
#pause-ad.show {
    display: flex;
}
#pause-ad a {
    display: block;
    max-width: 240px;
    text-decoration: none;
}
#pause-ad a img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}
#pause-ad a div {
    color: #e5e5e5;
    font-size: 13px;
    text-align: center;
    padding: 6px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#pause-ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    line-height: 28px;
    text-align: center;
    z-index: 101;
    transition: background 0.2s;
}
#pause-ad-close:hover {
    background: rgba(200, 0, 0, 0.8);
}

/* Banner ads */
.hengfu {
	padding-top: 0;
}
.hengfu img {
	height: 60px;
	width: 100%;
	display: block;
}

/* Icon grid container */
.tb-container {
    display: block;
    width: 100%;
}

/* App icon items */
.apptubiao {
	margin-top: 5px;
	position: relative;
	min-height: 1px;
	padding-right: 15px;
	padding-left: 15px;
	float: left;
	width: 8.3%;
	margin-bottom: 0px;
	text-align: center;
}
.apptubiao a img {
	margin: 0 auto;
	width: 60px;
	height: 60px;
	display: block;
	border-radius: 12px;
}

/* Icon label text */
.wenzi {
	color: #dcdcdc;
	font-size: 11px;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-align: center;
	font: 12px/28px Tahoma, 'Microsoft Yahei', Simsun;
}

/* Text link ads */
.text-ad-row {
	overflow: hidden;
	padding: 10px 0;
}
.text-ad-row::after {
	content: "";
	display: table;
	clear: both
}
.text-ad-row a {
	float: left;
	width: 12.5%;
	line-height: 36px;
	text-align: center;
	font-size: 14px;
	color: var(--c-footer-link, #c8cdd5);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s;
}
.text-ad-row a:hover {
	color: var(--c-accent, #bf616a);
}

/* App-style icon grid */
.bba-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 6px;
	max-width: 1200px;
	margin: 4px auto;
}
.bba-item {
	text-align: center;
	border-radius: 8px;
	transition: transform 0.3s ease, box-shadow 0.3s ease
}
.bba-item a {
	display: inline-block;
}
.bba-item img {
	width: 80%;
	object-fit: contain;
	border-radius: 10px;
	max-width: 80px
}
.bba-item div {
	font-size: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: bold;
	color: #f35626;
	background-image: -webkit-linear-gradient(92deg, #f35626, #7100ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-animation: hue 10s infinite linear
}
.bba-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2)
}
@-webkit-keyframes hue {
	from {
		-webkit-filter: hue-rotate(0deg);
		-moz-filter: hue-rotate(0deg)
	}
	to {
		-webkit-filter: hue-rotate(-360deg);
		-moz-filter: hue-rotate(-360deg)
	}
}

/* Iframe ad sizes (legacy) */
.topIframe {
    width: 100%;
    height: 2590px;
    border: none;
    overflow: hidden;
}
.dbannnrIframe {
    width: 100%;
    height: 2050px;
    border: none;
    overflow: hidden;
}
.yxfIframe {
    width: 70px;
    height: 520px;
    border: none;
    overflow: hidden;
}
.dxfIframe {
    width: 1280px;
    height: 80px;
    border: none;
    overflow: hidden;
}

/* Right floating ad */
#yxofal {
    position: fixed;
    bottom: 25%;
    z-index: 19999 !important;
    right: 2px;
}

/* Bottom floating ad */
#dxofal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 19999 !important;
    width: 100%;
    height: 80px;
    max-width: 1280px;
}

/* Right side floating column */
#floatright {
    position: fixed;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1900;
}
#floatright img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

/* Left side floating column */
#floatleft {
    position: fixed;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1900;
}
#floatleft img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

/* Bottom float bar */
.floatbottom-wrap {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    z-index: 9999;
}
.floatbottom-wrap .close-btn {
    position: absolute;
    top: -14px;
    left: 4px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    z-index: 10001;
}
#floatbottom-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
    gap: 4px;
    padding: 4px;
    padding-top: 8px;
    background-color: rgba(0, 0, 0, 0.95);
    border-top: 2px solid #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px 10px 0 0;
    text-align: center;
}
.bottom-item {
    text-align: center;
}
.bottom-item a {
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bottom-item img {
    display: inline-block;
    width: 55px;
    height: 55px;
    margin-bottom: 2px;
    border-radius: 5px;
    object-fit: cover;
}
/* Mobile responsive */
@media screen and (max-width:750px) {
    .hengfu img {
		height: 45px;
	}
	.tb-container {
        width: 100%;
    }
	.apptubiao.apptubiao {
		width: 22%;
		padding: 0;
	}
	.text-ad-row {
			padding: 8px 50px;
		}
		.text-ad-row a {
			width: 25%;
			line-height: 30px;
			font-size: 13px;
		}
    .bba-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 4px;
		padding: 0 50px;
	}
	.bba-item img {
		max-width: 60px;
	}
}
@media (max-width: 768px) {
    .topIframe {
        height: 2370px;
    }
    .dbannnrIframe {
        height: 1370px;
    }
    #dxofal {
        height: 60px;
    }
    .dxfIframe {
        width: 100vw;
        height: 60px;
    }
}
