/* 商品列表页样式 */
.products-header {
	margin-bottom: 1.5rem;
}
.section-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.products-description {
	color: #475569;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-top: 0.5rem;
	padding: 0.8rem;
	background: #f8fafc;
	border-radius: 16px;
	border-left: 3px solid var(--theme-color);
}

/* 分类导航 */
.category-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eef2ff;
}
.category-link {
	background: #f1f5f9;
	padding: 0.5rem 1rem;
	border-radius: 40px;
	font-size: 0.8rem;
	font-weight: 500;
	color: #334155;
	text-decoration: none;
	transition: all 0.2s;
	display: inline-block;
}
.category-link:hover {
	background: var(--theme-color);
	color: white;
}
.category-link.active {
	background: var(--theme-color);
	color: white;
}

/* 商品卡片*/
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.2rem;
	margin-top: 1rem;
}
@media (max-width: 640px) {
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 1rem;
	}
}
.product-link {
	text-decoration: none;
	color: inherit;
	display: block;
}
.product-card {
	background: white;
	border-radius: 20px;
	border: 1px solid #e9eef3;
	overflow: hidden;
	transition: all 0.25s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
	cursor: pointer;
}
.product-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	border-color: var(--theme-color);
}
.product-img-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #f1f5f9;
}
.product-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.category-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(4px);
	padding: 4px 10px;
	border-radius: 30px;
	font-size: 0.7rem;
	font-weight: 600;
	color: white;
	border-left: 3px solid var(--theme-color);
	z-index: 2;
}
.product-info {
	padding: 1rem;
}
.product-title {
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #1e293b;
}
.product-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0.6rem 0;
}
.product-stock {
	font-size: 0.7rem;
	background: #f1f5f9;
	padding: 0.2rem 0.6rem;
	border-radius: 30px;
	color: #2c3e66;
}
.product-price {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--theme-color);
}
.buy-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #0f172a;
	width: 100%;
	padding: 0.6rem;
	border-radius: 40px;
	color: white;
	font-weight: 600;
	font-size: 0.85rem;
	transition: 0.2s;
	text-decoration: none;
	margin-top: 0.5rem;
}
.product-card:hover .buy-link {
	background: var(--theme-color);
	color: #0f172a;
}

/* 分类区域样式 */
.category-section {
	margin-bottom: 2.5rem;
	scroll-margin-top: 80px;
}
.category-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 1rem 0;
	padding-left: 0.8rem;
	border-left: 4px solid var(--theme-color);
	display: flex;
	align-items: center;
	gap: 8px;
}
.category-title i {
	color: var(--theme-color);
	font-size: 1.1rem;
}

/* FAQ 问答区域 */
.faq-section {
	margin-top: 2rem;
	background: #f9fafc;
	border-radius: 24px;
	padding: 1.5rem;
}
.faq-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-align: center;
}
.faq-grid {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}
.faq-item {
	background: white;
	border-radius: 16px;
	border: 1px solid #e9eef3;
	overflow: hidden;
}
.faq-question {
	padding: 1rem;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: white;
}
.faq-question i {
	color: var(--theme-color);
	transition: transform 0.2s;
}
.faq-answer {
	padding: 1rem;
	color: #475569;
	font-size: 0.85rem;
	line-height: 1.5;
	display: none;
	border-top: 1px solid #eef2ff;
}
.faq-item.active .faq-answer {
	display: block;
}
.faq-item.active .faq-question i {
	transform: rotate(180deg);
}


/* 高亮锚点效果 */
:target {
	scroll-margin-top: 80px;
}