/* 一般浏览器的不要太小，容易看不见 */
html::-webkit-scrollbar {
    width: 8px;
}
html::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
}
html::-webkit-scrollbar-track {
    border-radius: 0;
    background: rgba(0,0,0,0.1);
}

*::-webkit-scrollbar {
    width: 8px;
}
*::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
}
*::-webkit-scrollbar-track {
    border-radius: 0;
    background: rgba(0,0,0,0.1);
}

html,body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

@font-face {
    font-family: "JetBrainsMono";
    src: url('/static/font/JetBrainsMono-Light.woff2') format('woff2');
}

.float-left {
    float: left !important;
}

.float-right {
    float: right !important;
}

.cursor-pointer {
  cursor: pointer;
}

body {
    font-family: JetBrainsMono, Arial, Helvetica, sans-serif;
}

.shadow-hover:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.075)!important;
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-tertiary-bg-rgb), var(--bs-bg-opacity)) !important;
}

.navbar {
  background: transparent !important;
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 3;
}
.navbar-brand{
    font-weight: 600;
    font-size: 22px;
    align-items: center;
}
.logo{
    max-width: 40px;
    max-height: 40px;
    margin-right: 2px;
}
footer .logo{
    max-width: 80px;
    max-height: 80px;
    margin-right: 2px;
}
.logo-footer {
    font-weight: 600;
    font-size: 22px;
    align-items: center;
}

.footer-item a{
    color: #5d6494;
}
footer .copyright{
    margin: 10px 0;
    color: #858ab4;
    font-size: 12px;
    line-height: 18px;
}
footer .company{
    margin-bottom: 38px;
    color: #858ab4;
    font-size: 12px;
    line-height: 18px;
}

footer .company>a {
    color: #858ab4;
    text-decoration: none;
    -webkit-backface-visibility: hidden;
}

.go-top {
    position: fixed;
    right: 32px;
    bottom: 24px;
    margin: 0 auto;
    z-index: 9999;
}
.go-top .container-go-top {
    width: 34px;
    height: 34px;
    margin: 20px auto 0;
    box-sizing: border-box;
    border: 1px solid rgba(225,227,232,.48);
    border-radius: 3px;
    background-color: #fff;
    box-shadow: 0 2px 2px 0 rgba(44,71,146,.17);
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    -ms-transition: all .2s;
    -o-transition: all .2s;
}
.go-top .container-go-top .go-top--btn {
    text-align: center;
    opacity: .6;
    -webkit-transition: all .18s;
    transition: all .18s;
    width: 13px;
    height: 34px;
    margin: 0 auto;
}

.tool-bar {
    position: fixed;
    right: 32px;
    top: 50%;
    margin: 0 auto;
    z-index: 9999;
    width: 60px;
    min-height: 182px;
    background: #fff;
    border: 1px solid rgba(225,227,232,.48);
    box-shadow: 0px 2px 2px rgba(44,71,146,.16862);
    border-radius: 60px;
}

.toolbar-tooltip {
  --bs-tooltip-bg: var(--bs-transparent);
}
.main-section .card-img-top {
    width:70px;
}
.main-section .card-text {
    color: #858ab4;
    font-size: 16px;
    line-height: 27px;
}
.main-section .carousel .carousel-item img{
    height: 500px;
}
.p1{
    font-size: 18px;
    font-weight: 400;
    color: #5d6494;
    line-height: 27px;
}

.login-div .btn:first-child {
    margin-left: 1.5rem;
    margin-right: 0.3rem;
}

#login-alert {
    height: 60px;
}

#login-alert .alert {
    overflow: hidden;
    white-space: nowrap;
}

.login-block .bot-link {
    margin-top: 5px;
}

#register-form .input-group-text{
    width: 100px;
}

#safe-code-btn,#phone-code-btn{
    width: 106px;
}

#register-alert .alert span{
    white-space: pre-wrap;
    word-break: break-all;
}

.banner, .banner .mask, .banner .container {
    height: 300px;
}

.banner .mask{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: '';
  opacity: .3;
  background: #000000;
}

.sign-section{
    padding: 9em 0;
}

.login-show .login-show-bg{
  position: relative;
  height: 100%;
  width: 100%;
  background: url("/static/images/ASCII.jpg");
  background-size: 100%;
}

