
:root {
	--primary-color: #003366;
	--secondary-color: #0066cc;
	--accent-color: #66aaff;
	--light-color: #f5f9ff;
	--dark-color: #001a33;
	--text-color: #333333;
	--white: #ffffff;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	color: var(--text-color);
	line-height: 1.6;
	background-color: var(--white);
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Header Styles */
header {
	background-color: var(--white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo {
	display: flex;
	align-items: center;
}

.logo h1 {
	color: var(--primary-color);
	font-size: 28px;
	margin-left: 10px;
}

.logo-icon {
	font-size: 32px;
	color: var(--primary-color);
}

/* Navigation with Dropdown */
nav ul {
	display: flex;
	list-style: none;
}

nav ul li {
	position: relative;
	margin-left: 25px;
}

nav ul li a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s;
	display: block;
	padding: 8px 0;
	white-space: nowrap;
}

nav ul li a:hover {
	color: var(--secondary-color);
}

/* 二级菜单样式 */
nav > ul > li > ul {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--white);
	min-width: 220px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s;
	z-index: 100;
	display: block;
}

nav > ul > li:hover > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

nav > ul > li > ul > li {
	position: relative; /* 为三级菜单定位做准备 */
	margin: 0;
	width: 100%;
	display: block;
}

nav > ul > li > ul > li > a {
	padding: 12px 20px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	width: 100%;
}

nav > ul > li > ul > li > a i {
	margin-right: 10px;
	width: 20px;
	text-align: center;
	color: var(--secondary-color);
}

nav > ul > li > ul > li:last-child > a {
	border-bottom: none;
}

/* 三级菜单样式 - 关键修改 */
nav > ul > li > ul > li > ul {
	position: absolute;
	top: 0;
	left: 100%;
	background: var(--white);
	min-width: 220px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s;
	z-index: 101; /* 高于二级菜单 */
	display: block;
}

/* 悬停在二级菜单项上时显示对应的三级菜单 */
nav > ul > li > ul > li:hover > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

nav > ul > li > ul > li > ul > li {
	margin: 0;
	width: 100%;
	display: block;
}

nav > ul > li > ul > li > ul > li > a {
	padding: 12px 20px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	width: 100%;
}

nav > ul > li > ul > li > ul > li:last-child > a {
	border-bottom: none;
}

/* 鼠标移动到三级菜单时保持其显示 */
nav > ul > li > ul > li > ul:hover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Language Switcher */
.language-switcher {
	position: relative;
}

.language-btn {
	background: var(--light-color);
	border: 1px solid #ddd;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.language-btn i {
	margin-left: 5px;
}

.language-options {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--white);
	border: 1px solid #ddd;
	border-radius: 4px;
	width: 120px;
	display: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-options.active {
	display: block;
}

.language-options a {
	display: block;
	padding: 10px 15px;
	text-decoration: none;
	color: var(--text-color);
	transition: background 0.3s;
}

.language-options a:hover {
	background: var(--light-color);
}

.mobile-menu {
	display: none;
	font-size: 24px;
	cursor: pointer;
}

/* Hero Section */
.hero {
	background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 102, 204, 0.8)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
	background-size: cover;
	background-position: center;
	color: var(--white);
	padding: 100px 0;
	text-align: center;
}

.hero h2 {
	font-size: 42px;
	margin-bottom: 20px;
}

.hero p {
	font-size: 18px;
	max-width: 700px;
	margin: 0 auto 30px;
}

.btn {
	display: inline-block;
	background: var(--secondary-color);
	color: var(--white);
	padding: 12px 30px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.3s;
}

.btn:hover {
	background: var(--primary-color);
}

/* Products Section */
.products {
	padding: 80px 0;
	background: var(--light-color);
}

.section-title {
	text-align: center;
	margin-bottom: 50px;
}

.section-title h2 {
	color: var(--primary-color);
	font-size: 32px;
	margin-bottom: 15px;
}

.section-title p {
	max-width: 700px;
	margin: 0 auto;
	color: #666;
}

.page-products ul li{
	height:100%; overflow:hidden; list-style:none; padding:0; margin-bottom:20px;
}

