/* ==========================================================================
   三体云动官网风格页脚样式 (对齐 www.styd.cn)
   ========================================================================== */

/* 隐藏旧版页脚样式 */
#colophon.site-footer,
#site-bottom {
  display: none !important;
}

.footer-wrap {
  background: #000000;
  width: 100%;
  clear: both;
}

.footer-wrap * {
  box-sizing: border-box;
}

.footer {
  position: relative;
  margin: 0 auto;
  max-width: 1240px;
  height: 399px;
  color: #ffffff;
}

.footer__info {
  padding: 56px 20px 0 20px;
  display: flex;
  justify-content: space-between;
  color: #91959f;
}

.footer__info-company {
  flex-shrink: 0;
}

.footer__info-logo {
  margin-bottom: 19px;
  width: 116px;
  height: 32px;
}

.footer__info-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.footer__info-h5-logo {
  display: none;
}

.footer__info-item {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #91959f;
  padding-bottom: 8px;
}

.footer__info-item-phone {
  color: #91959f;
  text-decoration: none;
}

.footer__info-item-phone:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer__info-links {
  display: flex;
}

.footer__info-link {
  padding-left: 40px;
}

.footer__info-link-title {
  height: 22px;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}

.footer__info-link-item {
  font-weight: 400;
  padding-bottom: 8px;
  display: block;
  color: #91959f;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__info-link-item:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer__copyright {
  position: absolute;
  padding-left: 20px;
  left: 0;
  bottom: 40px;
  color: #555862;
  line-height: 20px;
  font-size: 14px;
}

.footer__copyright a {
  color: #555862;
  line-height: 20px;
  font-size: 14px;
  text-decoration: none;
}

.footer__copyright a:hover {
  color: #91959f;
  text-decoration: underline;
}

.footer__copyright img {
  vertical-align: text-bottom;
  display: inline-block;
  margin-right: 2px;
}

/* 右侧悬浮快捷服务条 (客服电话、联系/AI小助手、回到顶部) */
.footer__service {
  position: fixed;
  top: 50vh;
  right: 0;
  height: 88px;
  width: 54px;
  transform: translateY(-50%);
  z-index: 100;
}

.footer__service-h5 {
  display: none;
}

.footer__service-customer-service,
.footer__service-contact {
  width: 44px;
  height: 44px;
  position: relative;
  right: -10px;
  cursor: pointer;
}

.footer__service-customer-service > img,
.footer__service-contact > img {
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
}

.footer__service-modal {
  display: none;
  position: absolute;
  right: 44px;
  bottom: 0;
  width: 180px;
  padding: 0 20px 16px;
  background: #ffffff;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 200;
}

.footer__service-modal--show {
  display: block;
}

.footer__service-modal-title {
  padding-top: 16px;
  font-size: 14px;
  line-height: 20px;
  color: #91959f;
}

.footer__service-modal-telephone {
  font-size: 16px;
  line-height: 22px;
  margin-top: 8px;
  color: #000000;
  font-weight: 500;
}

.footer__service-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.footer__service-modal-close img {
  width: 12px;
  height: 12px;
  display: block;
}

.footer__service-gotop {
  width: 100%;
  height: 54px;
  margin-top: 32px;
  cursor: pointer;
}

.footer__service-gotop img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   移动端响应式 (<= 768px)
   ========================================================================== */
