html, body, button, input, select, textarea {
  /* font-family: "Helvetica Neue","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Microsoft Yahei",sans-serif; */
  font: 14px/1.6 '微软雅黑',Arial,'黑体','宋体',sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
html,
body {
  background-color: #262626;
  color: #f8f8fa;
}
.guide {
  cursor: help;
}
.bg-light guide-finder {
  box-shadow: 0 .25rem 2rem rgba(26, 26, 26, 0.5)!important;
}

div.main > .container:first-child .d-flex a:first-child > svg {
  margin-top: -4px;
}

.qew {
  color: #777;
  margin-left: 1rem;
}

html.bg-light,
.bg-light body {
  background-color: #f8f8fa;
  color: #262626;
}
@font-face {
  font-family: icons;
  src: url(./fonts/icons.eot);
  src: url(./fonts/icons.eot?#iefix) format('embedded-opentype'),url(./fonts/icons.woff) format('woff'),url(./fonts/icons.ttf) format('truetype'),url(./fonts/icons.svg#font) format('svg')
}
a {
  color:#3397ff;
}
a:hover {
  color:#0d6efd;
}
a * {
  pointer-events: none;
}
img {
  max-width: 100%;
}
.icons {
  font-family: icons!important;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: .2px;
  -moz-osx-font-smoothing: grayscale
}
.icon-douban:before {
  content: "\e600"
}

.icon-qq:before {
  content: "\e601"
}

.icon-weibo:before {
  content: "\e602"
}

.icon-wechat:before {
  content: "\e603"
}

.stage {
  padding: 1rem .5rem;
}
element.style {
  display: block;
}

.draggable {
  position: absolute;
  z-index: 999999;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.modal {
  --bs-modal-zindex: 9996;
}
.modal-backdrop {
  --bs-backdrop-zindex: 9991;
}

#myself a {
  cursor: pointer!important;
}
@keyframes slide-b2t {from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes slide-r2l {from{transform:translateX(100%)}to{transform:translateX(0)}}
#iprofile {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
  max-width: 100%;
  max-height: 100%;
  background: rgba(0, 0, 0, .5);
  z-index: 9990;
}
#iprofile::backdrop {
  background: rgba(0, 0, 0, .5);
}
#iprofile > div {
  animation: 0.4s ease normal;
  animation-name: slide-b2t;
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--profile-height, 23rem);
  border-radius: .5rem .5rem 0 0;
  background-color: #fff;
  padding: 1rem;
  text-align: center;
}
@media (min-width:640px) {
  #iprofile > div {
    animation-name: slide-r2l;
    left: auto;
    top: 0;
    bottom: 0;
    width: var(--profile-height, 20rem);
    height: 100%;
    border-radius: .5rem 0 0 .5rem;
    text-align: left;
  }
}

.bg-qq, .bg-wechat {
  width: 2em;
  height: 2em;
  background-color: #00AEE5;
  color: #fff;
  line-height: 1.6em;
  margin-left: .4rem;
  border-radius: 2em;
  font-size: 2rem;
}
.bg-wechat {
  background-color: #86c610;
}

div.main {
  margin-left: 5rem;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  position: relative;
}
.is {
  color: #666;
  text-align: center;
  padding: 1rem 0;
}
#navs {
  font-size: 1.2rem;
  position:relative;
  z-index: 2;
}
#navs a.active {
  position: relative;
}
#navs a.active::before {
  content: ' ';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  border-bottom: solid 2px #008cff;
}
.nav-item {
  padding-left: 1em;
}
#navbarSite .dropdown-menu {
  background-color: #222;
  color: #fff;
  padding: 2rem;
  border-color: #999;
  width: 600px;
}

#navbarSite a {
  white-space: nowrap;
}
#navbarSite h5 {
  padding-left: .5rem;
}
.logo {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url(./qlab.svg);
  background-repeat: no-repeat;
  background-size:  cover;
  vertical-align: middle;
}
section {
  padding-top: 5rem;
  padding-bottom: 3rem;
}
section .container {
  position: relative;
}

.pb-0 {
  padding-bottom: 0;
}

h3.topic {
  text-align: center;
  margin-bottom: 3rem;
}
h2.topic {
  padding-bottom: 2rem;
  border-bottom: thin solid #666;
  margin-bottom: 2.5rem;
}
.bg-black {
  background-color: #1f1f1f;
}

