﻿:root {
	--primary: #1261a6;
	--primary-dark: #0b477d;
	--primary-light: #eaf4fb;
	--accent: #f09a32;
	--text: #18212b;
	--muted: #66717d;
	--line: #dce4eb;
	--surface: #ffffff;
	--background: #f5f8fb;
	--success: #2f8f5b;
	--danger: #d94848;
	--shadow: 0 18px 50px rgba(18, 54, 84, 0.10);
}

.Connect_banner {
	background: linear-gradient(135deg, #d5defa 0%, #f2f5f6 100%);
	text-align: center;
	padding: 100px 20px;
}

.Connect_banner h2 {
	font-size: 50px;
	color: #343434;
	margin-bottom: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.Connect_banner span {
	color: rgb(59 130 246);
	position: relative;
}

.Connect_banner span:after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 0;
	width: 100%;
	height: 6px;
	background-color: rgba(57, 116, 175, 0.2);
	z-index: -1;
}

.Connect_banner p {
	font-size: 16px;
	color: #666;
	max-width: 70%;
	margin: 0 auto;
	line-height: 1.6;
}

.Connect {
	display: grid;
	grid-template-columns: 1fr 0.8fr;
	margin: 30px auto;
	border: 1px solid rgba(18, 97, 166, 0.10);
	border-radius: 24px;
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.Connect_form {
	padding: 45px;
	background: var(--surface);
}

/* 表单元素 */
.container-form h1 {
	margin: 0 0 8px;
	font-size: 25px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--text);
}

.subtitle {
	margin: 0 0 30px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
}


#messageForm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
}

.form-group {
	margin-bottom: 16px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #34404c;
	font-weight: 500;
	font-size: 14px;
}

.form-group.full-row {
	grid-column: 1 / -1;
	width: 100%;
}

.form-group.full-row textarea {
	width: 100%;
}

.required::before {
	content: "*";
	color: #f44336;
	margin-right: 4px;
}

/* 输入框 */
input[type=text],
input[type=tel],
textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 14px;
	transition: all 0.3s ease;
	background: #fbfcfd;
	box-sizing: border-box;
	color: var(--text);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
	color: #999999;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: rgba(25, 119, 191, 0.4);
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

textarea {
	resize: vertical;
	min-height: 150px;
	max-height: 320px;
	line-height: 1.6;
}

/* 错误状态 */
.error-message {
	color: #f44336;
	font-size: 13px;
	margin-top: 6px;
	display: none;
}

.form-group.error input,
.form-group.error textarea {
	border-color: #f44336;
	background: rgba(244, 67, 54, 0.03);
}

.form-group.error input:focus,
.form-group.error textarea:focus {
	box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.12);
}

.form-group.error .error-message {
	display: block;
}

/* 提交按钮 */
.submit-btn {
	grid-column: 1 / -1;
	width: 100%;
	height: 52px;
	margin-top: 4px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(18, 97, 166, 0.23);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
	box-shadow: 0 14px 28px rgba(18, 97, 166, 0.28);
}

/* 提交中状态 */
.submit-btn:disabled {
	background: #95c5ff;
	cursor: not-allowed;
	opacity: 0.85;
	transform: none !important;
	box-shadow: none !important;
}

.submit-btn.loading {
	position: relative;
	color: transparent !important;
}

.submit-btn.loading::after {
	content: "提交中...";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
}

/* 防机器人隐藏字段 */
.website-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	width: 0;
	height: 0;
	overflow: hidden;
}

.Connect_info {
	position: relative;
	padding: 45px;
	color: #fff;
	background:
		linear-gradient(155deg, rgba(8, 57, 98, 0.98), rgba(18, 97, 166, 0.96)),
		#0b477d;
	overflow: hidden;
}

.Connect_info::before,
.Connect_info::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.Connect_info::before {
	width: 230px;
	height: 230px;
	right: -100px;
	top: -80px;
}

.Connect_info::after {
	width: 150px;
	height: 150px;
	left: -70px;
	bottom: 40px;
}

.Connect_info_list {
	position: relative;
	z-index: 1;
}


/* 右侧联系信息 */
.Connect_info h3 {
	margin: 0 0 20px;
	font-size: 25px;
	font-weight: 700;
}

.Connect_info h3::after {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	margin-top: 12px;
	border-radius: 99px;
	background: var(--accent);
}

.info_item {
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 13px;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.90);
}

.info_item:last-of-type {
	border-bottom: 0;
}

.info_item img {
	width: 34px;
	height: 34px;
	padding: 8px;
	border-radius: 10px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.12);
	filter: brightness(0) invert(1);
}

.info_item span {
	transition: color 0.2s ease;
}

.info_item:hover span {
	color: #ffffff;
}

/* 二维码区域 */
.qr_box {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 30px;
}

.qr_box>div {
	padding: 13px 10px 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	text-align: center;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);

}

.qr_box img {
	display: block;
	width: min(100%, 132px);
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	padding: 5px;
	border-radius: 10px;
	background: #ffffff;
	object-fit: cover;
}

.qr_box p {
	margin: 9px 0 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
}

.website-field {
	position: absolute;
	left: -9999px;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* 成功弹窗 */
.overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999;
}

.modal {
	background: rgba(255, 255, 255, 0.96);
	padding: 40px 32px;
	border-radius: 12px;
	text-align: center;
	width: 320px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	position: relative;
}

.modal h2 {
	color: #388e3c;
	margin-bottom: 12px;
	font-size: 22px;
}

.modal p {
	color: #555555;
	font-size: 15px;
	line-height: 1.6;
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 24px;
	color: #999999;
	cursor: pointer;
	transition: all 0.3s ease;
}

.close-btn:hover {
	color: #333333;
}

/* ===== 响应式 ===== */

@media (max-width: 1200px) {

	.Connect_form,
	.Connect_info {
		padding: 30px;
	}

	.Connect {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.Connect {
		display: block;
	}

	.Connect_form,
	.Connect_info {
		padding: 30px 20px;
	}

	#messageForm {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 800px) {

	.Connect_banner h2 {
		font-size: 36px;
	}

	.Connect_banner p {
		max-width: 90%;
	}

}

@media (max-width: 600px) {

	.Connect_banner {
		padding: 60px 20px;
	}

	.Connect_banner h2 {
		font-size: 28px;
	}

	.Connect_banner p {
		max-width: 95%;
		font-size: 14px;
	}

	.submit-btn {
		height: 50px;
		font-size: 15px;
	}

	input[type=text],
	input[type=tel],
	textarea {
		font-size: 16px;
	}

}