body{
    
    background-color: #f5f5f5;
}

.sidebar-open {
  overflow: hidden;
}

/* 确保筛选侧边栏内容可以滚动 */
.filter-sidebar.active .filter-content {
  overflow-y: auto;
}
.container {
    width: calc(100% - 0.64rem);
    margin: auto;

    overflow: hidden;
    margin-top: 5px;
    top: 0;
    position: sticky;
    background: #FFFFFF;
  
  
}

/* 搜索栏 */
.search-bar {
  display: flex;
  padding: 5px 20px;
  background: #FFFFFF;
  border-radius: 15px;
  margin: 10px auto 0px auto;
}

.search-bar input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border:none;
  border-radius: 6px 0 0 6px;
  font-size: 15px;
  outline: none;
}
.sousuo{
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.search-bar button {
  width: 60px;
  float: right;
  color: white;
  margin: 0 auto;
  border: none;
  background: #FFFFFF;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 18px;
}

/* 筛选栏 */
.filters {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  
  margin: 10px auto 10px auto;
  background: #FFFFFF;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  border-radius: 15px;
  color: #555;
}




.filter-category {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.category-header:hover {
  background: #e9ecef;
}

.category-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  padding-bottom: 5px;
}

.category-expand {
  font-size: 12px;
  color: #5468FF;
  float: right;
  padding-bottom: 5px;
}

.category-content {
  display: none;
  padding: 12px 16px;
  background: white;
}

.category-content.expanded {
  display: block;
}

/* 限制显示3行 */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}




.filter-item {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.filter-item::after {
  content: "▼";
  font-size: 10px;
  color: #999;
  margin-left: 4px;
}

/* 区服 & 排序弹窗 - 底部弹出 */
.popup-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.popup-menu.active {
  transform: translateY(0);
}

.popup-title {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #eee;
}

.popup-options {
  padding: 0;
  list-style: none;
}

.popup-option {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.popup-option:hover {
  background: #f8f9fa;
}
.filter-sidebar.active {
  transform: translateX(0);
  overflow-y: auto; /* 激活时允许纵向滚动 */
}
/* 筛选弹窗 - 右侧滑出（关键修改）*/
.filter-sidebar {
  position: fixed;
  top: 0;
  right: 0;            /* 改为 right: 0 */
  width: 80%;
  height: 100%;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1); /* 阴影在左边 */
  z-index: 1001;
  transform: translateX(100%); /* 初始位置：屏幕右边外 */
  transition: transform 0.3s ease;
  border-radius: 0;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.filter-sidebar.active {
  transform: translateX(0); /* 滑入：移动到原位 */
}

.filter-header {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 10px;
}

.filter-group h4 {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.price-range {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.price-input {
  flex: 1;
  padding: 8px 12px;
  width:130px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.price-label {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-bottom: 8px;
}

.price-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

.price-tag {
  padding: 14px 5px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}

/*.price-tag:hover {*/
/*  background: #e6f0ff;*/
/*}*/

.search-box {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-box button {
  width: 30px;
  background: #FFFFFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tag-btn {
  padding: 6px 12px;
  background: #f8f9fa;
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  align-items:center;
  justify-content: center;
  font-size: 12px;
  width: 30%;
  height: 47px;
  cursor: pointer;
}
.yincang{
    display: none;
}

/*.tag-btn:hover {*/
/*  background: #e6f0ff;*/
/*}*/

.er-liActive{
    background: #e6f0ff;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: -20px;
  background: #ffffff;
}

.btn-reset {
  flex: 1;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.btn-confirm {
  flex: 1;
  padding: 12px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* 遮罩层 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  display: none;
}

.overlay.active {
  display: block;
}

/* 商品列表 */
.item-list {
  padding: 20px 0;
}

.item-card {
  padding: 16px 20px;
  margin: 0 20px;
  border-bottom: 1px solid #f0f0f0;
  background: white;
}

.item-card:last-child {
  border-bottom: none;
  margin-bottom: 20px;
}

.item-image {
  width: 100%;
  height: 240px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.shaixuan_neirong{
    color: #5468FF;
}
.xuanxiang{
    
    margin-bottom: 5px;
}
.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.item-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  flex: 1;
}

.item-price {
  font-size: 20px;
  font-weight: bold;
  color: #e63946;
  margin-left: 16px;
  white-space: nowrap;
}

.item-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shaixuan{
    color: #999999;
}
