/* ============================================
   商城页面 (mall) 特有样式
   ============================================ */

.main-mall {
	background: #FFFFFF;
	padding: 50px;
}

.main-mall-detail {
	background: #FFFFFF;
	padding: 50px;
}

.mall-back {
	margin-bottom: 30px;
}

.mall-detail-main {
	display: grid;
	grid-template-columns: 500px 1fr;
	gap: 40px;
	margin-bottom: 40px;
	align-items: flex-start;
}

.mall-image-section {
	position: sticky;
	top: 20px;
}

.mall-main-image {
	width: 100%;
	background: #F8F9FA;
	border: 1px solid #E8E8E8;
	padding: 10px;
	margin-bottom: 15px;
	text-align: center;
}

.main-mall-img {
	max-width: 100%;
	height: auto;
	border-radius: 0;
}

.mall-thumbnails {
	width: 100%;
	margin-top: 15px;
	padding: 0 5px;
}

.mall-thumbnails .tbs {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	width: 100%;
}

.mall-thumbnails .tbsl,
.mall-thumbnails .tbsr {
	flex-shrink: 0;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 56px;
}

.mall-thumbnails .tbsl:hover,
.mall-thumbnails .tbsr:hover {
	opacity: 1;
}

.mall-thumbnails .tbsl img,
.mall-thumbnails .tbsr img {
	display: block;
	width: 20px;
	height: 56px;
	object-fit: contain;
}

.mall-thumbnails .tbsm {
	flex: 1;
	overflow: hidden;
	position: relative;
	min-width: 0;
	max-width: 100%;
}

.mall-thumbnails .tbsm #thumbs {
	display: flex !important;
	gap: 8px;
	transition: transform 0.3s ease;
	width: auto !important;
	height: 56px !important;
	align-items: center;
}

.mall-thumbnails .tbsm #thumbs img {
	width: 70px !important;
	height: 56px !important;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid transparent;
	background: #F8F9FA;
	transition: all 0.3s ease;
	flex-shrink: 0;
	display: block;
}

.mall-thumbnails .tbsm #thumbs img:hover {
	border-color: #667eea;
	opacity: 0.8;
}

.mall-thumbnails .tbsm #thumbs img.ab_on {
	border-color: #667eea;
	opacity: 1;
}

.mall-thumbnails .tbsm #thumbs img.ab_im {
	border-color: #E8E8E8;
	opacity: 0.7;
}

.mall-info-section {
	flex: 1;
}

.mall-info-card {
	background: #FFFFFF;
}

.mall-title {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px 0;
	line-height: 1.5;
	letter-spacing: -0.2px;
}

.mall-subtitle {
	font-size: 15px;
	color: #666;
	margin-bottom: 20px;
	line-height: 1.6;
}

.mall-sec-notice {
	background: #FFF7E6;
	border: 1px solid #FFD591;
	padding: 12px 20px;
	margin-bottom: 20px;
	border-radius: 0;
	display: flex;
	align-items: center;
	gap: 15px;
}

.mall-sec-notice .sec-label {
	font-weight: 600;
	color: #FA8C16;
}

.mall-sec-notice .sec-time {
	color: #666;
}

.mall-sec-notice .sec-price {
	color: #FA8C16;
	font-weight: 600;
	font-size: 16px;
}

