html body:has(.login_dialog) {
  background-color: transparent;
}

/* 图片加载 start */
.defaultimg,
div:has(> img:not([src])),
div:has(> img.loading),
a:has(> img:not([src])),
a:has(> img.loading) {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f1e1e;
}

img {
  width: 100%;
  height: 100%;
  vertical-align: initial;
}

img:not([src]),
img.loading {
  content: url("./placeholder.png");
  margin: 0 auto;
  -o-object-fit: contain;
  object-fit: contain;
  background-size: contain;
  background-position: center;
}

img[src]:not(.loading) {
  content: unset;
  -o-object-fit: cover;
  object-fit: cover;
}
/* 图片加载 end */
/* ye 导航菜单 start */
#ai-navigation-container .avatar_btn_user {
  width: 100%;
  height: 100%;
}

.user_menu {
  position: absolute;
  right: 0px;
  width: 12.5rem;
  border: 0.8rem solid #191919;
  background: #131313;
  border-radius: 0.5rem;
  display: none;
  z-index: 1000;
}

.user_menu.is-open {
  display: block;
}

.user_menu a {
  display: block;
  padding-block: 0.8rem;
  color: inherit;
  text-decoration: none;
  font-size: 1.25rem;
}

.user_menu a:hover {
  background: #191919;
}

.user_menu .userinfo {
  padding-block: 0.8rem;
}

.user_menu .username {
  color: #1abc9d;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.user_menu .userid {
  color: #fff;
  opacity: 0.5;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

.user_menu .logout_btn {
  color: #ff2b5c;
}

/* PC 个人中心下拉（≥768px） */
@media (min-width: 768px) {
  #navbar .navbar-nav.side-toolbar-list > li:has(.user_menu) {
    position: relative;
  }

  .user_menu {
    width: 220px;

    /* min-height: 497px; */
    top: calc(100% + 6px);
    right: 0;
    /* border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: url("../images/user-menu-bg.svg");
    background-repeat: no-repeat;
    background-size: 220px 497px;
    background-position: center top;
    padding: 18px 8px 8px; */
    box-sizing: border-box;
    overflow: visible;
  }

  .user_menu > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    /* min-height: calc(497px - 26px); */
    background-color: #131313;
    border: none;
    box-sizing: border-box;
    overflow: hidden;
  }

  .user_menu .userinfo,
  .user_menu > div > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* min-height: 67px; */
    padding: 1rem 0;
    margin: 0;
    border-bottom: 1px solid #191919;
    box-sizing: border-box;
    text-align: center;
  }

  .user_menu > div > a {
    flex-direction: row;
  }

  .user_menu > div > a:last-child {
    border-bottom: none;
  }

  .user_menu a {
    font-size: 20px;
    line-height: 1.2;
    color: #ffffff;
  }

  .user_menu a:hover,
  .user_menu a:focus {
    background: rgba(255, 255, 255, 0.04);
  }

  .user_menu .userinfo {
    padding: 0px 8px;
  }

  .user_menu .username {
    font-size: 20px;
    color: #1abc9d;
  }

  .user_menu .userid {
    margin-top: 4px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
  }

  .user_menu .logout_btn {
    color: #ff2b5c;
  }
}

/* ye 导航菜单 end */

.nav-fixed .search-box {
  position: relative;
  padding-inline: 0.5rem;
  flex: 1;
}

.nav-fixed .search-box input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 2rem 0.5rem 1rem;
  box-sizing: border-box;
  border-radius: 2rem;
  color: #fff;
}

.nav-fixed .search-box .search-btn {
  position: absolute;
  top: 0.475rem;
  right: 1.2125rem;
  color: #aaa;
  background-color: transparent;
  border: 0;
  font-size: 1.2rem;
}

.nav-fixed .search-extra {
  list-style: none;
  display: flex;
  column-gap: 0.625rem;
}

