.index-body {
  display: flex;
  flex-direction: column;
}

#hover-content {
  position: fixed;
  top: 0;
  left: 2em;
  z-index: 999;
  width: 55px;
  height: 5px;
  display: none; /* 初始状态下不显示 */
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  color: #fff;
  cursor: pointer;
  transition: height 100ms ease;
}
#hover-content:hover {
  left: 10px;
  width: 7em;
  height: 2.8em;
  line-height: 2.8em;
  color: #fff;
  text-align: center;
}
#hover-content > span {
  display: none;
}
#hover-content:hover > span {
  display: inline;
}

#left-toggle-btn {
  position: fixed;
  top: 130px;
  left: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  width: 5px;
  height: 50px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  transition: width 100ms ease;
}
#left-toggle-btn:hover {
  top: 100px;
  width: 3em;
  height: 8.5em;
  color: #fff;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 4px;
}

#left-toggle-btn > span {
  display: none;
}
#left-toggle-btn:hover:not(.collapsed) > span:first-child,
#left-toggle-btn:hover.collapsed > span:last-child {
  display: block;
}
.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 4rem;
}

.header-title {
  font-size: 1.8em;
  margin: 0;
}

.header-icon {
  margin-left: 1em;
  background-color: transparent;
  border: none;
  outline: none;
  color: inherit;
}
.picker-color-item {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  margin-right: 10px;
  cursor: pointer;
}
.wrapper {
  flex: 1;
  overflow: auto;
  display: flex;
}
.wrapper-left {
  flex-shrink: 0;
  flex-grow: 0;
  height: 100%;
  overflow-y: auto;
}
.wrapper-left .fa {
  font-weight: 900;
}
.menu-wrapper {
  width: 200px;
}
.menu-header {
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 0.8rem;
  text-decoration: none;
  cursor: pointer;
}
.menu-header.active {
  color: #0d6efd;
  color: var(--color);
}
.menu-header-toggle {
  padding: 0.8rem;
  padding-left: 2rem;
}
.menu-header-toggle[aria-expanded="true"] i {
  transform: rotate(270deg);
}

.menu-header-text {
  flex: 1;
  margin: 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 48px;
}

.menu-header.active .menu-header-text {
  font-weight: 600;
}

.menu-item {
  width: 100%;
  padding: 0.8em;
  padding-left: 1.8em;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.menu-item.active,
.menu-item:hover {
  background-color: rgba(230, 230, 230, 0.9);
}
.menu-text {
  margin-left: 5px;
}
.main-panel {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.collapse-btn {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: #fff;
  text-align: center;
  cursor: pointer;
}
.collapse-btn i {
  display: inline-block;
  margin-top: 10px;
  line-height: 36px;
  width: 3em;
  text-align: center;
}
.main-panel-header {
  height: 50px;
  overflow: hidden;
  margin-bottom: 10px;
}

.main-panel .nav-tabs {
  flex: 1;
  position: relative;
  padding-left: 3em;
  flex-wrap: nowrap;
  min-height: 36px;
}
.main-panel .tab-context-menu {
  display: none;
  position: fixed;
  top: 36px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  padding: 0;
}
.main-panel .tab-context-menu li {
  cursor: pointer;
  list-style: none;
  padding: 10px 15px;
  font-size: 12px;
}
.main-panel .tab-context-menu li:hover {
  background-color: rgba(230, 230, 230, 0.9);
}
.main-panel .nav-link {
  flex-shrink: 0;
}

.main-panel .tab-close {
  cursor: pointer;
  margin-left: 10px;
  margin-right: -5px;
  color: #bbb;
}
.main-panel .tab-close:hover {
  color: #999;
}
.main-panel .tab-content {
  flex: 1;
  overflow-y: auto;
}
.iframe-content {
  width: 100%;
  height: 100%;
}
.footer {
  height: 2rem;
  line-height: 1.8rem;
  font-size: 12px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 4rem;
}

.header-search-input {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  outline: none;
  width: 200px;
  height: 36px;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 10px;
  padding-right: 2em;
}
.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.header-search-input:focus + .header-menu-wrapper,
.header-search:hover .header-menu-wrapper {
  display: block;
}
.header-menu-wrapper {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  z-index: 11;
  min-height: 40vh;
  max-height: 70vh;
  overflow-y: auto;
  line-height: 2.6;
}
.header-menu-parent {
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid #ededed;
}

.header-meun-icon {
  display: inline-block;
  vertical-align: middle;
  width: 2rem;
  text-align: center;
}
.header-meun-item {
  cursor: pointer;
}
.header-meun-item:hover {
  color: var(--color);
}
.header-menu-children .header-meun-item {
  padding-left: 1.5rem;
}
.keyword-active {
  background-color: #ddd;
  color: var(--color);
}
