/* 全局样式重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
	--primary-color: #2c5282;
	--secondary-color: #e53e3e;
	--light-color: #f7fafc;
	--dark-color: #1a202c;
	--gray-color: #718096;
	--border-color: #ccc;
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--transition: all 0.3s ease;
}

body {
	background-color:#fff;
	color: var(--dark-color);
	line-height: 1.6;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
}

ul {
	list-style: none;
	margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0px;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	transition: var(--transition);
}

img {
	/*display: block;*/
}

/* 容器样式 */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 头部样式 */
header {
	background-color: white;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--primary-color);
	display: flex;
	align-items: center;
}

.logo i {
	margin-right: 10px;
	font-size: 1.5rem;
}

/* 导航栏 */
.nav-links {
	display: flex;
	gap: 30px;
}

.nav-links a {
	font-weight: 500;
	position: relative;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: var(--transition);
}

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

/* 购物车图标 */
.cart-icon {
	position: fixed; right:10px; bottom:100px;
	font-size: 1.5rem;
	color: var(--primary-color);
}

.cart-badge {
	position: absolute;
	top: 7px;
	margin-left: 26px;
	background-color: var(--secondary-color);
	color: white;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	font-size: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 移动端菜单按钮 */
.menu-btn {
	display: none;
	font-size: 1.5rem;
	color: var(--primary-color);
}

/* 新增：全局搜索版块样式 */
.global-search {
	background-color: white;
	padding: 25px 0;
	border-bottom: 1px solid var(--border-color);
	margin-top: 1px;
}

/* 搜索区LOGO样式 */
.search-logo {
	text-align: center;
	margin-top: 40px;margin-bottom: 60px;
}

.search-logo h2 {
	font-size: 2rem;
	color: var(--primary-color);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.search-logo h2 i {
	font-size: 1.8rem;
}

.search-panel {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
}

.search-select {
	padding: 12px 15px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	outline: none;
	font-size: 0.95rem;
	color: var(--dark-color);
	background-color: white;
	min-width: 140px;
}

.search-input {
	flex: 1;
	min-width: 280px;
	padding: 12px 20px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	outline: none;
	font-size: 0.95rem;
	transition: var(--transition);
}

.search-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.1);
}

.search-btn {
	padding: 12px 30px;
	background-color: var(--primary-color);
	color: white;
	border-radius: 5px;
	font-size: 0.95rem;
	font-weight: 600;
}

.search-btn:hover {
	background-color: #234169;
	transform: translateY(-2px);
}

/* 热门搜索样式 */
.hot-search {
	margin-top: 45px;margin-bottom: 45px;
	text-align: center;
}

.hot-search-title {
	font-size: 0.9rem;
	color: var(--gray-color);
	margin-right: 10px;
	display: inline-block;
}

.hot-search-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.hot-search-tag {
	font-size: 0.85rem;
	color: var(--gray-color);
	padding: 5px 12px;
	background-color: var(--light-color);
	border-radius: 20px;
	transition: var(--transition);
}

.hot-search-tag:hover {
	background-color: var(--primary-color);
	color: white;
	transform: translateY(-2px);
}

.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 5px;
	font-weight: 600;
	transition: var(--transition);
}

.btn-primary {
	background-color: var(--secondary-color);
	color: white;
}

.btn-primary:hover {
	background-color: #c53030;
	transform: translateY(-2px);
}

/* 筛选区样式 */
.filters {
	background-color: white;
	padding: 20px 0;
	border-bottom: 1px solid var(--border-color);
}

.filter-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.filter-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.filter-group label {
	font-weight: 500;
	color: var(--gray-color);
}

.filter-group select {
	padding: 8px 15px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	outline: none;
	font-size: 0.9rem;
}

.sort-options {
	display: flex;
	gap: 10px;
}

.sort-btn {
	padding: 8px 15px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	background-color: white;
	font-size: 0.9rem;
}

.sort-btn.active {
	background-color: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

/* 商品列表样式 */
.products {
	padding: 40px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 40px;
	font-size: 1.5rem;
	color: var(--primary-color);
	position: relative;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--primary-color);
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
	gap: 30px;
}

