@charset "utf-8";

:root {
  --theme_color__: #1677FF;
  --li_hover--: #f5f5f5;
}


/* Init */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

:-moz-placeholder {
  color: #ccc;
}

::-moz-placeholder {
  color: #ccc;
}

::-moz-focus-inner {
  padding: 0;
  border: 0;
}

::-webkit-scrollbar {
  height: 10px;
  width: 7px;
  background: rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  position: relative;
  height: 56px;
  border-bottom: 1px solid #ddd;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 1260px;
}

.header .logo {
  display: block;
  height: 30px;
}

.header .logo img {
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.header .logo em {
  font-style: normal;
  display: inline-block;
  margin-left: 8px;
  font-size: 16px;
  font-weight: bold;
  vertical-align: middle;
}

/* Container */
.container {
  position: absolute;
  top: 57px;
  left: 0;
  bottom: 0;
  width: 100%;
  min-width: 1260px;
  overflow: hidden;
}

/* Menus */
.menus {
  float: left;
  box-sizing: border-box;
  position: relative;
  width: 280px;
  height: 100%;
  padding: 12px 0 0 0;
  color: #333;
  background: #fafafa;
  border-right: 1px solid #ddd;
  overflow-x: hidden;
  overflow-y: auto;
  visibility: hidden;
  /* 硬件加速 + 预优化滚动 */
  transform: translateZ(0);
  will-change: scroll-position;
  /* 禁用平滑滚动（避免动画导致的延迟） */
  scroll-behavior: auto;
}

.menus ul,
.menus li {
  margin: 0;
  padding: 0;
}

.menus a {
  color: #333;
  text-decoration: none;
}

.menus a:visited {
  color: #333;
}

.menus a:active,
.menus a:hover {
  text-decoration: none;
  outline: 0;
}

.menus::-webkit-scrollbar {
  width: 8px;
  background-color: #e6e6e6;
}

.menus::-webkit-scrollbar-thumb {
  background: #a2a2a2;
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.menus ul li a {
  display: block;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  overflow: hidden;
}

.menus ul li a:before {
  display: inline-block;
  content: attr(data-index);
  color: #666;
}

.menus>ul>li {
  position: relative;
  margin-bottom: 5px;
  cursor: pointer;
}

.menus>ul>li:last-child {
  margin-bottom: 0;
}

.menus>ul>li>.icon-arrow {
  position: absolute;
  top: 5px;
  left: 10px;
  display: block;
  font-size: 14px;
  color: #666;
}

.menus>ul>li>.icon-arrow:before {
  content: "";
  width: 14px;
}

.menus>ul>li.fold>.icon-arrow:before {
  display: block;
  width: 14px;
  height: 15px;
  font-size: 8px;
  font-style: normal;
  content: "";
  background-image: url(../img/right.png);
  background-repeat: no-repeat;
  background-size: contain;
}

.menus>ul>li.unfold>.icon-arrow:before {
  display: block;
  width: 14px;
  height: 15px;
  font-size: 8px;
  font-style: normal;
  content: "";
  background-image: url(../img/down.png);
  background-repeat: no-repeat;
  background-size: contain;
}

.menus>ul>li>a {
  padding: 0 0 0 30px;
}

.menus li ul>li>a {
  padding: 0 0 0 50px;
}

.menus ul li a.cur {
  background: #e5e5e5;
}

.menus::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  overflow: auto;
}

.menus::-webkit-scrollbar-thumb {
  background-color: #e9e9e9;
  min-height: 25px;
  min-width: 25px;
  border: none;
  border-radius: 0;
}

.menus::-webkit-scrollbar-track {
  background-color: #f7f7f7;
  border: 1px solid #efefef;
}

/* Main */
.main {
  position: relative;
  margin-left: 280px;
  width: auto;
  height: 100%;
  padding: 0 20px;
  overflow-y: auto;
}

.main::-webkit-scrollbar {
  width: 8px;
  background-color: #e6e6e6;
}

.main::-webkit-scrollbar-thumb {
  background: #a2a2a2;
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.main .title {
  height: 30px;
  line-height: 30px;
  font-size: 25px;
  font-weight: bold;
  text-align: center;
}

.main .switch-menu-btn {
  font-size: 18px;
  position: absolute;
  top: 18px;
  left: 18px;
  display: block;
  width: 16px;
  height: 16px;
  color: #888;
  overflow: hidden;
  cursor: pointer;
}

.main .switch-menu-btn:hover {
  color: #f63d3a;
}

.main>.content {
  width: 100%;
  height: auto;
  margin: 10px auto 0 auto;
  padding-bottom: 40px;
  word-wrap: break-word;
  word-break: break-all;
}

.header,
.menus,
.title,
.switch-menu-btn {
  font: 12px Microsoft YaHei, Helvetica Neue, Helvetica, Arial, PingFang SC, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
  color: #333;
}

.main .ck-content pre::-webkit-scrollbar {
  width: 9px;
  background-color: #ddd;
  border-radius: 20px;
}

.main .ck-content pre::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 20px;
  -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.list_item>li:hover {
  background: var(--li_hover--);
}



.hide {
  display: none;
}

.searchBox {
  width: 800px;
  height: 32px;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid var(--theme_color__);
  display: flex;
  align-items: center;
  padding: 0 0 0 8px;
  box-sizing: border-box;
}

.searchBox .icons {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.searchBox .clearBtn {
  width: 16px;
  height: 16px;
  cursor: pointer;
  display: none;
}

.searchBox #input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 6px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  /* 清除默认 outline */
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}


.searchBox .btn {
  width: 61px;
  height: 24px;
  background: var(--theme_color__);
  border-radius: 3px 3px 3px 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 12px;
  margin-right: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  flex-shrink: 0;
}

input:focus {
  outline: -webkit-focus-ring-color auto 0;
}

.searchPage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: none;
}

em {
  font-style: normal;
}

.searchPage .searchCont {
  position: absolute;
  right: 16px;
  top: -1px;
  width: 800px;
  max-height: 95%;
  border-radius: 0px 0px 10px 10px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  overflow-y: auto;
  animation: fadeInUp 0.4s ease-in;
  z-index: 1;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }

}

.popup_empty {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.searchPage .searchCont .item {
  padding: 20px 24px 20px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  color: #333;
  cursor: pointer;
}

.searchPage .searchCont .item:hover {
  background: var(--li_hover--);
}


.searchPage .searchCont .item .title {
  font-weight: 600;
  line-height: 22px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.searchPage .searchCont .item .cont {
  font-weight: 400;
  line-height: 22px;
  font-size: 14px;
  display: -webkit-box;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-all;
}

.searchPage .searchCont .loading {
  padding: 65px 0;
  text-align: center;
}

.searchPage .searchCont .loading .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto;
  animation: loading 1s linear infinite;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }

}


.searchPage .searchCont .empty {
  padding: 65px 0;
  text-align: center;
  text-align: center;
}

.searchPage .searchCont .empty .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto;
}