/* 表现层 */
:root {
  --marquee-duration: 38s;    /* 动画时长 */
  --link-hover: #bf616a;      /* 悬停颜色 */
  --safe-margin: 10px;        /* 安全边距 */
}
/* 外部容器，限制字幕的显示区域 */
.marquee-container {
    max-width: 1340px;
    overflow: hidden;      /* 隐藏超出的文字 */
    white-space: nowrap;   /* 禁止换行 */
    /*border-top: 2px solid #555;  增加顶部边框 */
    margin: 0 auto;
    padding: 5px 0;        /* 上下内边距 */
}

.marquee-container {
  position: relative;
  overflow: hidden;
  contain: content;  /* 限制渲染边界 */
  will-change: contents;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  transform: translate3d(0,0,0); /* GPU加速 */
  backface-visibility: hidden;
  
  /* 响应式动画控制 */
  animation: scroll-left var(--marquee-duration) linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(100vw); }       /* 视口单位 */
  100% { transform: translateX(calc(-100% - var(--safe-margin))); } /* 百分比+变量 */
}


/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
    white-space: normal;
  }
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
	margin: 0
}

dd,
strong,
p {
    color: #fff;
}
/* 交互优化 */
.marquee:hover {
  animation-play-state: paused;
}

.marquee a {
  font: 700 14px/1.5 system-ui;
  color: #fff;
  padding: 8px 10px;
  transition: color 0.3s, transform 0.2s;
}

.marquee a:hover {
  color: var(--link-hover);
  transform: scale(1.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .marquee {
    animation-duration: calc(var(--marquee-duration) * 1.5);
  }
}


#site_name {
    font-size: 2rem;
    height: auto;
    font-weight: bold;
    text-align: center;
    width: 139px;
    background: linear-gradient(45deg, #b400ff, #f9ff00, #00d4ff, #ff0018, #ff07ea, #ff9900, #0bff08);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-move 6s ease-in-out infinite;
}
@keyframes gradient-move {
	0%   { background-position: 0% center; }
	50%  { background-position: 100% center; }
	100% { background-position: 0% center; }
}

#backToTop {
	display: none;
	position: fixed;
	bottom: 110px;
	right: 10px;
	z-index: 9999;
	width: 40px;
	height: 40px;
	padding: 6px 10px;
	font-size: 16px;
	border: none;
	background: #007bff;
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	transition: opacity 0.3s;
	justify-content: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/*分页*/
.box-page {
	margin: 1rem 0;
	text-align: center;
}

.box-page ul.page {
	text-align: center;
	padding: 1rem 0;
}

.box-page ul.page li {
	display: inline-block;
	padding: 0;
	margin: 0;
	width: auto;
	height: auto;
	border: 1px solid var(--font);
	border-radius: 0.1rem;
	margin: 0 0.2rem;
	float: none;
}

.box-page ul.page li:hover {
	opacity: 0.9;
	background-color: var(--font);
}

.box-page ul.page li:hover a {
	color: var(--theme);
}

.box-page ul.page li span,
.box-page ul.page li a {
	display: inline-block;
	padding: 0 0.5rem;
	border-radius: 0.1rem;
	height: 2rem !important;
	line-height: 2rem !important;
	color: #a5a5a5;
}

.box-page ul.page li.active {
	background-color: var(--font);
}

.box-page ul.page li.active a {
	color: var(--theme);
}

.box-page ul.page li a * {
	font-style: normal;
}

.box-page ul.page li a em {
	display: none;
}

.text a {
	color: #fff;
}

.active {
	color: #e56673;
}

@media screen and (max-width: 550px) {
	.box-page ul.page li a i {
		display: none;
	}

	.box-page ul.page li a em {
		display: inline;
	}

	.box-page {
		margin: 0;
		padding: 0 !important;
	}

	.box-page ul.page li {
		display: none;
	}

	.box-page ul.page li.active,
	.box-page ul.page li.near,
	.box-page ul.page li.text {
		display: inline-block;
	}
}

.MacPlayer {
	background: #000000;
	font-size: 14px;
	color: #F6F6F6;
	margin: 0px;
	padding: 0px;
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
	min-height: 100px;
}

.MacPlayer table {
	width: 100%;
	height: 100%;
}

.MacPlayer #playleft {
	position: inherit;
	width: 100%;
	height: 100%;
}


