/* 全局样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', sans-serif;
	line-height: 1.6;
	color: #333;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
	background-color: rgba(255, 255, 255, 0.95);
	transition: all 0.3s ease;
	position: fixed;
	width: 100vw;
	top: 0;
	z-index: 1000;
}

.navbar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: center;
}
.logo .logo-text {
	font-size: 32px;
	font-weight: bold;
	color: #2c3e50;
	margin-left: 10px;
}
.logo .logo-image {
	display: inline-block;
}
.logo .logo-image img {
	height: 40px; /* 调整 logo 图片高度 */
	width: auto;
	vertical-align: middle;
}

.nav-links {
	display: flex;
	list-style: none;
}

.nav-links li {
	margin-left: 30px;
}

.nav-links a {
	text-decoration: none;
	color: #333;
	position: relative;
	padding: 5px 0;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #007bff;
	transition: width 0.3s ease;
}

.nav-links a:hover::after {
	width: 100%;
}

/* 首页横幅样式 */

.hero {
	margin-top: 65px;
	/* height: 100vh; */
	display: flex;
	align-items: center;
	min-height: 600px;
	position: relative;
	background-color: transparent;
	padding: 120px 0 60px;
	text-align: center;
	color: #fff;
}
.hero .container {
	display: flex;
	align-items: center;
}
.hero .container img {
	margin-right: 125px;
	width: 382px;
	height: auto;
}
.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('/jhp_web/images/hero-bg.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -1;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: -1;
}

.hero h1 {
	font-size: 56px;
	font-weight: 700;
	color: #333333;
	margin-bottom: 30px;
	position: relative;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
	position: relative;
	font-size: 24px;
	color: #333333;
	margin-bottom: 40px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
	display: inline-block;
	padding: 15px 40px;
	background-color: #ff3266;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	margin-top: 20px;
	font-size: 18px;
	font-weight: 500;
	transition: transform 0.3s ease;
}

.cta-button:hover {
	transform: translateY(-3px);
}

.cta-button i {
	margin-left: 8px;
	transition: transform 0.3s ease;
}

.cta-button:hover i {
	transform: translateX(5px);
}

/* 产品区域样式 */
.products {
	padding: 0;
	background-color: #f8f9fa;
}
.products .container {
	padding: 80px 0;
	background: url(/jhp_web/images/product_bg.png) no-repeat center center;
	background-size: 100% 100%;
}
.products .container img {
	display: block;
	margin: 0 auto;
	margin-top: 40px;
	max-width: 100%;
	height: auto;
}
.products2 {
	padding: 80px 0 200px 0;
	background-color: #f8f9fa;
	background: url(/jhp_web/images/product_bg2.png) no-repeat center center;
	background-size: 1200px 500px;
	background-position-y: 100%;
}
.products2 img {
	display: block;
	margin: 0 auto;
	margin-top: 40px;
	max-width: 982px;
	height: auto;
}
.product-card {
	background-color: #fff;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	overflow: hidden;
}

.product-card:hover {
	transform: translateY(-10px);
}

.product-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 5px;
	transition: transform 0.3s ease;
}

.product-card:hover img {
	transform: scale(1.1);
}

.product-card h3 {
	font-size: 24px;
	margin: 20px 0 10px;
	color: #2c3e50;
}

.product-image {
	overflow: hidden;
	border-radius: 5px;
	margin: -20px -20px 20px -20px;
}

.learn-more {
	display: inline-block;
	color: #007bff;
	text-decoration: none;
	margin-top: 15px;
	font-weight: 500;
}

.learn-more i {
	font-size: 12px;
	margin-left: 5px;
	transition: transform 0.3s ease;
}

.learn-more:hover i {
	transform: translateX(5px);
}

/* 关于我们样式 */
.about {
	background-color: #fff;
	padding: 80px 0;
}

/* 联系方式样式 */
.contact {
	padding: 80px 0;
}

.contact-info {
	margin-top: 30px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 50px;
	width: 100%;
	border-radius: 20px;
	background-color: #f8f9fa;
}

