* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

li {
	list-style: none;
}

a {
	text-decoration: none;
}

body {
	background: #f7f9fa;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 添加viewport和基础响应式 */
@media only screen and (max-width: 768px) {
	body {
		font-size: 14px;
	}
}

.header-top {
	background: linear-gradient(135deg, #338CFF 0%, #0066FF 100%);
	width: 100%;
	padding: 15px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-top-f {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 95%;
	max-width: 1200px;
	margin: 0 auto;
	flex-wrap: wrap;
	gap: 15px;
}

.header-top-f h1 {
	color: #FFFFFF;
	letter-spacing: 3px;
	font-size: 24px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.search {
	height: 40px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 25px;
	overflow: hidden;
	display: flex;
	flex: 1;
	max-width: 500px;
	background: rgba(255, 255, 255, 0.95);
	transition: box-shadow 0.3s, border-color 0.3s;
}

.search:focus-within {
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
	border-color: #fff;
}

.search input {
	outline: none;
	flex: 1;
	height: 40px;
	border: none;
	padding-left: 20px;
	font-size: 15px;
	background: transparent;
}

.search input::placeholder {
	color: #999;
}

.search button {
	cursor: pointer;
	width: 100px;
	height: 40px;
	font-size: 16px;
	color: #FFFFFF;
	background: linear-gradient(135deg, #338CFF 0%, #0066FF 100%);
	border: none;
	transition: transform 0.2s, background 0.3s;
}

.search button:hover {
	background: linear-gradient(135deg, #0066FF 0%, #0044CC 100%);
	transform: scale(1.02);
}

.login-action {
	display: flex;
	align-items: center;
	gap: 20px;
}

.login-action a {
	color: #FFFFFF;
	font-size: 15px;
	transition: color 0.3s;
}

.login-action a:hover {
	color: #FFD700;
}

.cart {
	display: flex;
	align-items: center;
	padding: 8px 15px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	transition: background 0.3s;
}

.cart:hover {
	background: rgba(255, 255, 255, 0.3);
}

.cart img {
	height: 20px;
	margin-right: 5px;
}

.cart span {
	font-weight: 500;
}

.cart .cart-count {
	background: #FF6B6B;
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 10px;
	min-width: 20px;
	text-align: center;
	margin-left: 5px;
}

.header {
	background: linear-gradient(135deg, #256fc3 0%, #1f599f 100%);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header ul {
	width: 95%;
	max-width: 1200px;
	margin: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.header ul li {
	display: inline-block;
	position: relative;
}

.header ul li a {
	display: block;
	padding: 15px 25px;
	color: #FFFFFF;
	font-weight: 500;
	transition: all 0.3s;
	position: relative;
}

.header ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 3px;
	background: #FFD700;
	transition: all 0.3s;
	transform: translateX(-50%);
}

.header ul li a:hover::after {
	width: 60%;
}

.header ul .active a {
	background: rgba(255, 255, 255, 0.15);
}

.header ul li a:hover {
	background: rgba(255, 255, 255, 0.15);
}

.banner {
	position: relative;
	width: 95%;
	max-width: 1200px;
	height: auto;
	min-height: 300px;
	margin: 20px auto;
	padding: 15px;
	background: #FFFFFF;
	border-radius: 15px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.banner-nav {
	position: absolute;
	z-index: 99;
	top: 15px;
	left: 15px;
	width: 200px;
	max-width: 25%;
	height: calc(100% - 30px);
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
}

.banner-nav p {
	color: #fff;
	text-align: center;
	padding: 12px 0;
	background: linear-gradient(135deg, #016bd9 0%, #0055aa 100%);
	font-weight: 600;
}

.banner-nav a {
	display: block;
	padding: 15px 18px;
	color: #333;
	font-size: 14px;
	border-bottom: 1px solid #e0e0e0;
	transition: all 0.3s;
}

.banner-nav a:hover {
	color: #FFFFFF;
	background: linear-gradient(135deg, #2e96fd 0%, #1a73e8 100%);
	padding-left: 25px;
}

.banner-img {
	width: 100%;
	height: 100%;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swiper {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 300px;
	overflow: hidden;
}

.wrap {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 300px;
	margin: auto;
	overflow: hidden;
}

.wrap ul {
	position: relative;
}

.wrap ul li {
	width: 100%;
	height: 100%;
	min-height: 300px;
}

.wrap ul li img {
	width: 100%;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
	border-radius: 10px;
}

.wrap ol {
	position: absolute;
	width: 98%;
	display: flex;
	justify-content: flex-end;
	right: 2%;
	bottom: 15px;
	gap: 10px;
}

.wrap ol li {
	list-style: none;
	height: 8px;
	width: 35px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 4px;
	cursor: pointer;
	font-size: 0;
	background: rgba(0, 0, 0, 0.4);
	transition: all 0.3s;
}

.wrap ol li:hover {
	background: rgba(255, 255, 255, 0.5);
}

.wrap ol .on {
	background: linear-gradient(135deg, #338CFF 0%, #0066FF 100%);
	border-color: #fff;
}

.shop {
	width: 95%;
	max-width: 1200px;
	margin: auto;
	background: #FFFFFF;
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.shop ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.shop ul li {
	background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 15px;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.shop ul li::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, #338CFF, #FF6B6B, #4ECDC4);
	transform: scaleX(0);
	transition: transform 0.3s;
}

.shop ul li:hover::before {
	transform: scaleX(1);
}

.shop ul li:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	border-color: #338CFF;
}

.shop ul li img {
	width: 100%;
	height: 200px;
	border-radius: 8px;
	object-fit: cover;
	transition: transform 0.3s;
}

.shop ul li:hover img {
	transform: scale(1.05);
}

.shop h4 {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: #333;
	margin-top: 12px;
	height: 45px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.shop p {
	color: #E53935;
	font-size: 22px;
	font-weight: 700;
	margin-top: 10px;
	text-shadow: 1px 1px 1px rgba(229, 57, 53, 0.3);
}

.title {
	width: 95%;
	max-width: 1200px;
	margin: 30px auto;
}

.title h3 {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	font-size: 24px;
	color: #333;
	font-weight: 600;
	letter-spacing: 2px;
}

.title h3::before {
	content: '';
	width: 4px;
	height: 24px;
	background: linear-gradient(180deg, #338CFF 0%, #0066FF 100%);
	border-radius: 2px;
	margin-right: 12px;
}

.footer {
	width: 100%;
	padding: 25px 0;
	color: #FFFFFF;
	background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
	text-align: center;
	font-size: 14px;
	margin-top: 30px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
	opacity: 0.8;
}

.detail {
	width: 95%;
	max-width: 1200px;
	margin: 30px auto;
}

.detail-top {
	display: flex;
	align-items: center;
	padding: 30px;
	background: #FFFFFF;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
	border-radius: 15px;
	flex-wrap: wrap;
	gap: 30px;
}

.dt-img {
	width: 400px;
	max-width: 100%;
	height: 350px;
	flex-shrink: 0;
}

.dt-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dt-text {
	flex: 1;
	min-width: 280px;
}

.dt-text h3 {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #333;
	line-height: 1.5;
}

.dt-text b {
	color: #E53935;
	font-weight: 700;
	font-size: 32px;
	text-shadow: 1px 1px 2px rgba(229, 57, 53, 0.3);
}

.dt-text p {
	font-size: 16px;
	margin-top: 25px;
	color: #666;
}

.dt-text p span {
	font-size: 14px;
	color: #555;
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	margin-left: 10px;
	margin-top: 8px;
	display: inline-block;
	transition: all 0.3s;
	cursor: pointer;
}

.dt-text p span:hover {
	border-color: #338CFF;
	background: rgba(51, 140, 255, 0.1);
	color: #338CFF;
}

.dt-text-action {
	display: flex;
	margin-top: 40px;
	gap: 15px;
	flex-wrap: wrap;
}

.dt-text-action a {
	display: block;
	width: 140px;
	height: 45px;
	line-height: 45px;
	text-align: center;
	font-size: 16px;
	color: #FFFFFF;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s;
}

.go-cart {
	background: linear-gradient(135deg, #B61D1C 0%, #9A1515 100%);
	box-shadow: 0 4px 15px rgba(182, 29, 28, 0.4);
}

.go-cart:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(182, 29, 28, 0.5);
}

.go-pay {
	background: linear-gradient(135deg, #FF4400 0%, #E03800 100%);
	box-shadow: 0 4px 15px rgba(255, 68, 0, 0.4);
}

.go-pay:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 68, 0, 0.5);
}

.detail-box {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-top: 30px;
	flex-wrap: wrap;
	gap: 20px;
}

.detail-box h3 {
	font-size: 18px;
	margin-bottom: 15px;
	padding: 12px 15px;
	color: #333;
	font-weight: 600;
	background: linear-gradient(90deg, #f5f7fa 0%, #e4e8ec 100%);
	border-left: 4px solid #338CFF;
}

.db-left {
	flex: 1;
	min-width: 300px;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.db-right {
	width: 320px;
	min-width: 300px;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.db-right .shop {
	width: 100%;
	padding: 15px;
}

.db-right .shop ul {
	display: block;
}

.db-right .shop ul li {
	width: 100%;
	margin-bottom: 15px;
}

.db-left-box {
	padding: 20px;
}

.db-left-box img {
	width: 100%;
	margin-bottom: 15px;
	border-radius: 8px;
}

.db-left-box p {
	margin: 15px 0;
	font-size: 16px;
	line-height: 1.8;
	color: #555;
}

.contant-banner img {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
}

/* 响应式设计 */
@media only screen and (max-width: 1024px) {
	.shop ul {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
	
	.banner-nav {
		width: 180px;
	}
	
	.banner-nav a {
		padding: 12px 15px;
		font-size: 13px;
	}
}

@media only screen and (max-width: 768px) {
	.header-top-f {
		flex-direction: column;
		text-align: center;
	}
	
	.header-top-f h1 {
		font-size: 22px;
	}
	
	.search {
		width: 100%;
		max-width: 100%;
	}
	
	.login-action {
		margin-top: 10px;
	}
	
	.header ul li a {
		padding: 12px 15px;
		font-size: 14px;
	}
	
	.banner {
		position: relative;
		padding: 10px;
	}
	
	.banner-nav {
		position: relative;
		width: 100%;
		max-width: 100%;
		height: auto;
		margin-bottom: 15px;
	}
	
	.banner-nav a {
		display: inline-block;
		padding: 8px 12px;
		border-bottom: none;
		border-right: 1px solid #e0e0e0;
	}
	
	.banner-img {
		min-height: 200px;
	}
	
	.wrap ul li img {
		min-height: 200px;
	}
	
	.shop ul {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}
	
	.shop ul li img {
		height: 150px;
	}
	
	.shop h4 {
		font-size: 13px;
		height: 40px;
	}
	
	.shop p {
		font-size: 18px;
	}
	
	.detail-top {
		padding: 20px;
	}
	
	.dt-img {
		width: 100%;
		height: 250px;
	}
	
	.dt-text h3 {
		font-size: 20px;
	}
	
	.dt-text b {
		font-size: 26px;
	}
	
	.detail-box {
		flex-direction: column;
	}
	
	.db-right {
		width: 100%;
	}
}

@media only screen and (max-width: 480px) {
	.header-top-f h1 {
		font-size: 20px;
	}
	
	.header ul li a {
		padding: 10px 10px;
		font-size: 13px;
	}
	
	.shop ul {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 12px;
	}
	
	.shop ul li {
		padding: 10px;
	}
	
	.shop ul li img {
		height: 120px;
	}
	
	.shop h4 {
		font-size: 12px;
	}
	
	.shop p {
		font-size: 16px;
	}
	
	.title h3 {
		font-size: 20px;
	}
	
	.dt-text-action a {
		width: 100%;
	}
}

/* 弹窗样式 */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	backdrop-filter: blur(5px);
}

.modal-overlay.show {
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal {
	background: #fff;
	border-radius: 15px;
	width: 90%;
	max-width: 450px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.modal-header {
	display: flex;
	background: linear-gradient(135deg, #338CFF 0%, #0066FF 100%);
	padding: 20px;
	color: #fff;
}

.modal-tab {
	flex: 1;
	text-align: center;
	padding: 10px;
	cursor: pointer;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s;
}

.modal-tab.active {
	background: rgba(255, 255, 255, 0.25);
}

.modal-close {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.modal-content {
	padding: 30px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.form-group input {
	width: 100%;
	height: 45px;
	padding: 0 15px;
	border: 2px solid #e8e8e8;
	border-radius: 10px;
	font-size: 15px;
	transition: all 0.3s;
	outline: none;
}

.form-group input:focus {
	border-color: #338CFF;
	box-shadow: 0 0 15px rgba(51, 140, 255, 0.2);
}

.form-group input::placeholder {
	color: #999;
}

.form-group.password-group {
	position: relative;
}

.form-group.password-group .toggle-password {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #999;
	font-size: 14px;
}

.form-group.password-group .toggle-password:hover {
	color: #338CFF;
}

.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	font-size: 14px;
}

.form-options label {
	cursor: pointer;
	color: #666;
	display: flex;
	align-items: center;
}

.form-options input[type="checkbox"] {
	width: auto;
	height: auto;
	margin-right: 8px;
}

.form-options a {
	color: #338CFF;
	text-decoration: none;
}

.form-options a:hover {
	text-decoration: underline;
}

.btn-submit {
	width: 100%;
	height: 50px;
	background: linear-gradient(135deg, #338CFF 0%, #0066FF 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(51, 140, 255, 0.4);
}

.btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(51, 140, 255, 0.5);
}

.modal-footer {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #eee;
	margin-top: 10px;
}

.modal-footer p {
	color: #666;
	font-size: 14px;
}

.modal-footer a {
	color: #338CFF;
	text-decoration: none;
	font-weight: 600;
}

.modal-footer a:hover {
	text-decoration: underline;
}

/* 购物车弹窗 */
.cart-modal {
	background: #fff;
	border-radius: 15px;
	width: 90%;
	max-width: 500px;
	max-height: 80vh;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cart-header {
	background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
	padding: 20px;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cart-header h3 {
	font-size: 20px;
	font-weight: 600;
}

.cart-empty {
	padding: 60px 30px;
	text-align: center;
}

.cart-empty img {
	width: 100px;
	height: 100px;
	margin-bottom: 20px;
	opacity: 0.5;
}

.cart-empty p {
	color: #999;
	font-size: 16px;
}

.cart-items {
	max-height: 300px;
	overflow-y: auto;
	padding: 15px;
}

.cart-item {
	display: flex;
	padding: 15px;
	border-bottom: 1px solid #eee;
	transition: background 0.3s;
}

.cart-item:hover {
	background: #f9f9f9;
}

.cart-item-img {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	object-fit: cover;
	margin-right: 15px;
}

.cart-item-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.cart-item-title {
	font-weight: 600;
	color: #333;
	font-size: 14px;
	line-height: 1.4;
}

.cart-item-price {
	color: #E53935;
	font-weight: 700;
	font-size: 18px;
}

.cart-item-quantity {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cart-item-quantity button {
	width: 30px;
	height: 30px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.3s;
}

.cart-item-quantity button:hover {
	background: #338CFF;
	color: #fff;
	border-color: #338CFF;
}

.cart-item-quantity span {
	min-width: 30px;
	text-align: center;
	font-weight: 600;
}

.cart-item-delete {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 14px;
	transition: color 0.3s;
}

.cart-item-delete:hover {
	color: #E53935;
}

.cart-footer {
	padding: 20px;
	border-top: 1px solid #eee;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.cart-total span {
	font-size: 16px;
	color: #666;
}

.cart-total strong {
	font-size: 24px;
	color: #E53935;
	font-weight: 700;
}

.cart-checkout {
	width: 100%;
	height: 50px;
	background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(238, 90, 90, 0.4);
}

.cart-checkout:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(238, 90, 90, 0.5);
}

/* 登录状态显示 */
.user-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.user-info span {
	color: #fff;
	font-weight: 600;
}

.user-info .logout-btn {
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 15px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.3s;
}

.user-info .logout-btn:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* 提示消息 */
.toast {
	display: none;
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 15px 30px;
	border-radius: 50px;
	font-size: 15px;
	z-index: 10000;
	animation: toastFade 0.3s ease;
}

.toast.show {
	display: block;
}

@keyframes toastFade {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* 响应式弹窗 */
@media only screen and (max-width: 480px) {
	.modal, .cart-modal {
		width: 95%;
		margin: 10px;
	}
	
	.modal-content {
		padding: 20px;
	}
}