.hengfu.hengfu {
    padding-top: 0;
}
.hengfu {
	padding-top: 50px;
}

.hengfu img {
	height: 60px;
	width: 100%;
}

.tb-container {
    display: inline-block;
}
	
.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;
}

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

.menu dl:first-child {
	border-top: 0
}

.menu-wrap dt a {
	background: #e7cdaa;
	padding: 5px;
	border-radius: 10px;
	color: black;
	font-size: 16px
}

.menu-wrap::after {
	content: "";
	display: table;
	clear: both
}

.menu-wrap dl {
	margin: auto;
	display: block;
	float: left;
	width: 100%;
	padding: 15px 0;
	/*background-color: #000000;*/
}

.menu-wrap dt {
	width: 8%;
	font-size: 20px;
	color: #000
}

.menu-wrap dt, .menu-wrap dd {
	float: left;
	line-height: 40px;
	text-align: center
}

.menu-wrap dd {
	width: 11.5%;
	font-size: 16px
}

.bba-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
	gap: 4px;
	max-width: 1200px;
	margin: 2px auto;
	/*background-color: #000000;*/
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1)
}
.bba-item {
	margin: 2px;
	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)
	}
}


@media screen and (max-width:750px) {
    .hengfu img {
		height: 45px;
	}
	.tb-container {
        padding-left: 13%;
    }
	.apptubiao.apptubiao {
		width: 22%;
		padding: 0;
	}
	.menu {
		margin: 0px 0 0;
		border-radius: 0;
		padding: 0;
		width: 100%
	}
	.menu-wrap dl {
		padding: 10px 0
	}
	
	.menu-wrap dd {
		width: 21%;
		line-height: 30px;
		font-size: 13px
	}
	.menu dt {
		width: 14%;
		line-height: 50px;
		font-size: 14px
	}
	.menu-wrap dt a {
	font-size: 14px
    }
    .bba-grid {
		max-width: 85%;
		margin: 2px 0;
	}
}

#resou_box {
	padding-right: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.resou-item {
    background-color: #139aff;
    border-color: #139aff;
    color: #fff;
	border-radius: 5px;
	padding: 5px;
}


/*顶部广告*/
.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;
}
/*右悬浮*/
#yxofal {
    position: fixed;
    bottom: 25%;
    z-index: 19999 !important;
    right: 2px;
}

/*底悬浮*/
#dxofal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 19999 !important;
    width: 100%;
    height: 80px;
    max-width: 1280px;
}
#kpfloatright {
    position: fixed;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1900;
}
#kpfloatright img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}
	
	
.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;
}

#kpfloatleft {
        position: fixed;
        top: 50%;
        left: 0; 
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        z-index: 1000;
}
#kpfloatleft img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

#bottom-float-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
    gap: 4px;
    width: 100%;
    max-width: 750px;
    padding: 4px;
    background-color: rgba(0, 0, 0, 0.95);
    border-top: 2px solid #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    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: block;
}

.bottom-item img {
    display: inline-block;
    width: 55px;
    height: 55px;
    margin-bottom: 2px;
    border-radius: 5px;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: 0;
    background: #d90000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 14px;
    cursor: pointer;
    line-height: 25px;
    text-align: center;
}

@media (max-width: 768px) {
    .topIframe {
        height: 2370px;
    }
    .dbannnrIframe {
        height: 1370px;
    }
    #dxofal {
        height: 60px;
    }
    .dxfIframe {
        width: 100vw;
        height: 60px;
    }
}