* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: linear-gradient(135deg, #f6f8fc 0%, #e9f0f8 100%);
	color: #333;
	line-height: 1.6;
	min-height: 100vh;
}

.page {
	display: none;
	padding: 70px 15px;
	min-height: 100vh;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.page.active {
	display: block;
	opacity: 1;
}

/* 头部样式 */
.header {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: white;
	padding: 15px;
	text-align: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.menu-btn {
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
	margin-right: 10px;
}

.menu-icon {
	width: 20px;
	height: 20px;
}

.search-container {
	flex: 1;
	margin: 0 15px;
	position: relative;
}

.search-input {
	width: 100%;
	padding: 8px 15px 8px 35px;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 14px;
}

.search-icon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.side-menu {
	position: fixed;
	top: 0;
	left: -280px;
	width: 280px;
	height: 100%;
	background: #fff;
	box-shadow: 2px 0 8px rgba(0,0,0,0.1);
	z-index: 1000;
	transition: left 0.3s ease;
}

.side-menu.active {
	left: 0;
}

.menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 999;
	display: none;
}

.menu-header {
	padding: 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.menu-close {
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
}

.menu-content {
	padding: 15px;
}

.menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.menu-list li {
	margin-bottom: 10px;
}

.menu-list a {
	display: block;
	padding: 10px 15px;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
}

.menu-list a:hover {
	background: #f5f5f5;
}

.title {
	font-size: 18px;
	font-weight: 600;
}

.back-btn {
	position: absolute;
	left: 15px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: none;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	backdrop-filter: blur(5px);
}

/* 首页样式 */
.banner {
	margin: 10px -15px 20px;
	padding: 0 15px;
	overflow: hidden;
}

.banner-img {
	width: 100%;
	height: 150px;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
	font-size: 18px;
	font-weight: 600;
	margin: 25px 0 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.section-title::before {
	content: "";
	width: 4px;
	height: 16px;
	background: #6366f1;
	border-radius: 2px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	padding: 0;
}

#allgroup{
	grid-template-columns: repeat(3, 1fr);
	height: 330px;
	overflow: hidden;
}

#allgroup.show{
	height: auto;
}

.more{
	width: 100%;
	height: 80px;
	background: url("/theme/image/more.png") no-repeat no-repeat center;
	background-size: auto 30%;
}

.more.show{
	transform: rotate(180deg);
}

.grid-item {
	background: white;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.grid-item:active {
	transform: scale(0.98);
}

#allminiapp .grid-item img{
	border-radius: 25px;
}

.grid-item img ,.grid-item span{
	width: 50px;
	height: 50px;
	display: block;
	margin:0 auto 10px;
	color: #FFFFFF;
	font-size: 24px;
	line-height: 46px;
	border-radius: 25px;
}

.grid-item span{
	transition: transform 0.3s ease;
	background: hsl(0, 50%, 70%);
	animation: randomColor 10s linear infinite;
}


.grid-item:hover img,.grid-item span {
	transform: scale(1.1);
}

.appitem{
	display: flex;
	justify-content: space-around;
	padding: 10px;
	align-items: center;
}

.appitem div{
	width: 110px;
}


.grid-item h3 {
	font-size: 15px;
	color: #333;
	margin-top: 8px;
}

.appitem.grid-item div h3{
	white-space: nowrap;         /* 禁止文字换行 */
	overflow: hidden;            /* 超出部分隐藏 */
	text-overflow: ellipsis;
	text-align: left;
}

.appitem.grid-item div p{
	display: flex;
	padding: 0;
}

.appitem.grid-item div p:before{
	display: inline-block;
	content: '';
	width: 20px;
	height: 20px;
	background: url("/theme/image/hot.png") no-repeat center;
	background-size: cover;
}

.appitem.grid-item img{
	margin: 0;
}

/* 分类列表样式 */
.category-list {
	padding: 10px 0 70px;
}

.category-item {
	background: white;
	padding: 15px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease;
	cursor: pointer;
}

.category-item:active {
	transform: translateX(5px);
}

.category-item img {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	margin-right: 15px;
	object-fit: cover;
}

.item-info {
	flex: 1;
}

.item-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 5px;
}

