* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html{
	-webkit-text-size-adjust:100% !important;
	text-size-adjust:100% !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body{
	font-size: 14px !important;
	background: #f5f5f5;
	color: #333;
	line-height: 1.5;
}
.col-sm-9 p{margin:0}
img {max-width: 100%;}

/* 商品头部区域 */
.product-header {
	background: #fff;
	padding: 12px;
	margin-bottom: 8px;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 价格区域 */
.price-section {
	margin: 10px 0;
}
.current-price {
	color: #ff5000;
	font-size: 24px;
	font-weight: bold;
}
.current-price:before {
	content: "¥";
	font-size: 18px;
}
.original-price {
	color: #999;
	font-size: 14px;
	text-decoration: line-through;
	margin-left: 8px;
}
.sales-count {
	color: #999;
	font-size: 14px;
	margin-left: 12px;
}

/* 商品标题 */
.product-title {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 8px;
	line-height: 1.4;
}

/* 商品分类 */
.product-category {
	color: #999;
	font-size: 12px;
	margin-bottom: 8px;
}
.product-category a {
	color: #666;
}

/* 商品状态 */
.product-status {
	color: #f44;
	font-size: 12px;
	margin-bottom: 8px;
}

/* 扶贫编号 */
.poverty-number {
	color: #666;
	font-size: 12px;
	margin-bottom: 8px;
}

/* 店铺信息 */
.shop-info {
	display: flex;
	align-items: center;
	padding: 8px 0;
	border-top: 1px solid #f5f5f5;
	margin-top: 8px;
}
.shop-name {
	color: #333;
	font-size: 14px;
	margin-left: 8px;
}

/* 图片展示区域 */
.image-gallery {
	background: #fff;
	padding: 12px;
	margin-bottom: 8px;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.main-image {
	width: 100%;
	height: 300px;
	/* object-fit: contain; */
	background: #f5f5f5;
	border-radius: 4px;
}
.thumbnail-list {
	display: flex;
	margin-top: 10px;
	overflow-x: auto;
}
.thumbnail {
	width: 60px;
	height: 60px;
	margin-right: 8px;
	border: 1px solid #eee;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}
.thumbnail.active  {
	border-color: #ff5000;
}

/* 商品详情 */
.product-detail {
	background: #fff;
	padding: 12px;
	margin-bottom: 8px;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.detail-title {
	font-size: 16px;
	font-weight: bold;
	padding: 8px 0;
	border-bottom: 1px solid #f5f5f5;
	margin-bottom: 12px;
}

/* 底部操作栏 */
.action-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	display: flex;
	height: 50px;
	box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
	z-index: 100;
	max-width: 900px;
	margin: 0 auto;
}
.action-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: 12px;
	color: #666;
}
.action-btn img {
	width: 22px;
	height: 22px;
	margin-bottom: 2px;
}
.buy-btn {
	background: linear-gradient(to right, #ff9000, #ff5000);
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 2;
}
.add-to-cart {
	background: linear-gradient(to right, #ffb421, #ff8329);
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 2;
}

/* 规格选择弹窗 */
.spec-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 12px 12px 0 0;
	padding: 15px;
	z-index: 101;
	max-width: 900px;
	margin: 0 auto;
	transform: translateY(100%);
	transition: transform 0.3s ease;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.spec-popup.show  {
	transform: translateY(0);
}
.popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}
.popup-close {
	font-size: 20px;
	color: #999;
}
.popup-product {
	display: flex;
	margin-bottom: 15px;
}
.popup-image {
	width: 80px;
	height: 80px;
	border-radius: 4px;
	margin-right: 10px;
	object-fit: cover;
}
.popup-info {
	flex: 1;
}
.popup-price {
	color: #ff5000;
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 5px;
}
.popup-stock {
	color: #999;
	font-size: 12px;
}
.spec-group {
	margin-bottom: 15px;
}
.spec-title {
	font-size: 14px;
	margin-bottom: 10px;
	color: #666;
}
.spec-options {
	display: flex;
	flex-wrap: wrap;
}
.spec-option {
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-right: 10px;
	margin-bottom: 10px;
	font-size: 12px;
}
.spec-option.selected  {
	border-color: #ff5000;
	color: #ff5000;
	background: #fff5f0;
}
.quantity-selector {
	display: flex;
	align-items: center;
	margin: 15px 0;
}
.quantity-btn {
	width: 30px;
	height: 30px;
	border: 1px solid #ddd;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 16px;
}
.quantity-input {
	width: 50px;
	height: 30px;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	text-align: center;
}
.popup-footer {
	display: flex;
	margin-top: 15px;
}
.confirm-btn {
	flex: 1;
	height: 44px;
	background: #ff5000;
	color: #fff;
	border-radius: 4px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 16px;
	font-weight: bold;
}

/* 遮罩层 */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 100;
	display: none;
}
/* 分享按钮样式 */
.share-btn {
	position: fixed;
	right: 15px;
	bottom: 70px;
	width: 50px;
	height: 50px;
	background: #ff5000;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 2px 10px rgba(255, 80, 0, 0.3);
	z-index: 99;
}
.share-btn img {
	width: 60%;
	height: 60%;
}

/* 分享图片生成容器 */
.share-image-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1000;
	display: none;
	/* 新增以下代码 */
	display: grid;
	place-items: center; /* 单行实现水平和垂直居中 */
}
.share-image-wrapper {
	width: 100%;
	max-width: 400px;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}
.share-image-preview {
	width: 100%;
	display: block;
}
.share-image-actions {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	background: #fff;
}
.share-action-btn {
	flex: 1;
	text-align: center;
	padding: 10px;
	color: #333;
	font-size: 14px;
}
.share-action-btn.save  {
	color: #ff5000;
	font-weight: bold;
}
.share-action-btn:first-child {
	border-right: 1px solid #eee;
}
.share-image-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1000;
	display: none;
}