html,body,h1,h2,h3,h4,h5,h6,hr{margin: 0;padding: 0}
hr{border: 1px solid #efefef;margin: 20px 0 20px 0}
@font-face {
    font-family: 'adi_silom';
    src: url('//static.anheiai.com/homesite/static/fonts/Silom.ttf') format('truetype');
}

:root{
    --index-body-background: black;
    --index-body-font-color: white;

    --line-style-base:-webkit-linear-gradient(left, #30e9ff, #396efe);
    --line-style-error:-webkit-linear-gradient(right, #fb33c6, #ff0000);

    --index-user-hover-color:#4f46e5;

    --index-adi-left-color: red;
    --index-adi-right-color: blue;

    --index-maskdialog-backgrund:rgba(0,0,0,0.8);

    --index-login-background:#202020;
    --index-login-border:1px solid #595965;
    --index-login-close-hover-color:#4f46e5;
    --index-commit-button-background:#2672ED;
    --index-commit-button-border:1px solid #2672ED;
    --index-commit-button-hover-background:#4480ef;
    --index-agreement-hover-color:cyan;
}

body{
    background: var(--index-body-background);
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;
    font-family: 'Silom', sans-serif;
    color:var(--index-body-font-color);
}
/*.ol{width: 100vw;height: 100vh;}*/
/*.ol canvas{opacity: 0.2;}*/
/*.container{position: absolute;top:0;left:0;padding:20px;width:100%;}*/
.container{padding: 20px;}
.container .footer{position: fixed;bottom: 0;width: 100%;text-align: center;}
.container .enter{width: 100%;text-align: center;cursor: pointer;position: relative;}
.container .enter .enterWord{font-family:'adi_silom';font-size:2em;}
.linespan:hover,.lineStyle{
    -webkit-text-fill-color:transparent;
    -webkit-background-clip: text;
    background-image:var(--line-style-base);
}
.user{position:fixed;right:20px;top:20px;cursor:pointer;}
.user:hover{color:var(--index-user-hover-color);}
.adi_animation{
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.detail{
    padding: 20px 10vw 20px 10vw;
    font-size:14px;
    line-height: 23px;
    font-family:'adi_silom';
}

@keyframes strokeAnimation {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.text-path,.text-path-adi {
    font-size: 25vw; /* Adjust the font size as needed */
    font-weight: bold;
    stroke: url(#linearGradient); /* Reference to the gradient ID */
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 600; /* Adjust the value based on the length of the text */
    stroke-dashoffset: 600;
    animation: strokeAnimation 10s linear forwards infinite; /* Infinite loop */
}

/* Define the linear gradient */
.linearGradient {
    linearGradient {
        stop-color: var(--index-adi-left-color); /* Start color */
        stop-color: var(--index-adi-right-color); /* End color */
        offset: 0% 100%; /* Start and end positions */
    }
}


.maskdialog{width: 100vw;height: 100vh;background: var(--index-maskdialog-backgrund);position: fixed;top:0;left: 0;z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}


.maskdialog .login{background: var(--index-login-background);border:var(--index-login-border);border-radius: 16px;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    overflow: hidden;
    width: 90vw;
    max-width: 710px;
    height: 70vh;
    min-height: 320px;
    max-height: 555px;
    min-width: 220px;
    position: relative;
}
.maskdialog .login .close_sign_in{position: absolute;top:10px;right:10px;cursor: pointer;}

.maskdialog .login .close_sign_in:hover{color: var(--index-login-close-hover-color);}
.maskdialog .login::before{
    /*content: '';*/
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*right: 0;*/
    /*bottom: 0;*/
    /*background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));*/
    /*z-index: -1; !* 确保伪元素在div内容的下方 *!*/
}
.maskdialog .login .sign_in_bg{width: 100%;height: 16vh;
    background-image: url("/static/imgs/ai/sign_in_bg_2.jpg");
    background-size: cover; /* 覆盖整个元素 */
    background-repeat: no-repeat; /* 不重复图片 */
    background-position: center center; /* 在水平和垂直方向上都居中 */
    font-size: 20px;
    /*font-family: 'adi_silom','Silom', sans-serif;*/
    padding: 0;
}
.maskdialog .login .sign_in_form{height: 100%;}


/* 平板（768px及以上） */
@media (min-width: 768px) {
    .maskdialog .login{
        width: 80vw;
        max-width: 710px;
        height: 100%;
        flex-direction: row;
    }
    .maskdialog .login .sign_in_bg{width: 60%;height: 100%;font-size: 30px;}

}

/* 桌面（992px及以上） */
@media (min-width: 992px) {
    .maskdialog .login{
        width: 70vw;
        max-width: 710px;
        height: 100%;
        flex-direction: row;
    }
    .maskdialog .login .sign_in_bg{width: 50%;height: 100%;font-size: 30px;}
}

/* 大屏幕（1200px及以上） */
@media (min-width: 1200px) {
    .maskdialog .login{
        width: 70vw;
        max-width: 710px;
        height: 100%;
        flex-direction: row;
    }
    .maskdialog .login .sign_in_bg{width: 50%;height: 100%;font-size: 30px;}
}


.sign_in_form{
    text-align: center;
    width: 100%;
    align-content: center;
}
.sign_in_form h2{text-align: center;margin:20px;}
.sign_in_form .sign_input,.sign_in_form .agreement{border-radius: 7px;margin:20px 36px 36px 36px;padding:6px; background: var(--index-login-background);border:var(--index-login-border);}
.sign_in_form div input{outline: none;padding:8px;width: 80%;background: var(--index-login-background);border:0;color:white;font-size: 16px;}

.sign_left_title,.sign_left_slogan{background: rgba(0,0,0,0.2);}
.sign_left_title{padding:6px 0 0 20px;}
.sign_left_slogan{padding:0 0 6px 20px;}

.commitButton{
    cursor: pointer; background: var(--index-commit-button-background);padding:12px;border-radius: 7px;margin:0 36px 16px 36px;
    border: var(--index-commit-button-border);font-size: 18px;width: 80%;
    position: relative;
    transition: left 0.1s; /* 平滑过渡效果 */
}
.commitButton label{cursor: pointer;}
.commitButton:hover{background: var(--index-commit-button-hover-background);}
#signLoading{display: none;}
.sign_in_form .agreement{border: 0;
    display: flex;
    align-items: center;
}
.sign_in_form .agreement i{margin: 0 5px 0 0;}
.sign_in_form .agreementCheckOff{cursor: pointer;}
.sign_in_form .agreementCheckOff:hover{color:var(--index-agreement-hover-color);}
#agreementYes{display: none;}
.signUpAndSignIn{padding: 0 36px 16px 36px;text-align: right;margin: 0 0 36px 0;cursor: pointer;display: flex;justify-content: space-between;}
#signUpAndSignin:hover{
    -webkit-text-fill-color:transparent;
    -webkit-background-clip: text;
    background-image:var(--line-style-base);
}