.mall-sec-active {
	background: #FFF1F0;
	border: 1px solid #FFCCC7;
	padding: 12px 20px;
	margin-bottom: 20px;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mall-sec-active .sec-label {
	font-weight: 600;
	color: #FF4D4F;
}

.mall-sec-active .sec-timer {
	color: #666;
}

.mall-sec-active .sec-timer span {
	display: inline-block;
	background: #FF4D4F;
	color: #FFFFFF;
	padding: 2px 6px;
	margin: 0 2px;
	border-radius: 0;
	font-weight: 600;
}

.mall-price-section {
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 2px solid #F0F0F0;
}

.mall-price-section .price-row {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.mall-price-section .price-row:last-child {
	margin-bottom: 0;
}

.mall-price-section .price-label {
	font-size: 14px;
	color: #666;
	min-width: 80px;
	font-weight: 500;
}

.mall-price-section .price-value {
	display: flex;
	align-items: baseline;
	gap: 5px;
	flex: 1;
}

.mall-price-section .price-symbol {
	font-size: 18px;
	color: #667eea;
	font-weight: 600;
}

.mall-price-section .price-amount {
	font-size: 28px;
	color: #667eea;
	font-weight: 700;
}

.sec-price-value .price-amount {
	color: #FF4D4F;
	font-size: 24px;
}

.fan-price-value .price-amount {
	color: #52c41a;
	font-size: 22px;
}

.fan-tip {
	font-size: 13px;
	color: #999;
	margin-left: 10px;
}

.btn-compare {
	padding: 6px 15px;
	background: #F8F9FA;
	border: 1px solid #E8E8E8;
	color: #666;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-left: 15px;
}

.btn-compare:hover {
	background: #667eea;
	border-color: #667eea;
	color: #FFFFFF;
}

.mall-info-grid {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 2px solid #F0F0F0;
}

.mall-info-grid .info-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.mall-info-grid .info-label {
	font-size: 14px;
	color: #666;
	min-width: 80px;
	font-weight: 500;
	letter-spacing: 0.2px;
}

.mall-info-grid .info-value {
	font-size: 15px;
	color: #333;
	flex: 1;
	text-align: right;
	line-height: 1.6;
	letter-spacing: 0.2px;
}

.comment-link {
	color: #667eea;
	text-decoration: none;
	transition: color 0.3s ease;
}

.comment-link:hover {
	color: #764ba2;
	text-decoration: underline;
}

.comment-count {
	color: #FF9800;
	font-weight: 600;
}

.hits-count {
	color: #FF9800;
	font-weight: 600;
}

.promos-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.promos-link {
	text-decoration: none;
}

.promo-item {
	display: inline-block;
	padding: 6px 12px;
	background: #FFF7E6;
	border: 1px solid #FFD591;
	color: #FA8C16;
	font-size: 13px;
	border-radius: 0;
	transition: all 0.3s ease;
}

.promo-item:hover {
	background: #FFE7BA;
	border-color: #FFC069;
}

.mall-spec-section {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid #F0F0F0;
}

.spec-label {
	font-size: 14px;
	color: #666;
	margin-bottom: 12px;
	font-weight: 500;
}

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

.spec-option {
	padding: 8px 16px;
	border: 1px solid #E8E8E8;
	background: #FFFFFF;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 0;
}

.spec-option:hover {
	border-color: #667eea;
	color: #667eea;
}

.spec-option.active {
	background: #667eea;
	border-color: #667eea;
	color: #FFFFFF;
}

.mall-quantity-section {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid #F0F0F0;
}

.quantity-label {
	font-size: 14px;
	color: #666;
	margin-bottom: 12px;
	font-weight: 500;
}

.quantity-control {
	display: flex;
	align-items: center;
	gap: 15px;
}

.mall-alter {
	display: flex;
	align-items: center;
	border: 1px solid #E8E8E8;
}

.qty-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: #F8F9FA;
	color: #666;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qty-btn:hover {
	background: #667eea;
	color: #FFFFFF;
}

.qty-input {
	width: 60px;
	height: 36px;
	border: none;
	border-left: 1px solid #E8E8E8;
	border-right: 1px solid #E8E8E8;
	text-align: center;
	font-size: 15px;
	color: #333;
}

.mall-amount {
	font-size: 14px;
	color: #999;
}

.mall-actions {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
}

.mall-actions .btn-buy {
	background: #FF4D4F;
	color: #FFFFFF;
	flex: 1;
	padding: 14px 30px;
	font-size: 16px;
	font-weight: 600;
}

.mall-actions .btn-buy:hover {
	background: #FF7875;
}

.mall-actions .btn-cart {
	background: #667eea;
	color: #FFFFFF;
	flex: 1;
	padding: 14px 30px;
	font-size: 16px;
	font-weight: 600;
}

.mall-actions .btn-cart:hover {
	background: #5568d3;
}

.mall-status-notice {
	padding: 20px;
	background: #F8F9FA;
	border: 1px solid #E8E8E8;
	text-align: center;
	color: #999;
	font-size: 16px;
	margin-bottom: 30px;
}

.mall-relate-section {
	margin-top: 30px;
	padding-top: 25px;
	border-top: 1px solid #F0F0F0;
}

.relate-label {
	font-size: 14px;
	color: #666;
	margin-bottom: 15px;
	font-weight: 500;
}

.relate-list {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.relate-item {
	width: 80px;
	text-align: center;
}

.relate-item img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border: 1px solid #E8E8E8;
	margin-bottom: 8px;
}

.relate-title {
	display: block;
	font-size: 12px;
	color: #666;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mall-detail-content {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 2px solid #F0F0F0;
}

.mall-content {
	font-size: 15px;
	line-height: 1.8;
	color: #444;
	letter-spacing: 0.2px;
}

.mall-content p {
	margin-bottom: 20px;
}

.mall-content img {
	max-width: 100%;
	height: auto;
	margin: 20px 0;
}

.mall-list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 2px solid #F0F0F0;
}

