/* ----- 变量 & 背景 ----- */
:root {
	--bg-gradient: radial-gradient(circle at 10% 0%, rgba(79, 70, 229, 0.18) 0%, transparent 45%),
		radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
		radial-gradient(circle at 30% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 55%),
		linear-gradient(145deg, #f4f6ff 0%, #ffffff 100%);
	--primary: #4f46e5;
	--secondary: #0ea5e9;
	--accent: #f97316;
	--text-dark: #0b1120;
	--text-soft: #334155;
	--text-muted: #64748b;
	--error-color: #e53e3e;
	--line-light: rgba(15, 23, 42, 0.06);
	--card-bg: rgba(255, 255, 255, 0.65);
	--shadow-hover: 0 24px 45px -12px rgba(79, 70, 229, 0.2);
	--glass-blur: blur(20px);
}

* {
	box-sizing: border-box;
	margin: 0;
}

body {
	font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
	color: var(--text-dark);
	background: var(--bg-gradient);
	background-attachment: fixed;
	line-height: 1.5;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

html {
	scroll-behavior: smooth;
}

/* 导航栏 */
header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: 12px 24px;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border-bottom: 1px solid var(--line-light);
	position: sticky;
	top: 0;
	z-index: 20;
}

.logo-area {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.logo-main {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 650;
	font-size: 1.2rem;
	background: linear-gradient(135deg, var(--primary) 0%, #2563eb 80%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.logo-main i {
	color: var(--primary);
	font-size: 1.8rem;
	-webkit-background-clip: unset;
	background-clip: unset;
}

.logo-english {
	font-size: 1rem;
	font-weight: 500;
	color: var(--primary);
	background: rgba(79, 70, 229, 0.1);
	padding: 4px 12px;
	border-radius: 40px;
	letter-spacing: 0.5px;
	margin-left: 4px;
}

nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

nav a {
	padding: 8px 14px;
	text-decoration: none;
	color: var(--text-soft);
	font-weight: 500;
	font-size: 0.9rem;
	border-radius: 40px;
	transition: all 0.2s;
	white-space: nowrap;
}

nav a i {
	margin-right: 5px;
}

nav a:hover {
	background: rgba(79, 70, 229, 0.08);
	color: var(--primary);
}

/* 顶部大图 */
.hero-image {
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 0 0 30px 30px;
	box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.15);
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.hero {
	padding: 20px 20px 70px;
	text-align: center;
}

.hero h1 {
	font-size: clamp(2.2rem, 8vw, 3.8rem);
	font-weight: 700;
	margin-bottom: 16px;
	background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%, #1e3a8a 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero .sub {
	font-size: 1.1rem;
	color: var(--text-muted);
}

.btn {
	display: inline-block;
	margin-top: 28px;
	padding: 14px 36px;
	border-radius: 60px;
	background: linear-gradient(115deg, var(--primary), #2563eb, #0ea5e9);
	background-size: 200% 200%;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 18px 30px -6px rgba(79, 70, 229, 0.4);
	transition: 0.25s;
}

.btn i {
	margin-right: 8px;
}

.btn:hover {
	transform: translateY(-3px);
	background-position: 100% 0;
}

/* 微型画廊 */
.mini-gallery {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 36px 0 10px;
	flex-wrap: wrap;
}

.mini-gallery img {
	width: 75px;
	height: 75px;
	border-radius: 20px;
	object-fit: cover;
	box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.1);
	border: 2px solid white;
}

/* 通用区块 */
.section {
	padding: 60px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.section-header {
	text-align: center;
	margin-bottom: 40px;
}

.section-header h2 {
	font-size: 2rem;
	font-weight: 650;
	display: inline-block;
	background: linear-gradient(145deg, #1e293b, #0f172a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	border-bottom: 4px solid;
	border-image: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)) 1;
	border-bottom-style: solid;
	border-bottom-width: 4px;
	border-image-slice: 1;
	padding-bottom: 12px;
}

/* 关于网格 */
.about-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
}

.about-card {
	background: var(--card-bg);
	backdrop-filter: var(--glass-blur);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 28px;
	padding: 24px 20px;
	box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.05);
	transition: all 0.3s;
	border-top: 4px solid transparent;
}

.about-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-hover);
	border-top-color: var(--primary);
}

.card-img {
	width: 100%;
	height: 130px;
	object-fit: cover;
	border-radius: 18px;
	margin-bottom: 18px;
	background: #eef2ff;
}