.page-products ul li img{width:300px; float:left; margin-right:10px;}
.page-products ul li a{color:#003366;}
.page-products ul li p{color:#999;}

.page-news td,.page-jobs td{padding:10px;}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.product-card {
	background: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
}

.product-card:hover {
	transform: translateY(-10px);
}

.product-img {
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden; 
	position: relative;
}

.product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover; 
	object-position: center; 
	transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
	transform: scale(1.05); 
}

.product-content {
	padding: 20px;
}

.product-content h3 {
	color: var(--primary-color);
	margin-bottom: 10px;
}

/* News Section */
.news {
	padding: 80px 0;
	background: var(--white);
}

.news-container {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
}

.news-list {
	list-style: none;
}

.news-list li {
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid #eee;
}

.news-list li:last-child {
	border-bottom: none;
}

.news-list .clearfix {
	display: grid;
	/*grid-template-columns: 150px 1fr;*/
	gap: 20px;
	align-items: start;
}

.news-list .clearfix img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 4px;
}

.news-list .clearfix h3 {
	margin-bottom: 10px;
}

.news-list .clearfix h3 a {
	color: var(--primary-color);
	text-decoration: none;
	font-size: 18px;
	transition: color 0.3s;
}

.news-list .clearfix h3 a:hover {
	color: var(--secondary-color);
}

.news-list .clearfix p {
	color: #666;
	line-height: 1.6;
	margin-bottom: 10px;
}

.news-list .clearfix p a {
	color: var(--secondary-color);
	text-decoration: none;
	font-weight: 500;
}

.news-list li:not(.clearfix) a {
	display: block;
	padding: 10px 0;
	color: #555;
	text-decoration: none;
	transition: color 0.3s;
	border-left: 3px solid transparent;
	padding-left: 15px;
}

.news-list li:not(.clearfix) a:hover {
	color: var(--secondary-color);
	border-left-color: var(--secondary-color);
}

.news-list li:not(.clearfix) a span {
	color: #999;
	font-size: 14px;
	margin-right: 10px;
	display: inline-block;
	width: 100px;
}

.news-sidebar {
	background: var(--light-color);
	padding: 30px;
	border-radius: 8px;
	height: fit-content;
}

.news-sidebar h3 {
	color: var(--primary-color);
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--accent-color);
}

.news-categories {
	list-style: none;
}

.news-categories li {
	margin-bottom: 10px;
}

.news-categories li a {
	color: #555;
	text-decoration: none;
	transition: color 0.3s;
	display:block;
	border-bottom:1px dotted #555;
	padding-bottom:8px;
	margin-bottom:8px;
	justify-content: space-between;
}

.news-categories li a:hover {
	color: var(--secondary-color);
}

.news-categories li a span {
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 14px;
}

/* About Section */
.about {
	padding: 80px 0;
	background: var(--light-color);
}

.about-content {
	display: flex;
	align-items: center;
	gap: 50px;
}

.about-text {
	flex: 1;
}

.about-text h2 {
	color: var(--primary-color);
	margin-bottom: 20px;
}

.about-image {
	flex: 1;
	height: 400px;
	background-color: var(--light-color);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color);
	font-size: 48px;
	overflow: hidden; /* ������� */
}

.about-image img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* ͼƬ����Ӧ�������������� */
	object-position: center; /* ͼƬ������ʾ */
}

/* Features Section */
.features {
	padding: 80px 0;
	background: var(--white);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.feature-card {
	text-align: center;
	padding: 30px 20px;
}

.feature-icon {
	font-size: 48px;
	color: var(--secondary-color);
	margin-bottom: 20px;
}

.feature-card h3 {
	margin-bottom: 15px;
	color: var(--primary-color);
}

/* Contact Section */
.contact {
	padding: 80px 0;
	background: var(--light-color);
}

.contact-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 50px;
}

.contact-info h3 {
	color: var(--primary-color);
	margin-bottom: 20px;
}

.contact-detail {
	display: flex;
	margin-bottom: 15px;
}

