/* 联系我们页面样式 */

/* 页面基础样式
   --u：等比缩放单位 = 1920 设计稿下的 1px（100vw/1920），
   三个区块（hero / 联系方式 / 相关企业）内的尺寸用 calc(N * var(--u))，
   随页面宽度放大缩小等比缩放 */
.page-contact {
	--u: calc(100vw / 1920);
	padding-top: 0;
	padding-bottom: 0;
	/* 确保页面内容正常排列 */
	clear: both;
	overflow: visible;
	position: relative;
	z-index: 1;
}

/* Hero区域样式：背景图 contact-bar-bg.png（1920x700）
   容器高度 / 内容块几何 / 标题字号全站统一，由 main.css .nyocor-page-hero 控制；
   本文件仅保留背景层与深色文字配色差异（背景图 100%×100% 铺满，不随高度变化裁切失真） */
.contact-hero-bg {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	/* cover：容器高度已由 .nyocor-page-hero clamp 独立控制（不再随视口等比），
	   100%×100% 会在窄屏把背景纵向拉变形，改 cover 等比铺满、两侧裁切 */
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
	animation: contactHeroBreath 12s ease-in-out infinite;
	will-change: transform;
}

@keyframes contactHeroBreath {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.06); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.contact-hero-bg { animation: none; }
}

.contact-hero-title-wrapper {
	margin-bottom: 0;
}

/* 标题字号与分档由 .nyocor-hero-title 提供，此处仅配色（2026-10-22 调整为白字，与采购公告 hero 同款） */
.contact-hero-title {
	color: #FFFFFF;
	white-space: nowrap;
}

.contact-hero-desc-wrapper {
	max-width: 100%;
}

/* Hero 内面包屑：字号/间距/图标尺寸由 main.css .nyocor-hero-content .breadcrumb
   统一控制（等比 + 窄屏两档）；2026-10-22 改白字（采购公告 hero 同款） */
.page-contact .breadcrumb {
	margin: auto 0 0;
	color: #FFFFFF;
}

.page-contact .breadcrumb a,
.page-contact .breadcrumb .sep,
.page-contact .breadcrumb .current {
	color: #FFFFFF;
}

.page-contact .breadcrumb a:hover {
	color: rgba(255, 255, 255, 0.75);
}

/* 描述（副标题）字号与分档由 .nyocor-hero-subtitle 提供，此处仅配色与换行控制 */
.contact-hero-description {
	color: #FFFFFF;
	/* 换行交给文案里的 <br> 控制（双语两行式设计稿样式）；
	   窄屏兜底在下方 @media 放开为 normal，避免长句溢出 */
	white-space: pre-line;
}

/* 联系信息区域：背景图 map-bg.png（1920x1202，inline style 引入），按原始比例 1:1 通栏显示
   卡片距背景图左右 124px、底部 150px（1920 设计稿） */
.contact-info-section {
	width: 100%;
	padding: calc(56 * var(--u)) calc(124 * var(--u)) calc(150 * var(--u));
	box-sizing: border-box;
	aspect-ratio: 1920 / 1202;   /* 背景图原始比例，1:1 不裁切 */
	background-size: 100% 100%;
	background-position: top center;
	background-repeat: no-repeat;
	position: relative;
}

/* 「联系方式」标题（top 56，不设宽度，防换行） */
.contact-info-section-title {
	white-space: nowrap;
	font-family: var(--font);
	font-style: normal;
	font-size: max(22px, calc(45 * var(--u)));
	font-weight: 500;
	line-height: 1.444;   /* 65 / 45 */
	letter-spacing: 0.05em;
	color: #111111;
	margin: 0;
}

/* 联系信息卡片：与「联系方式」标题间距 72px，白底圆角带蓝色投影；
   高度随地址行数自适应（每条地址一行） */
.contact-info-card {
	position: relative;
	margin-top: calc(72 * var(--u));
	padding: calc(50 * var(--u)) calc(80 * var(--u));
	background: #FFFFFF;
	box-shadow: 0 calc(14 * var(--u)) calc(21.9 * var(--u)) calc(4 * var(--u)) rgba(11, 65, 137, 0.1);
	border-radius: calc(10 * var(--u));
	box-sizing: border-box;
}

/* 地址行：地址信息 | 传真/工作时间 | 小地图+导航按钮（1920 设计稿三栏） */
.contact-grid-row {
	display: grid;
	grid-template-columns: 1.15fr 1fr calc(420 * var(--u));
	gap: 0 calc(60 * var(--u));
	padding: calc(56 * var(--u)) 0;
	align-items: start;
}