@media only screen and (max-width: 768px) {
  body {
    padding-bottom: 13.33333333vw !important;
  }

  .footer {
    width: 100%;
    height: auto;
    min-height: 79.46666667vw;
    padding-bottom: 8vw;
  }

  .footer__info {
    padding: 0 4.26666667vw;
    display: block;
  }

  .footer__info-company {
    width: 100%;
  }

  .footer__info-links {
    display: none;
  }

  .footer__info-logo {
    display: none;
  }

  .footer__info-h5-logo {
    display: block;
    width: 100%;
    margin-bottom: 7.46666667vw;
    padding: 4.26666667vw 0 4.53333333vw 1.33333333vw;
    border-bottom: 1px solid rgba(232, 235, 241, 0.19);
  }

  .footer__info-h5-logo img {
    width: 19.73333333vw;
    height: 5.2vw;
  }

  .footer__info-item {
    position: relative;
    font-weight: 400;
    padding-bottom: 2.13333333vw;
    font-size: 12px;
    line-height: 4.26666667vw;
  }

  .footer__copyright {
    position: static;
    bottom: auto;
    font-size: 12px;
    padding: 6vw 4.26666667vw 2vw 4.26666667vw;
    text-align: center;
  }

  .footer__copyright a {
    font-size: 12px;
  }

  /* 移动端底部固定悬浮条 */
  .footer__service {
    display: block;
    position: fixed;
    top: auto;
    transform: none;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 13.33333333vw;
    background: #ffffff;
    z-index: 100;
    border-top: 1px solid #e8ebf1;
  }

  .footer__service-contact,
  .footer__service-customer-service,
  .footer__service-gotop {
    display: none;
  }

  .footer__service-h5 {
    display: flex;
    width: 100%;
    height: 100%;
  }

  .footer__service-h5-contact,
  .footer__service-h5-free-trial {
    height: 100%;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
  }

  .footer__service-h5-contact::before,
  .footer__service-h5-free-trial::before {
    content: "";
    display: inline-block;
    width: 4.8vw;
    height: 4.8vw;
    margin-right: 2.13333333vw;
  }

  .footer__service-h5-contact {
    color: #333333;
    background: #ffffff;
  }

  .footer__service-h5-contact::before {
    background: url(https://styd-frontend.styd.cn/images/www/styd/index/h5-contact-icon.png) no-repeat;
    background-size: 100%;
  }

  .footer__service-h5-free-trial {
    color: #ffffff !important;
    background: #3f66f6;
  }

  .footer__service-h5-free-trial::before {
    background: url(https://styd-frontend.styd.cn/images/www/styd/index/h5-free-trial-icon.png) no-repeat;
    background-size: 100%;
  }
}

/* ==========================================================================
   AI 聊天抽屉组件样式
   ========================================================================== */
.ai-chat-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
}

.ai-chat-drawer {
  position: fixed;
  top: 0;
  right: -640px;
  width: 640px;
  height: 100vh;
  z-index: 999;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.ai-chat-drawer--open {
  right: 0;
}

.ai-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.ai-chat__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.ai-chat__header-center {
  flex: 1;
  text-align: center;
}

.ai-chat__header-title {
  font-size: 16px;
  font-weight: 600;
  color: #172026;
  line-height: 22px;
  display: block;
}

.ai-chat__header-subtitle {
  font-size: 11px;
  color: #bbbbbb;
  line-height: 16px;
  display: block;
}

.ai-chat__header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.ai-chat__header-close {
  cursor: pointer;
  color: #999999;
  font-size: 18px;
  transition: color 0.2s;
  line-height: 1;
}

.ai-chat__header-close:hover {
  color: #172026;
}

.ai-chat__header-close::before {
  content: '\00d7';
}

.ai-chat__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
}

.ai-chat__messages::-webkit-scrollbar {
  width: 4px;
}

.ai-chat__messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat__messages::-webkit-scrollbar-thumb {
  background: #cdd4df;
  border-radius: 2px;
}

.ai-chat__welcome {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding-top: 8px;
}

.ai-chat__welcome-card {
  width: 100%;
  padding: 24px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ai-chat__welcome-heading {
  font-size: 17px;
  font-weight: 600;
  color: #172026;
  text-align: center;
  margin-bottom: 6px;
}

.ai-chat__welcome-subheading {
  font-size: 13px;
  color: #65757d;
  text-align: center;
  margin-bottom: 18px;
}

.ai-chat__welcome-prompt {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #65757d;
  margin-bottom: 12px;
}

.ai-chat__welcome-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chat__welcome-question {
  flex: 0 0 calc(50% - 4px);
  padding: 9px 12px;
  background: #f5f6f8;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  font-size: 13px;
  color: #555555;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}

.ai-chat__welcome-question:hover {
  background: #e6f0ff;
  border-color: #b3d4ff;
  color: #4a6cf7;
}

.ai-chat__message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ai-chat__message--user {
  flex-direction: row-reverse;
}

.ai-chat__message--user .ai-chat__bubble {
  background: #4066f5;
  color: #ffffff;
  border-radius: 24px 24px 8px 24px;
}

.ai-chat__message--assistant .ai-chat__bubble {
  background: #f7f9fc;
  color: #172026;
  border-radius: 8px 16px 16px 16px;
}

.ai-chat__bubble {
  max-width: 75%;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 22px;
  word-break: break-word;
}

.ai-chat__bubble--loading {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
}

.ai-chat__loading-text {
  font-size: 13px;
  color: #999999;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.ai-chat__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cccccc;
  animation: ai-chat-bounce 1.4s infinite ease-in-out both;
}

.ai-chat__dot:nth-child(2) {
  animation-delay: -0.16s;
}

.ai-chat__dot:nth-child(3) {
  animation-delay: -0.32s;
}

.ai-chat__content p {
  margin: 0 0 8px;
}

.ai-chat__content p:last-child {
  margin-bottom: 0;
}

.ai-chat__content a {
  color: #4a6cf7;
  text-decoration: none;
}

.ai-chat__content a:hover {
  text-decoration: underline;
}

.ai-chat__content strong {
  font-weight: 600;
}

.ai-chat__error {
  padding: 10px 16px;
  color: #f5222d;
  font-size: 13px;
  text-align: center;
  background: #fff2f0;
  border-radius: 8px;
  margin: 12px 20px 0;
}

.ai-chat__input-area {
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}

.ai-chat__input-shell {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 4px 4px 4px 16px;
  border: 1px solid #cdd4df;
  border-radius: 20px;
  transition: border-color 0.2s;
}

.ai-chat__input-shell:focus-within {
  border-color: #4066f5;
  box-shadow: 0 0 0 2px rgba(64, 102, 245, 0.12);
}

.ai-chat__input {
  flex: 1;
  min-width: 0;
  height: 28px;
  font-size: 14px;
  line-height: 22px;
  color: #172026;
  background: transparent;
  border: none;
  outline: none;
}

.ai-chat__input::placeholder {
  color: #bfbfbf;
}

.ai-chat__input:disabled {
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
}

.ai-chat__send {
  flex-shrink: 0;
  margin-left: 4px;
  height: 30px;
  padding: 0 18px;
  font-size: 13px;
  color: #ffffff;
  background: #4066f5;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.ai-chat__send:hover:not(:disabled) {
  opacity: 0.85;
}

.ai-chat__send:disabled {
  background: #cdd4df;
  cursor: not-allowed;
}

@media only screen and (max-width: 768px) {
  .ai-chat-drawer {
    width: 100%;
    right: -100%;
  }
}

@keyframes ai-chat-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
