/* 商品详情页 左侧“最近感兴趣”浮窗（1:1 复刻京东 item.jd.com） */
:root {
  --continuous-shopping-border: #eef0f3;
  --continuous-shopping-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.continuous-panel {
  position: fixed;
  left: 0;
  top: 150px;
  bottom: 20px;
  width: 112px;
  display: flex;
  flex-direction: column;
  border-radius: 0 8px 8px 0;
  background-color: #fff;
  padding: 16px 12px;
  box-sizing: border-box;
  box-shadow: var(--continuous-shopping-shadow);
  transform: translateX(0);
  transition: transform .3s, opacity .3s, visibility .3s;
  overflow: hidden;
  z-index: 99;
}
.continuous-panel--collapsed {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-112px);
  pointer-events: none;
}

.continuous-title {
  font-size: 16px;
  font-weight: 500;
  color: #0c0c24;
  text-align: center;
  line-height: 21px;
}

.continuous-scroll-view {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 16px;
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.continuous-scroll-view::-webkit-scrollbar { display: none; }

.continuous-product-card {
  width: 88px;
  height: 144px;
  cursor: pointer;
  display: block;
}
.continuous-product-card + .continuous-product-card { margin-top: 12px; }
.continuous-product-card:hover .continuous-product--image { border-color: #ff0f23; }
.continuous-product-card:hover .continuous-product--title { color: #ff0f23; }

.continuous-product--image {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  box-sizing: border-box;
}
.continuous-product--image img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  display: block;
}

/* 最近收藏角标：命中当前用户收藏时显示在图片底部（无框、白色粗体大字，1:1 复刻参考） */
.continuous-product--fav {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  padding: 0;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  letter-spacing: 0;
  box-sizing: border-box;
  text-shadow: 0 0 1px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6);
}

.continuous-product--title {
  display: -webkit-box;
  width: 100%;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 8px;
}

.continuous-product--price {
  color: #ff0f23;
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
  margin-top: 8px;
}

.continuous-hot-zone {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 48px;
  z-index: 11;
  cursor: pointer;
}
.continuous-hot-zone--top {
  top: 53px;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0));
}
.continuous-hot-zone--bottom {
  bottom: 16px;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
}

/* 收起态：「逛更多」小药丸；展开态：京东弧形滑块贴在面板右缘 */
.continuous-toggle {
  position: fixed;
  top: calc(50vh + 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transform: translateY(-50%);
  height: 30px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  z-index: 99;
  transition: transform .3s, width .3s, height .3s, padding .3s, border-radius .3s, box-shadow .3s;
  cursor: pointer;
  white-space: nowrap;
}
.continuous-toggle--text {
  font-size: 12px;
  color: #666;
  line-height: 1;
}
.continuous-toggle--expanded {
  transform: translate(112px, -50%);
  width: 20px;
  height: 72px;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  background-image: url("../images/continuous-toggle.png");
  background-size: auto 90px;
  background-position: -10px -5px;
  background-repeat: no-repeat;
  box-shadow: none;
}
.continuous-toggle--expanded .continuous-toggle--text { display: none; }
.continuous-toggle--arrow {
  width: 12px;
  height: 12px;
  background-image: url("../images/continuous-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(180deg);
  transition: .3s;
  flex: none;
}
.continuous-toggle--arrow-expanded {
  transform: rotate(0deg);
}
.continuous-toggle--expanded .continuous-toggle--arrow {
  transform: rotate(180deg) translate(8px, 0);
}
.continuous-toggle--expanded .continuous-toggle--arrow-expanded {
  transform: translate(0, 0);
}

.continuous-empty {
  padding: 8px;
  font-size: 12px;
  color: #999;
  text-align: center;
}