.about-title {
	font-size: 1.3rem;
	font-weight: 650;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.progress-tag {
	display: inline-block;
	background: #e6f0ff;
	color: #1e4bd2;
	padding: 5px 14px;
	border-radius: 30px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-top: 12px;
}

/* 业务网格 */
.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.card {
	background: var(--card-bg);
	backdrop-filter: var(--glass-blur);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 30px;
	padding: 30px 22px;
	box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.05);
	transition: all 0.25s;
	border-bottom: 5px solid transparent;
}

.card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-hover);
	border-bottom-color: var(--secondary);
}

.card-icon {
	font-size: 2.4rem;
	margin-bottom: 18px;
	color: var(--primary);
}

.card h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

/* 联系区域 */
.contact-wrap {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 28px;
}

.info-panel {
	background: var(--card-bg);
	backdrop-filter: var(--glass-blur);
	border-radius: 28px;
	padding: 30px 24px;
	box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.05);
}

.info-item {
	display: flex;
	gap: 16px;
	margin: 22px 0;
	color: var(--text-soft);
	align-items: flex-start;
}

.info-item i {
	font-size: 1.3rem;
	color: var(--primary);
	margin-top: 3px;
}

/* ----- 表单样式（含错误提示容器）----- */
.form-card {
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-radius: 34px;
	padding: 30px 26px;
	box-shadow: 0 30px 45px -18px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-group {
	margin-bottom: 20px;
}

.input-wrapper {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 20px;
	border: 1.5px solid rgba(15, 23, 42, 0.08);
	transition: all 0.2s ease;
	padding: 4px 16px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.input-wrapper:hover {
	border-color: rgba(79, 70, 229, 0.3);
	background: rgba(255, 255, 255, 0.9);
}

.input-wrapper:focus-within {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
	background: #fff;
}

.input-wrapper i {
	color: var(--primary);
	font-size: 1.2rem;
	width: 28px;
	text-align: center;
	margin-right: 6px;
	opacity: 0.8;
	flex-shrink: 0;
}

.input-field {
	flex: 1;
	position: relative;
	padding: 14px 0;
}

.input-field input,
.input-field textarea {
	width: 100%;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	font-size: 1rem;
	font-family: inherit;
	padding: 2px 0;
	resize: vertical;
	box-shadow: none !important;
	margin: 0;
}

.input-field textarea {
	min-height: 90px;
	padding: 8px 0;
}

/* 浮动标签 */
.input-field label {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	font-size: 0.95rem;
	pointer-events: none;
	transition: all 0.2s ease;
	background: transparent;
	white-space: nowrap;
}

/* textarea 特殊初始位置 */
.input-field.textarea-label label {
	top: 20px;
	transform: none;
}

/* 聚焦或有内容时的标签样式（通用） */
.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label,
.input-field textarea:focus ~ label,
.input-field textarea:not(:placeholder-shown) ~ label {
  top: -6px !important;
  left: -6px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  background: rgba(255,255,255,0.9) !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  transform: none !important;
  backdrop-filter: blur(4px);
}

.input-field input::placeholder,
.input-field textarea::placeholder {
	color: transparent;
}

/* 错误信息样式 */
.error-message {
	font-size: 0.75rem;
	color: var(--error-color);
	margin-top: 6px;
	margin-left: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.error-message i {
	font-size: 0.7rem;
	color: var(--error-color);
	background: transparent;
	width: auto;
}

/* 输入框错误高亮 */
.form-group.error .input-wrapper {
	border-color: var(--error-color);
	box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1);
}

.cta-btn {
	width: 100%;
	padding: 16px;
	border: none;
	border-radius: 60px;
	background: linear-gradient(115deg, var(--primary), #2563eb, #0284c7);
	background-size: 150% 150%;
	color: #fff;
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
	box-shadow: 0 18px 30px -6px #4f46e5b3;
	transition: 0.25s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.cta-btn:hover {
	transform: translateY(-3px);
	background-position: 100% 0;
}

footer {
	padding: 32px 20px;
	text-align: center;
	color: var(--text-muted);
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(8px);
	font-size: 0.85rem;
}

/* 移动端响应 */
@media (max-width: 900px) {
	.grid {
		grid-template-columns: 1fr;
	}

	.contact-wrap {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	header {
		padding: 10px 16px;
	}

	.logo-main {
		font-size: 1rem;
	}

	.hero-image {
		height: 200px;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.section {
		padding: 50px 16px;
	}

	.form-card {
		padding: 24px 20px;
	}

	.input-wrapper {
		padding: 2px 12px;
	}

	.input-field {
		padding: 12px 0;
	}
}