.com-right-slide {
  position: fixed;
  right: 10px;
  z-index: 999;
  background: transparent;
  width: 60px;
  top: 35.3% !important;
}
.com-right-slide .right-item {
  width: 100%;
  cursor: pointer;
  position: relative;
  color: #222338;
}
.com-right-slide .right-item .hover {
  display: none;
}
.com-right-slide .right-item .n-hover {
  display: block;
}
.com-right-slide .right-item-1 {
  margin-bottom: 15px;
  top: 0;
  transform: none;
  padding-top: 0;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
  border-radius: 55px;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
}
.com-right-slide .right-item-1 .txt {
  width: 65%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222338;
  font-size: 14px;
  line-height: 1.2;
}
.com-right-slide .right-item-1 > img {
  width: 42px;
  margin: 0 auto;
  display: block;
  margin-bottom: 4px;
  transition: all 0.35s ease;
}
.com-right-slide .right-item-1:hover {
  box-shadow: 0 0 10px 2px rgba(47, 118, 246, 0.5);
}
.com-right-slide .right-item-1:hover .txt {
  color: #2f76f6;
}
.com-right-slide .right-item-1:hover > img {
  transform: scale(1.2);
}
.com-right-slide .right-item-1-tip {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(-70px, -50%);
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: fit-content;
  height: 32px;
  padding: 0 12px;
  background: #ffffff;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 10;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.com-right-slide .right-item-1-tip.active {
  opacity: 1;
  visibility: visible;
}
.com-right-slide .right-item-1-tip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateX(100%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #ffffff;
  filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.05));
}
.com-right-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.com-right-slide .right-item-2 {
  width: 100%;
  background: #ffffff;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
  border-radius: 55px;
  box-sizing: border-box;
  position: relative;
  z-index: 20;
}
.com-right-slide .right-item-2:hover {
  box-shadow: 0 0 10px 2px rgba(47, 118, 246, 0.5);
}
.com-right-slide .right-item-2 .item-2 {
  align-items: center;
  width: 100%;
  height: 60px;
  font-size: 14px;
  padding-top: 15px;
  position: relative;
  z-index: 88;
  box-sizing: content-box;
  height:auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.com-right-slide .right-item-2 .item-2.item-grh {
  border-bottom-color: transparent;
  border-bottom-color: transparent;
  border-top: 1px solid #eee;
  padding-bottom: 10px;
}
.com-right-slide .shfw-box > div:first-child .content {
  cursor:initial;
}
.com-right-slide .right-item-2 .item-2.item-grh .txt {
  width: 90%;
  margin: 8px auto;
  text-align: center;
}
.com-right-slide .right-item-2 .item-2:hover .txt {
  color: #2f76f6;
}
.com-right-slide .right-item-2 .item-2:hover .hover {
  display: block;
}
.com-right-slide .right-item-2 .item-2:hover .n-hover {
  display: none;
}
.com-right-slide .right-item-2 .item-2 > img {
  width: 28px;
}
.com-right-slide .right-item-2 .item-2 .txt {
  width: 60%;
  margin: 8px auto;
  text-align: center;
  line-height: 1.2;
}
.com-right-slide .slide-box {
  width: 187px;
  padding: 22px 16px;
  position: absolute;
  box-sizing: border-box;
  background: #ffffff;
  box-shadow: 2px 0px 33px 0px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  top: 0;
  left: 0;
  display: none;
  transform: translateX(calc(-100% - 7px));
  transition: transform 0.5s ease;
  z-index: 2;
  cursor: initial;
}
.com-right-slide .slide-box.active {
  display: flex;
}
.com-right-slide .sqzx-box {
  align-items: center;
}
.com-right-slide .sqzx-box .qr-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
}
.com-right-slide .sqzx-box .dis {
  margin: 12px auto;
  font-weight: 400;
  font-size: 14px;
  color: #575d6c;
  text-align: center;
  line-height: 1.5;
  width: 90%;
}
.com-right-slide .sqzx-box .phone {
  font-weight: 500;
  font-size: 14px;
  color: #2f76f6;
  text-decoration: none;
}
.com-right-slide .shfw-box {
  top:0;
  display: none;
  transform: translate(-105%, -50%);
}
.com-right-slide .shfw-box > div {
  align-items: flex-start;
  padding-bottom: 20px;
}
.com-right-slide .shfw-box > div:hover .content > span:first-child {
  color: #2f76f6;
}
.com-right-slide .shfw-box > div:last-child {
  padding: 20px 0 0px;
  border-top: 1px solid #edf1f4;
}
.com-right-slide .shfw-box > div > img {
  width: 22px;
  object-fit: cover;
  display: block;
  margin-right: 5px;
}
.com-right-slide .shfw-box > div .content {
  font-size: 14px;
  color: #575d6c;
  cursor: pointer;
}
.com-right-slide .shfw-box > div .content > span:first-child {
  font-weight: 500;
  color: #222338;
  line-height: calc(16 / 14);
  margin-bottom: 5px;
}
.com-right-slide .shfw-box.active {
  display: block;
  transform: translate(-105%, 50%)!important;
}
.com-right-slide .grh-box {
  top: initial;
  bottom: 0;
  font-weight: 500;
  font-size: 14px;
  color: #222338;
  text-align: center;
}
.com-right-slide .grh-box .qr-img {
  width: 106px;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
}
.com-right-slide .grh-box .dis {
  margin-top: 0px;
}
.com-right-slide .right-item-3 {
  margin-top: 20px;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
}
.com-right-slide .right-item-3 .icon_top {
  width: 14px;
  object-fit: cover;
}
.com-right-slide .right-item-3:hover {
  background: #2f76f6;
}
.com-right-slide .right-item-3:hover .hover {
  display: block;
}
.com-right-slide .right-item-3:hover .n-hover {
  display: none;
}
.com-right-slide .shfw-box > div:first-child:hover .content > span:first-child {
  color: #222338;
}


