body {
  font-size: 0;
}
button {
  outline: none;
  border: none;
  font-size: 14px;
}
:focus-visible {
  outline: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* a:-webkit-any-link:active {
  color: unset;
} */


.container {
  display: flex;
  height: 100vh;
  max-width: 100% !important;
  background: #f5f7fa;
}

.sidebar {
  width: 260px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
  padding: 20px 0;
  background: url(../images/gangfangAI/sidebar_bg.png) no-repeat;
  background-size: 100% 100%;
}

.sidebar .sidebar-logo-link {
  display: block;
}

.sidebar-logo {
  display: block;
  width: 139px;
  margin: 0 auto 38px auto;
}

.menu-item {
  /* padding: 12px 0 12px 24px; */
  border-radius: 4px;
  color: #323235;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  line-height: 44px;
}

.menu-item-db{
  padding: 12px 0 12px 24px;
  margin-bottom: 120px;
}

.menu-item:hover, .active {
  background: #e6edf9;
  color: #1c1d1f;
  /* transform: translateX(2px); */
}

.menu-item>a {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding-left: 24px;
  box-sizing: border-box;
}

.menu-item>a:visited {
  color: #323235;
}

.menu-item .icon {
  display: inline-block;
  vertical-align: sub;
  margin-right: 8px;
  width: 20px;
  height: 20px;
}
.icon_yxd { 
  background: url(../images/gangfangAI/icon_game.png) no-repeat;
  background-size: 100% 100%;
}
.icon_gfip { 
  background: url(../images/gangfangAI/icon_kkd.png) no-repeat;
  background-size: 100% 100%;
}
.icon_ddos { 
  background: url(../images/gangfangAI/icon_ddos.png) no-repeat;
  background-size: 100% 100%;
}
.icon_scdn { 
  background: url(../images/gangfangAI/icon_scdn.png) no-repeat;
  background-size: 100% 100%;
}
.icon_db {
  background: url(../images/gangfangAI/icon_db.png) no-repeat;
  background-size: 100% 100%;
}
.icon_server {
  background: url(../images/gangfangAI/icon_server.png) no-repeat;
  background-size: 100% 100%;
}
.icon_aqfh {
  background: url(../images/gangfangAI/icon_aqfh.png) no-repeat;
  background-size: 100% 100%;
}
.icon_dbjjfa {
  background: url(../images/gangfangAI/icon_dbjjfa.png) no-repeat;
  background-size: 100% 100%;
}

.content {
  flex: 1;
  background: url(../images/gangfangAI/content.png) no-repeat;
  background-size: 100% 100%;
}
.content>div{
  background: transparent!important;
}
.content iframe { 
  width: 100%;
  height: 100%;
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  width: 690px;
  background: #fff;
  padding: 30px 0px;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.2);
  position: relative;
  background: url(../images/gangfangAI/dialog_bg.png) no-repeat;
  background-size: 100% 100%;
  overflow: hidden;
}

.business-types {
  display: inline-block;
  margin-top: 10px;
}

.b-checkbox {
  /* padding: 8px; */
  margin-right: 16px;
  line-height: 18px;
}

.b-checkbox input {
  margin-right: 8px;
}


.b-checkbox input[type=checkbox] {
  cursor: pointer;
  position: relative;
  width: 18px;
  height: 18px;
  font-size: 12px;
  vertical-align: text-bottom;
}

.b-checkbox input[type=checkbox]::after {
  position: absolute;
  top: 0;
  color: #000;
  width: 18px;
  height: 18px;
  display: inline-block;
  visibility: visible;
  padding-left: 0px;
  text-align: center;
  content: ' ';
  border-radius: 3px
}

.b-checkbox input[type=checkbox]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: bold;
  background-color: #2981ff;
}


.modal-content>.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.modal-content>.close:hover {
  color: #333;
}

.login-form {
  display: flex;
  align-items: center;
}

.login-form .form {
  margin-left: -30px;
}

.login-form h2 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}
.login-form h2.db-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.db-notice {
  font-size: 14px;
  color: #666666;
  margin-bottom: 12px;
}


.db-notice>span {
  color: #2981ff;
}

.login-form>img{
  width: 360px;
}

.login-form>div>span{
  display: inline-block;
  width: 86px;
}

.login-form .input, .login-form .code-input {
  display: inline-block;
  padding: 12px 15px;
  margin: 12px 0;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  transition: border-color 0.3s;
  width: 328px;
	height: 48px;
	background-color: #ffffff;
	box-shadow: 0px 3px 8px 0px 
		rgba(66, 87, 197, 0.05);
	border-radius: 6px;
}

.login-form .input:focus, .login-form .code-input:focus {
  border-color: #409EFF;
  outline: none;
}

.login-form .code-input {
  width: 200px;
}

.signtrue-code{
  width: 112px;
	height: 48px;
  background-color: #2981ff;
  color: white;
  padding: 12px;
  cursor: pointer;
  margin-left: 16px;
	border-radius: 6px;
}

.code-group {
  display: flex;
  gap: 10px;
}