.contact-grid-row + .contact-grid-row {
	border-top: 1px solid #E8E8E8;
}

/* 单个联系信息项：图标 + 标题 + 描述，自上而下排列
   （覆盖 main.css 全局 .contact-item 的 flex 横排） */
.contact-cell .contact-item {
	display: block;
	margin-bottom: 0;
	padding-right: calc(20 * var(--u));
}

/* 中列：左侧竖分隔线 */
.contact-cell--mid {
	border-left: 1px solid #E8E8E8;
	padding-left: calc(60 * var(--u));
}

/* 单列放多块（单地址时传真+工作时间同列）的纵向间距 */
.contact-item--stacked {
	margin-top: calc(48 * var(--u));
}

.contact-item-icon {
	display: block;
	width: calc(54 * var(--u));
	height: calc(54 * var(--u));
	margin-bottom: calc(28 * var(--u));
}

.contact-item-title {
	font-family: var(--font);
	font-size: max(18px, calc(30 * var(--u)));
	font-weight: 500;
	color: #18181A;
	line-height: 1;
	margin: 0 0 calc(26 * var(--u));
}

.contact-item-desc {
	font-family: var(--font);
	font-size: max(15px, calc(26 * var(--u)));
	font-weight: 400;
	color: #7C7C7C;
	line-height: 1.65;
	margin: 0;
}

/* 电话/举报号码禁止在连字符处折行（窄分辨率下整组换行而非断号） */
.contact-phone-nowrap {
	white-space: nowrap;
}

/* 右列小地图（该地址定位，page-contact-map.js 建图）+ 导航按钮 */
.contact-map-mini {
	width: 100%;
	height: calc(210 * var(--u));
	background: #F0F2F5;
	overflow: hidden;
	position: relative;
	touch-action: none;
	cursor: grab;
}

.contact-map-mini:active {
	cursor: grabbing;
}

.contact-map-mini--empty {
	background: #F0F2F5;
}

/* Marker 图片对鼠标穿透：百度给覆盖物 DOM 绑定 mousedown 拦截器
   （stopPropagation），图钉/气泡位于地图中心，不穿透则按住中心拖图
   事件全被吃掉——滚轮正常、拖动无效。穿透后 mousedown 落到
   BMap_mask 事件层，任意位置都能拖动 */
.contact-map-mini img {
	pointer-events: none;
}

/* 百度地图事件层修复（2026-09）：main.css 的全局 * { max-width:100% }
   会把 BMapGL 的事件捕获链钳扁——
   1. 匿名 wrapper（容器首个子元素，无类名，拖拽 mousedown/mousemove/
      touchstart 处理器全绑在它上面）无宽高、绝对定位收缩为 0×0；
   2. .BMap_mask（z-index 9，本应盖在 canvas 上方接事件）的内联宽度
      被钳成 0。
   症状：地图渲染/图钉全部正常，但 canvas 上的鼠标事件冒泡
   不经过 wrapper，拖拽处理器永远收不到事件——拖动、滚轮全部无效。
   修复：解除钳制并让 wrapper 撑满容器，事件层恢复到 canvas 上方。
   （须在建图前生效，BMapGL 初始化时会按正确几何缓存坐标换算） */
.contact-map-mini > div:first-child {
	position: absolute;
	left: 0;
	top: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
}

.contact-map-mini .BMap_mask {
	max-width: none !important;
}

.contact-map-mini .BMapGL_cbg,
.contact-map-mini canvas {
	outline: none;
}

/* 导航前往按钮（该地址独立直链，设计稿 384x64，圆角 6.76，#2A6BB5） */
.contact-cell--map .contact-nav-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(14 * var(--u));
	width: 100%;
	height: calc(64 * var(--u));
	margin: calc(30 * var(--u)) 0 0;
	background: #2A6BB5;
	color: #FFFFFF;
	text-align: center;
	text-decoration: none;
	border-radius: calc(6.76 * var(--u));
	font-family: var(--font);
	font-size: max(14px, calc(26 * var(--u)));
	font-weight: 500;
	letter-spacing: 0.05em;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.contact-cell--map .contact-nav-button:hover,
.contact-cell--map .contact-nav-button:focus,
.contact-cell--map .contact-nav-button:visited {
	color: #FFFFFF;
	text-decoration: none;
}

.contact-cell--map .contact-nav-button:hover {
	background: #1F5698;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(42, 107, 181, 0.3);
}