.com-right-slide .right-item-2 .item-2 {
  height: auto;
}

.com-right-slide .right-item-2 .item-2.item-grh {
  border-bottom-color: transparent;
  border-top: 1px solid #eee;
  padding-bottom: 10px;
}


/* 在线咨询侧边栏 - 与参考图一致：药丸形、浅蓝渐变、白/蓝配色 */
.kd-consult-wrap {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  font-family: inherit;
}

.kd-consult-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  background: linear-gradient(to right, #e8f4fd 0%, #f0f8ff 30%, #fff 100%);
  border-radius: 24px 0 0 24px;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.06);
  overflow: visible;
  transition: transform 0.25s ease;
}

.kd-consult-wrap.collapsed .kd-consult-sidebar {
  transform: translateX(100%);
}

.kd-consult-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 0;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  border: none;
  background: #fff;
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  box-sizing: border-box;
  border-bottom: 1px solid #f0f0f0;
}

.kd-consult-sidebar > .kd-consult-item:first-child {
  border-radius: 24px 0 0 0;
}

.kd-consult-sidebar > .kd-consult-item:nth-last-child(2) {
  border-bottom: none;
}

.kd-consult-item:hover,
.kd-consult-item.active {
  background: #e6f4ff;
  color: #1677ff;
}

.kd-consult-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.kd-icon-wechat {
  background-image: url("../img/icon-consult-wechat.svg");
}

.kd-icon-tel {
  background-image: url("../img/icon-consult-headset.svg");
}

.kd-consult-item:hover .kd-icon-tel,
.kd-consult-item.active .kd-icon-tel {
  background-image: url("../img/icon-consult-headset.svg");
  filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(2000%) hue-rotate(210deg);
}

.kd-icon-person {
  background-image: url("../img/icon-consult-person.svg");
}

.kd-consult-item:hover .kd-icon-person,
.kd-consult-item.active .kd-icon-person {
  background-image: url("../img/icon-consult-person.svg");
  filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(2000%) hue-rotate(210deg);
}

.kd-consult-label {
  font-size: 12px;
  color: inherit;
  line-height: 1.3;
  text-align: center;
}

/* 左侧弹出浮窗 - 悬停/激活时显示，与金蝶一致 */
.kd-consult-popover {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(-4px, -50%);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.kd-consult-item-wechat:hover .kd-consult-popover,
.kd-consult-item-advisor:hover .kd-consult-popover,
.kd-consult-item.active .kd-consult-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-8px, -50%);
}

.kd-popover-inner {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 16px;
  min-width: 200px;
  position: relative;
  margin-left: 8px;
}

.kd-popover-inner::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: #fff;
}

.kd-popover-qr {
  margin-bottom: 10px;
  position: relative;
}

.kd-popover-qr img {
  width: 140px;
  height: 140px;
  display: block;
  border-radius: 6px;
}

.kd-popover-qr-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: url("../img/icon-wechat-qr-center.svg") no-repeat center / contain;
  pointer-events: none;
}

.kd-popover-line1,
.kd-popover-line2 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.kd-popover-line2 {
  margin-bottom: 10px;
  color: #666;
}

.kd-popover-link {
  display: inline-block;
  font-size: 13px;
  color: #1677ff;
  text-decoration: none;
  transition: color 0.2s;
}

.kd-popover-link:hover {
  color: #4096ff;
  text-decoration: underline;
}

/* 底部收起按钮 - 贴合药丸底边圆角 */
.kd-consult-toggle {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border: none;
  border-radius: 0 0 0 24px;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.2s;
}

.kd-consult-toggle:hover {
  background: #000;
}

.kd-toggle-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-right: 2px;
  transition: transform 0.25s;
}

.kd-consult-wrap.collapsed .kd-toggle-arrow {
  transform: rotate(-135deg);
}

/* 收起后显示的展开条（可点击） */
.kd-consult-tab {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  font-size: 14px;
  color: #333;
  padding: 12px 8px;
  background: #fff;
  border-radius: 0 8px 8px 0;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 9998;
}

.kd-consult-wrap.collapsed .kd-consult-tab {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kd-consult-tab:hover {
  background: #f5f5f5;
}

@media (max-width: 768px) {
  .kd-consult-sidebar {
    width: 60px;
    border-radius: 20px 0 0 20px;
  }

  .kd-consult-item {
    padding: 10px 0;
  }

  .kd-consult-sidebar > .kd-consult-item:first-child {
    border-radius: 20px 0 0 0;
  }

  .kd-consult-toggle {
    border-radius: 0 0 0 20px;
  }

  .kd-consult-label {
    font-size: 11px;
  }

  .kd-popover-qr img {
    width: 120px;
    height: 120px;
  }
}
