:root {
  --left-nav-width: 300px;
  --center-container-bg-color: #2c2e2f;
  --left-nav-bg-color: #2c2e2f;
  --site-box-height: 90px;
  --site-box-width: 235px;
  --site-box-icon-height: 40px;
  --search-engine-radius: 20px;
}

* {
  user-select: none;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body,
html {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#app {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: row;

  background-image: url("../assets/bg.jpg");
  background-position: center center;

  position: relative;
}

#app::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../assets/bg.jpg");
  background-position: center center;
  background-size: cover;
  z-index: -1;
}

/* #app::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("/assets/th1.jpg");
    background-size: cover;
    z-index: -1;
    animation: bg-animation ease-in 1000ms 1;
    transform: translate3d(0,0,0);

} */

.main-container {
  /* animation: bg-animation ease-in 1000ms 1 ;
    animation-fill-mode: forwards;
    transform: translate3d(0,0,0); */
  background-color: rgba(0, 0, 0, 0.7);
}

@keyframes bg-animation {
  from {
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.2);
  }

  to {
    backdrop-filter: blur(0px);
    background-color: rgba(0, 0, 0, 0.8);
  }
}

::-webkit-scrollbar {
  width: 10px;
  background-color: transparent;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  background-color: rgba(245, 245, 245, 0);
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  transition: background-color linear 1000ms;

  background-color: rgba(68, 73, 93, 0.79);
}

::-webkit-scrollbar-thumb:hover {
  transition: background-color linear 1000ms;

  background-color: rgba(94, 102, 128, 0.79);
}

.main-container {
  height: 100vh;
  width: 100%;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
}

.left-nav {
  height: 100%;
  min-width: var(--left-nav-width);
  background-color: var(--left-nav-bg-color);
  /* background-color: red; */
  box-shadow: 0 0 10px rgba(128, 128, 128, 0.372);
  z-index: 1000;
  display: flex;
  display: none;
  flex-direction: column;
}

.left-nav .head-image {
  height: 100px;
  width: 100%;
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center;
}

.time-container {
  height: 100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}
.current-time {
  font-size: 80px;
  color: #fff;
}
.current-date {
  font-size: 16px;
  color: #fff;
}

.center-container {
  width: 100%;
  /* background-color: var(--center-container-bg-color); */
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.search-box {
  --height: 40px;
  margin-top: 40px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  height: var(--height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.search-engins {
  position: absolute;
  width: 55px;
  /* background-color: red; */
  height: 40px;
  display: flex;
  border-bottom-left-radius: var(--search-engine-radius);
  border-top-left-radius: var(--search-engine-radius);
  z-index: 100;
  padding-left: 5px;
  transition: all linear 200ms;
}
.search-engins:hover {
  background-color: rgba(255, 255, 255, 0.712);
  transition: all linear 200ms;
}

.search-engins .selected-icon {
  height: 40px;
  width: 40px;
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
}

.search-engins .engine-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-grow: 1;
  text-align: center;
}

.search-engins .show-more {
  margin-left: auto;
  margin-right: 10px;
  height: 100%;
  width: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-engins .show-more:before {
  content: "";
  width: 0px;
  height: 0px;
  border: 5px solid rgba(0, 0, 0, 0.2);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  margin-top: 5px;
}

.search-box .engine-box {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(30px);
  /* box-shadow: 0 0 20px rgba(177, 177, 177, 0.1); */
  position: absolute;
  top: calc(100% + 6px);
  left: 0px;
  border-radius: 15px;
  z-index: 99;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  outline: none;
  padding: 10px 15px;
  transform-origin: top;
  opacity: 0;
  min-width: 500px;
}

.not_show {
  visibility: hidden;
  height: 1px !important;
}

.engine-box.show {
  animation: show-engine-box 1 300ms linear;
  opacity: 1;
  z-index: 10;
}
.engine-box.hide {
  animation: hide-engine-box 1 300ms linear;
  opacity: 0;
  
}

@keyframes show-engine-box {
  from {
    opacity: 0;
    /* transform: translateY(10px); */
    transform: scaleY(0);
    z-index: -10;
  }

  to {
    opacity: 1;
    /* transform: translateY(0); */
    transform: scaleY(1);
    z-index: 10;
  }
}

@keyframes hide-engine-box {
  from {
    opacity: 1;
    /* transform: translateY(0); */
    transform: scaleY(1);
    z-index: 990;
  }

  to {
    opacity: 0;
    /* transform: translateY(10px); */
    transform: scaleY(0);
    z-index: -10;
  }

}

.engine-box .engine {
  width: 64px;
  padding: 6px 0;
  border-radius: 10px;
  font-size: 15px;
  transition: all linear 200ms;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

.engine.not_show {
  margin: 0;
}

.engine-box .engine:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transition: all linear 200ms;
}

.engine-box .engine .icon {
  width: 40px;
  height: 40px;
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  border-radius: 10px;
}

.engine-box .engine .name {
  color: #333;
  font-size: 12px;
  margin-top: 5px;
}

#search-input {
  --height: 40px;
  border: none;
  border-radius: var(--search-engine-radius);
  border-bottom-left-radius: calc(var(--search-engine-radius) + 2px);
  border-top-left-radius: calc(var(--search-engine-radius) + 2px);
  outline: none;
  height: var(--height);
  width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 70px;
  padding-right: 110px;
  box-sizing: border-box;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.637);
  backdrop-filter: blur(20px);
  font-weight: normal;
  transition: all linear 200ms;
  min-width: 500px;
}
#search-input:hover {
  background-color: rgba(255, 255, 255, 0.712);
  transition: all linear 200ms;
}