.contact-detail i {
	color: var(--secondary-color);
	margin-right: 15px;
	font-size: 20px;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px;
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.contact-form textarea {
	height: 150px;
}

/* Footer */
footer {
	background: var(--dark-color);
	color: var(--white);
	padding: 50px 0 20px;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}

.footer-column h3 {
	margin-bottom: 20px;
	color: var(--accent-color);
}

.footer-column ul {
	list-style: none;
}

.footer-column ul li {
	margin-bottom: 10px;
}

.footer-column ul li a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-column ul li a:hover {
	color: var(--accent-color);
}

.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #aaa;
	font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
	nav ul {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: var(--white);
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
		padding: 20px;
	}
	
	nav ul.show {
		display: flex;
	}
	
	nav ul li {
		margin: 0 0 10px 0;
		width: 100%;
	}
	
	nav ul li ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		margin-top: 10px;
		margin-left: 15px;
		display: none;
		width: 100%;
	}
	
	nav ul li ul.show {
		display: block;
	}
	
	.mobile-menu {
		display: block;
	}
	
	.hero h2 {
		font-size: 32px;
	}
	
	.about-content {
		flex-direction: column;
	}
	
	.about-image {
		width: 100%;
	}
	
	.news-container {
		grid-template-columns: 1fr;
	}
	
	.news-list .clearfix {
		grid-template-columns: 1fr;
	}
	
	.news-list .clearfix img {
		height: 200px;
	}
}

 /* ҳ����Ҫ�������� */
#page_main {
	display: flex;
	padding: 40px 0;
	gap: 30px;
}

.page-left {
	flex: 0 0 280px;
}

.page-right {
	flex: 1;
}

/* ���м���� */
.site-nav {
	background: var(--light-color);
	padding: 12px 15px;
	border-radius: 4px;
	margin-bottom: 30px;
	font-size: 14px;
	color: #666;
}

.site-nav a {
	color: var(--secondary-color);
	text-decoration: none;
}

.site-nav a:hover {
	text-decoration: underline;
}

/* ��������ʽ */
.left-about, .left-search, .left-contact {
	background: var(--white);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	margin-bottom: 25px;
	overflow: hidden;
}

.left-about h2, .left-search h2, .left-contact h2 {
	background: var(--primary-color);
	color: var(--white);
	padding: 15px 20px;
	font-size: 18px;
	margin: 0;
}

.left-about h2 span, .left-search h2 span, .left-contact h2 span {
	position: relative;
	padding-left: 10px;
}

.left-about h2 span::before, .left-search h2 span::before, .left-contact h2 span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 18px;
	background: var(--accent-color);
}

/* ���˵� */
#LeftMenu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#LeftMenu li {
	border-bottom: 1px solid var(--gray-border);
}

#LeftMenu li:last-child {
	border-bottom: none;
}

#LeftMenu li a {
	display: block;
	padding: 12px 20px;
	color: var(--text-color);
	text-decoration: none;
	transition: all 0.3s;
}

#LeftMenu li a:hover {
	background: var(--light-color);
	color: var(--secondary-color);
	padding-left: 25px;
}

/* �������� */
.left-search form {
	padding: 20px;
}

.left-search p {
	margin-bottom: 15px;
}

.left-search select, .left-search input[type="text"] {
	width: 100%;
	padding: 10px;
	border-radius: 4px;
}

.left-search input[type="submit"] {
	background: var(--secondary-color);
	color: var(--white);
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
	font-weight: 500;
	transition: background 0.3s;
}

.left-search input[type="submit"]:hover {
	background: var(--primary-color);
}

/* ��ϵ��Ϣ */
.left-contact {
	padding: 20px;
}

.left-contact p {
	margin-bottom: 10px;
	display: flex;
}

.left-contact p span {
	font-weight: 600;
	min-width: 70px;
	color: var(--primary-color);
}

/* �Ҳ��������� */
.page-single {
	background: var(--white);
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	line-height: 1.8;
}

.page-single p {
	margin-bottom: 20px;
}

.about-text a{
	text-decoration:none; color:#555;
}

/* ҳ����ʽ */
#copyright {
	background: var(--dark-color);
	color: var(--white);
	padding: 30px 0;
	text-align: center;
}

#copyright p {
	margin-bottom: 10px;
}

#copyright a {
	color: var(--accent-color);
	text-decoration: none;
}

.copyright a {
	color: var(--accent-color);
	text-decoration: none;
}

#copyright a:hover {
	text-decoration: underline;
}

/*����ҳ��*/
.page-newsdetail,.page-news,.page-products{padding:15px;}

/* ��Ӧʽ��� */
@media (max-width: 992px) {
	
	#page_main {
		flex-direction: column;
	}
	
	.page-left {
		flex: 1;
		width: 100%;
	}
}