/*****全局初始化******/
html{
	font-size: 10px;
}
/* 滚动偏移量 (避免固定导航栏遮挡) */
html {
	scroll-padding-top: 90px;
}
section, footer {
	scroll-margin-top: 90px;
}

body {
	background-color: #036eb6;
	scroll-behavior: smooth;
	overflow-x: hidden;
}


/* 自定义滚动条 */
::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: #eef2f5;
}
::-webkit-scrollbar-thumb {
	background: #b9cadb;
	border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
	background: #7f9cbb;
}

/*****全局初始化END*****/

/************* PC导航 *******************/
.logo {
    width: clamp(14rem,15vw,29.6rem);          /* 根据你的设计设置固定宽，例如 120px */
    flex-shrink: 0;        /* 防止在 flex 中被压缩 */
}
.logo a {
    display: block;
    line-height: 0;        /* 消除行内元素间隙 */
}
.logo img {
    display: block;
    width: clamp(14rem,15vw,29.6rem);           /* 填满 .logo 的宽度 */
    height: auto;
}

.navbar {
	top: 0;
	z-index: 1000;
	background-color:#036eb6 ;
	width: 100%;
	margin: 2rem 0;

}
.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 clamp(1.2rem, 1.5vw, 2rem);
	max-width: 160rem;
	margin: 0 auto;
}

.nav-links {
	position: static;
	flex-direction: row;
	gap: clamp(0.5rem, 1vw, 2rem);
	justify-content: flex-start;
	box-shadow: none;
	border-radius: 0;
	transition: none;
	display: flex;
	font-size: 1.9rem;
	font-family: MiSans;
	color: #fff;
}
.nav-links li{
	border: #fff 2px;
	height: 2.8rem;
}

.nav-links li a {
	display: block;
	font-size: clamp(1.5rem, 1.3vw, 1.9rem);
	font-family: MiSans;
	color: #fff;
	font-weight: 300;
	height: 2.8rem;
}

.nav-links li a:hover {
	border-bottom: #fff 2px solid;

}
.nav-links li.active {
	border-bottom: #fff 2px solid;

}
.nav-links.slide-in, .code.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.code{
	display: flex;
	gap: clamp(0.5rem, 1vw, 1.4rem);
	width: clamp(11rem, 17.6vw, 25.4rem);
}
.code li {
	min-width: 0;           /* 允许 flex 项收缩到比内容更小 */
	flex-shrink: 1;         /* 默认就是1，可写可不写 */
	list-style: none;
}
.code img {
	max-width: 100%;
	height: auto;
	display: block;   /* 去除图片底部多余空隙 */
}

.btn-group{
	display: none;
}

.hamburger {
	display: none;  /* 桌面端隐藏汉堡菜单 */
}

.qrbtn {
	display: none; /* 桌面端二维码菜单 */
}

@media (min-width: 780px) and (max-width: 900px) {

	.nav-container {
		padding: 0rem 1.6rem;
	}
    .code {
        display: none;
    }

	.qrbtn {
		display:block;
		cursor: pointer;
		background: transparent;
		border: none;
		z-index: 1001;

	}
	.qrbtn svg {
		width: 3rem;
		height: 3rem;
		background:url(../images/header/qr.svg);
		border-radius: 2px;
		transition: all 0.3s ease;
		color: #fff;
		background: #036eb6;
	}
	.nav-links {
		padding-left: 0;
	}

	.btn-group{
		display: block;
	}
	.qrbtn {
		display:block;
		cursor: pointer;
		background: transparent;
		border: none;
		z-index: 1001;

	}

	.qrbtn svg {
		width: 4rem;
		height: 4rem;
		transition: all 0.3s ease;
		color: #fff;
	}
	html, body {
		height: auto !important;
		min-height: calc(100vh + 1px) !important;   /* 关键：比视口高1px */
		overflow-y: scroll !important;              /* 强制显示滚动条（可选） */
		overflow-x: hidden;
	}

}

@media (max-width: 779px) {

	.logo {
		width: clamp(14rem,25vw,20rem);          /* 根据你的设计设置固定宽，例如 120px */
		flex-shrink: 0;        /* 防止在 flex 中被压缩 */
	}
	.logo img {
		width: clamp(14rem,25vw,20rem);           /* 根据你的设计设置固定宽，例如 120px */
	}
	.nav-links {
		display: none;
	}
	.code{
		display: none;
	}
	.btn-group{
		display: flex;
		gap: 2rem;
	}
	.qrbtn {
		display:block;
		cursor: pointer;
		background: transparent;
		border: none;
		z-index: 1001;

	}
	.qrbtn svg {
		width: 4rem;
		height: 4rem;
		transition: all 0.3s ease;
		color: #fff;
	}

	.hamburger {
		display:block;
		cursor: pointer;
		background: transparent;
		border: none;
		z-index: 1001;
	}
	
	.hamburger svg {
		width: 5rem;
		height: 5rem;
		color: #fff;
		transition: all 0.3s ease;

	}
	.subpages,main{
		overflow: visible !important;
        height: auto !important;
	}
	html, body {
		height: auto !important;
		min-height: calc(100vh + 1px) !important;   /* 关键：比视口高1px */
		overflow-y: scroll !important;              /* 强制显示滚动条（可选） */
		overflow-x: hidden;
	}

}
/******** 二级页 BANNER **********/
.subpages{
	max-width: 160rem;
	margin: 0 auto;
}



/******** BANNER **********/

.banner {
	max-width: 1600px;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.3);
	margin: 0 auto;
}

/* 轮播列表（flex 容器） */
.carousel {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	list-style: none;
	margin: 0;
	padding: 0;
}
.carousel li {
	flex: 0 0 100%;
	width: 100%;
}
.carousel li picture,
.carousel li img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- 箭头按钮 ---------- */
.banner.single-slide .carousel-prev,
.banner.single-slide .carousel-next,
.banner.single-slide .carousel-dots {
	display: none !important; /* 覆盖所有内联样式 */
}
.banner.single-slide .carousel {
	transition: none; /* 禁止动画 */
}

.carousel-prev,
.carousel-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	border: none;
	font-size: 3rem;
	line-height: 3rem;
	width: 5rem;
	height: 5rem;
	cursor: pointer;
	border-radius: 50%;
	z-index: 10;
	transition: background 0.2s;
	display: none; /* 默认隐藏，由 JS 控制显示（≥1024px） */
}
.carousel-prev:hover,
.carousel-next:hover {
	background: rgba(0, 0, 0, 0.7);
}
.carousel-prev {
	left: 1.5rem;
}
.carousel-next {
	right: 1.5rem;
}

/* ---------- 指示点（圆点） ---------- */
.carousel-dots {
	position: absolute;
	bottom: 1.8rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 1rem;
	z-index: 20;
}
.carousel-dots span {
	width: 14px;
	height: 14px;
	background: rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
.carousel-dots span.active {
	background: #ffffff;
	transform: scale(1.3);
	box-shadow: 0 0 12px rgba(255,255,255,0.8);
}

/* ---------- 响应式 ---------- */
@media (min-width: 1024px) {
	.carousel-prev,
	.carousel-next {
		display: block;  /* 桌面端显示箭头 */
	}
}
@media (max-width: 800px) {
	.carousel-prev,
	.carousel-next {
		font-size: 1.8rem;
		padding: 0.4rem 0.8rem;
	}
	.carousel-dots span {
		width: 10px;
		height: 10px;
	}
}






footer{
	height:65px;
	text-align:center;
	padding-top:20px;
	font: 12px SimSun,tahoma,arial,sans-serif;
}
footer div{color:#fff;}
footer a{
	color:#fff;
}



