/* H5 / narrow screens — layout only, does not change form or API behavior */

@media screen and (max-width: 1199px) {
	html {
		-webkit-text-size-adjust: 100%;
	}

	body {
		min-width: 0;
		overflow-x: hidden;
	}

	.container {
		min-width: 0;
		overflow-x: hidden;
	}

	section {
		overflow: visible;
	}

	header .logo {
		margin: 11px 0 0 16px;
	}

	.banner-bj {
		margin-bottom: 40px;
		margin-top: 0;
		position: relative;
		z-index: 0;
		isolation: isolate;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		/* 与顶栏同色，避免首屏出现一条「白条」 */
		background: #2b4b7e;
	}

	.banner-bj-img {
		position: relative;
		z-index: 1;
		display: block;
		width: 100%;
		height: auto;
		order: 2;
		flex-shrink: 0;
		margin-top: 0;
		/* 上移手机区块，缩小副标题与手机之间的空白 */
		margin-bottom: max(-56px, min(-28px, -8vw));
	}

	.banner-bj .animation_box {
		position: relative;
		bottom: auto;
		left: auto;
		right: auto;
		-webkit-transform: none;
		transform: none;
		/* 以视口为主加宽手机外壳，避免仅 ~130px 过小；比例与 PC 一致由内部 80%/10% 边距还原 */
		width: min(88vw, 360px);
		max-width: none;
		/* 更大负边距：整体上提，贴近副标题与横幅图 */
		margin-top: max(-120px, min(-64px, -20vw));
		margin-left: auto;
		margin-right: auto;
		padding-bottom: 8px;
		z-index: 2;
		order: 3;
		flex-shrink: 0;
	}

	/* 原 inside.css 里 .img-box 用 .68rem（相对根节点），父级加宽后内部不会跟著变大 */
	.banner-bj .animation_box .img-box {
		width: 80%;
		margin-left: 10%;
		height: auto;
	}

	.banner-bj .animation_box .img-box > div img {
		width: 100%;
		max-width: 100%;
		height: auto;
		vertical-align: top;
	}

	.banner-bj .animation_box .old-img img {
		width: 100%;
		height: auto;
	}

	/* 滑块宽度随内容区比例放大 */
	.banner-bj .animation_box .huagan {
		width: 6%;
		min-width: 4px;
		max-width: 12px;
		margin-left: -3%;
	}

	.banner-bj .banner-text {
		position: relative;
		top: auto !important;
		left: 0;
		order: 1;
		z-index: 5;
		flex-shrink: 0;
		/* 文案单独一条色带：与 PC「压在蓝底上」一致，避免白字叠在页面白底上消失 */
		background: #2b4b7e;
		margin: 0;
		margin-bottom: 0;
		padding: 10px 16px 6px;
		box-sizing: border-box;
		width: 100%;
		text-align: center;
		overflow: visible;
	}

	.banner-bj .banner-text h5 {
		margin-bottom: 4px !important;
	}

	.banner-bj .banner-text p {
		margin: 0 !important;
		padding-left: 12px;
		padding-right: 12px;
		padding-top: 0;
		padding-bottom: 0;
	}

	/* 横幅文案不依赖滚动进场：始终可见（盖过 .title 的 height:0 / opacity:0） */
	.banner-bj > .banner-text,
	.banner-bj > .banner-text h5,
	.banner-bj > .banner-text p {
		opacity: 1 !important;
		height: auto !important;
		visibility: visible !important;
	}

	.banner-bj .banner-text h5,
	.banner-bj .banner-text p,
	.banner-bj .banner-text p b {
		color: #ffffff !important;
	}

	.banner-text h5 {
		font-size: clamp(22px, 5.5vw, 42px);
		margin-bottom: 8px;
		line-height: 1.25;
		/* 确保与通用 .title h5 的进场样式无关时仍有正常盒高 */
		min-height: 1.25em;
	}

	.banner-text p {
		font-size: clamp(13px, 3.2vw, 18px);
		letter-spacing: 1px;
		padding: 0 12px;
		line-height: 1.45;
	}

	/* PC：依赖滚动才把 .animation-show / .animation-bot-show 加上；移动端必须让 section 里所有 .title 及 h5、p 默认展开，否则会继承 .title h5,p 的 height:0+opacity:0，整段像白屏 */
	section .title,
	section .title h5,
	section .title p {
		opacity: 1 !important;
		height: auto !important;
		visibility: visible !important;
		top: 0 !important;
	}

	section .title {
		position: relative !important;
	}

	section .title p {
		-webkit-transform: none !important;
		transform: none !important;
	}

	.three-box-main,
	.three-box-text,
	.tab-box .title,
	.show-text,
	.title.animation-show,
	.title.animation-show h5,
	.title.animation-show p {
		opacity: 1 !important;
		height: auto !important;
		top: 0 !important;
	}

	.title p,
	.animation-show p {
		-webkit-transform: translateY(0) !important;
		transform: translateY(0) !important;
	}

	.three-box {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 0;
		padding: 24px 12px 32px;
		margin-bottom: 32px;
	}

	.three-box-text {
		position: relative;
		margin-bottom: 8px;
	}

	.three-box-text h5 {
		font-size: 18px;
		margin-bottom: 12px;
	}

	.three-box-text p {
		font-size: 15px;
	}

	.three-box-main {
		position: relative !important;
		top: 0 !important;
		opacity: 1 !important;
		height: auto !important;
		padding-top: 16px !important;
		overflow: visible;
	}

	.three-box-main > div {
		width: 100%;
	}

	.three-box-main dl {
		float: none;
		display: block;
		width: 100%;
		max-width: 400px;
		margin: 12px auto !important;
		padding: 32px 16px 28px;
	}

	.three-box-main dl dt img {
		max-width: 100%;
		height: auto;
	}

	.tab-box .title {
		position: relative;
		margin-top: 24px;
		padding: 0 12px;
	}

	.tab-box .title h5 {
		font-size: 18px;
	}

	.tab-box-main {
		width: 100%;
		max-width: 100%;
		padding: 32px 12px 48px;
	}

	.left-nav,
	.right-main {
		float: none;
		width: 100%;
		height: auto;
	}

	.right-main {
		margin-top: 12px;
		min-height: 0;
	}

	.left-nav ul li {
		height: auto;
		min-height: 0;
		padding: 18px 14px;
		font-size: 15px;
		line-height: 1.5;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.left-nav ul li.active:after {
		display: none;
	}

	.right-main-content {
		position: relative;
		padding: 28px 16px 24px;
		min-height: 280px;
	}

	.right-main-content > div {
		padding-bottom: 0;
	}

	.right-main-content img {
		position: relative !important;
		bottom: auto !important;
		left: auto !important;
		-webkit-transform: none !important;
		transform: none !important;
		display: block;
		max-width: 100%;
		height: auto;
		margin: 16px auto 0;
	}

	.turn-content {
		width: 100%;
		max-width: 100%;
		padding: 48px 12px 32px;
		overflow: visible;
	}

	.show-text {
		position: relative;
		margin-top: 0;
		margin-bottom: 20px;
	}

	.show-text h5 {
		font-size: 18px;
		line-height: 1.4;
	}

	.left-show-img,
	.center-nav,
	.right-show-form {
		float: none;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.left-show-img {
		height: auto;
		padding-top: 8px;
		/* 略留底边即可；scale 后布局高度仍按原图，过大 padding 会在 Tab 上方多出一条白区 */
		padding-bottom: 12px;
		display: flex;
		flex-direction: column;
		align-items: center;
		overflow: visible;
		position: relative;
		z-index: 1;
	}

	/* Scale phone mockups + overlay logos together
	   注意：禁止对 .turn_img 使用 display:!important，否则会压过脚本写的 display:none，
	   导致三个 turn 预览块在手机端同时出现。显示/隐藏仅由脚本控制。 */
	.left-show-img > div.turn_img {
		/* 不再使用 transform:scale：布局高度仍按缩放前计算，易造成「图只显示一截 / 和容器对不齐」 */
		-webkit-transform: none;
		transform: none;
		max-width: min(100%, 480px);
		width: 100%;
		margin-bottom: 0;
		align-self: center;
		box-sizing: border-box;
	}

	/* 窄屏下当前展示的这一帧由脚本设为 display:flex，用于内部底图居中 */
	.left-show-img > div.turn_img.turn-slide-visible {
		flex-direction: column;
		align-items: center;
	}

	/* 三张 turn 预览底图：完整落在 left-show-img 内，等比缩放不靠 transform（避免裁切/占位错位） */
	.left-show-img .turn_img > img {
		display: block;
		width: 100%;
		max-width: 100%;
		height: auto;
		object-fit: contain;
		margin: 0 auto;
		position: relative;
		z-index: 0;
	}

	/* 来去电页：叠层略上移，使「展示名称 + 号码」与中间话机画面更贴合 */
	.left-show-img .turn_img_one > .turn_imgtop.turn_img1 {
		-webkit-transform: translateY(-52px);
		transform: translateY(-52px);
	}

	/* 通话记录页：叠层上移（需保留 PC 的 scale(.8)，否则会覆盖掉缩放） */
	.left-show-img .turn_img_two > .turn_imgtop.turn_img2 {
		-webkit-transform: translateY(-43px) scale(0.8);
		transform: translateY(-43px) scale(0.8);
		margin-left: -100px !important;
	}

	/* 详情浮层：PC 为 left:313px + 228px 宽叠在中间手机画上；H5 底图 width:100% 后需相对整图水平居中、垂直按比例下移 */
	.left-show-img .turn_img_three > .turn_imgtop {
		left: 50% !important;
		right: auto !important;
		margin-left: 0 !important;
		-webkit-transform: translateX(-50%) !important;
		transform: translateX(-50%) !important;
		top: 10.5% !important;
		width: calc(228 * 100% / 622) !important;
		max-width: 56vw;
		height: auto !important;
		min-height: 0 !important;
		max-height: 58% !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		-webkit-box-sizing: border-box !important;
		box-sizing: border-box !important;
		z-index: 4;
	}

	/* 卡片内固定 px 在窄宽下溢出错位：随容器收敛 */
	.left-show-img .turn_img_three > .turn_imgtop .yl_three_name {
		max-width: 100% !important;
		width: 100% !important;
		height: auto !important;
		min-height: 52px;
		display: flex;
		align-items: center;
		line-height: 1.25 !important;
		padding: 6px 8px 6px 46px !important;
		background-size: 26px auto;
		background-position: 10px center;
		box-sizing: border-box;
	}
	.left-show-img .turn_img_three > .turn_imgtop .text_number {
		max-width: 100% !important;
		padding-right: 10px !important;
		background-position: right 8px center;
		box-sizing: border-box;
	}
	.left-show-img .turn_img_three > .turn_imgtop .address {
		max-width: 100% !important;
		height: auto !important;
		min-height: 36px;
		line-height: 1.3 !important;
		padding: 6px 36px 6px 8px !important;
		background-position: right 6px center;
		box-sizing: border-box;
	}
	.left-show-img .turn_img_three > .turn_imgtop .yl_three_number {
		width: auto !important;
		max-width: 100%;
	}
	.left-show-img .turn_img_three > .turn_imgtop p > img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		margin-left: 0 !important;
	}

	/* PC 上 .turn_img_three>div 给「每一个」直接子 div 写了 position:absolute + left:313px + 228×388，
	   详情卡片 .turn_imgtop 需要，但三个 .media-sm 角标也会被撑成大块并错位；窄屏仅对角标重置 */
	.left-show-img .turn_img_three > .media.media-sm {
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: auto !important;
		height: auto !important;
		min-width: 0 !important;
		min-height: 0 !important;
		overflow: visible !important;
	}

	/* 手机端隐藏周围漂浮的角标图标 */
	.left-show-img .turn_img .media.media-sm {
		display: none !important;
	}

	/* PC 稿宽约 622px；手机端 turn 底图 width:100%，仍用像素 margin 会对不准，改为按容器宽度比例换算 */
	.left-show-img .turn_img_one > .media.media-sm:nth-child(1) {
		margin: calc(58 * 100% / 622) 0 0 calc(286 * 100% / 622) !important;
	}
	.left-show-img .turn_img_one > .media.media-sm:nth-child(2) {
		margin: calc(103 * 100% / 622) 0 0 calc(14 * 100% / 622) !important;
	}
	.left-show-img .turn_img_one > .media.media-sm:nth-child(3) {
		margin: calc(133 * 100% / 622) 0 0 calc(464 * 100% / 622) !important;
	}

	.left-show-img .turn_img_two > .media.media-sm:nth-child(1) {
		margin: calc(129 * 100% / 622) 0 0 calc(216 * 100% / 622) !important;
	}
	.left-show-img .turn_img_two > .media.media-sm:nth-child(2) {
		margin: calc(90 * 100% / 622) 0 0 calc(465 * 100% / 622) !important;
	}
	.left-show-img .turn_img_two > .media.media-sm:nth-child(3) {
		margin: calc(88 * 100% / 622) 0 0 calc(63 * 100% / 622) !important;
	}

	.left-show-img .turn_img_three > .media.media-sm:nth-child(1) {
		margin: calc(9 * 100% / 622) 0 0 calc(-102 * 100% / 622) !important;
	}
	.left-show-img .turn_img_three > .media.media-sm:nth-child(2) {
		margin: calc(20 * 100% / 622) 0 0 calc(205 * 100% / 622) !important;
	}
	.left-show-img .turn_img_three > .media.media-sm:nth-child(3) {
		margin: calc(80 * 100% / 622) 0 0 calc(-300 * 100% / 622) !important;
	}

	/* 角标图尺寸随预览宽度缩放（盖过内联 width/height） */
	.left-show-img .turn_img_one > .media.media-sm:nth-child(1) .media-object {
		width: calc(52 * 100% / 622) !important;
		height: auto !important;
		aspect-ratio: 1;
	}
	.left-show-img .turn_img_one > .media.media-sm:nth-child(2) .media-object {
		width: calc(34 * 100% / 622) !important;
		height: auto !important;
		aspect-ratio: 1;
	}
	.left-show-img .turn_img_one > .media.media-sm:nth-child(3) .media-object {
		width: calc(22 * 100% / 622) !important;
		height: auto !important;
		aspect-ratio: 1;
	}
	.left-show-img .turn_img_two > .media.media-sm:nth-child(1) .media-object {
		width: calc(25 * 100% / 622) !important;
		height: auto !important;
		aspect-ratio: 1;
	}
	.left-show-img .turn_img_two > .media.media-sm:nth-child(2) .media-object {
		width: calc(34 * 100% / 622) !important;
		height: auto !important;
		aspect-ratio: 1;
	}
	.left-show-img .turn_img_two > .media.media-sm:nth-child(3) .media-object {
		width: calc(42 * 100% / 622) !important;
		height: auto !important;
		aspect-ratio: 1;
	}
	.left-show-img .turn_img_three > .media.media-sm:nth-child(1) .media-object {
		width: calc(44 * 100% / 622) !important;
		height: auto !important;
		aspect-ratio: 1;
	}
	.left-show-img .turn_img_three > .media.media-sm:nth-child(2) .media-object {
		width: calc(42 * 100% / 622) !important;
		height: auto !important;
		aspect-ratio: 1;
	}
	.left-show-img .turn_img_three > .media.media-sm:nth-child(3) .media-object {
		width: calc(20 * 100% / 622) !important;
		height: auto !important;
		aspect-ratio: 1;
	}

	.center-nav {
		margin: 10px 0 18px;
		width: 100%;
		position: relative;
		z-index: 2;
		display: none !important;
	}

	.center-nav ul {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		padding: 0 4px;
		gap: 8px;
	}

	.center-nav ul li {
		flex: 1;
		margin-bottom: 0;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.center-nav .icon {
		width: 48px;
		height: 48px;
		background-size: 100% auto;
		background-position-y: 48px;
	}

	.center-nav li.over_active .icon {
		background-position-y: 0;
	}

	.center-nav p {
		font-size: 12px;
		line-height: 1.3;
		margin-top: 8px;
	}

	.right-show-form input[type="file"] {
		font-size: 16px;
		max-width: 100%;
	}

	#footer .wrap4 {
		width: 100%;
		max-width: 100%;
		padding: 24px 16px;
		box-sizing: border-box;
	}

	.footer_11 {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	#footer_1 {
		float: none;
		width: 100%;
		margin-left: 0;
		text-align: left;
	}

	#footer_1 .col_1 {
		text-align: left;
	}

	#footer_1 .col_1 h3 {
		margin-left: 0;
		padding-left: 0;
	}

	/* 与 PC 的 inline-block 并排不同：窄屏纵向堆叠且两枚按钮左缘对齐 */
	#footer_1 .android,
	#footer_1 .iphone {
		display: block;
		margin: 12px 0 0 0;
		text-align: left;
		height: auto;
	}

	#footer_1 .android a,
	#footer_1 .iphone a {
		display: inline-block;
		line-height: 0;
	}

	#footer_1 .android img,
	#footer_1 .iphone img {
		display: block;
		width: 122px;
		max-width: min(122px, 70vw);
		height: auto;
	}

	#footer_2 {
		float: none;
		width: 100%;
		margin-left: 0;
		margin-top: 20px;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		gap: 16px;
	}

	#footer_2 .col_2,
	#footer_2 .col_3,
	#footer_2 .col_4,
	#footer_2 .col_5 {
		float: none;
		width: 100%;
		min-width: 140px;
		margin-top: 0;
		text-align: left;
	}

	#footer_2 .col_5 {
		margin-left: 0;
	}

	.weixin {
		float: none;
		width: 100%;
		text-align: left;
		margin-top: 24px;
	}

	.weixin img {
		max-width: 120px;
		height: auto;
	}

	.footer_22 {
		height: auto;
		padding: 16px 0 24px;
	}

	.bottom {
		width: 100%;
		max-width: 100%;
		height: auto;
		line-height: 1.6;
		padding: 0 12px;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.bottom li {
		float: none;
		margin-bottom: 8px;
	}

	.xt-btn {
		left: auto;
		right: 12px;
		margin-left: 0;
		width: 52px;
		height: 118px;
		bottom: max(24px, env(safe-area-inset-bottom, 0px));
	}

	.alert_success > div {
		width: min(300px, calc(100vw - 32px));
		margin: 25vh auto;
		box-sizing: border-box;
	}
}
