/* 首页板块 */
.hero-section {
	background: linear-gradient(135deg, #f8fafd 0%);
	border-radius: 24px;
	padding: 1.8rem 1.2rem;
	margin-bottom: 1.8rem;
	text-align: center;
}
.hero-title {
	font-size: 1.6rem;
	font-weight: 800;
	background: linear-gradient(135deg, #0f172a, var(--theme-color));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 0.8rem;
}
.hero-desc {
	font-size: 0.9rem;
	color: #334155;
	max-width: 800px;
	margin: 0 auto 1rem;
}
.feature-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin: 1.5rem 0 0.5rem;
}
.feature-card {
	background: white;
	border-radius: 20px;
	padding: 0.8rem 1rem;
	box-shadow: 0 4px 12px rgba(0,0,0,0.03);
	width: calc(50% - 0.8rem);
	min-width: 130px;
	text-align: center;
}
.feature-card i {
	font-size: 1.6rem;
	color: var(--theme-color);
	margin-bottom: 6px;
}
.feature-card h4 {
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 3px;
}
.feature-card p {
	font-size: 0.75rem;
	color: #475569;
}

@media (min-width: 768px) {
	.feature-card {
		width: auto;
	}
}

/* 热门推荐头部 */
.hot-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 1rem;
	border-bottom: 2px solid #eef2ff;
	padding-bottom: 0.6rem;
}
.hot-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 6px;
}
.category-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.category-link {
	background: #f1f5f9;
	padding: 0.35rem 0.9rem;
	border-radius: 40px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	text-decoration: none;
}
.category-link i {
	font-size: 0.7rem;
}
.category-link:hover {
	background: var(--theme-color);
	color: white;
}

@media (max-width: 560px) {
	.hot-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.category-links {
		overflow-x: auto;
		flex-wrap: nowrap;
		width: 100%;
		padding-bottom: 5px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	.category-link {
		flex-shrink: 0;
	}
}

/* 商品卡片*/
.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);
}
.product-price small {
	font-size: 0.7rem;
}
.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;
}
.buy-link:hover {
	background: var(--theme-color);
	color: #0f172a;
}
.buy-link i {
	font-size: 0.85rem;
}

/* 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-item {
	background: white;
	border-radius: 16px;
	border: 1px solid #e9eef3;
	margin-bottom: 0.8rem;
}
.faq-question {
	padding: 1rem;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.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);
}

/* 商品列表页 */
.section-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.text-center {
	text-align: center;
}
.page-header {
	margin-bottom: 1.5rem;
}

/* 商品详情页 */
.product-detail {
	max-width: 800px;
	margin: 0 auto;
	background: white;
	border-radius: 24px;
	border: 1px solid #e9eef3;
	overflow: hidden;
}
.detail-img {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
}
.detail-info {
	padding: 1.5rem;
}
.detail-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.detail-category {
	display: inline-block;
	background: var(--theme-light);
	color: var(--theme-dark);
	padding: 0.2rem 0.8rem;
	border-radius: 20px;
	font-size: 0.8rem;
	margin-bottom: 1rem;
}
.detail-price {
	font-size: 2rem;
	font-weight: 800;
	color: var(--theme-color);
	margin: 1rem 0;
}
.detail-stock {
	color: #64748b;
	margin-bottom: 1rem;
}
.detail-desc {
	color: #334155;
	line-height: 1.6;
	margin: 1rem 0;
}
.buy-now-btn {
	background: var(--theme-color);
	color: #0f172a;
	border: none;
	padding: 1rem;
	border-radius: 40px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	width: 100%;
	transition: 0.2s;
}
.buy-now-btn:hover {
	background: var(--theme-dark);
	transform: scale(1.02);
}
.back-home {
	display: inline-block;
	margin-bottom: 1rem;
	color: var(--theme-color);
	text-decoration: none;
	font-size: 0.85rem;
}
.back-home i {
	margin-right: 4px;
}