.nav-fixed .search-extra li > a {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 100%;
  border: solid 1px rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-fixed .search-extra li img,
.navbar-nav.side-toolbar-list li > a img {
  width: 1rem;
  height: 1rem;
}

.nav-fixed .search-extra li img.avatar_btn[src^="blob"],
.navbar-nav.side-toolbar-list li > a img.avatar_btn[src^="blob"] {
  width: 100%;
  height: 100%;
}

/* ye 登陆/注册 start */
.parsley-errors-list {
  margin: 0.375rem 0 0;
  list-style: none;
  font-size: 1.125rem;
  color: #ef4444;
  display: none;
}

.parsley-errors-list.filled {
  display: block;
}

.login_dialog {
  /* display: none; */
  position: fixed;
  inset: 0;
  z-index: 900;
  background-color: rgba(0, 0, 0, 0.7);
}

.login_dialog img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login_modal {
  width: 35vw;
  min-width: 420px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.login_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1.875rem;
  background-color: #222;
  border-radius: 0.375rem;
}

.login_dialog .logo {
  height: 6.25rem;
}

.login_dialog .slogan {
  font-size: 1.625rem;
  font-weight: 600;
  margin-top: 0.625rem;
  margin-bottom: 1.25rem;
}

.login_form_item {
  width: 100%;
  margin-bottom: 1.5rem;
}

.login_form_item > input {
  width: 100%;
  outline: none;
  border: solid 1px #979797;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  color: #bcbcbc;
  background-color: transparent;
}

.login_dialog .btn_group {
  width: 100%;
  display: flex;
  justify-content: space-between;
  column-gap: 1.25rem;
  color: #fff;
  font-weight: 600;
}

.login_dialog .btn_group .btn {
  flex: 1;
  background: linear-gradient(90deg, #4760ff 0%, #0dccff 100%);
  cursor: pointer;
  text-align: center;
  line-height: 3rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
}

.login_dialog .login_close_btn {
  margin: auto;
  width: 2.625rem;
  height: 2.625rem;
  cursor: pointer;
  margin-bottom: 1.875rem;
}

.login_tips {
  align-self: self-start;
  margin-top: 2.5rem;
  color: #c0bfbf;
}

.login_tips .login_tips_title {
  font-size: 1.125rem;
  margin-bottom: 0.3125rem;
}

.login_tips .login_tips_list {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.4;
}

/* ye 登陆/注册 end */

@media (max-width: 767px) {
  /* ye 导航菜单 start */
  .user_menu {
    width: 8rem;
    min-height: auto;
    border: 0.3125rem solid #191919;
    border-radius: 0.25rem;
    top: 3rem;
    background-image: none;
    background-color: #131313;
    padding: 0;
    overflow: visible;
  }

  .user_menu > div {
    min-height: auto;
    background: transparent;
    border: none;
  }

  .user_menu .userinfo,
  .user_menu > div > a {
    min-height: auto;
    border-bottom: none;
    text-align: center;
  }

  .user_menu a {
    display: block;
    min-height: auto;
    padding-block: 0.6rem;
    padding-inline: 0;
    font-size: 0.8rem;
    text-align: center;
  }

  .user_menu a:hover,
  .user_menu a:focus {
    background: #191919;
  }

  .user_menu .userinfo {
    display: block;
    min-height: auto;
    padding: 0.6rem 0;
    padding-inline: 0;
  }

  .user_menu .username {
    font-size: 0.8rem;
    text-align: center;
  }

  .user_menu .userid {
    font-size: 0.6rem;
    text-align: center;
  }

  /* ye 导航菜单 end */

  /* ye 登陆/注册 start */
  .parsley-errors-list {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
  }

  .login_modal {
    width: 90%;
    min-width: auto;
  }

  .login_dialog .logo {
    height: 3.125rem;
  }

  .login_dialog .slogan {
    font-size: 0.8125rem;
    margin-top: 0.3125rem;
    margin-bottom: 1.25rem;
  }

  .login_form_item {
    margin-bottom: 0.625rem;
  }

  .login_form_item > input {
    padding: 0.75rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
  }

  .login_dialog .btn_group {
    column-gap: 0.625rem;
  }

  .login_dialog .btn_group .btn {
    line-height: 2.25rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
  }

  .login_close_btn {
    margin-bottom: 0.9375rem;
    width: 2.125rem;
    height: 2.125rem;
  }

  .login_tips {
    margin-top: 1.25rem;
  }

  .login_tips .login_tips_title {
    font-size: 0.75rem;
    margin-bottom: 0.1563rem;
  }

  .login_tips .login_tips_list {
    font-size: 0.6875rem;
  }

  /* ye 登陆/注册 end */
}