.login-show-bg h3 {
    color: #fff;
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 5rem;
}

.login-block {
  padding: 2rem 4rem;
}

#password-reset-confirm-form .input-group-text{
    width: 120px;
}

section{
    padding: 4em 0 4em 0;
    position: relative;
    flex: 1;
}

.captcha-section{
    padding: 4em 0 4em 0;
    position: relative;
}

.captcha-section .nav.nav-tabs{
    width: 100%;
}

.captcha-con .nav{
  margin-bottom: 1.2rem;
}

.captcha-con .captcha-tips{
  font-size: 14px;
  line-height: 26px;
  color: #666;
  margin-bottom: 1.6rem;
  margin-top: 0.2rem;
}

.captcha-con .captcha-txt{
  font-size: 14px;
  color: #999;
  display: block;
  padding-top: 0.4rem;
  padding-bottom: 0.3rem;
}

.captcha-con .table-captcha{
  margin-bottom: 1.2rem;
  margin-top: 0.2rem;
}

.captcha-con .captcha-tit{
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-right: 1rem;
}

.captcha-ad{
    margin-bottom: 20px;
}
.captcha-ad a{
    height: 100%;
    display: block;
}
.captcha-ad img{
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.captcha-con .nav-link{
   padding: 0.5rem 1.2rem;
   margin-right: 0.5rem;
   position: relative;
   transition: all 0s;
 }

.table-captcha th,.table-captcha td,.table-captcha{
  border: 1px solid #ededed;
}

.table-captcha th:first-child{
  width: 8%;
}
.table-captcha th:nth-child(2){
  width: 12%;
}
.table-captcha th:nth-child(3){
  width: 60%;
}

.table-captcha th,.table-captcha td{
  padding: 0.6rem 0.7rem 0.6rem 0.7rem;
  font-size: 13px;
  color: #666;
  font-weight: normal;
  line-height: 22px;
}

.table-captcha th{
  background-color: #F7F9FD;
}

.table-captcha tbody tr:nth-of-type(odd){
  background-color: inherit;
}
.table-captcha thead th{
  border-bottom: none;
}

.table-captcha tbody tr:hover{
  background-color: #f9fafa;
}

.captcha-con .captcha-images{
  padding: 8px;
  border: 1px dotted #dedede;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow-x: hidden;
}

.captcha-images img{
    padding: 6px;
    max-height: 200px;
    max-width: 400px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bs-accordion-btn-bg) !important;
}

#accordionRecognize .accordion-button{
    font-weight:bold;
}

#recognizeResult {
    background-color: white;
}

#captcha-detail .captcha-images{
    padding-bottom: 1.6rem;
    border-bottom: 1px dotted #dedede;
    margin-bottom: 1rem;
}

.test-image-show{
    padding: 15px;
    border-radius: 3px;
    border: 1px dashed #dcdcdc;
    height: 210px;
    cursor: pointer;
    position: relative;
}

.test-image-show .image-show{
    cursor: pointer;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.test-image-show .placeholder-file{
    display:none;
}

.was-validated .test-image-show:has(>.file-param:invalid){
    border-color: red;
}

.test-image-show .file-param{
    display:none;
}

.test-image-show .image-label,.test-images-show .image-label{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 1rem 0.75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: var(--bs-border-width) solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

.multi-check{
    padding: 0.5rem;
}

.was-validated .multi-check[required]:not(:has(.form-check-input:checked)){
    border: 1px dashed red;
}

.was-validated .multi-check[required]:has(.form-check-input:checked){
    border: 1px dashed green;
}

.was-validated .test-images-show .file-input:has(~ .file-param:invalid) .file-preview{
    border-color: red;
}

#append-result .card-title{
    max-height: 30px;
}
#append-result .card-text{
    max-height: 170px;
}

.login-icon {
    width: 32px;
    height: 32px;
}

.test-images-show{
    position: relative;
}
.test-images-show .file-drop-zone{
    min-height: 80px;
    border: 2px dashed #fff;
}
.test-images-show .file-drop-zone .file-drop-zone-title {
    padding: 10px 10px;
    font-size: 1.1em;
}
.test-images-show .file-drop-zone .kv-file-content {
    max-width: 120px;
    max-height: 80px;
    margin: auto;
}
.test-images-show .file-preview {
    border: 1px dashed #ddd;
}