/* =====================================================================
   瑞浒网站响应式层 responsive.css  2026-12-02
   加载顺序：style_xx.css → media_xx.css → 本文件（后加载者覆盖前者）
   断点：≤1100px 平板 | ≤820px 大手机 | ≤560px 手机
   原则：只覆盖布局，不改配色与内容；后台与数据层零改动
   ===================================================================== */

/* ---------- 基础 ---------- */
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
body { overflow-x: hidden; }
.editorc img, .editorc2 img { max-width: 100%; height: auto; }   /* 正文图防溢出 */

/* ---------- 首页视频窗口加大 + 标准播放器 ----------
   原布局：新闻列 52% / 视频列 48%（窗口 720x405）。
   加大为 新闻 45% / 视频 55%（约 825px 宽，16:9 自适应高）。
   视频 preload=metadata + poster 封面，不拖慢首页加载。 */
#inews .nrs { width: 45%; }
#inews .video { width: 55%; }
#inews .video div { height: auto; aspect-ratio: 16/9; }
#inews .video div video { width: 100%; height: 100%; display: block; background-color: #000; object-fit: contain; }
#inews .video p { font-size: 20px; }
#inews .video p .vdl { display: inline-block; margin-left: 14px; padding: 3px 14px; border: 1px solid rgba(255,255,255,.75); border-radius: 14px; color: #fff; font-size: 14px; vertical-align: 2px; transition: all .2s; }
#inews .video p .vdl:hover { background-color: #fff; color: #16365c; text-decoration: none; }

/* ---------- 首页轮播全端等比化（含桌面） ----------
   原设计 #banner_ul 固定 1920 宽居中，两侧溢出裁切：
   1440 视口左右各裁 240px，会裁掉 banner 上的文字。
   改为等比容器（高=宽×34%），任何视口下图完整显示，文字不裁。
   轮播 JS 为 cycle fade 模式，不依赖宽度计算，改动安全。 */
#banner { height: 0; padding-bottom: 41.67%; min-width: 0; }
#banner_ul { top: 0; left: 0; margin-left: 0; width: 100%; height: 100%; }
#banner_ul li { width: 100%; height: 100%; }
#banner_ul li img { width: 100%; height: 100%; object-fit: cover; }

/* =========== ≤1100px 平板与小桌面 =========== */
@media only screen and (max-width: 1100px) {
	#header, #banner, #iproducts, #title_cur { min-width: 0; }
	/* min-width:0 必须显式覆盖 media_xx.css ≤1280 断点的 .wrap{min-width:1200px}，否则手机端容器被强制 1200 宽 */
	.wrap { width: 100%; min-width: 0; padding-left: 3%; padding-right: 3%; box-sizing: border-box; }

	/* 头部：logo 与导航改为自适应两段 */
	#header { height: auto; padding: 10px 3%; }
	#logo { position: static; display: inline-block; margin: 0; height: 40px; vertical-align: middle; }
	#nav li > a { line-height: 64px; font-size: 16px; }
	#nav li p { top: 64px; }

	/* 首页区块 */
	#inews .wrap { height: auto; padding-bottom: 40px; }
	#inews .video div { height: auto; }
	#iservice .wrap { height: auto; padding-bottom: 30px; }
	.ititle h2 { font-size: 36px; }

	/* 内页布局：左右栏开始收窄 */
	#left { width: 200px; }
	#right { width: calc(100% - 220px); }

	/* 内页横幅 */
	.inbanner { height: 240px !important; background-size: cover !important; }
}

