/* ===== 右下角动态浮动挂件（宠物式吸引 + 自动弹出报价/资料入口 + 在线留言） ===== */
.rw-fab-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* 可爱会动的按钮：上下摆动 + 外圈旋转虚线 */
.rw-fab {
  position: relative;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, #1a5fb4 0%, #2f7fe0 100%);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(26, 95, 180, .5);
  animation: rw-bob 1.8s ease-in-out infinite;
  transition: transform .2s ease;
}
.rw-fab:hover { transform: scale(1.08); }
@keyframes rw-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-9px) rotate(5deg); }
}
.rw-fab__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(47, 127, 224, .55);
  animation: rw-spin 7s linear infinite;
  pointer-events: none;
}
@keyframes rw-spin { to { transform: rotate(360deg); } }

/* 初次提示气泡 */
.rw-fab__tip {
  position: absolute;
  right: 66px;
  bottom: 16px;
  background: #fff;
  color: #1a5fb4;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  white-space: nowrap;
  animation: rw-tip 2.4s ease-in-out infinite;
}
.rw-fab__tip::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 12px;
  border: 6px solid transparent;
  border-left-color: #fff;
}
@keyframes rw-tip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* 弹出面板 */
.rw-pop {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 290px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .25);
  padding: 18px 18px 16px;
  transform-origin: bottom right;
  animation: rw-pop .35s cubic-bezier(.2, .8, .3, 1.3);
}
.rw-pop[hidden] { display: none; }
@keyframes rw-pop {
  from { opacity: 0; transform: translateY(12px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.rw-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.rw-pop__title {
  font-size: 16px;
  font-weight: 800;
  color: #1a2b45;
  margin: 0;
}
.rw-pop__close {
  border: none;
  background: #f0f3f8;
  color: #66768c;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.rw-pop__close:hover { background: #e2e8f2; }
.rw-pop__desc {
  font-size: 12.5px;
  color: #66768c;
  margin: 0 0 12px;
  line-height: 1.5;
}
.rw-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 9px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
  color: inherit;
}
.rw-btn:hover { transform: translateX(3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.rw-btn:last-child { margin-bottom: 0; }
.rw-btn__ico { font-size: 18px; flex-shrink: 0; }
.rw-btn__txt small { display: block; font-weight: 400; font-size: 11px; color: inherit; opacity: .8; margin-top: 1px; }
.rw-btn--download { background: #eaf3ff; color: #1a5fb4; }
.rw-btn--dd      { background: #fff1e8; color: #d9621a; }
.rw-btn--pfa     { background: #eafaf2; color: #1a9c63; }
.rw-btn--msg     { background: #fdeaf3; color: #c2185b; }
.rw-pop__foot {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: #9aa7b8;
}

/* ===== 面板内：新品最新动态 ===== */
.rw-news {
  margin: 2px 0 12px;
  padding-top: 12px;
  border-top: 1px dashed #e3e9f2;
}
.rw-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.rw-news__t {
  font-size: 13px;
  font-weight: 700;
  color: #1a5fb4;
}
.rw-news__more {
  font-size: 11.5px;
  color: #2f7fe0;
  text-decoration: none;
  font-weight: 600;
}
.rw-news__more:hover { text-decoration: underline; }
.rw-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rw-news__item {
  display: block;
  text-decoration: none;
  color: #2a3a55;
  font-size: 12.5px;
  line-height: 1.35;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f6f9fe;
  margin-bottom: 7px;
  transition: background .15s, transform .15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rw-news__item:hover { background: #eaf3ff; transform: translateX(2px); }
.rw-news__item:last-child { margin-bottom: 0; }
.rw-news__item small {
  display: block;
  font-size: 10.5px;
  color: #9aa7b8;
  margin-top: 1px;
}
.rw-news__loading,
.rw-news__empty {
  font-size: 12px;
  color: #9aa7b8;
  padding: 4px 2px;
}

/* ===== 在线留言弹窗 ===== */
.rw-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 28, 50, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: rw-fade .2s ease;
}
.rw-modal[hidden] { display: none; }
@keyframes rw-fade { from { opacity: 0; } to { opacity: 1; } }

.rw-modal__box {
  position: relative;
  width: 360px;
  max-width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  padding: 24px 22px 20px;
  animation: rw-pop .3s cubic-bezier(.2, .8, .3, 1.3);
}
.rw-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #f0f3f8;
  color: #66768c;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.rw-modal__close:hover { background: #e2e8f2; }
.rw-modal__title {
  font-size: 19px;
  font-weight: 800;
  color: #1a2b45;
  margin: 0 0 4px;
}
.rw-modal__desc {
  font-size: 12.5px;
  color: #66768c;
  margin: 0 0 16px;
  line-height: 1.5;
}
.rw-form .rw-field { margin-bottom: 13px; }
.rw-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #33445e;
  margin-bottom: 5px;
}
.rw-req { color: #e0245e; }
.rw-form input,
.rw-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #dde3ec;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #1a2b45;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.rw-form input:focus,
.rw-form textarea:focus { border-color: #2f7fe0; }
.rw-form textarea { resize: vertical; }
.rw-submit {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a5fb4, #2f7fe0);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  margin-top: 4px;
}
.rw-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47, 127, 224, .4); }
.rw-submit:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }
.rw-form__hint {
  font-size: 12px;
  margin: 10px 0 0;
  min-height: 16px;
  text-align: center;
}
.rw-form__hint.ok { color: #1a9c63; }
.rw-form__hint.err { color: #e0245e; }
.rw-success { text-align: center; padding: 10px 0 2px; }
.rw-success__ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eafaf2;
  color: #1a9c63;
  font-size: 30px;
  line-height: 54px;
  margin: 0 auto 12px;
}
.rw-success p { color: #33445e; font-size: 14px; margin: 0; }

/* 移动端微调 */
@media (max-width: 480px) {
  .rw-fab-wrap { right: 14px; bottom: 14px; }
  .rw-fab { width: 52px; height: 52px; font-size: 23px; }
  .rw-pop { width: 260px; }
  .rw-fab__tip { font-size: 11px; right: 60px; }
  .rw-modal__box { width: 100%; }
}

/* ===== 真人顾问头像版（覆盖 emoji 版）===== */
/* 按钮即头像：圆形裁切铺满，保留外圈虚线光环 */
.rw-fab {
  font-size: 0;
  padding: 0;
  overflow: visible;
  animation: rw-bob-face 2.2s ease-in-out infinite; /* 人脸不倾斜，仅上下轻浮 */
}
.rw-fab__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, .9);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #1a5fb4 0%, #2f7fe0 100%);
}
.rw-fab:hover { transform: scale(1.15); }
@keyframes rw-bob-face {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.rw-fab__ring {
  border-color: rgba(255, 255, 255, .75);
  box-shadow: 0 0 0 3px rgba(47, 127, 224, .25);
}

/* 面板头部：大号顾问头像 + 问候 */
.rw-pop__person {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.rw-pop__who { min-width: 0; }
.rw-pop__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eaf3ff;
  box-shadow: 0 4px 12px rgba(26, 95, 180, .25);
  cursor: zoom-in;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.rw-pop__avatar:hover { transform: scale(1.08); }
.rw-pop__role {
  font-size: 11px;
  color: #9aa7b8;
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rw-pop .rw-pop__head { gap: 8px; }

/* 放大灯箱（点击面板头像打开，点击任意处关闭） */
.rw-zoom {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(10, 20, 38, .78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: rw-fade .22s ease;
  cursor: zoom-out;
}
.rw-zoom[hidden] { display: none; }
.rw-zoom__img {
  width: 320px;
  max-width: 80vw;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
  border: 3px solid rgba(255, 255, 255, .92);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .55);
  animation: rw-zoomin .3s cubic-bezier(.2, .8, .3, 1.25);
}
@keyframes rw-zoomin {
  from { opacity: 0; transform: scale(.72); }
  to   { opacity: 1; transform: scale(1); }
}
.rw-zoom__cap {
  margin: 14px 0 0;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.rw-zoom__hint {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 400;
  opacity: .75;
}

@media (max-width: 480px) {
  .rw-zoom__img { width: 240px; }
}
