@charset "UTF-8";

/*-----------------------------------------------------------------------------------
     Author: X2MT 
     Author URI: https://www.x2mt.com/
 -----------------------------------------------------------------------------------
 /* ===== 1. 全局重置与基础 ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	color: #1f2229;
	background-color: #ffffff;
	line-height: 1.6;
	font-size: 16px;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== 2. 通用标题与按钮 ===== */
.section-title {
	text-align: center;
	margin-bottom: 2.5rem;
}

.section-title h2 {
	font-size: clamp(1.8rem, 5vw, 2.8rem);
	font-weight: 700;
	color: #1f2229;
}

.section-title .subtitle {
	color: #0d4bde;
	font-weight: 600;
	font-size: clamp(0.9rem, 2vw, 1.1rem);
	letter-spacing: 1px;
}

.btn-primary {
	display: inline-block;
	padding: 12px 32px;
	background: linear-gradient(90deg, #1396DB 0%, #49DEF6 100%);
	color: #fff;
	border-radius: 50px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(19, 150, 219, 0.3);
}

/* =============================================================
    3. 导航栏 - 固定透明
    ============================================================= */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	background: transparent;
	transition: background 0.4s ease, box-shadow 0.4s ease;
	border-bottom:1px solid #5A74AF;
}

.navbar .nav-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	min-height: 70px;
}

.navbar.scrolled {
	background: #001952;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.navbar .logo img {
	height: 30px;
	width: auto;
	filter: brightness(0) invert(1);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
}

