/* 基础重置与容器 */

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Microsoft JhengHei', sans-serif;
	line-height: 1.6;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
a{
	text-decoration: none;
}

/* 导航栏样式 */
.navbar {
	background: #ffffff;
	color: #fff;
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
}

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

.nav-menu li {
	position: relative;
}

.nav-menu a {
	color: #000;
	text-decoration: none;
	padding: 0.5rem 1rem;
	display: block;
}

.nav-menu a:hover {
	background: #555;
	color:#fff;
}

.dropdown-menu {
	display: none;
	position: absolute;
	background: #aaa;
	list-style: none;
	min-width: 150px;
}
.dropdown-menu a:hover{
	color:#fff;
}

.dropdown:hover .dropdown-menu {
	display: block;
	
}

.hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
}

.hamburger span {
	display: block;
	width: 25px;
	height: 3px;
	background: #000;
	margin: 5px 0;
}

/* 页脚样式 */
.footer {
	background: #ededed;
	color: #999999;
	text-align: center;
	padding: 2rem 0;
	margin-top: 3rem;
}

/* 响应式设计：平板及以下 */
@media (max-width: 768px) {
	.nav-menu {
		position: fixed;
		left: -100%;
		top: 70px;
		flex-direction: column;
		background-color: #333;
		width: 100%;
		text-align: center;
		transition: 0.3s;
	}
	
	.nav-menu a{color:#fff}

	.nav-menu.active {
		left: 0;
	}

	.nav-menu li {
		margin: 0;
	}

	.hamburger {
		display: block;
	}

	.dropdown-menu {
		position: static;
		display: none;
		background: #555;
	}

	.dropdown.active .dropdown-menu {
		display: block;
	}

	.contact-wrapper {
		flex-direction: column;
	}

	.product-detail {
		flex-direction: column;
	}
}

/* 通用内容区块样式 */
.hero {
	background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/banner_01.jpg');
	background-size: cover;
	color: white;
	text-align: center;
	padding: 5rem 1rem;
	
}

.hero_ny {
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/banner_04.png');
	background-size: cover;
	background-position: center;
	color: white;
	text-align: center;
	padding: 7rem 1rem;
	
}
.news-item img{width:100%;}
.newsdetail img{width:100%;}
.btn {
	display: inline-block;
	background: #e74c3c;
	color: white;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	border-radius: 4px;
	margin-top: 1rem;
}

.pages > div {
	display: flex;
	justify-content: center;
	margin:50px 0;
}

.pages .first,.pages .end {
	color: #aaa;
	width: 50px;
	height: 38px;
	overflow: hidden;
}

.pages span, .pages a {
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #edeff1;
	margin: 0 5px;
	transition: 0.3s;
}

.pages .prev, .pages .num, .pages .next, .current {
	color: #aaa;
	width: 38px;
	height: 38px;
	overflow: hidden;
}

.pages .current, .pages a:hover {
	background: #0168b7;
	border: 1px solid #0168b7;
	color: #fff;
}

.page-content {
	padding: 3rem 0;
}

.product-grid,
.category-list,
.news-list {
	display: grid;
	gap: 2rem;
	margin-top: 2rem;
}
.category-list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
.category-item{
    width:30%;
}
.category-item img{
    width:100%;
}

@media (max-width: 768px) {
    .category-item{
        width:100%;
    }
}


@media (min-width: 768px) {
	.hero {
		height:700px;
		padding: 15rem 1rem;
	}
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.category-list {
		grid-template-columns: 1fr;
	}

	.news-list {
		grid-template-columns: 1fr;
	}

}

@media (min-width: 992px) {
	.product-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.contact-wrapper {
		display: flex;
		gap: 3rem;
	}

	.contact-info,
	.contact-form {
		flex: 1;
	}

	.product-detail {
		display: flex;
		gap: 3rem;
		align-items: flex-start;
	}
}