/* 顶部大图banner样式 */
.channel-banner {
	width: 100%;
	height: 600px;
	background: linear-gradient(rgba(30, 30, 30, 0.32), rgba(30, 30, 30, 0.32)), url('../images/banner/online.png') center center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin-bottom: 2.5rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.channel-banner-title {
	color: #fff;
	font-size: 3.2rem;
	font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), 0 1px 0 #222;
	text-align: center;
	user-select: none;
}

@media (max-width: 1080px) {
	.channel-banner {
		height: 500px;
		margin-bottom: 1.2rem;
	}

	.channel-banner-title {
		font-size: 2rem;
		letter-spacing: 0.12em;
	}
}

@media (max-width: 600px) {
	.channel-banner {
		height: 300px;
		margin-bottom: 1.2rem;
	}

	.channel-banner-title {
		font-size: 2rem;
		letter-spacing: 0.12em;
	}
}

@media (max-width: 440px) {
	.channel-banner {
		height: 200px;
		margin-bottom: 1.2rem;
	}

	.channel-banner-title {
		font-size: 2rem;
		letter-spacing: 0.12em;
	}
}


.channels-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem 3.5rem;
	margin: 0 auto;
	max-width: 1100px;
}

/* 新增分组和标题样式 */
.channels-group {
	margin-bottom: 3.5rem;
}

.channels-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #222;
	margin-bottom: 1.5rem;
	letter-spacing: 1px;
	text-align: left;
}

.channel-desc {
	font-size: 0.97rem;
	color: #888;
	margin-top: 0.18rem;
	text-align: center;
	min-height: 1.5em;
}

.channel-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 160px;
	margin-bottom: 2.5rem;
	border-radius: 18px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	background: #fff;
	transition: box-shadow 0.22s, transform 0.22s;
	cursor: pointer;
	outline: none;
}

.channel-card:focus,
.channel-card:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	transform: translateY(-6px) scale(1.03);
}

.channel-card:active {
	transform: scale(0.97);
}

.channel-card a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
	width: 100%;
	height: 100%;
}

.channel-img-wrap {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.1rem;
	overflow: hidden;
}

.channel-img {
	width: 70px;
	height: 70px;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	/* object-fit: contain; */
	display: block;
}

.channel-img1 {
	width: 80px;
	height: 80px;
	object-fit: contain;
	display: block;
}

.channel-label {
	font-size: 1.08rem;
	color: #222;
	text-align: center;
	margin-top: 0.2rem;
	font-weight: 500;
	letter-spacing: 1px;
}

.channel-qrcode-hover {
	display: none;
	position: absolute;
	left: 50%;
	top: -130px;
	transform: translateX(-50%);
	width: 120px;
	height: 120px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
	padding: 10px;
	z-index: 20;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #eee;
}

.channel-qrcode-hover:after {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-color: #fff;
	left: 50%;
	margin-left: -10px;
	top: 100%;
}

.channel-qrcode-hover img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 12px;
}

.channel-card:hover .channel-qrcode-hover,
.channel-card:focus .channel-qrcode-hover {
	display: flex;
}

@media (max-width: 900px) {
	.channels-grid {
		gap: 1.5rem 1.5rem;
	}

	.channel-card {
		width: 44vw;
		max-width: 180px;
	}
}

@media (max-width: 600px) {
	.channels-grid {
		gap: 1.2rem 0.5rem;
	}

	.channel-card {
		width: 48vw;
		max-width: 150px;
	}

	.channel-img-wrap {
		width: 80px;
		height: 80px;
	}

	.channel-img {
		width: 60px;
		height: 60px;
	}

	.channel-img1 {
		width: 60px;
		height: 60px;
	}
}

.qrcode-modal {
	display: none;
	position: fixed;
	z-index: 3000;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	justify-content: center;
	align-items: center;
}

.qrcode-modal.show {
	display: flex;
}

.qrcode-modal-mask {
	position: absolute;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.55);
	z-index: 1;
}

.qrcode-modal-content {
	position: relative;
	z-index: 2;
	background: #fff;
	border-radius: 14px;
	padding: 2.2rem 2.2rem 1.5rem 2.2rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 220px;
	max-width: 90vw;
	transform: translateY(40px);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(.22, 1, .36, 1), opacity 0.45s cubic-bezier(.22, 1, .36, 1);
}

.qrcode-modal.show .qrcode-modal-content {
	transform: translateY(0);
	opacity: 1;
}

.qrcode-modal-content img {
	width: 220px;
	height: 220px;
	object-fit: contain;
	border-radius: 10px;
	background: #f8f8f8;
	margin-bottom: 0.5rem;
}

.qrcode-modal-close {
	position: absolute;
	top: 10px;
	right: 18px;
	font-size: 2.2rem;
	color: #888;
	cursor: pointer;
	font-weight: bold;
	transition: color 0.2s;
	z-index: 3;
}

.qrcode-modal-close:hover {
	color: #222;
}

@media (max-width: 600px) {
	.qrcode-modal-content {
		padding: 1.2rem 0.5rem 1rem 0.5rem;
		min-width: 0;
	}

	.qrcode-modal-content img {
		width: 60vw;
		height: 60vw;
		max-width: 260px;
		max-height: 260px;
	}
}

/* 线上渠道二维码浮层样式 */
.qrcode-hover {
	position: relative;
}