.view-switch {
	display: flex;
	gap: 10px;
}

.view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #E8E8E8;
	background: #FFFFFF;
	color: #666;
	text-decoration: none;
	transition: all 0.3s ease;
	border-radius: 0;
}

.view-btn:hover {
	border-color: #667eea;
	color: #667eea;
}

.view-btn.active {
	background: #667eea;
	border-color: #667eea;
	color: #FFFFFF;
}

.view-icon {
	font-size: 18px;
}

.mall-list-section {
	margin-bottom: 40px;
}

.mall-list-mix {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mall-item-mix {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid #F0F0F0;
	transition: all 0.3s ease;
}

.mall-item-mix:hover {
	background: #F8F9FA;
	padding-left: 15px;
	padding-right: 15px;
	margin-left: -15px;
	margin-right: -15px;
}

.mall-item-mix:last-child {
	border-bottom: none;
}

.mall-item-image {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	background: #F8F9FA;
	border: 1px solid #E8E8E8;
	padding: 5px;
}

.mall-item-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mall-item-info {
	flex: 1;
	min-width: 0;
}

.mall-item-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0 0 12px 0;
	line-height: 1.5;
}

.mall-item-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mall-item-title a:hover {
	color: #667eea;
}

.mall-item-price {
	margin-bottom: 8px;
}

.mall-item-price .price-symbol {
	font-size: 16px;
}

.mall-item-price .price-amount {
	font-size: 20px;
	color: #667eea;
	font-weight: 700;
}

.mall-item-sales {
	font-size: 13px;
	color: #999;
}

.mall-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
}

.mall-card {
	background: #FFFFFF;
	border: 1px solid #E8E8E8;
	transition: all 0.3s ease;
	overflow: hidden;
}

.mall-card:hover {
	border-color: #667eea;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
	transform: translateY(-2px);
}

.mall-card-image {
	width: 100%;
	height: 200px;
	background: #F8F9FA;
	overflow: hidden;
	position: relative;
}

.mall-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

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

.mall-card-info {
	padding: 15px;
}

.mall-card-title {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin: 0 0 12px 0;
	line-height: 1.5;
	letter-spacing: 0.1px;
}

.mall-card-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mall-card-title a:hover {
	color: #667eea;
}

.mall-card-price {
	margin-bottom: 8px;
}

.mall-card-price .price-symbol {
	font-size: 14px;
}

.mall-card-price .price-amount {
	font-size: 18px;
	color: #667eea;
	font-weight: 700;
}

.mall-card-sales {
	font-size: 12px;
	color: #999;
}

.mall-pages {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #F0F0F0;
}

.mall-empty {
	text-align: center;
	padding: 60px 20px;
	color: #999;
	font-size: 16px;
}

/* 响应式设计 - 商城页面 */
@media (max-width: 1200px) {
	.mall-detail-main {
		grid-template-columns: 400px 1fr;
		gap: 30px;
	}
	
	.mall-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 968px) {
	.mall-detail-main {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.mall-image-section {
		position: static;
	}
	
	.mall-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	
	.main-mall,
	.main-mall-detail {
		padding: 30px 20px;
	}
	
	.mall-title {
		font-size: 22px;
	}
	
	.mall-price-section .price-amount {
		font-size: 24px;
	}
}

@media (max-width: 640px) {
	.mall-grid {
		grid-template-columns: 1fr;
	}
	
	.mall-item-mix {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.mall-item-image {
		width: 100%;
		height: 200px;
	}
	
	.mall-actions {
		flex-direction: column;
	}
	
	.mall-actions .btn-buy,
	.mall-actions .btn-cart {
		width: 100%;
	}
	
	.mall-thumbnails .tbsm #thumbs img {
		width: 60px !important;
		height: 48px !important;
	}
	
	.mall-thumbnails .tbsl,
	.mall-thumbnails .tbsr {
		width: 18px;
		height: 48px;
	}
	
	.mall-thumbnails .tbsl img,
	.mall-thumbnails .tbsr img {
		width: 18px;
		height: 48px;
	}
	
	.mall-thumbnails .tbsm #thumbs {
		height: 48px !important;
	}
}