.get-code {
  background: #409EFF;
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.get-code:disabled {
  background: #a0cfff;
  cursor: not-allowed;
}

.submit-btn {
  display: block;
  width: 328px;
	height: 48px;
  background-color: #2981ff;
  color: white;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s;
  margin: 12px auto 0 auto;
	border-radius: 6px;
}

/* 弹窗关闭动画 */

.modal-hide {
  animation: slideOut 0.5s ease-out forwards;
}

@keyframes slideOut {
  0% { 
    transform: translate(0, 0); 
    opacity: 1;
  }
  100% {
    transform: translate(-900px, -90px) scale(0);
    opacity: 0;
  }
}

@keyframes modalShow {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.login-msg {
  display: none;
  width: 226px;
  height: 128px;
  padding: 27px 0 0 23px;
  box-sizing: border-box;
  margin: 70px 0 0 10px;
  background: url(../images/gangfangAI/login_bg.png) no-repeat;
  background-size: 100% 100%;
}
.login-msg>span {
  font-size: 14px;
  color: #323235;
}
.login-btn {
  background: linear-gradient(135deg, #409EFF, #3375ff);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(50, 132, 255, 0.2);
  transition: all 0.3s;
  margin-top: 20px;
  margin-left: 12px;
  cursor: pointer;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(50, 132, 255, 0.3);
}

.login-btn:active {
  transform: translateY(0);
  opacity: 0.9;
}



/* 咨询 */
.mobile-qq {
  display: none;
}
.rabbit {
  position: absolute;
  bottom: 60px;
  left: 80px;
}
.rabbit::before {
  content: "";
  width: 150px;
  height: 105px;
  left: -45px;
  top: -72px;
  position: absolute;
  background-image: url(../images/gangfangAI/rotating-rabbit.png);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 100%;
  animation: newrotating 2s steps(47) infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes newrotating {
  0% { background-position: right 0; }
  100% { background-position: right 100%; }
}
.qq {
  width: 60px;
  height: 136px;
  background-image: url(../images/gangfangAI/contact-slide.png);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qq>a {
  color: #fff;
  writing-mode: vertical-rl;
  font-size: 16px;
  padding: 35px 20px 0 20px;
  letter-spacing: 2px;
}


@media (max-width: 640px) {
  .modal-content {
    width: 90%;
    padding: 20px;
    border-radius: 20px;
  }
  
  .container {
    max-width: 100% !important;
    height: 100vh;
    display: block;
  }
  .content {
    height: calc(100% - 44px);
  }
  .sidebar {
    width: 100%;
    padding: 8px 0;
    box-shadow: none;
    display: flex;
    /* top: 45px;
    position: absolute; */
    align-items: baseline;
    justify-content: space-around;
    background: #f7f8fd;
    background-image: linear-gradient(rgba(200, 206, 218, 0.2),rgba(255, 255, 255, 0))
  }

  .sidebar .sidebar-logo-link {
    display: none;
  }

  .menu-item {
    flex-shrink: 0;
    padding: 2px 0;
    font-size: 12px;
    line-height: 20px;
  }

  .menu-item-db{
    margin-bottom: 0;
  }


  .menu-item .icom{
    margin-right: 2px;
    vertical-align: text-bottom;
  }

  .menu-item span{
    display: none;
  }

  .login-form {
    display: block;
  }

  .login-form h2 {
    margin-bottom: 18px;
  }

  .login-msg {
    display: none;
    width: auto;
    height: auto;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
    background: unset;
  }

  .login-msg>span {
    display: none;
  }

  .login-form .form {
    margin: -30px auto 0 auto;
  }

  .login-form .input,.submit-btn {
    width: 100%;
  }

  .login-form .code-input {
    width: 60%;
  }

  .login-form .signtrue-code {
    width: calc(40% - 16px)
  }

  .login-form>img{
    margin-top: -72px;
  }

  .login-btn {
    box-shadow: none;
    padding: 0;
    width: auto;
    margin: 0;
    color: #000;
    border-radius: 0;
    background: transparent;
    color: #2981ff;
    flex-shrink: 0;
  }

  .login-btn:hover {
    transform: none;
    box-shadow: none;
  }

  .b-checkbox {
    line-height: 32px;
    width: 40%;
    display: inline-block;
  }
  .rabbit {
    display: none;
  }

  .mobile-qq {
    display: block;
    position: absolute;
    bottom: 80px;
    right: 8px;
    background-color: #2981ff;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    margin: 38px auto 0 auto;
    border-radius: 8px;
  }
  .mobile-qq a {
    color: #fff;
  }

  .login-form h2.db-title {
    font-size: 18px;
    text-align: left;
  }

  /* 移动端隐藏动画 */
  @keyframes slideOut {
    0% { 
      transform: translate(0, 0); 
      opacity: 1;
    }
    100% {
      transform: translate(50%, -90%) scale(0);
      opacity: 0;
    }
  }
}


@media (max-height: 710px) {
  .rabbit {
    bottom: 8px;
  }

  .login-msg {
    margin: 8px 0 0 10px;
  }
}

.content .coze-chat-sdk>div {
  background: url(../images/gangfangAI/content.png) no-repeat !important;
  background-size: 100% 100%;
}

/* 调整chat sdk样式 */
.chat-uikit-on-boarding-pc .chat-uikit-on-boarding__prologue-sug {
  margin: 0 auto !important;
}
.chat-uikit-on-boarding-pc .chat-uikit-on-boarding__prologue-sug>div {
  margin-left: auto;
  margin-right: auto;
}

.chat-uikit-on-boarding__suggestions .w-full, .chat-uikit-on-boarding__suggestions .w-full {
  color: #2981ff;
}

.chat-uikit-on-boarding__suggestions {
  width: 646px;
  max-width: 100%;
  flex-direction: row !important;
  flex-wrap: wrap;
}
.chat-uikit-on-boarding__suggestions>div {
  flex-shrink: 0;
  margin-left: 4px;
  margin-right: 4px;
}

.coze-chat-sdk .chat-uikit-on-boarding {
  padding-top: calc(35vh - 150px);
}

.chat-uikit-on-boarding__bot>span:nth-child(2){
  display: none;
}