.comm-str-list {
	position: relative
}

/* 未选中：不显示任何角标，保持卡片默认底色 */
.comm-str-list .btncc {
	position: absolute;
	right: 0;
	top: 0;
	width: 50px;
	height: 50px;
	background: none;
	background-size: 100%
}

/* 选中：才显示已选中的角标 */
.comm-str-list .btncc.on {
	background: url(/resource/images/polygon_2.png) no-repeat;
	background-size: 100%
}

.comm-str-list .btncc input {
	display: none
}

.xuanze_jiesuan {
	box-shadow: 0 -2px 8px 0 rgba(0, 0, 0, 0.2);
	display: none;
	background: #fff;
	bottom: 0;
	z-index: 9999
}

.xuanze_jiesuan span {
	display: block;
	height: 50px;
	line-height: 50px;
	color: #fff
}

.xuanze_jiesuan span i {
	font-style: normal;
	color: #1e9fff
}

.xuanze_jiesuan .layui-btn {
	border-radius: 0;
	height: 40px;
	line-height: 40px;
	margin: 5px;
	border-radius: 8px;
	padding: 0 10px;
	font-size: 15px
}

/* 已选商品：绿色背景块（无圆角，高度与右侧按钮一致）+ 查看按钮 */
.xuanze_jiesuan span.cart-selected-info {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	margin: 5px;
	padding: 0 8px 0 18px;
	background: #16a97a;
	border-radius: 8px;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 50px;
	vertical-align: top
}

.xuanze_jiesuan .cart-selected-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis
}

.xuanze_jiesuan span.cart-selected-info i {
	color: #fff;
	font-weight: 700
}

.xuanze_jiesuan .cart-selected-view {
	flex: 0 0 auto;
	height: 24px;
	padding: 0 12px;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: #16a97a;
	font-size: 12px;
	line-height: 24px;
	vertical-align: middle;
	cursor: pointer
}

.xuanze_jiesuan .cart-selected-view:hover {
	background: #eaf8f2
}

/* 「查看已选彩种」弹层 */
.cart-view-list {
	max-height: 320px;
	overflow: auto;
	padding: 8px 14px
}

.cart-view-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 0;
	border-bottom: 1px solid #f2f2f2;
	color: #333;
	font-size: 13px
}

.cart-view-row:last-child {
	border-bottom: 0
}

.cart-view-idx {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #eaf8f2;
	color: #16a97a;
	font-size: 11px;
	line-height: 20px;
	text-align: center
}

.cart-view-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap
}

.cart-view-del {
	flex: 0 0 auto;
	height: 24px;
	padding: 0 10px;
	border: 1px solid #e3e9f0;
	border-radius: 4px;
	background: #fff;
	color: #7b8a9c;
	font-size: 12px;
	line-height: 22px;
	cursor: pointer
}

.cart-view-del:hover {
	border-color: #e8603c;
	background: #fff6f3;
	color: #e8603c
}

.cart-view-foot {
	padding: 10px 14px 14px;
	border-top: 1px solid #f0f0f0;
	text-align: right
}

.cart-view-clear {
	height: 30px;
	padding: 0 16px;
	border: 1px solid #ffd0c4;
	border-radius: 4px;
	background: #fff6f3;
	color: #e8603c;
	font-size: 13px;
	line-height: 28px;
	cursor: pointer
}

.cart-view-clear:hover {
	border-color: #e8603c;
	background: #e8603c;
	color: #fff
}

.cart-view-empty {
	padding: 24px 0;
	color: #999;
	font-size: 13px;
	text-align: center
}

@media (max-width: 768px) {
	.xuanze_jiesuan {
		bottom: 50px !important;
	}
}

.p_f {
	position: fixed !important
}

.type-Navigation {
	margin-bottom: 6px;
}
.layui-laypage {
	margin: 0px 0px 20px 0px;
}

/* ===== 商品卡片美化（仅作用于本页 .purchase 列表） ===== */
.purchase .comm-str-list {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 18px 14px 16px;
	border: 1px solid #eef1f5;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	transition: box-shadow .2s, border-color .2s, transform .2s;
}

.purchase li:hover .comm-str-list {
	border-color: #d6e6f8;
	box-shadow: 0 6px 18px rgba(30, 159, 255, .14);
	transform: translateY(-2px);
}

/* 彩种名称（同时匹配 .layui-elip，兼容尚未重新编译的旧渲染） */
.purchase .comm-str-list .purchase-name,
.purchase .comm-str-list > .layui-elip {
	color: #696969;
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
}

/* 价格三栏（与上方彩种名称间距 10px） */
.purchase .purchase-price-grid {
	display: flex;
	gap: 8px;
	margin: 10px 0 0;
}

.purchase .purchase-price-option {
	flex: 1;
	min-width: 0;
	padding: 5px 2px;
	border: 1px solid #eef2f7;
	border-radius: 8px;
	background: #f8fafc;
}

.purchase .purchase-price-option span {
	display: block;
	color: #8a97a8;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
}

