@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
	--indigo-50: #f0f3ff;
	--indigo-600: #4c51bf;
	--gray-50: #f7fafc;
	--gray-100: #edf2f7;
	--gray-200: #e2e8f0;
	--gray-500: #a0aec0;
	--gray-600: #718096;
	--white: #ffffff;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: #f8f9fa;
	color: #333;
	line-height: 1.6;
}

/* Header styles */
header {
	background-color: #2c3e50;
	color: white;
	padding: 15px 20px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.logo {
	font-size: 22px;
	font-weight: 700;
	text-align: center;
}

/* Navigation styles */
nav {
	background-color: #34495e;
	padding: 10px 0;
	position: sticky;
	top: 60px;
	z-index: 90;
}

.menu-toggle {
	background: none;
	border: none;
	color: white;
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	cursor: pointer;
	padding: 10px;
	display: block;
	text-align: center;
}

.nav-links {
	list-style: none;
	display: none;
	width: 100%;
}

.nav-links.active {
	display: block;
}

.nav-links li {
	text-align: center;
	padding: 10px 0;
	border-bottom: 1px solid #2c3e50;
}

.nav-links li a {
	color: white;
	text-decoration: none;
	font-size: 16px;
	display: block;
	padding: 10px;
	transition: background-color 0.3s;
}

.nav-links li a:hover {
	background-color: #2c3e50;
}

/* Main content styles */
main {
	padding: 20px;
}

section {
	background-color: white;
	border-radius: 8px;
	margin-bottom: 20px;
	padding: 25px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h2 {
	color: #3498db;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
	font-weight: 600;
	font-size: 22px;
}

/* Carousel styles */
.carousel {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 20px;
	height: 300px;
}

.carousel-inner {
	display: flex;
	transition: transform 0.5s ease;
	height: 100%;
}

.carousel-item {
	min-width: 100%;
	height: 100%;
	background-color: var(--white);;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 20px;
	text-align: center;
}

.carousel-item img {
	max-width: 100%;
	height: 200px;
	object-fit: contain;
}

.carousel-item h3 {
	margin-top: 15px;
	font-weight: 600;
	color: #2c3e50;
}

.carousel-item p {
	margin-top: 8px;
	color: #555;
	font-size: 14px;
}

.carousel-control {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255,255,255,0.7);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	font-weight: bold;
	color: #333;
	border: none;
}

.carousel-prev {
	left: 10px;
}

.carousel-next {
	right: 10px;
}

/* About section styles */
.about-text {
	margin-bottom: 20px;
	text-align: justify;
	color: #444;
	font-size: 15px;
	line-height: 1.7;
}

/* Product grid styles */
.products-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
}

.product-card {
display: flex;
flex-direction: column;
background-color: var(--white); /* 图片底层使用白色背景 */
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
transition: transform 0.3s, box-shadow 0.3s;
text-decoration: none; /* 鼠标悬停时也没有下划线 */
}


.product-card:hover {
	transform: translateY(-0.25rem);
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
	text-decoration: none; /* 鼠标悬停时也没有下划线 */
}

.product-image {
	height: 12rem;
	background-color: var(--white); /* 图片底层使用白色背景 */
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-info {
	padding: 1.5rem;
	background-color: var(--gray-100);
	color: #2d3748; 
	text-align: center; /* 居中对齐文字 */
}

.product-info h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #2d3748;
}

.product-info p {
	color: #666;
	font-size: 14px;
}

/* Contact section styles */
.contact-info {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
	margin-bottom: 25px;
}

.contact-item {
	display: flex;
	align-items: center;
}

.contact-icon {
	width: 35px;
	height: 35px;
	background-color: #3498db;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	margin-right: 12px;
	font-size: 14px;
}

.contact-text {
	flex: 1;
	font-size: 15px;
	color: #444;
}

/* Form styles */
.form-group {
	margin-bottom: 18px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #2c3e50;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
}

.form-group textarea {
	height: 120px;
	resize: vertical;
}

.submit-btn {
	background-color: #3498db;
	color: white;
	border: none;
	padding: 12px 25px;
	border-radius: 6px;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 500;
	width: 100%;
	transition: background-color 0.3s;
}

.submit-btn:hover {
	background-color: #2980b9;
}

/* News styles */
.news-list {
	list-style: none;
}

.news-item {
	padding: 15px 0;
	border-bottom: 1px solid #eee;
}

.news-item:last-child {
	border-bottom: none;
}

.news-date {
	color: #888;
	font-size: 14px;
	margin-bottom: 8px;
}

.news-title {
	margin-bottom: 8px;
	color: #3498db;
	font-weight: 600;
	font-size: 16px;
}

.news-excerpt {
	color: #666;
	font-size: 14px;
}

/* Survey styles */
.rating {
	display: flex;
	margin: 15px 0;
	gap: 10px;
}

.rating-item {
	flex: 1;
	text-align: center;
	padding: 10px;
	background-color: #f1f1f1;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.rating-item:hover {
	background-color: #ddd;
}

/* Footer styles */
footer {
	background-color: #2c3e50;
	color: white;
	text-align: center;
	padding: 20px;
	margin-top: 20px;
	font-size: 14px;
}

/* Responsive styles */
@media (min-width: 768px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
/* Checkbox styles */
.checkbox-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin-top: 8px;
}

.checkbox-item {
	display: flex;
	align-items: center;
}

.checkbox-item input {
	margin-right: 8px;
}

.checkbox-item label {
	color: #2c3e50;
	font-size: 14px;
}

@media (max-width: 768px) {
	.checkbox-container {
		grid-template-columns: 1fr;
	}
}