.product-card {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: var(--transition);
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-img {
	width:100%;height: 200px; text-align: center;
	overflow: hidden;
}

.product-img img {
	/*width: 100%;height: 100%;*/
	width: auto;height: auto;max-width: 100%;max-height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

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

.product-info {
	padding: 10px;
}

.product-category {
	font-size: 0.8rem;
	color: var(--gray-color);
	margin-bottom: 5px;
}

.product-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-rating {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.product-rating i {
	color: #fbbf24;
	font-size: 0.9rem;
}

.rating-count {
	font-size: 0.8rem;
	color: var(--gray-color);
	margin-left: 5px;
}

.product-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 15px;
}

.price {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--secondary-color);
}

.original-price {
	font-size: 0.9rem;
	color: var(--gray-color);
	text-decoration: line-through;
}

.add-to-cart {
	background-color: var(--primary-color);
	color: white;
	padding: 8px 10px;
	border-radius: 5px;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 5px;
}

.add-to-cart:hover {
	background-color: #234169;
}

/* 加载更多按钮 */
.load-more {
	text-align: center;
	margin-top: 40px;
}

.btn-outline {
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	background-color: transparent;
}

.btn-outline:hover {
	background-color: var(--primary-color);
	color: white;
}

/* 页脚样式 */

footer {
	background-color: var(--dark-color);
	color: white;
	padding: 60px 0 20px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-col h3 {
	font-size: 1.2rem;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.footer-col h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 2px;
	background-color: var(--secondary-color);
}

.footer-col ul li {
	margin-bottom: 10px;
}

.footer-col ul li a:hover {
	color: var(--secondary-color);
	padding-left: 5px;
}

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

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	font-size: 1.2rem;
	position: relative;
	cursor: pointer;
}

.social-links a:hover {
	background-color: var(--secondary-color);
	transform: translateY(-3px);
}

.copyright {
	text-align: center;
	padding-top: 20px;
	/*border-top: 1px solid rgba(255, 255, 255, 0.1);*/
	font-size: 0.9rem;
	color: var(--gray-color);
}

/* 新增：二维码弹窗样式 */
.qrcode-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.qrcode-modal.active {
	opacity: 1;
	visibility: visible;
}

.qrcode-content {
	background-color: white;
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	transform: scale(0.8);
	transition: transform 0.3s ease;
}

.qrcode-modal.active .qrcode-content {
	transform: scale(1);
}

.qrcode-img {
	width: 200px;
	height: 200px;
	margin: 0 auto 15px;
	border: 1px solid var(--border-color);
	padding: 5px;
}

.qrcode-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qrcode-title {
	font-size: 1rem;
	color: var(--dark-color);
	margin-bottom: 10px;
	font-weight: 600;
}

.close-modal {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 1.5rem;
	color: white;
	cursor: pointer;
	transition: all 0.2s ease;
}

.close-modal:hover {
	color: var(--secondary-color);
	transform: scale(1.1);
}

.portlet-body{width:100%;}

table{font-size:14px;}
input[type=checkbox], input[type=radio] {margin: 4px 0 0;margin-top: 1px\9;line-height: normal; width:15px; height:15px;}

/* 底部菜单容器 */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background-color: #ffffff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: space-around;
	align-items: center;
	z-index: 999; /* 确保菜单在最上层 */
}
.bottom-nav a i{font-size:1rem;}

/* 菜单按钮样式 */
.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #666666;
	text-decoration: none;
	font-size: 12px;
	transition: color 0.3s ease;
}

/* 图标样式（使用文字替代，也可替换为iconfont/svg） */
.nav-item .icon {
	font-size: 20px;
	margin-bottom: 4px;
}

/* 选中/hover 状态 */
.nav-item:hover,
.nav-item.active {
	color: #ff6700; /* 主题色 */ text-decoration:none;
}

/* 响应式适配（小屏幕优化） */
@media (max-width: 320px) {
	.nav-item {
		font-size: 11px;
	}
	.nav-item .icon {
		font-size: 18px;
	}
}

/* 响应式设计 */
@media (max-width: 992px) {
	.nav-links {
		gap: 20px;
	}
	.search-panel {
		gap: 10px;
	}
	.search-select {
		min-width: 120px;
		padding: 10px 12px;
	}
	.search-input {
		min-width: 220px;
		padding: 10px 15px;
	}
	.search-logo {
		text-align: center;
		margin-top: 20px;margin-bottom: 30px;
	}
	.search-logo h2 {display:block; text-align:center}
	.search-logo h2 img {margin:0 auto; width:130px; display:block}
	
	.product-card {
		display:flex;
	}
	.product-img {
		height: 140px;width: 200px;display: flex;align-items: center;
		overflow: hidden;
	}
	
	.hot-search {margin-top:25px;margin-bottom:25px;text-align: center;}
	.portlet-body{width:100%; overflow-x:scroll;}
	table{width:220% !important; max-width:220% !important;}
	
	.mhid{display:none;}
}

@media (max-width: 768px) {
	.menu-btn {
		display: block;
	}

	.nav-links {
		display: none;
	}

	.header-content {
		padding: 10px 0;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.hero p {
		font-size: 1rem;
	}

	.filter-content {
		flex-direction: column;
		align-items: flex-start;
	}

	.sort-options {
		width: 100%;
		justify-content: space-between;
	}

	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
	.product-card {
		display:flex;
	}
	.product-img {
		height: 140px;width: 200px;display: flex;align-items: center;
		overflow: hidden;
	}

	/* 移动端搜索面板适配 */
	.global-search {
		padding: 20px 0;
	}
	.search-panel {
		flex-direction: column;
		align-items: stretch;
	}
	.search-select, .search-input {
		min-width: 100%;
		width: 100%;
	}
	.search-logo h2 {
		font-size: 1.2rem;
	}
	.search-btn {
		padding: 10px 20px; margin-top:12px;
	}

	/* 移动端二维码适配 */
	.qrcode-img {
		width: 180px;
		height: 180px;
	}
	
	.portlet-body{width:100%; overflow-x:scroll;}
	table{width:220% !important; max-width:220% !important;}
}

@media (max-width: 576px) {
	.hero {
		padding: 60px 0;
	}

	.hero h1 {
		font-size: 1.8rem;
	}

	.btn {
		padding: 10px 20px;
	}

	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}

	.footer-content {
		gap: 30px;
	}
	.hot-search-tags {
		width: 100%;
	}
	.product-card {
		display:flex;
	}
	.product-img {
		height: 140px;
		width: 200px;display: flex;align-items: center;
		overflow: hidden;
	}

	/* 移动端二维码适配 */
	.qrcode-img {
		width: 150px;
		height: 150px;
	}
	
	.portlet-body{width:100%; overflow-x:scroll;}
	table{width:400% !important; max-width:400% !important;}
}