.nav-links a {
	color: #fff;
	font-size: 0.95rem;
	padding: 5px 0;
	transition: border-color 0.3s, color 0.3s;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
	border-bottom-color: #ffed62;
	color: #ffed62;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.8rem;
	cursor: pointer;
	padding: 5px 10px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===== 4. Hero区域 ===== */
.hero {
	background: #1f2229;
	padding: 100px 0 80px;
	color: #fff;
	text-align: center;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image:
		radial-gradient(ellipse at 20% 50%, rgba(19, 150, 219, 0.15) 0%, transparent 60%),
		radial-gradient(ellipse at 80% 50%, rgba(73, 222, 246, 0.1) 0%, transparent 60%),
		linear-gradient(135deg, #1f2229 0%, #2a2f3a 100%);
}

.hero .hero-content {
	width: 100%;
}

.hero h1 {
	font-size: clamp(2.2rem, 7vw, 4.5rem);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

.hero p {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: rgba(255, 255, 255, 0.8);
	max-width: 700px;
	margin: 0 auto 2rem;
}

/* ===== 6. 关于我们 ===== */
.about {
	padding: 70px 0;
	background: #f9fafc;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.about-image {
	background: linear-gradient(135deg, #1396DB, #49DEF6);
	padding: 20px;
	border-radius: 20px;
	text-align: center;
}

.about-image img {
	border-radius: 12px;
	width: 100%;
	max-height: 350px;
	object-fit: cover;
}

.about-content h2 {
	font-size: clamp(2.8rem, 3vw, 2rem);
	color: #1f2229;
}

.about-content .subtitle {
	color: #0d4bde;
	font-weight: 600;
	font-size: clamp(0.9rem, 2vw, 1.1rem);
	letter-spacing: 1px;
	margin-bottom: 1rem;
	display: inline-block;
}

.about-content p {
	color: #444;
	margin-bottom: 1.5rem;
	font-size: 1rem;
}

/* ===== 7. 业务介绍 ===== */
.services {
	padding: 70px 0;
	background: #fff;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
}

.service-card {
	background: #f9fafc;
	padding: 2rem 1.5rem;
	border-radius: 3px;
	text-align: center;
	transition: transform 0.3s;
}

.service-card:hover {
	transform: translateY(-8px);
}

.service-card .icon {
	font-size: 2.8rem;
	color: #0d4bde;
	margin-bottom: 1rem;
}

.service-card h4 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.service-card p {
	font-size: 0.95rem;
	color: #555;
}


/* ===== 8. 我们的服务优势 ===== */
.advantages {
	padding: 70px 0 50px;
	background: #ffffff;
}

.advantages-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: stretch;
}

/* ---- 左侧大卡片 ---- */
.advantage-large {
	position: relative;
	border-radius: 3px;
	overflow: hidden;
	/* aspect-ratio: 1 / 1.1; */
	cursor: pointer;
	background: #1f2229;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.advantage-large .adv-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease, filter 0.5s ease;
}

.advantage-large:hover .adv-image {
	transform: scale(1.05);
	filter: brightness(0.6);
}

.advantage-large .adv-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(13, 75, 222, 0.88) 0%, rgba(73, 222, 246, 0.88) 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px 30px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
	transform: scale(0.95);
}

.advantage-large:hover .adv-overlay {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.advantage-large .adv-overlay .adv-title {
	color: #fff;
	font-size: clamp(1.8rem, 2.5vw, 2.8rem);
	font-weight: 700;
	margin-bottom: 12px;
	text-align: center;
}

.advantage-large .adv-overlay .adv-desc {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.2vw, 1.15rem);
	text-align: center;
	line-height: 1.6;
	max-width: 85%;
}

.advantage-large .adv-overlay .adv-icon {
	position: absolute;
	bottom: 25px;
	right: 25px;
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.advantage-large:hover .adv-overlay .adv-icon {
	background: rgba(255, 255, 255, 0.35);
	transform: rotate(45deg);
}

/* ---- 右侧小卡片 (2行2列) ---- */
.advantages-small-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.advantage-small {
	position: relative;
	border-radius: 3px;
	overflow: hidden;
	aspect-ratio: 1 / 0.9;
	cursor: pointer;
	background: #1f2229;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.advantage-small .adv-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease, filter 0.5s ease;
}

.advantage-small:hover .adv-image {
	transform: scale(1.05);
	filter: brightness(0.6);
}

.advantage-small .adv-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(13, 75, 222, 0.88) 0%, rgba(73, 222, 246, 0.88) 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
	transform: scale(0.95);
}

.advantage-small:hover .adv-overlay {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.advantage-small .adv-overlay .adv-title {
	color: #fff;
	font-size: clamp(1.8rem, 2.5vw, 1.5rem);
	font-weight: 700;
	margin-bottom: 4px;
	text-align: center;
}

.advantage-small .adv-overlay .adv-desc {
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1rem, 1.2vw, 1.15rem);
	text-align: center;
	line-height: 1.4;
	max-width: 90%;
}

.advantage-small .adv-overlay .adv-icon {
	position: absolute;
	bottom: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.advantage-small:hover .adv-overlay .adv-icon {
	background: rgba(255, 255, 255, 0.35);
	transform: rotate(45deg);
}

/* ===== 9. 案例作品集 ===== */
.portfolio {
	padding: 70px 0;
	background: #f9fafc;
}

.filter-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.8rem 1.5rem;
	margin-bottom: 2.5rem;
}

.filter-tabs li {
	list-style: none;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	padding: 5px 0;
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
	font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.filter-tabs li.active {
	color: #1396DB;
	border-bottom-color: #1396DB;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.portfolio-card {
	position: relative;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	background: #fff;
	aspect-ratio: 1 / 1;
	transition: transform 0.3s ease;
}

.portfolio-card:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.portfolio-card .card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.portfolio-card .qr-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(31, 34, 41, 0.85);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
	padding: 20px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.portfolio-card:hover .qr-overlay,
.portfolio-card .qr-overlay.show {
	opacity: 1;
	visibility: visible;
}

.portfolio-card .qr-overlay .qr-code {
	width: 70%;
	max-width: 180px;
	height: auto;
	background: #fff;
	padding: 8px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.portfolio-card .qr-overlay .qr-label {
	color: #fff;
	font-size: clamp(0.75rem, 1vw, 0.9rem);
	margin-top: 12px;
	letter-spacing: 1px;
	font-weight: 500;
	background: rgba(0, 0, 0, 0.3);
	padding: 4px 16px;
	border-radius: 20px;
}

.portfolio-card.touched .qr-overlay {
	opacity: 1;
	visibility: visible;
}

/* ===== 9. 服务品牌 ===== */

.brands {
	padding: 50px 0 70px;
}

.brands-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 2rem;
	align-items: center;
}

.brand-item {
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-item:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #e0e0e0;
}

.brand-item img {
	width: 100%;
	height: auto;
	object-fit: contain;

}

/* ★ 悬停时变为彩色 ★ */
.brand-item:hover img {
	filter: grayscale(0%) brightness(1);

}


/* ===== 10. 页脚 ===== */
.footer {
	background: #001952;
	color: rgba(255, 255, 255, 0.7);
	padding: 40px 0 20px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-grid h5 {
	color: #fff;
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

.footer-grid p {
	font-size: 0.95rem;
}

.footer-links li {
	list-style: none;
	margin-bottom: 0.5rem;
}

.footer-links a:hover {
	color: #1396DB;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	text-align: center;
	font-size: 0.85rem;
}

/* =============================================================
    2. 内容版块 - 滚动加载动画 (从下往上淡入)
    ============================================================= */
.section-animate {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-animate.visible {
	opacity: 1;
	transform: translateY(0);
}

/* 每个版块延迟一点，产生逐次加载效果 */
.section-animate:nth-child(1) {
	transition-delay: 0.05s;
}

.section-animate:nth-child(2) {
	transition-delay: 0.10s;
}

.section-animate:nth-child(3) {
	transition-delay: 0.15s;
}

.section-animate:nth-child(4) {
	transition-delay: 0.20s;
}

.section-animate:nth-child(5) {
	transition-delay: 0.25s;
}

/* =============================================================
    3. 右下角置顶箭头
    ============================================================= */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 52px;
	height: 52px;
	background: linear-gradient(135deg, #0d4bde, #49DEF6);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(19, 150, 219, 0.4);
	transition: all 0.3s ease;
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.back-to-top:hover {
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 8px 28px rgba(19, 150, 219, 0.5);
}

.back-to-top:active {
	transform: scale(0.95);
}

/* 箭头内部小圆圈动画 */
.back-to-top i {
	transition: transform 0.3s ease;
}

.back-to-top:hover i {
	transform: translateY(-3px);
}

/* ====================================================
    响应式媒体查询
    ==================================================== */

@media screen and (max-width: 992px) {
	.about-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.about-image {
		order: -1;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		width: 100%;
		gap: 0.5rem;
		padding: 1rem 0;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		background: rgba(31, 34, 41, 0.95);
		border-radius: 0 0 12px 12px;
	}

	.nav-links.active {
		display: flex;
	}

	.nav-links a {
		text-shadow: none;
		padding: 8px 0;
		text-align: center;
	}

	.hero {
		padding: 90px 0 60px;
		min-height: 90vh;
	}

	.service-grid {
		grid-template-columns: 1fr 1fr;
	}

	.portfolio-grid {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.section-title h2 {
		font-size: 1.8rem;
	}

	.navbar.scrolled {
		background:#001952;
	}

	.navbar .nav-container {
		padding: 0 15px;
	}

	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 46px;
		height: 46px;
		font-size: 20px;
	}
}

@media screen and (max-width: 480px) {
	.service-grid {
		grid-template-columns: 1fr;
	}

	.portfolio-grid {
		grid-template-columns: 1fr;
		gap: 1.2rem;
	}

	.container {
		padding: 0 15px;
	}

	.btn-primary {
		padding: 10px 24px;
		font-size: 0.9rem;
	}

	.hero {
		padding: 80px 0 50px;
		min-height: 40vh;
	}

	.navbar .nav-container {
		padding: 0 15px;
	}

	.back-to-top {
		bottom: 16px;
		right: 16px;
		width: 42px;
		height: 42px;
		font-size: 18px;
	}
}

/* ===== 辅助类 ===== */
.text-center {
	text-align: center;
}

.mt-2 {
	margin-top: 2rem;
}

.mb-2 {
	margin-bottom: 2rem;
}