/* =========== ≤820px 大手机 / 小平板 =========== */
@media only screen and (max-width: 820px) {
	body { font-size: 14px; }

	/* 头部：logo 一行 + 导航横滑一行（不换行不重叠，左右可滑动） */
	#header { text-align: left; padding-bottom: 0; }
	#logo { height: 36px; }
	#header .language { position: absolute; top: 16px; right: 3%; margin: 0; padding-left: 34px; height: 28px; line-height: 28px; background-size: auto 28px; }
	#header .ss { position: absolute; top: 16px; right: calc(3% + 110px); margin: 0; width: 40px; }
	#nav { display: block; width: 100%; height: 46px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; }
	#nav li { display: inline-block; float: none; height: 46px; }
	#nav li > a { line-height: 46px; font-size: 15px; padding: 0 12px; }
	#nav li p { position: absolute; top: 46px; left: 0; margin-left: 0; min-width: 150px; }

	/* 轮播：随宽度等比缩放，图片裁切不变形（41.67% = 650/1560，匹配 banner 素材比例） */
	#banner { height: 0; padding-bottom: 41.67%; }
	#banner_ul { position: absolute; top: 0; left: 0; margin-left: 0; width: 100%; height: 100%; }
	#banner_ul li { width: 100%; height: 100%; }
	#banner_ul li img { width: 100%; height: 100%; object-fit: cover; }

	/* 首页产品：一列 */
	#iproducts .list a { width: 100%; }

	/* 首页新闻+视频：上下堆叠 */
	#inews .wrap { display: block; }
	#inews .nrs { width: 100%; }
	#inews .ititle { padding-top: 50px; }
	#inews .video { width: 100%; margin-top: 30px; }
	#inews .video div iframe, #inews .video div video { width: 100% !important; height: 100% !important; }
	#inews .tabs a { width: auto; padding: 0 16px; height: 44px; line-height: 44px; font-size: 16px; margin-bottom: 10px; }

	/* 首页解决方案：两列 */
	#isolution a { width: 48.5%; margin-right: 3%; }
	#isolution a:nth-child(3n) { margin-right: 3%; }
	#isolution a:nth-child(2n) { margin-right: 0; }
	#isolution a div h2 { font-size: 18px; }

	/* 首页服务：两列 */
	#iservice ul li { width: 50%; margin-top: 20px; }
	#iservice ul li p { font-size: 16px; }
	#iservice h3 { padding: 36px 0 10px 0; font-size: 20px; }

	/* 页脚：上下堆叠；手机端隐藏页脚导航列（太多文字），只留联系方式/二维码/版权 */
	#footer_info .wrap { display: block; padding-top: 30px; padding-bottom: 30px; }
	#footer_info .fnav { display: none; }
	#footer_info .info { width: 100%; margin-top: 10px; }
	#footer_info .qrcode li { margin-right: 24px; }

	/* 内页通用 */
	#content { padding-bottom: 40px; }
	#title_cur .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; }
	#title_cur .tis { position: static; }
	#title_cur .tis h2 { font-size: 20px; }
	#title_cur .curs { position: static; margin-top: 6px; }
	#title_cur .menu { position: static; margin-top: 10px; text-align: left; }
	#title_cur .menu a { margin: 6px 8px 0 0; padding: 0 14px; height: 32px; line-height: 30px; font-size: 14px; }
	.inbanner { height: 160px !important; }

	/* 内页左右栏：上下堆叠 */
	#left, #right { float: none; width: 100%; }

	/* 产品列表与详情 */
	#products a { width: 48.5%; margin-right: 3%; }
	#products a:nth-child(4n) { margin-right: 3%; }
	#products a:nth-child(2n) { margin-right: 0; }
	#products a h2 { font-size: 14px; }
	#products_image, #products_desc { float: none; width: 100%; margin-top: 24px; }
	#products_desc h1 { font-size: 20px; }

	/* 荣誉资质与合作伙伴：降列 */
	#about_image1 a { width: 47.5%; margin-right: 5%; }
	#about_image1 a:nth-child(4n) { margin-right: 5%; }
	#about_image1 a:nth-child(2n) { margin-right: 0; }
	#about_image2 a { width: 47.5%; margin-right: 5%; }
	#about_image2 a:nth-child(5n) { margin-right: 5%; }
	#about_image2 a:nth-child(2n) { margin-right: 0; }
	#partners li { width: 31.5%; margin-right: 2.7%; }
	#partners li:nth-child(7n) { margin-right: 2.7%; }
	#partners li:nth-child(3n) { margin-right: 0; }

	/* 浮动客服挂件：手机上隐藏，避免遮挡内容 */
	#float_os { display: none; }

	/* 分页与按钮 */
	.fypage a, .fypage_sl { margin-bottom: 6px; }
	#fypage_gobtn, #fypage_gov { vertical-align: middle; }
}

/* =========== ≤560px 手机 =========== */
@media only screen and (max-width: 560px) {
	.ititle h2 { font-size: 26px; }
	.ititle { padding-top: 36px; }
	#inews .ititle { padding-top: 36px; }

	/* 导航横滑更紧凑 */
	#nav li > a { font-size: 14px; padding: 0 10px; }

	/* 解决方案与产品保持两列，标题更小 */
	#isolution a div h2 { font-size: 15px; }

	/* 留言等表单：输入控件全宽、表格堆叠 */
	#message table, #message table td { display: block; width: 100% !important; box-sizing: border-box; }
	#message table td { padding: 4px 0; }
	#message .input_text, #message .input_area { width: 100% !important; box-sizing: border-box; }
	#message table td[align="right"] { text-align: left; padding-top: 10px; }

	/* 各类输入控件兜底（全站表单） */
	.input_text, .input_area, .input_select { max-width: 100%; }

	/* 详情正文表格不撑破 */
	.editorc table, .editorc2 table { max-width: 100%; display: block; overflow-x: auto; }
	.editorc table.border td, .editorc2 table td { word-break: break-all; }

	#footer_info .fnav > div { width: 100%; }
	#footer { font-size: 12px; }
}
