/* ============================================================
 * 手机 / 平板自适应（本文件最后加载，覆盖原站固定宽度）
 * 桌面端（>1024px）保持原站版式不变
 * ============================================================ */

/* 移动端菜单按钮：桌面端不显示 */
.zf-menu-btn { display: none; }
.zf-nav-mask, .zf-nav-close { display: none; }

/* ---------- ≤1200px：容器改为流体 ---------- */
@media (max-width: 1200px) {
	.w1200 { width: auto; max-width: 1200px; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
	.nav_main .nav { width: auto; max-width: 1200px; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
}

/* ---------- ≤1024px：平板 ---------- */
@media (max-width: 1024px) {

	html, body { overflow-x: hidden; }

	/* 顶部条：只留语言切换 */
	.top_main { height: 32px; line-height: 32px; }
	.top_main .top_l { display: none; }
	.top_main .top_r li { display: none; margin: 0; }
	.top_main .top_r li.lang-switch { display: inline-block; }
	.top_main ul.top_r { float: none; text-align: right; }

	/* 页头：LOGO + 热线缩排 */
	.header_main { height: auto; padding: 10px 0; }
	.header_main .header .logo { margin-top: 4px; }
	.header_main .logo img { width: auto; height: 46px; background: none; }
	.header_main .tel { width: auto; padding: 8px 0 0; margin-left: 12px; float: right; }
	.header_main .tel s { display: none; }
	.header_main .tel b { display: block; font-size: 12px; line-height: 16px; }
	.header_main .tel span { font-size: 22px; line-height: 24px; }

	/* 导航：收起为抽屉菜单 */
	.nav_main { height: 50px; }
	.nav_main .nav { position: relative; height: 50px; }
	.nav .zf-menu-btn {
		display: block;
		position: absolute; left: 8px; top: 5px;
		height: 40px; padding: 0 12px;
		background: rgba(0, 0, 0, .18); color: #fff;
		border: 0; border-radius: 3px;
		font-size: 15px; line-height: 40px; cursor: pointer;
	}
	.nav .zf-menu-btn:before { content: "☰"; margin-right: 6px; font-size: 16px; }
	/* AOS 会给 .nav_main 加 transform，导致面板的 fixed 定位以导航条为参照而失效 */
	.nav_main { transform: none !important; }
	.nav_main .nav .zf-nav-panel {
		position: fixed; left: 0; top: 0; z-index: 1200;
		width: 78%; max-width: 320px; height: 100%;
		background: #fff;
		transform: translateX(-100%);
		transition: transform .28s ease;
		overflow-y: auto; -webkit-overflow-scrolling: touch;
		box-shadow: 2px 0 12px rgba(0, 0, 0, .18);
	}
	body.zf-nav-open .nav_main .nav .zf-nav-panel { transform: translateX(0); }
	.nav .zf-nav-close {
		display: block; position: absolute; right: 6px; top: 6px;
		width: 34px; height: 34px; line-height: 30px;
		background: #f2f2f2; border: 0; border-radius: 50%;
		font-size: 20px; color: #666; cursor: pointer;
	}
	.nav_main .nav ul.list { width: 100%; height: auto; padding: 46px 0 20px; }
	.nav_main .nav ul.list li {
		float: none; width: 100%; height: auto; line-height: normal;
		border-bottom: 1px solid #f0f0f0; background: #fff;
	}
	.nav_main .nav ul.list li:first-child { border-left: 0; }
	.nav_main .nav ul.list li > a {
		display: block; padding: 14px 18px;
		color: #333; font-size: 15px; line-height: 22px;
	}
	.nav_main .nav li.hover > a, .nav_main .nav li > a:hover { color: #dc0000; background: #fafafa; }
	.nav_main .nav dl {
		position: static; width: 100%;
		opacity: 1; visibility: visible; transform: none;
		background: #fafafa; box-shadow: none;
		padding: 4px 0 8px;
	}
	.nav_main .nav dl dd { height: auto; line-height: normal; text-align: left; }
	.nav_main .nav dl dd a {
		display: block; padding: 10px 18px 10px 34px;
		color: #666; font-size: 14px; line-height: 20px;
	}
	.nav_main .nav dl dd a:hover { color: #dc0000; }
	.zf-nav-mask {
		display: block; position: fixed; left: 0; top: 0;
		width: 100%; height: 100%; z-index: 1100;
		background: rgba(0, 0, 0, .45);
		opacity: 0; visibility: hidden; transition: opacity .25s;
	}
	body.zf-nav-open .zf-nav-mask { opacity: 1; visibility: visible; }

	/* 首页轮播：改为按宽度的定高裁切，不再 1920 固定 */
	#banner_main .banner { height: clamp(210px, 64vw, 560px); }
	#banner { min-width: 0; }
	#banner, .banner ul { max-height: none; }
	.banner li { height: 100%; }
	.banner li img {
		width: 100%; height: 100%; object-fit: cover;
		left: 0; margin-left: 0; top: 0;
	}
	#banner .tip { left: 50%; margin-left: -60px; bottom: 8px; }

	/* 内页大图 */
	.nybanner { height: 24vw; min-height: 120px; max-height: 300px; }
	.nybanner img { width: 100%; height: 100%; object-fit: cover; left: 0; margin-left: 0; }

	/* 搜索条 */
	.announ_main { height: auto; line-height: normal; padding: 10px 0 12px; }
	.announ_main .announ_left { float: none; width: 100%; margin-bottom: 8px; }
	.announ_main .announ_right { float: none; width: 100%; padding-top: 0; }
	.announ_main .announ_right .search { width: 100%; }
	.announ_main .announ_right .search .txt { width: 80%; }

	/* 首页产品网格：改用 flex，避免浮动 + 百分比的取整误差导致只剩一列 */
	#floor_2_main .proCenter .list { display: flex; flex-wrap: wrap; gap: 12px; }
	#floor_2_main .proCenter .list li { float: none; width: calc(33.333% - 8px); margin: 0; box-sizing: border-box; }
	#floor_2_main .proCenter .list li img { width: 100%; height: auto; }
	#floor_2_main .proCenter .list li .tit { font-size: 14px; line-height: 40px; }
	#floor_2_main .proCenter .tab a { margin-bottom: 8px; }

	/* 品牌标语 */
	#floor_3_main .p1, #floor_3_main .p2, #floor_3_main .p3 { font-size: 22px; line-height: 1.5; }
	#floor_3_main .in_title3 .bg { text-align: center; }

	/* 关于我们：图文上下 */
	#floor_1_main .about .item { float: none; width: 100%; margin-bottom: 18px; }
	#floor_1_main .about .item img { width: 100%; height: auto; }
	#floor_1_main .about .contW { float: none; width: 100%; }

	/* 新闻两块：上下 */
	#floor_5_main .inews1, #floor_5_main .inews2 { float: none; width: 100%; }
	#floor_5_main .inews2 { margin-top: 24px; }
	#floor_5_main .inews1 .newslist { width: 100%; float: none; margin-top: 12px; }

	/* 内页：侧栏与正文上下排列 */
	.submian { padding-top: 10px; }
	.submian .subleft { float: none; width: 100%; margin-bottom: 16px; }
	.submian .subleft .lefta { width: 100%; }
	.submian .subleft .lefta .comt1 ul li a { background-position: right 16px center; }
	.submian .subright { float: none; width: 100%; }
	.submian .subright img { max-width: 100%; }
	.submian .subright .mess { width: auto; margin: 0; padding: 0 0 20px; }
	.submian .subright .mess .right { width: 100%; }

	/* 荣誉墙：三列 */
	.honorlist ul.list { display: flex; flex-wrap: wrap; gap: 12px; float: none; }
	.honorlist ul.list li.item { float: none; width: calc(33.333% - 8px); margin: 0; box-sizing: border-box; }

	/* 新闻列表缩略图 + 文字 */
	.submian .subright .thumblist .item { width: auto; padding: 14px; box-sizing: border-box; }
	.submian .subright .thumblist .item .img { width: 30%; height: auto; float: left; margin-right: 14px; }
	.submian .subright .thumblist .item .img img { height: auto; }
	.submian .subright .thumblist .item .txt { width: auto; float: none; overflow: hidden; }
	.submian .subright .caselist ul li { height: auto; }
	.submian .subright .caselist ul li a img { width: 40%; height: auto; }

	/* 页脚 */
	.footer { padding-bottom: 24px; }
	.footer .bNav { width: 100%; height: auto; border-right: 0; margin-top: 20px; }
	.footer .bNav dl { width: 33.333%; margin-bottom: 10px; }
	.footer .contact_info { width: 100%; height: auto; padding: 16px 0 0; border-right: 0; border-top: 1px solid #1a1d21; }
	.footer .contact_info p.dh { font-size: 26px; }
	.footer .ewm { width: 100%; height: auto; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid #1a1d21; }
	.footer .ewm dl { margin: 0 20px 0 0; }
	.footer .copyright { font-size: 12px; line-height: 20px; padding: 0 16px; }

	/* 右侧悬浮客服：整体缩小并贴右下，图标沿用原尺寸避免变形 */
	.toolbar { top: auto; bottom: 84px; right: 4px; transform: scale(.86); transform-origin: 100% 100%; }
	.toolbar .pop { right: 60px; }
}

/* ---------- ≤640px：手机 ---------- */
@media (max-width: 640px) {

	/* 页头更紧凑 */
	.header_main .tel { display: none; }
	.header_main .logo img { height: 40px; }

	/* 首页产品两列 */
	#floor_2_main .proCenter .list li { width: calc(50% - 6px); box-sizing: border-box; }
	#floor_2_main .proCenter .list li .tit { font-size: 13px; line-height: 34px; }

	/* 荣誉墙两列 */
	.honorlist ul.list li.item { width: calc(50% - 6px); box-sizing: border-box; }
	.honorlist ul.list li.item span { font-size: 13px; height: 38px; line-height: 38px; }

	/* 轮播与标语 */
	#banner_main .banner { height: 64vw; min-height: 210px; }
	.nybanner { height: 30vw; }
	#floor_3_main .p1, #floor_3_main .p2 { font-size: 17px; }
	#floor_3_main .p3 { font-size: 19px; }

	/* 标题字号 */
	.submian .t2 { font-size: 20px; padding-bottom: 18px; }
	.submian .subright .conBox .ArticleTitle h1 { font-size: 19px; padding: 12px 0; }
	.submian .subright .conBox .ArticleMessage { height: auto; line-height: 22px; }

	/* 列表缩略图更小 */
	.submian .subright .thumblist .item .img { width: 34%; }
	.submian .subright .thumblist .item .txt h3 { font-size: 15px; line-height: 24px; }

	/* 页脚导航两列 */
	.footer .bNav dl { width: 50%; }
	.footer .ewm dl { width: 120px; margin-right: 12px; }
	.footer .ewm dl dt { width: 120px; height: 120px; }
	.footer .ewm dl dt img { width: 110px; height: 110px; }

	/* 文章正文：字号与行距适配 */
	.submian .subright .conBox .ArticleTencont { line-height: 26px; font-size: 15px; }

	/* 分页收紧 */
	.pglist a { padding: 0 9px; margin: 0 2px; height: 30px; line-height: 30px; font-size: 13px; }

	/* 手机端隐藏部分悬浮按钮，避免遮挡 */
	.toolbar .pop { display: none; }
}

/* 正文内表格/大图横向可滚动，避免撑破屏幕 */
@media (max-width: 1024px) {
	.submian .subright .ArticleTencont, .submian .subright .aboutlist { overflow-x: auto; }
	.submian .subright .ArticleTencont table { max-width: 100%; }
}

/* ---------- 首页标题与标语排版（原站为固定大字号 + 绝对定位，小屏需重排） ---------- */
@media (max-width: 1024px) {
	.index .in_title { padding-top: 26px; padding-bottom: 4px; }
	.index .in_title .entit { width: auto; font-size: 30px; line-height: 1.15; letter-spacing: 2px; }
	.index .in_title .tit { font-size: 20px; line-height: 30px; }
	.index .in_title .tit em { width: 56px; margin-bottom: 6px; }
	.index .in_title .tit span { margin: 0 10px; }
	.index .tab { padding-top: 16px; }
	#floor_3_main .in_title3 { height: auto; padding: 26px 0 20px; }
	#floor_3_main .in_title3 .bg {
		width: 100%; height: auto; margin-top: 0;
		padding: 18px 14px 20px; box-sizing: border-box;
		border-width: 2px; text-align: center;
	}
	#floor_3_main .in_title3 p { position: static; width: auto; display: block; text-align: center; line-height: 1.5; }
	#floor_3_main .in_title3 .p1 { font-size: 17px; padding: 0; background: none; }
	#floor_3_main .in_title3 .p2 { display: block; font-size: 14px; line-height: 1.6; padding: 0; background: none; letter-spacing: .5px; }
	#floor_3_main .in_title3 .p3 {
		position: static; display: block; margin: 12px 0 0; left: auto; top: auto;
		width: auto; height: auto;
		font-size: 19px; line-height: 1.4; text-align: center; white-space: normal;
	}
	#floor_2_main .floor_2, #floor_1_main .floor_1, #floor_5_main .floor_5 { padding-bottom: 30px; }
	#floor_2_main .proCenter .list { margin-top: 16px; }
	/* 行业新闻的图片轮播在窄屏隐藏，直接展示新闻列表，避免占位大图 */
	#floor_5_main .inews1 .imgleft { display: none; }
	#floor_5_main .newslist { width: 100%; }
	#floor_5_main .newslist li { line-height: 34px; height: auto; }
	#floor_5_main .inews1 .title h3, #floor_5_main .inews2 .title h3 { font-size: 17px; }
	#floor_2_main .more { margin-top: 10px; }
	#floor_1_main .about .contW .cont { line-height: 26px; font-size: 14px; }
}
/* ---------- 内页左侧栏：窄屏变成横向栏目条，隐藏推荐产品/联系我们 ---------- */
@media (max-width: 1024px) {
	.submian .subleft { float: none; width: 100%; margin: 0 0 14px; }
	.subleft .lefta .title { margin-bottom: 0; }
	.subleft .lefta .comt ul {
		display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
		padding: 10px 0; border: 0; background: none;
		-webkit-overflow-scrolling: touch;
	}
	.subleft .lefta .comt ul::-webkit-scrollbar { display: none; }
	.subleft .lefta .comt li {
		float: none; flex: 0 0 auto; width: auto; margin: 0; padding: 0;
		border: 1px solid #e0e0e0; border-radius: 3px; background: #fff;
	}
	.subleft .lefta .comt li a { display: block; padding: 0 14px; line-height: 34px; height: 34px; border: 0; }
	.subleft .lefta .comt li.hover { background: #dc0000; border-color: #dc0000; }
	.subleft .lefta .comt li.hover a { color: #fff; }
	/* 推荐产品、联系我们两块侧栏在手机上隐藏（底部栏目已有同样信息） */
	.subleft .leftnews:has(.leftprocomt),
	.subleft .leftnews:has(.leftcont) { display: none; }

	/* 内页横幅：整图完整显示，不做裁切 */
	.nybanner { height: auto; min-height: 0; }
	.nybanner img { position: static; left: 0; width: 100%; height: auto; margin: 0; }
}
/* ---------- 内页细节：视频、验证码行 ---------- */
@media (max-width: 1024px) {
	/* 单页里的视频按 16:9 自适应，避免固定高度导致竖向拉长 */
	.subright video, .submian video, .content video {
		display: block; width: 100% !important; height: auto !important;
		max-width: 100%; aspect-ratio: 16 / 9; background: #000;
	}
	/* 留言验证码：图片与输入框同行、居中 */
	.zf-form .capwrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
	.zf-form .capwrap .cap-input { flex: 1 1 120px; width: auto; min-width: 0; }
	.zf-form .capwrap .cap-change { flex: 0 0 auto; }
	.zf-form .frow .fitem.full .txt, .zf-form .frow .fitem.full textarea { width: 100%; box-sizing: border-box; }
}
/* ---------- 抽屉菜单配色修正（原站二级菜单为深红底，手机上改为白底深字） ---------- */
@media (max-width: 1024px) {
	.zf-nav-panel, .zf-nav-panel ul.list, .zf-nav-panel ul.list li,
	.zf-nav-panel dl, .zf-nav-panel dl dd { background: #fff !important; }
	.zf-nav-panel ul.list li { border-bottom: 1px solid #efefef; }
	.zf-nav-panel dl { border-top: 1px solid #f2f2f2; }
	.zf-nav-panel dl dd { border-bottom: 1px dashed #f4f4f4; }
	.zf-nav-panel ul.list li > a { background: #fff !important; color: #222 !important; font-weight: 600; }
	.zf-nav-panel dl dd a { background: #fff !important; color: #666 !important; font-weight: normal; }
	.zf-nav-panel ul.list li.hover > a { color: #dc0000 !important; }
	.zf-nav-panel .zf-nav-close { z-index: 10; background: #f4f4f4; }
}
/* ---------- 抽屉关闭按钮：固定到右上角，红底白叉保证可见 ---------- */
@media (max-width: 1024px) {
	.zf-nav-close {
		position: fixed !important; left: auto !important; right: 10px !important; top: 10px !important;
		z-index: 1300 !important;
		width: 34px; height: 34px; line-height: 32px !important;
		background: #dc0000 !important; color: #fff !important;
		border: 0; border-radius: 50%; font-size: 20px; cursor: pointer;
	}
	.zf-nav-panel dl, .zf-nav-panel dl dd { border: 0 !important; }
}
/* ---------- 产品详情大图：原站容器固定 920px，手机上会按原始尺寸溢出显示，改为自适应 ---------- */
@media (max-width: 1024px) {
	.submian .subright .MainBg { width: 100% !important; margin: 0; }
	.submian .subright #OriginalPic,
	.submian .subright .OriginalPicBorder { width: 100% !important; }
	.submian .subright #OriginalPic img {
		display: block; min-width: 0; width: auto; max-width: 100%;
		max-height: 300px; height: auto; object-fit: contain;
		margin: 0 auto;
	}
	/* 产品详情正文里的描述图同样限制宽度 */
	.submian .subright .ArticleTencont img { max-width: 100%; height: auto; }
	/* 留言表单卡片：窄屏缩小内边距 */
	.formData { padding: 16px 14px 18px; }
}