.purchase .purchase-price-option strong {
	display: block;
	margin-top: 2px;
	color: #33475e;
	font-size: 15px;
	font-weight: 400;
	line-height: 22px;
	white-space: nowrap;
}

/* 三档价格各用一种颜色：月付=蓝 / 季付=绿 / 年付=橙 */
.purchase .purchase-price-option:nth-child(1) {
	border-color: #d6ebff;
}

.purchase .purchase-price-option:nth-child(1) span {
	color: #6ba9dd;
}

.purchase .purchase-price-option:nth-child(1) strong {
	color: #1e9fff;
}

.purchase .purchase-price-option:nth-child(2) {
	border-color: #cbeee1;
}

.purchase .purchase-price-option:nth-child(2) span {
	color: #6cb79c;
}

.purchase .purchase-price-option:nth-child(2) strong {
	color: #16a97a;
}

.purchase .purchase-price-option.purchase-price-year {
	border-color: #ffe0bd;
}

.purchase .purchase-price-option.purchase-price-year span {
	color: #dda86b;
}

.purchase .purchase-price-option.purchase-price-year strong {
	color: #fa8919;
}

/* 加入购物车：价格表下方独占一行（与其余三个按钮同款白底描边） */
.purchase .comm-str-list .purchase-cart-add {
	display: block;
	width: 100%;
	height: 36px;
	margin-top: 10px;
	padding: 0;
	border: 1px solid #e3e9f0;
	border-radius: 6px;
	background: #fff;
	color: #272b31;
	font-size: 13px;
	line-height: 34px;
	text-align: center;
	cursor: pointer;
	transition: all .18s;
}

.purchase .comm-str-list .purchase-cart-add:hover {
	border-color: #1e9fff;
	background: #f2f9ff;
	color: #1e9fff;
}

.purchase .comm-str-list .purchase-cart-add.is-added {
	border-color: #cbeee1;
	background: #f2fbf7;
	color: #16a97a;
}

/* 底部按钮：规则 / 试用 / 租用 同排等宽，统一样式 */
.purchase .comm-str-list .history {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding: 8px 0 0;
}

.purchase .comm-str-list .history a,
.purchase .comm-str-list .history a:first-child,
.purchase .comm-str-list .history a:last-child {
	flex: 1;
	width: auto;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid #e3e9f0;
	border-radius: 6px;
	background: #fff;
	color: #272b31;
	font-size: 12px;
	line-height: 32px;
	text-align: center;
	transition: all .18s;
}

.purchase .comm-str-list .history a:hover {
	border-color: #1e9fff;
	background: #f2f9ff;
	color: #1e9fff;
}

.purchase .comm-str-list .history a i {
	vertical-align: -1px;
}

/* 清空按钮：橙色；去结算按钮去掉 layui 默认的按钮间距，两个按钮紧贴 */
.xuanze_jiesuan #cartClear {
	background: #fa8919;
	border-color: #fa8919;
	color: #fff
}

.xuanze_jiesuan #cartClear:hover {
	background: #e87c12;
	border-color: #e87c12
}

.xuanze_jiesuan #batchBuy {
	margin-left: 0
}

/* 结算栏吸底时给页脚留出空间，避免版权信息被遮挡 */
body.cart-bar-fixed .bg-one {
	padding-bottom: 50px
}

/* 小屏下结算栏两个按钮并排，等比缩小避免换行 */
@media (max-width: 768px) {
	.xuanze_jiesuan .layui-btn {
		font-size: 14px;
		padding: 0 10px;
	}

	/* 小屏左半栏太窄：绿块改为占满左半栏，文字超长省略，保证「查看」始终可见 */
	.xuanze_jiesuan span.cart-selected-info {
		display: flex;
		padding: 0 6px 0 12px;
		font-size: 12px;
	}

	.xuanze_jiesuan .cart-selected-view {
		height: 22px;
		padding: 0 8px;
		font-size: 11px;
		line-height: 22px;
	}

	/* 结算栏吸底时（bottom:50px + 高 50px），把右侧悬浮导航顶到它上方 */
	body.cart-bar-fixed .right_nav {
		bottom: 112px;
	}

	/* 小屏底部还有 50px 的 .bottom-nav，结算栏在其上方 50~100px，页脚需留出 100px */
	body.cart-bar-fixed .bg-one {
		padding-bottom: 100px
	}

	.purchase .comm-str-list .purchase-name {
		font-size: 15px;
	}

	.purchase .purchase-price-option span {
		font-size: 11px;
	}

	.purchase .purchase-price-option strong {
		font-size: 15px;
	}

	.purchase .comm-str-list .history a,
	.purchase .comm-str-list .history a:first-child,
	.purchase .comm-str-list .history a:last-child {
		font-size: 12px;
	}
}

/* ===== 搜索无结果 / 分类无彩种 的占位提示 =====
   样式见 style.css 里的 .lottery-empty（purchase 与 history 页共用）。 */
