





.shop-by-room-plp {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding-top: var(--padding-pc-top);
  padding-bottom: var(--padding-pc-bottom);
  padding-left: var(--padding-pc-left);
  padding-right: var(--padding-pc-right);
  background-color: var(--bg-color);
}

/* Header 样式 */
.shop-by-room-plp__header-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /* margin-bottom: 20px; */
}

.shop-by-room-plp__title {
  font-size: var(--title-pc-size);
  color: var(--title-color);
  font-weight: var(--title-weight);
  font-family: var(--sort-title-font);
  line-height: 1;
}

.shop-by-room-plp__view-all-pc a {
  text-decoration: none;
  color: #222;
  font-size: 14px;
  text-transform: uppercase;
}
.shop-by-room-plp__view-all-mb{
  display: none;
}

.shop-by-room-plp__desc {
  font-size: var(--desc-size);
  margin-top: var(--margin-pc-top);
  margin-bottom: var(--margin-pc-bottom);
  color: var(--desc-color);
  font-family: var(--sort-body-font);
}

/* 列表主容器 */
.shop-by-room-plp_list {
  display: flex;
  gap: 60px;
  margin-top: 30px;
}

/* 左侧 Tab 样式 (PC) */
.shop-by-room-plp_list_left {
  flex: 0 0 295px;
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
}

.shop-by-room-plp_list_left_item {
  padding: 30px 0 30px 0px;
  cursor: pointer;
  border-bottom: 1px solid #cccccc;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between; /* 为了移动端箭头布局 */
  align-items: center;
  position: relative;
  font-weight: 300;
  color: #666;
}


.shop-by-room-plp_list_left_item.isActive {
  font-weight: 500;
  color: #222;
}
.tab-content{
  display: flex;
  width: 100%;
  align-items: center;
}

/* 移动端加号图标 (默认隐藏) */
.tab-icon {
  display: none;
  width: 10px;
  height: 10px;
  position: relative;
}
.tab-icon::before {
  width: 10px;   
  height: 1px;  
}

.tab-icon::after {
  width: 1px;    
  height: 10px; 
}
.tab-icon::before,
.tab-icon::after {
  content: '';
  position: absolute;
  background-color: #000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s;
}

.tab-icon::before {
  width: 100%;
  height: 2px;
}

.tab-icon::after {
  width: 2px;
  height: 100%;
}
.pc-tab-icon {
  display: block;
  color: #000;
}

/* 激活状态：竖线消失，变成减号 */
.shop-by-room-plp_list_left_item.isActive .tab-icon::after {
  opacity: 0;
}

/* 右侧图片容器 (PC) */
.shop-by-room-plp_list_right {
  flex: 1;
}

.plp-image-item {
  display: none; /* 默认隐藏 */
  animation: fadeIn 0.5s ease;
}

.plp-image-item.isActive {
  display: block;
}

/* 移动端内容区域样式 (初始状态) */
.mobile-content-wrapper {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-out;
  padding: 20.5 0 15px 0px;
}

/* 移动端展开状态 */
.mobile-content-wrapper.is-open {
  display: block;
  max-height: 1000px; /* 足够大的值 */
  padding-top: 15px;
}

/* 移动端样式 */
@media (max-width: 768px) {
  .shop-by-room-plp {
    padding-top: var(--padding-mb-top);
    padding-bottom: var(--padding-mb-bottom);
    padding-left: var(--padding-mb-left);
    padding-right: var(--padding-mb-right);
  }

  .shop-by-room-plp__title {
    font-size: var(--title-mb-size);
  }
  .shop-by-room-plp__desc{
    margin: var(--margin-mb-top) 0 var(--margin-mb-bottom) 0;

  }

  /* 移动端改为单列布局 */
  .shop-by-room-plp_list {
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
  }

  /* 移动端 Tab 占满宽 */
  .shop-by-room-plp_list_left {
    flex: 1;
  }

  .shop-by-room-plp_list_left_item {
    display: block;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 20.5px 0;
  }
  .tab-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .pc-tab-icon {
    display: none;
  }

  /* 移动端显示加号图标 */
  .tab-icon {
    display: block;
  }

  /* 移动端隐藏右侧默认容器 */
  .shop-by-room-plp_list_right {
    display: none;
  }
  .shop-by-room-plp__view-all-pc{
    display: none;
  }
  .shop-by-room-plp__view-all-mb{
    display: block;
    padding: 0 88px;

  }
  .view-all-mb{
    border: 1px solid #333333;
    margin: 0 auto;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    /* padding: 6px 63px; */
  }
  .view-all-mb a{
    text-decoration: none;
    color: #222;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    line-height: 28px;
    padding: 6px 31.5px;
  }
  
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}