@charset "utf-8";
*{font-family: Arial, Helvetica, sans-serif;}
:root {--primary: #ffc246;--secondary: #2693d2;--title-color: #1c0a1a;--text-color: #5a5a5a;--light-bg-color: #fafafa;--card-box-shadow: 0px 9px 24px 5px rgba(0, 0, 0, 0.04);--card-hover-box-shadow: 1px 20px 30px #C4C4C433;}
/*框架重定义*/
@media (min-width: 1200px){.container, .container-lg, .container-md, .container-sm, .container-xl {max-width: 100%;}}
@media (min-width: 1300px){.container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1300px;
}}

/* 基础样式重置 - 兼容各种浏览器 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

body {
	font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f8fafc;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 清除浮动 - 兼容旧浏览器 */
.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* 顶部导航栏 */
.header {
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 65px;
}

.logo-img {
	height: 45px;
}

.logo-text {
	font-size: 1.6rem;
	font-weight: 700;
	color: #1e40af;
}

.logo-subtext {
	font-size: 0.85rem;
	color: #6b7280;
	margin-top: 2px;
}

/* 顶部联系方式 */
.top-contact {
	background: linear-gradient(90deg, #1e40af, #3b82f6);
	color: white;
	padding: 8px 0;
	font-size: 0.9rem;
}

.top-contact .container {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.contact-top-info {
	display: flex;
	align-items: center;
	gap: 20px;
}

.contact-top-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.contact-top-item i {
	font-size: 0.9rem;
}

.phone-number-top {
	color: white;
	text-decoration: none;
	font-weight: bold;
}

.phone-number-top:hover {
	color: #bfdbfe;
}

/* 导航菜单 - 兼容性处理 */
.nav-menu {
	display: flex;
	gap: 30px;
}

.nav-item {
	position: relative;
}

.nav-link {
	color: #4b5563;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	padding: 8px 0;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav-link:hover, .nav-link.active {
	color: #1e40af;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: #1e40af;
	transition: width 0.3s ease;
	border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
	width: 100%;
}

/* 下拉菜单 - 兼容性处理 */
.dropdown {
	position: relative;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	min-width: 220px;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 1000;
	border: 1px solid #e5e7eb;
	padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* 针对不支持:hover的触摸设备 */
@media (hover: none) {
	.dropdown-menu {
		display: none;
	}
	.dropdown.active .dropdown-menu {
		display: block;
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

.dropdown-item {
	display: block;
	padding: 10px 20px;
	color: #4b5563;
	text-decoration: none;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.dropdown-item:hover {
	background: #f0f9ff;
	color: #1e40af;
	border-left-color: #1e40af;
}

.dropdown-divider {
	height: 1px;
	background: #e5e7eb;
	margin: 8px 0;
}

/* 顶部操作区域 */
.header-actions {
	display: flex;
	gap: 15px;
	align-items: center;
}

.search-box {
	position: relative;
}

.search-box input {
	padding: 10px 15px 10px 40px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.95rem;
	width: 220px;
	background: #f9fafb;
	transition: all 0.3s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.search-box input:focus {
	outline: none;
	border-color: #3b82f6;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box i {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
}

.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(90deg, #1e40af, #3b82f6);
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.contact-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
	color: #ffffff;
}

/* 页脚 - 调整后的联系我们区域 */
.footer {
	background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
	color: #ffffff;
	padding: 50px 0 25px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 35px;
	margin-bottom: 35px;
}

/* 网格布局回退方案 */
@supports not (display: grid) {
	.footer-content {
		display: flex;
		flex-wrap: wrap;
		margin: 0 -17.5px;
	}
	.footer-column {
		width: 25%;
		padding: 0 17.5px;
		margin-bottom: 35px;
	}
}

.footer-column h3 {
	font-size: 1.2rem;
	margin-bottom: 20px;
	color: #ffffff;
	position: relative;
	padding-bottom: 10px;
}

.footer-column h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 35px;
	height: 3px;
	background: #3b82f6;
	border-radius: 2px;
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links a {
	color: #d1d5db;
	text-decoration: none;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
}

.footer-links a:hover {
	color: #ffffff;
}

.footer-links i {
	font-size: 0.75rem;
}

/* 联系我们区域 */
.contact-info {
	color: #d1d5db;
	font-size: 0.95rem;
	line-height: 1.6;
}

.contact-info i {
	margin-right: 8px;
	width: 20px;
	color: #3b82f6;
}

/* 杨女士联系方式和微信二维码 */
.contact-details {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-person {
	margin-bottom: 15px;
}

.contact-person strong {
	display: block;
	color: #ffffff;
	margin-bottom: 5px;
}

.phone-number {
	color: #ffffff;
	text-decoration: none;
	font-weight: bold;
	display: inline-block;
	margin-top: 5px;
}

.phone-number:hover {
	color: #bfdbfe;
}

.wechat-contact {
	margin-top: 20px;
}

.wechat-contact strong {
	display: block;
	color: #ffffff;
	margin-bottom: 10px;
}

.wechat-qr-footer {
	width: 120px;
	height: 120px;
	border: 2px solid white;
	border-radius: 5px;
	background: white;
	padding: 5px;
	margin-top: 5px;
}

.footer-bottom {
	text-align: center;
	padding-top: 25px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #d1d5db;
	font-size: 0.9rem;
}

/* 响应式设计 - 兼容各种设备 */
@media (max-width: 1200px) {
	.categories-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.new-products-grid {
		grid-template-columns: 1fr;
	}
	
	.about-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}
	
	/* 回退方案响应式 */
	@supports not (display: grid) {
		.category-card {
			width: 25%;
		}
		.product-card {
			width: 50%;
		}
		.new-products-grid .product-card {
			width: 100%;
		}
		.about-text, .about-video {
			width: 100%;
		}
		.footer-column {
			width: 50%;
		}
	}
}

@media (max-width: 992px) {
	.swiper {
		height: 380px;
	}
	
	.slide-title {
		font-size: 1.8rem;
	}
	
	.slide-description {
		font-size: 1rem;
	}
	
	.nav-menu {
		display: none;
	}
	
	.search-box input {
		width: 180px;
	}
	
	.categories-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.news-content {
		grid-template-columns: 1fr;
	}
	
	.featured-articles {
		grid-template-columns: 1fr;
	}
	
	/* 回退方案响应式 */
	@supports not (display: grid) {
		.category-card {
			width: 33.333%;
		}
		.news-list, .news-sidebar {
			width: 100%;
			padding: 0;
		}
		.featured-article {
			width: 100%;
			margin-bottom: 20px;
		}
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 15px;
	}
	
	.swiper {
		height: 320px;
	}
	
	.slide-content {
		padding: 20px;
	}
	
	.slide-title {
		font-size: 1.5rem;
	}
	
	.slide-description {
		font-size: 0.95rem;
	}
	
	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.products-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.about-highlights {
		grid-template-columns: 1fr;
	}
	
	.footer-content {
		grid-template-columns: 1fr;
	}
	
	.search-box input {
		width: 160px;
	}
	
	.top-contact .container {
		justify-content: center;
	}
	
	.contact-top-info {
		flex-direction: column;
		gap: 8px;
	}
	
	/* 回退方案响应式 */
	@supports not (display: grid) {
		.category-card {
			width: 50%;
		}
		.product-card {
			width: 100%;
		}
		.highlight-item {
			width: 100%;
		}
		.footer-column {
			width: 100%;
		}
	}
}

@media (max-width: 576px) {
	.header-content {
		flex-wrap: wrap;
		gap: 15px;
	}
	
	.logo {
		order: 1;
	}
	
	.search-box {
		order: 2;
		flex: 1;
	}
	
	.search-box input {
		width: 100%;
	}
	
	.header-actions {
		order: 3;
		width: 100%;
		justify-content: center;
	}
	
	.swiper {
		height: 280px;
	}
	
	.slide-content {
		padding: 15px;
	}
	
	.slide-title {
		font-size: 1.3rem;
	}
	
	.slide-btn {
		padding: 10px 18px;
		font-size: 0.95rem;
	}
	
	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	.category-card {
		padding: 15px;
		height: 180px;
	}
	
	.category-image {
		width: 110px;
		height: 110px;
	}
	
	/* 回退方案响应式 */
	@supports not (display: grid) {
		.category-card {
			width: 50%;
		}
	}
}

/* 动画效果 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(25px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.5s ease-out;
}

/* 针对IE的特定样式 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.categories-grid, .products-grid, .new-products-grid, 
	.about-content, .news-content, .footer-content, .featured-articles {
		display: flex;
		flex-wrap: wrap;
	}
	
	.category-card, .product-card, .footer-column, .featured-article {
		flex: 1 0 auto;
	}
	
	.about-text, .about-video {
		width: 50%;
	}
	
	.news-list {
		width: 66.666%;
	}
	
	.news-sidebar {
		width: 33.333%;
	}
	
	.featured-article {
		width: 50%;
		padding: 0 12.5px;
	}
}