.ql-tabs {
  border-bottom: solid 2px #666;
}

.ql-tabs a.nav-link {
  font-size: 1.2rem;
  color: #ddd;
  margin-bottom: -2px;
}
.ql-tabs a.active {
  color: #008cff;
  border-bottom: solid 3px #008cff;
}

footer {
  line-height: 2em;
  margin-top: 6rem;
  color: #999;
}

footer h4 {
  margin-bottom: 1rem;
}

footer a {
  text-decoration: none;
}

#banners img, h1 img {
  background:  none;
}

a.clink {
  display: block;
  text-decoration: none;
  color: #fff;
}
a.clink:hover .card {
  border-color: #0099ff;
}

.truncate {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toplines {
  min-height: 16rem;
  position: relative;
  z-index:1;
}

.card-title {
  font-weight: 600;
}

.text-active {
  color: #00ee98;
}

.text-incentive {
  color: #f7c592;
}

.modal-backdrop.show {
    opacity: .5;
}

/* begin xmpop */
.xmpop {
  position: relative;
  display: inline-block;
}
a.xmenu-ico {
  cursor: pointer;
  display: inline-block;
}
nav.xpop {
  display: block;
  position: absolute;
  top: 2.1em;
  right: 50%;
  transform: translateX(50%);
  white-space: nowrap;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  visibility: hidden;
  z-index: 99;
}
html.light nav.xpop {
  background: rgba(255, 255, 255, 0.8);
  color: #161926;
}
nav.xpop:hover,
nav.xpop:target,
nav.xpop:active,
nav.xpop:has(input:focus),
a.xmenu-ico:focus + nav.xpop {
  visibility: visible;
}
nav.xpop a.btn {
  border: none!important;
  text-align: left!important;
  display: flex;
  align-items: center;
}
nav.xpop a.btn svg {
  margin-right: 0.25rem;
}
/* example
<div class="xmpop">
  <a tabindex="0" class="xmenu-ico"><svg  width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor"><path d="M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/></svg></a>
  <nav class="xpop"><select size="8"></select></nav>
</div>
/* end xmpop */

@media (max-width: 575.98px) {
  #navbarSite .dropdown-menu {
    padding: 1rem;
    max-width: 100%;
  }
  #navbarSite h5 {
    margin-top: 1rem;
    padding-left: 0;
  }
  #navs a.active::before {
    left: -16px;
    right: auto;
    top: 6px;
    bottom: 6px;
    border-bottom: none;
    border-left: solid 2px #008cff;
  }
  .navbar a span.site {
    display: none;
  }
  div.main {
    margin-left: 0;
  }
  #navs > nav {
    padding-left: 5rem;
  }
  app-sidebar {
    background-color: #343a40;
    box-shadow: none;
    border-bottom-right-radius: 32px;
  }
  app-sidebar.expand {
    background-color: #222222;
    box-shadow: rgba(0, 0, 0, 0.42) 2px 10px 30px 0px, rgba(0, 0, 0, 0.12) 0px 4px 25px 0px, rgba(0, 0, 0, 0.2) 0px 8px 10px -5px;
    border-bottom-right-radius: 0;
  }
}

guide-finder {
  --bs-body-color-rgb:255,255,255;
}

guide-finder.draggable {
  top: 30%;
  left: 90px;
}
a.qit_ {
  text-transform: capitalize;
}
a.qit_::before {
  content: '❝';
  text-decoration: none!important;
  position: absolute;
  margin-left: -10px;
  color: #999;
}
body:not(.ready):not(.guest):not(.guest-fast):not(.grantfree) {
    div.main > * {
        visibility: hidden;
    }
    div.main {
        margin-left: 0;
    }
    app-sidebar {
        display: none;
    }
    div.main > footer {
        visibility: visible;
        position: fixed;
        bottom: 0;
        left: 0; right: 0;
        --bs-secondary-color: #fff;
    }

    div.main::before {
        content: " ";
        display: block;
        position: absolute;
        left: 0; right: 0;
        top: 0; bottom: 0;
        background-color: #666;
        background-image: url(./logo.svg);
        background-repeat: no-repeat;
        background-position: center center;
    }
}

.member-only .tcic_authing,
.member-only .tcic_acc {
    display: none!important;
}
