/* 底:群聊全屏壳 */

.footer-chat-shell {
  position: fixed;
  /* 全屏定位（未用 inset） */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 100000; /* 高于底部导航、弹窗 */
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.footer-chat-shell.is-open {
  display: flex;
}

.footer-chat-shell__header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: rgba(248, 248, 248, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.footer-chat-shell__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-right: 10px;
}

.footer-chat-shell__btns {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.footer-chat-shell__btns > * + * {
  margin-left: 8px;
}

.footer-chat-shell__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.footer-chat-shell__btn:active {
  transform: scale(0.95);
}

.footer-chat-shell__content {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.footer-chat-shell__iframe {
  position: absolute;
  /* 全屏定位（未用 inset） */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  display: none;
}

.footer-chat-shell__iframe.is-active {
  display: block;
}

.footer-chat-shell__loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: none;
  color: #666;
  font-size: 13px;
}

.footer-chat-shell__loading.is-show {
  display: block;
}

.footer-chat-shell__switcher {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  overflow: auto;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  -webkit-overscroll-behavior: contain;
  display: none;
}

.footer-chat-shell__switcher.is-open {
  display: block;
}

.footer-chat-shell__switcher-item {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.footer-chat-shell__switcher-item + .footer-chat-shell__switcher-item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-chat-shell__switcher-item.is-active {
  color: rgba(7, 193, 96, 1);
  background: rgba(7, 193, 96, 0.08);
}

@media (max-width: 768px) {
  .footer-chat-shell__title {
    font-size: 12px;
  }
  .footer-chat-shell__btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}