/* 页脚样式 */
.footer {
	background-color: #333;
	color: #fff;
	padding: 20px 0;
	text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.nav-links {
		display: none;
	}
	.hero {
		padding-top: 40px;
	}
	.hero h1 {
		font-size: 32px;
	}
	.logo .logo-text {
		font-size: 24px;
	}
	.logo .logo-image img {
		height: 28px; /* 移动端稍微缩小 logo */
	}
}

/* 更新其他部分样式 */
section {
	padding: 100px 0;
}

h2 {
	font-size: 36px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 50px;
	color: #2c3e50;
}

/* 关于我们样式更新 */
.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.about-text h3 {
	font-size: 32px;
	color: #2c3e50;
	margin-bottom: 20px;
}

.about-text p {
	margin-bottom: 30px;
	color: #666;
	line-height: 1.8;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 40px;
}

.stat-item {
	text-align: center;
	padding: 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
	display: block;
	font-size: 36px;
	font-weight: 700;
	color: #007bff;
	margin-bottom: 5px;
}

.stat-label {
	color: #666;
	font-size: 14px;
}

.about-image img {
	width: 100%;
	border-radius: 10px;
}

/* 联系我们样式更新 */
.contact-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	margin-top: 50px;
}

.info-item {
	display: flex;
	align-items: center;
}
.info-item .btn {
	display: inline-block;
	padding: 2px 16px;
	background-color: #fff;
	color: #ff3266;
	border: 1px solid #ff3266;
	text-decoration: none;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 500;
	transition: transform 0.3s ease;
	cursor: pointer;
}
.info-item .btn a {
	color: #ff3266;
	text-decoration: none;
}
.info-item .icon {
	font-size: 24px;
	color: #007bff;
	width: auto;
	height: 58px;
	margin-right: 20px;
	margin-top: 5px;
}

.info-content h4 {
	font-size: 18px;
	margin-bottom: 5px;
	color: #2c3e50;
}

.info-content p {
	color: #666;
}

.social-links {
	display: flex;
	gap: 15px;
	margin-top: 30px;
}

.social-link {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #007bff;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform 0.3s ease;
}

.social-link:hover {
	transform: translateY(-3px);
}

.contact-form {
	background: #fff;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
	margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 16px;
	transition: border-color 0.3s ease;
}

.form-group textarea {
	height: 150px;
	resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
	border-color: #007bff;
	outline: none;
}

.submit-btn {
	width: 100%;
	padding: 12px;
	background: #007bff;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.submit-btn:hover {
	transform: translateY(-2px);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
	.about-content,
	.contact-wrapper {
		grid-template-columns: 1fr;
	}

	.about-image {
		order: -1;
	}

	.stats {
		grid-template-columns: 1fr;
	}

	.contact-info {
		text-align: center;
		padding: 20px;
	}

	.info-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.info-item .icon {
		margin-right: 0;
		margin-bottom: 10px;
		height: 38px;
		margin-right: 20px;
	}

	.social-links {
		justify-content: center;
	}
	.products2 img {
		max-width: 100%;
	}
	.products {
		.container {
			background-size: 100% auto;
			background-position-y: 100px;
			padding: 50px 10px;
		}
	}
	.products2 {
		background-size: 100% auto;
		background-position-y: 220px;
		padding-bottom: 80px;
	}
	.hero .container {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.hero .container img {
		margin-right: 0;
		width: auto;
		height: 400px;
	}
}

/* 表单提交状态样式 */
.form-message {
	margin-top: 20px;
	padding: 15px;
	border-radius: 5px;
	text-align: center;
}

.success-message,
.error-message {
	display: none;
	color: #155724;
	font-size: 14px;
}

.success-message i,
.error-message i {
	margin-right: 5px;
}

.success-message {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
}

.error-message {
	color: #721c24;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
}

.btn-loading {
	color: #fff;
}

.btn-loading i {
	margin-right: 5px;
}

/* 禁用状态的提交按钮 */
.submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}
