/* 对比栏基础样式 */
.compare-bar-container {
    position: fixed;
    bottom: 0px;
    right: 10px;
    /* height: 120px; */
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 20%);
    z-index: 9999;
    display: none; /* 默认隐藏 */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.compare-bar-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    
}

.compare-tab-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.compare-tab-item.active {
    border: 0px solid #ff5b00;
    border-bottom: none;
    margin-bottom: -1px;
    font-weight: bold;
}

.compare-hide-btn {
    margin-left: auto;
    padding: 10px 20px;
    cursor: pointer;
    color: #0066cc;
    font-size: 14px;
}

.compare-bar-content {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    gap: 0;
}

.compare-item-slot {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    border-right: 1px dashed #ccc;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.compare-item-slot:last-child {
    border-right: none;
}

.compare-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 5px;
}

.compare-item-info {
    flex: 1;
    overflow: hidden;
    height:100px;
}

.compare-item-name {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-item-price {
    font-size: 16px;
    color: #ff5b00;
    margin-top: 5px;
}

.compare-item-del {
    position: absolute;
    top: -15px;
    right: 5px;
    width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    color: #ff5b00;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    border: 1px #ff5b00 solid;
}

.compare-item-del:hover {
    background: #ff5b00;
    color: #fff;
}

.compare-slot-empty {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 16px;
}

.compare-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.compare-btn {
    background: #ff5b00;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.compare-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.compare-clear-btn {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.compare-clear-btn:hover {
    color: #ff5b00;
}



/* 外层容器 */
.compare-container {
	background-color: #fff;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* 标题 */
.compare-header {
	padding: 10px;
	border-bottom: 1px solid #eee;
}
.compare-header-content {
	display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #515151;
    font-size: 16px;
	font-weight: bold;
}

/* 表格主体 */
.compare-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
}

.compare-table tr td {
	
	padding: 10px;
	text-align: center;
	vertical-align: middle;
}

.compare-table tr td:first-child {
	text-align: center;
	color: #666;
	width: 120px;
	/* left: 10; */
}

/* 商品列 */
.compare-goods-col {
	position: relative;
	width: 240px;
	text-align: center !important;
}
.compare-page-product-col-name {
	text-align: center !important;
  	vertical-align: middle;
}

.compare-page-product-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #eee;
	color: #999;
	text-align: center;
	line-height: 24px;
	font-size: 16px;
	cursor: pointer;
}
.compare-page-product-close:hover  {
	background-color: #ff5b00;
	color:#fff;
}

.compare-page-product-img {
	width: 100%;
	height: 100%;
	margin: 0 auto 0px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fafafa;
	border-radius: 10px;
}

.compare-page-product-img img {
	width: 100%;
	height: 100%;
	border-radius: 10px;
}

.compare-page-product-name {
	font-size: 14px;
	color: #ff5b00;
	line-height: 1.5;
	margin-bottom: 10px;
	text-align: left;
	display: inline-block !important; /* 宽度自适应内容长短 */
}


.compare-page-product-price {
	font-size: 18px;
	color: #ff5b00;
	font-weight: bold;
	text-align: center;
}

.compare-page-goods-brand {
	font-size: 14px;
	color: #333;
	line-height: 1.6;
	text-align: center;
	/* margin-top: 10px; */
}


/* 按钮组 */
.btn-group {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 15px 0px;
}

.btn1 {
	height: 30px;
	width: auto;
	padding: 0px 15px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
}

.btn-collect1 {
	background-color: #ff5b00d6;
	color: #fff;
}

.btn-cart1 {
	background-color: #ff5b00d6;
	color: #fff;
}

.btn1:hover {
    background: #ff5b00;
}

/* 空对比项 */
.empty-col {
	color: #ccc;
	font-size: 24px;
	text-align: center;
	line-height: 200px;
	
}