.contact-cell--map .contact-nav-button svg {
	width: calc(24 * var(--u));
	height: calc(24 * var(--u));
	flex-shrink: 0;
}

/* 相关企业区域：背景图 bottom-bg.png（1920x826），1:1 通栏显示
   白色半透明卡片（毛玻璃）+ 集团名称 + 描述 + 前往查看按钮 */
.contact-related-section {
	width: 100%;
	/* 高度随内容增长（与卡片高度自适应互补）：原 aspect-ratio 锁定会在
	   卡片加高时把卡片顶出背景图；cover 铺满在轻微加高时仅少量裁边、无变形 */
	min-height: calc(826 * var(--u));
	box-sizing: border-box;
	padding: calc(70 * var(--u)) calc(175 * var(--u)) 0;
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
	position: relative;
}

.contact-related-title {
	white-space: nowrap;
	font-family: var(--font);
	font-style: normal;
	font-size: max(22px, calc(45 * var(--u)));
	font-weight: 500;
	line-height: 1.444;
	letter-spacing: 0.05em;
	color: #FFFFFF;
	margin: 0;
}

.contact-related-card {
	margin-top: calc(80 * var(--u));
	/* 加宽（715→1100）：新版简介文案约 300 字，原宽度下 28px 字号需 14 行，
	   固定高 462 装不下；加宽 + 高度自适应后 9 行内放下，
	   且仍在背景图（1920×826）安全区内。中英文同用此布局。
	   底部内距 40：自适应高度下按钮距卡底需要留白（原固定高时靠剩余空间） */
	width: calc(1100 * var(--u));
	height: auto;
	min-height: calc(462 * var(--u));
	border-radius: calc(20 * var(--u));
	background: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-sizing: border-box;
	padding: calc(40 * var(--u)) calc(54 * var(--u)) calc(40 * var(--u));
}

.contact-related-card-title {
	font-family: var(--font);
	font-size: max(22px, calc(40 * var(--u)));
	font-weight: 700;
	color: #070808;
	line-height: 1.2;
	margin: 0 0 calc(28 * var(--u));
}

.contact-related-card-desc {
	font-family: var(--font);
	/* 28→26：卡加宽后 300 字文案 8-9 行，配合下边距收进背景图安全区 */
	font-size: max(15px, calc(26 * var(--u)));
	font-weight: 400;
	color: #333333;
	line-height: 1.5;
	margin: 0 0 calc(24 * var(--u));
}

/* 描述分段（2026-10-23 文案更新：两个自然段），首行缩进 2em */
.contact-related-card-desc p {
	margin: 0 0 12px;
	text-indent: 2em;
}

.contact-related-card-desc p:last-child {
	margin-bottom: 0;
}

/* 英文模式相关企业卡：英文描述约为中文 4 倍长，原字号/固定高度下溢出卡片。
   缩小描述字号行距、放宽卡片内距，卡片高度改自适应下限（min-height），
   文字再多也向下自然撑开，不再出界 */
