/* ===================================
   AI聊天组件样式 (合并 ai_page1.css + mobile_ai_page1.css)
   =================================== */
:root {
  --ai-primary-color: #21549b;
  /*--ai-primary-color: #c51618;*/
}

/* 桌面端样式 */
.ai-draggable-ele {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  font-family: Arial, serif;
}

.ai-draggable-icon {
  width: 130px;
  height: 104px;
  position: absolute;
  top: 50%;
  right: 55px;
  z-index: 1001;
  cursor: pointer;
  background-image: url("../images/ai/page1/ai-logo.png");
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: all;
}

.ai-chat-main {
  display: none;
  position: absolute;
  right: 130px;
  bottom: 10px;
  flex-direction: column;
  pointer-events: all;
  z-index: 1002;
}

.ai-chat-main.show {
  display: flex;
}

.ai-chat-main-img {
  background-image: url("../images/ai/page1/ai-header.png");
  background-repeat: no-repeat;
  margin-bottom: -24px;
  height: 146px;
  z-index: 1003;
  margin-left: 20px;
}

.ai-chat-window {
  width: 611px;
  height: 715px;
  background-color: #ffffff;
  border-radius: 32px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 22px 26px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.chat-header-img {
  background-image: url("../images/ai/page1/ai-header.png");
}

.chat-close-btn {
  width: 21px;
  height: 21px;
  color: #000000;
  background: url("../images/ai/ai-window-close.png");
  border: none;
  font-size: 21px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.chat-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-content {
  flex: 1;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.zhifubao-logo {
  position: absolute;
  width: 80px;
  height: 80px;
  top: calc(50% + 140px);
  right: 67px;
  z-index: 1001;
  background-image: url("../images/ai/zhifubao-logo.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: all;
}

/* 移动端样式 */
@media screen and (max-width: 767px) and (orientation: portrait) {
  /* 2025年12月24日改 */
  .ai-draggable-icon {
    width: 150px;
    height: 120px;
    right: 39px;
    top: 80%;
    background-image: url("../images/ai/page1/ai-logo-m.png");
  }

  .ai-chat-main {
    position: unset;
    margin-top: 142px;
  }

  .ai-chat-window {
    width: 100vw;
    height: calc(100vh - 142px - 122px);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .chat-header {
    padding: 44px;
  }

  .chat-close-btn {
    width: 31px;
    height: 31px;
  }

  .chat-content {
    padding: 0;
  }

  .zhifubao-logo {
    display: none;
  }
}