/*自营、旗舰、专营角标*/
.shop-type1{
 	background: #ff5b00;
 	color: #fff;
 	padding: 0px 5px;
 	border-radius: 3px;
 	font-size: 12px;
 	height: 20px;
 	width: auto;
 	display: inline-block;
 	margin-right: 3px;
 	line-height: 20px;
 }
.shop-type1::after {
  	content: "自营";
}
.shop-type2{
	background: #107bc7;
	color: #fff;
	padding: 0px 5px;
	border-radius: 3px;
	font-size: 12px;
	height: 20px;
	width: auto;
	display: inline-block;
	margin-right: 3px;
	line-height: 20px;
}
.shop-type2::after {
	content: "旗舰";
}
.shop-type4{
	background: #666666;
	color: #fff;
	padding: 0px 5px;
	border-radius: 3px;
	font-size: 12px;
	height: 20px;
	width: auto;
	display: inline-block;
	margin-right: 3px;
	line-height: 20px;
}
.shop-type4::after {
  	content: "专营";
}

.dp-level1{ display: inline-block; height:20px; margin: 0 auto;  text-align: center;}
.dp-level1 span{ display:inline-block; float:left; background:url(/static/imgs/dpbg.png) no-repeat -200px 3px; width:20px; height:20px; float:left;}
.compare-goods-fw-level{ display: inline-block; height:20px; text-align: center;}
.compare-goods-fw-level span{ display:inline-block; float:left; background:url(/static/imgs/dpbg.png) no-repeat -400px 3px; width:20px; height:20px; float:left;}

/* 商品评分样式 */
.sppj_top00{width: 120px; margin: 0px 30px; text-align: center; display: inline-block !important; /* 宽度自适应内容长短 */}
.sppj_top00 h1{ font-size:14px; color:#a4a4a4; line-height:30px; }
.sppj_top00 strong {color: #ff5b00;font: 700 20px/50px arial; margin: 0px 30px;}
.sppj_top00 h2{ text-align: center;display: inline-block !important; }

/* 好评、中评、差评  */
.evaluation{ float: left; padding: 5px;}

.evaluation li {
    display: flex;          /* 开启弹性布局 */
    align-items: center;    /* 子元素整体垂直居中（关键） */
    margin: 10px 0px;          /* 上下间距 */
    width: 90%;            /* 占满整行宽度 */
    line-height: 30px;
    color: #666; 
    overflow: hidden;
    
}
.evaluation li span{ 
	/* float: left;
	width: 100px; */
	/*flex: 0 0 30%;           固定占比20%，不拉伸不压缩 */
	flex: 1;  
    white-space: nowrap;    /* 文字不换行挤压 */
    line-height: 1;         /* 文字行高紧凑，利于居中对齐 */
}
.evaluation li progress{ 
	/* float: left;
	margin: 8px 0 0 20px;
	border-radius: 2px; */
	background-color: #eee; 
	/*flex: 1;                 自动占剩余80%宽度 */
	flex: 0 0 50%;
    height: 12px;           /* 进度条高度 */
    margin: auto 0;         /* 上下自动边距，辅助垂直居中 */
    -webkit-appearance: none;/* 清除浏览器默认样式 */
    appearance: none;       /* 清除默认样式 */
}
.evaluation li progress::-webkit-progress-bar {
	background-color: #d7d7d7;
}

.evaluation li progress::-webkit-progress-value {
	background-color: #ff5b00;
}
.compare-page-play-icon {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 40px;  /* 播放按钮大小 */
   height: 40px;
   background-color: rgba(0, 0, 0, 0.7);  /* 半透明黑色背景 */
   border-radius: 50%;                   /* 圆形 */
   display: flex;
   align-items: center;
   justify-content: center;
 }
.compare-page-play-icon::after {
   content: '';
   width: 0;
   height: 0;
   border-left: 20px solid white;  /* 白色三角形 */
   border-top: 12px solid transparent;
   border-bottom: 12px solid transparent;
   margin-left: 7px; /* 微调三角形位置 */
}
.shopHref {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #ADADAD;
}
 .shopHref:hover{
  	color:#ff5b00;
  }