.item-desc {
	font-size: 13px;
	color: #666;
}

.item-price {
	color: #f43f5e;
	font-weight: 600;
	font-size: 16px;
}

.arrow-right {
	color: #999;
	margin-left: 10px;
}

/* 详情页样式 */
.detail {
	padding: 60px 0 70px;
}

.detail-card {
	background: white;
	border-radius: 16px;
	padding: 0;
	margin-bottom: 15px;
	overflow: hidden;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: space-around;
}

.detail-image {
	width: 120px;
	height: 120px;
	object-fit: cover;
	margin-top: 20px;
	margin-left: 20px;
}

.detail-content {
	padding: 20px;
}

.detail-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 10px;
}

.detail-desc {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 15px;
}

.detail-price {
	color: #f43f5e;
	font-size: 24px;
	font-weight: 600;
}

.detail-origin-price {
	color: #999;
	font-size: 14px;
	text-decoration: line-through;
	margin-left: 10px;
}
wx-open-launch-weapp{
	width: 100%;
	display: block;
	height: auto;
}
.buy-button {
	display: block;
	width: 100%;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: white;
	text-align: center;
	padding: 12px;
	border-radius: 8px;
	margin-top: 20px;
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.2s ease;
}

.buy-button:active {
	transform: scale(0.98);
}

/* 底部导航 */
.tabbar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	display: flex;
	padding: 8px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-item {
	flex: 1;
	text-align: center;
	color: #666;
	text-decoration: none;
	padding: 5px 0;
	transition: transform 0.2s ease;
}

.tab-item:active {
	transform: scale(0.9);
}

.tab-icon {
	width: 24px;
	height: 24px;
	margin-bottom: 4px;
}

.tab-text {
	font-size: 12px;
	margin-top: 2px;
}

.tab-item.active {
	color: #6366f1;
}


.form-card {
	background: #fff;
	border-radius: 8px;
	padding: 16px;
	margin-top: 16px;
}

.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	color: #333;
	font-size: 15px;
	margin-bottom: 8px;
}

.form-select,
.form-input {
	width: 100%;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0 12px;
	font-size: 14px;
	color: #333;
}

.form-select {
	background: #fff;
}

.submit-btn {
	width: 100%;
	height: 44px;
	background: #07c160;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	margin-top: 24px;
}

.submit-btn:active {
	opacity: 0.8;
}

.content-card {
	background: #fff;
	padding: 20px;
}

.step-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.step-item {
	position: relative;
	padding-left: 40px;
	margin-bottom: 24px;
}

.step-number {
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	background: #07c160;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 500;
}

.step-title {
	font-size: 16px;
	font-weight: 500;
	color: #333;
	margin-bottom: 8px;
	line-height: 28px;
}

.step-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin: 0;
}

.note {
	margin-top: 24px;
	padding: 12px 16px;
	background: #f8f8f8;
	border-left: 4px solid #07c160;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	border-radius: 0 4px 4px 0;
}

/* 加载动画 */
.loading {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #6366f1;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	display: none;
}

.random-background {
	background: hsl(0, 50%, 70%);
	animation: randomColor 10s linear infinite;
}

.qrcode{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 20px 0;
}

.qrcode img{
	width: 60%;
}

@keyframes randomColor {
	0% {
		filter: hue-rotate(0deg);
	}
	25% {
		filter: hue-rotate(90deg);
	}
	50% {
		filter: hue-rotate(180deg);
	}
	75% {
		filter: hue-rotate(270deg);
	}
	100% {
		filter: hue-rotate(360deg);
	}
}

@keyframes spin {
	0% {
		transform: translate(-50%, -50%) rotate(0deg);
	}

	100% {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* 加入购物车动画 */
@keyframes addToCart {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.2);
	}

	100% {
		transform: scale(1);
	}
}

.add-animation {
	animation: addToCart 0.5s ease;
}