/* WebKit 谷歌 */
input::-webkit-input-placeholder {
  color: #888;
  font-size: 14px;
  font-weight: normal;
}
/* Mozilla Firefox 4 - 18 适配火狐 */
input:-moz-placeholder { 
  color: #888;
  font-size: 14px;
  font-weight: normal;
}
/* Mozilla Firefox 19+ 适配火狐 */
input::-moz-placeholder {
  color: #888;
  font-size: 14px;
  font-weight: normal;
}
/* IE 10+   */
input:-ms-input-placeholder { 
  color: #888;
  font-size: 14px;
  font-weight: normal;
}

.search-btn {
  position: absolute;
  right: 0;
  background-image: url(../assets/searchEngineIcons/search-btn.svg);
  background-size: 50%;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 var(--search-engine-radius) var(--search-engine-radius) 0;
  transition: all linear 200ms;
  z-index: 100;
  /* background-color: rgba(255, 255, 255, 0.342); */
}

.search-btn:hover {
  background-color: rgba(255, 255, 255, 0.712);
  transition: all linear 200ms;
}

.sites-container {
  /* padding: 0 120px 100px 220px; */
  margin: 0 auto;
  max-width: 1280px;
  min-width: 768px;
}

.kind-name {
  margin-top: 20px;
  font-size: 17px;
  color: white;
  font-weight: 600;
  height: 40px;
  line-height: 40px;
  display: flex;
  /* padding-left: 40px; */
}

.kind-name .icon {
  width: 30px;
  height: 30px;
  background-color: rgb(77, 77, 77);
  margin-right: 10px;
  border-radius: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

.sites-box {
  justify-content: flex-start;
  width: 100%;
  height: fit-content;
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

.site-box {
  height: var(--site-box-height);
  width: var(--site-box-width);
  background-color: #61616167;
  margin: 10px;
  display: flex;
  flex-direction: row;
  border-radius: 10px;
  transition: all ease-out 200ms;
  cursor: pointer;
}

.site-box:hover {
  transition: all ease-in 200ms;
  background-color: #85858580;
  /* transform: translate3d(0,0,0); */
  backdrop-filter: blur(10px);
  transform: translateY(-8px);
}

.site-box .icon {
  height: var(--site-box-icon-height);
  width: var(--site-box-icon-height);
  min-height: var(--site-box-icon-height);
  min-width: var(--site-box-icon-height);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 20px;
  border-radius: 100%;
  margin-left: 10px;
  margin-right: 10px;
  background-image: url("../assets/loading.svg");
}

.site-box .info {
  width: 150px;
}

.site-box .name {
  margin-top: 18px;
  color: white;
  letter-spacing: 1px;
  width: 150px;
  word-break: break-all;
  font-weight: 200;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.site-box .describe {
  margin-top: 10px;
  color: rgb(201, 201, 201);
  flex-grow: 1;
  width: 215px;
  height: fit-content;
  font-size: 18px;
  line-height: 24px;
  transform: scale(0.7);
  transform-origin: left top;
  margin-right: 10px;
  /* 省略号 */
  word-break: break-all;
  font-weight: 200;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.site-box.not_show {
  margin-top: 0;
  margin-bottom: 0;
}

.advice_box {
  width: 100%;
  background-color: rgba(12, 12, 12, 0.607);

  backdrop-filter: blur(20px);
  position: absolute;
  top: calc(100% + 6px);
  left: 0px;
  border-radius: 10px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  outline: none;
  height: fit-content;
  overflow: hidden;
  opacity: 0;
  min-width: 500px;
}

.advice_box .advice_item {
  color: rgb(228, 228, 228);
  font-weight: 600;
  font-size: 14px;
  padding-left: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 10px;

  transition: background-color ease-out 60ms;
}

.advice_box .advice_item.selected {
  transition: background-color ease-in 60ms;
  background-color: rgba(0, 83, 238, 0.609);
}

.footer-container {
  margin: 30px auto;
  text-align: center;
  color: #fff;
}
[v-cloak] {
  display: none;
}

.beian {
  text-decoration: none;
}