/* ==========================================================================
   量体邦官网 移动端兼容 / 响应式补丁
   说明：本文件在 main.css、banner.css 之后加载，用于覆盖站点中写死的
        1200px 固定宽度、修正横向滚动、并提供移动端导航（汉堡菜单）。
   断点：>1024 桌面，768~1024 平板，<=768 手机。
   ========================================================================== */

/* ---------- 全局基础：消除横向滚动、图片自适应 ---------- */
html {
	overflow-x: hidden;            /* 覆盖 main.css 的 overflow-x:scroll */
}
html,
body {
	max-width: 100%;
}
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
img {
	max-width: 100%;               /* 图片不再撑破容器 */
}

/* 视觉隐藏但保留给搜索引擎/读屏器（用于 SEO 的 H1 等） */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- 汉堡菜单按钮（默认桌面隐藏） ---------- */
.nav-toggle {
	display: none;
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	padding: 10px;
	background: transparent;
	border: 0;
	cursor: pointer;
	z-index: 1001;
}
.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background: rgb(116, 52, 129);
	border-radius: 2px;
	transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
	opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 通用：取消写死的最小/固定宽度 ---------- */
.header .content,
footer {
	min-width: 0;                  /* 覆盖 1200px 强制宽度 */
}
.swrap {
	min-width: 0 !important;       /* 覆盖 banner.css 的 min-width:1200px */
}
/* 关于我们页 H1（沿用原 h2 视觉） */
.contact-hero .container .wording h1 {
	font-size: 22px;
	padding: 0;
	margin: 0 0 10px;
	color: #fff;
}
.flow_pic > img {
	min-width: 0;
	width: 100%;
	height: auto;
}

/* 首页主图：轮播已停用，单图改为常规流式排版（覆盖 banner.css 的绝对定位/固定高度） */
.home-hero,
.home-hero .pic,
.home-hero .pic .img {
	position: static;
	height: auto;
	max-height: none;
}
.home-hero .pic .img > img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   平板：768px ~ 1024px
   ========================================================================== */
@media screen and (max-width: 1024px) {
	.cooperate,
	.massing,
	.feature_list_title {
		width: 100%;
		max-width: 1200px;
		margin: 40px auto;
		padding: 0 16px;
	}
	.cont {
		width: 100% !important;
		padding: 20px 16px !important;
	}
}

/* ==========================================================================
   手机：<= 768px
   ========================================================================== */
@media screen and (max-width: 768px) {

	/* ----- 顶部导航 ----- */
	.header .content {
		width: 100%;
		height: 60px;
		padding: 0 16px;
		position: relative;
	}
	.header .content .logo-link {
		display: inline-block;
	}
	.header .content .logo {
		line-height: 60px !important;
		font-size: 22px !important;
	}
	.nav-toggle {
		display: block;
	}
	.header .nav {
		float: none;
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		background: #fff;
		box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
		z-index: 1000;
	}
	.header .nav.nav-open {
		max-height: 320px;
	}
	.header .nav ul {
		margin: 0;
		padding: 0;
	}
	.header .nav ul li {
		display: block;
		margin: 0;
		line-height: 1;
		border-top: 1px solid #f0eef2;
	}
	.header .nav ul li a {
		display: block;
		padding: 16px 20px;
		letter-spacing: 1px;
		font-size: 16px;
	}

	/* ----- 首页轮播 / 主图 ----- */
	.swrap {
		height: auto !important;
	}
	.swrap .pic,
	.swrap .pic .img {
		position: static !important;
		height: auto !important;
		max-height: none !important;
	}
	.swrap .pic .img > img {
		width: 100%;
		height: auto;
	}

	/* ----- 首页服务模块 ----- */
	.massing,
	.cooperate,
	.feature_list_title {
		width: 100%;
		margin: 30px auto;
		padding: 0 16px;
	}
	.massing_title,
	.cooperate_title,
	.feature_list_title {
		margin: 30px auto;
		font-size: 22px;
		background-size: contain;
	}
	.mode ul {
		padding: 0;
		margin: 0;
	}
	.mode_item,
	.mode_item_mid {
		width: 100%;
		float: none;
		margin: 16px 0;
	}
	.mode_pic {
		height: auto;
	}
	.mode_pic > img {
		height: auto;
	}
	.mode_word {
		height: auto;
	}

	/* ----- 关于我们 / 联系我们 ----- */
	.contact-hero {
		height: auto;
	}
	.contact-hero .container {
		padding: 0;
	}
	.aboutus_words {
		position: static;
		top: 0;
	}
	.contact-hero .container .wording {
		position: static;
		padding: 16px;
	}
	.contact-hero .container .wording p {
		width: auto;
		max-width: 100%;
	}
	.contact-wrapper {
		padding: 0 16px;
	}
	.contact-wrapper h2 {
		font-size: 22px;
	}

	/* ----- 内容文档页（服务条款 / 隐私条款） ----- */
	.container {
		width: 100%;
		padding: 0 16px;
	}
	.word,
	.files.word {
		font-size: 15px;
		margin-bottom: 30px;
	}

	/* ----- 紫雷链页 ----- */
	.cont {
		width: 100% !important;
		padding: 20px 16px !important;
	}
	.solution_li_con,
	.solution_li2_con {
		padding: 30px 0;
	}
	.solution_content,
	.solution_img,
	.solution_con {
		width: 100% !important;
		float: none !important;
		margin: 0 auto !important;
		position: static !important;
		left: auto !important;
		top: auto !important;
	}
	.solution_con {
		margin-top: 20px !important;
	}
	.box-l,
	.box-r,
	.box-l2,
	.box-r2 {
		position: static !important;
		left: auto !important;
		top: auto !important;
	}
	.solution_title {
		font-size: 22px;
		text-align: center;
	}
	.solution_int {
		font-size: 16px;
		text-align: center;
	}

	/* ----- 页脚 ----- */
	footer {
		padding: 16px;
	}
	footer .copyright {
		line-height: 1.8;
	}
	footer .copyright span {
		margin-left: 0 !important;
		display: block;
	}
}