.page-contact--en .contact-related-card {
	height: auto;
	min-height: calc(462 * var(--u));
	padding: calc(40 * var(--u)) calc(44 * var(--u)) calc(36 * var(--u));
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.page-contact--en .contact-related-card-desc {
	font-size: max(13px, calc(21 * var(--u)));
	line-height: 1.55;
	margin-bottom: calc(36 * var(--u));
}

/* 英文文案为完整对应翻译（约为中文 2 倍长）：区块高度改随内容增长
   （原 aspect-ratio 锁定会把加高的卡片顶出背景图），
   背景图 cover 铺满避免纵向拉伸变形，底部留白收边 */
.page-contact--en .contact-related-section {
	aspect-ratio: auto;
	min-height: calc(826 * var(--u));
	background-size: cover;
	background-position: center;
	padding-bottom: calc(40 * var(--u));
}

.contact-related-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: calc(14 * var(--u));
	width: calc(246 * var(--u));
	height: calc(59 * var(--u));
	background: #2A6BB5;
	color: #FFFFFF;
	text-align: center;
	text-decoration: none;
	border-radius: calc(5 * var(--u));
	font-family: var(--font);
	font-size: max(15px, calc(26 * var(--u)));
	font-weight: 500;
	letter-spacing: 0.05em;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.contact-related-button:hover {
	color: #FFFFFF;
	text-decoration: none;
	background: #1F5698;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(42, 107, 181, 0.3);
}

.contact-related-button svg {
	width: calc(24 * var(--u));
	height: calc(24 * var(--u));
	flex-shrink: 0;
}

/* ==========================================
   响应式断点（同关于我们页方案：≤1199 切流式可读布局，≤640 手机）
   原 1024 断点改 1199：--u 等比方案在 1025–1199 区间字号/卡片过小
   （描述文字不足 15px、地图 283px），提前切流式可读布局与全站分档对齐
   ========================================== */
@media (max-width: 1199px) {
	/* Hero 高度/文字块几何/字号（含面包屑）由 main.css .nyocor-page-hero 统一控制 */
	.contact-hero-title,
	.contact-hero-description {
		white-space: normal;
	}

	/* 联系方式：卡片脱离绝对定位，纵向单列 */
	.contact-info-section {
		aspect-ratio: auto;
		padding: 60px 32px 80px;
		background-size: cover;
	}

	.contact-info-section-title {
		font-size: 34px;
	}

	.contact-info-card {
		margin-top: 40px;
		padding: 8px 24px 24px;
	}

	/* 行堆叠：地址 → 传真/工作时间 → 小地图+按钮 */
	.contact-grid-row {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 26px 0;
	}

	.contact-grid-row + .contact-grid-row {
		border-top: 1px solid #E8E8E8;
	}

	.contact-cell--mid {
		border-left: none;
		padding-left: 0;
	}

	.contact-cell .contact-item {
		padding: 12px 0;
	}

	.contact-item--stacked {
		margin-top: 20px;
	}

	.contact-item-icon {
		width: 44px;
		height: 44px;
		margin-bottom: 18px;
	}

	.contact-item-title {
		font-size: 22px;
		margin-bottom: 14px;
	}

	.contact-item-desc {
		font-size: 16px;
	}

	/* 小地图 + 导航按钮 */
	.contact-map-mini {
		height: 230px;
		margin-top: 6px;
	}

	.contact-cell--map .contact-nav-button {
		height: 50px;
		font-size: 17px;
		border-radius: 6px;
		gap: 10px;
		margin-top: 16px;
	}

	.contact-cell--map .contact-nav-button svg {
		width: 20px;
		height: 20px;
	}

	/* 相关企业 */
	.contact-related-section {
		aspect-ratio: auto;
		padding: 60px 32px 80px;
		background-size: cover;
	}

	.contact-related-title {
		font-size: 34px;
	}

	.contact-related-card {
		width: 100%;
		height: auto;
		margin-top: 40px;
		padding: 36px 32px 40px;
	}

	.contact-related-card-title {
		font-size: 26px;
		margin-bottom: 20px;
	}

	.contact-related-card-desc {
		font-size: 16px;
		line-height: 1.75;
		margin-bottom: 32px;
	}

	.contact-related-button {
		width: auto;
		padding: 0 28px;
		height: 50px;
		font-size: 17px;
		gap: 10px;
	}

	.contact-related-button svg {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 640px) {
	.contact-info-section { padding: 44px 20px 56px; }
	.contact-info-section-title { font-size: 26px; }

	.contact-info-card { margin-top: 28px; border-radius: 8px; padding: 4px 16px 16px; }

	.contact-grid-row { padding: 20px 0; }
	.contact-item { padding: 16px 0; }
	.contact-item-icon { width: 36px; height: 36px; margin-bottom: 12px; }
	.contact-item-title { font-size: 18px; margin-bottom: 10px; }
	.contact-item-desc { font-size: 14px; }

	.contact-map-mini { height: 200px; }
	.contact-cell--map .contact-nav-button { height: 46px; font-size: 16px; }

	.contact-related-section { padding: 44px 20px 56px; }
	.contact-related-title { font-size: 26px; }

	.contact-related-card { margin-top: 28px; padding: 26px 20px 30px; border-radius: 12px; }
	.contact-related-card-title { font-size: 22px; margin-bottom: 14px; }
	.contact-related-card-desc { font-size: 15px; margin-bottom: 26px; }

	.contact-related-button { height: 46px; font-size: 15px; padding: 0 24px; }
}

/* ==========================================================================
   老内核兜底：不支持 aspect-ratio（Chromium 79–87 档 / Safari 12.1–14）。
   @supports 门控，现代浏览器零影响；u 高度与 1920 通栏比例几何等价。
   ========================================================================== */
@supports not (aspect-ratio: 1 / 1) {
	.contact-info-section { height: calc(1202 * var(--u)); }
	.contact-related-section { height: calc(826 * var(--u)); }

	@media (max-width: 1199px) {
		.contact-info-section,
		.contact-related-section { height: auto; }
	}
}
