﻿* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* outline:none; */
    -ms-overflow-style: none;
    scrollbar-width: none;
    touch-action: pan-y;
}
html, body{
    margin: 0;
    width: 100vw;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
body {
    background-color: rgb(51, 51, 51);
    background-size: cover;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    overflow: hidden;
    margin: 0px;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transform: translate3d(0, 0, 0) ;
    transform: translate3d(0, 0, 0);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",SimSun,sans-serif;
}
/*页面主容器*/
#mainbox{
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
}
/*页面背景图*/
#mainbg{
    z-index: -3;
    position: fixed;
    width: 100%;
    height: 100%;
    transition: all .25s;
    background-image: url("./img/bgi/bg_a.jpg");
    /*background-color: #ededed !important;*/
    background-size: cover;
    background-position: center center;
    transition: all 250ms ease-in-out 0s;

}
.mainbgzoom{
    transform:scale(1.1);
    /* filter:blur(5px); */
}
#cover {
    z-index: 0;
    opacity: 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0) 0%,rgba(0,0,0,0.5) 190%),radial-gradient(rgba(0,0,0,0) 83%,rgba(0,0,0,0.3) 366%);
    transition: all .25s;
    
}
.cover_bgzoom {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
/*搜索组件的容器*/
#searchbox{
    position: absolute;
    top: 20vh;
    display: block;
    width: 650px;
    left: 200px;
    height: 10vh;
    min-height: 10vh;
    max-height: 10vh;
    transition: all 200ms ease-in-out 0s;

}
/*搜索引擎选择器*/
#enginebox{
    margin: 0 0 10px 40px ;
    white-space:nowrap;
}
/**icon容器*/
.iconbox{
    margin: 0px 2px;
    padding: 3px 20px;
    border-radius: 30px;
    font-size: 20px;
    vertical-align: middle;
    transition: all 350ms ease-in-out 0s;
    /* user-select: none; */
}
.iconbox:hover {
    background-color:  #dddddd3f;
    /* font-size: 16px;  */
}
/**icon容器_选中状态*/
.iconselect{
    background-color:  #ffffff49 !important;
}
.engineicon{
    color: #ffffffe0;
    font-size: inherit;
    text-align: center;
    width: 5px;
}
/*搜索表单组件*/
#s_form{
    width: 90%;
    height: 50%;
    margin-left:auto;
    margin-right:auto;
    transition: all 200ms ease-in-out 0s;
    display: grid;
    grid-template: "a b" auto
    "c ." auto / auto 100px;
    gap: 0px 40px;
}
.s_formfocus{
    width: 100% !important;
}
/*搜索框*/
.s_input {
    grid-area: a;
    width: 100%;
    height: 50px;
    border: none;
    outline: none;
    border-radius: 30px;
    justify-content: center;
    padding: 0 25px;
    font-family: inherit;
    font-size: 16px;
    background-color:  #ffffffb6;
    box-shadow: 0px 0px 7px 0px rgba(65, 66, 70, 0.1);
    -webkit-transition: width,height,box-shadow,ackground-color 150ms ease-in 0s;
    -o-transition: width,height,box-shadow,ackground-color 150ms ease-in 0s;
    transition: width,height,box-shadow,ackground-color 150ms ease-in 0s;
}
.s_input:focus,.s_input:hover{
    background-color:  #ffffff;
    box-shadow: 0px 0px 7px 1px rgba(65, 66, 70, 0.226);
}

/*搜索提交按钮*/
.s_inputBtn {
    justify-self: center;
    grid-area: b;
    font-size: 20px;
    color: #2D2D2D;
    background-color:  #eeeeee;
    border: none;
    outline: none;
    opacity: 1;
    height: 50px;
    width: 100px;
    margin-left: 30px;
    font-family: inherit;
    border-radius: 24px;
    box-shadow: 2px 5px 6px 0 rgba(32, 33, 36, 0.28);
    -webkit-appearance:none !important;
    -webkit-transition: all 150ms ease-in 0s;
    -o-transition: all 150ms ease-in 0s;
    transition: all 150ms ease-in 0s;
}
.s_inputBtn:hover{
    color: #F9F8F9;
    background-color:  #2D2D2D;
    width: 109px;
    /*margin-left: 30px;*/

}
.s_inputBtn:active{
    color: #2D2D2D;
    -webkit-transition: all 0ms ease-in 0s;
    -o-transition: all 0ms ease-in 0s;
    transition: all 0ms ease-in 0s;
}
ol, ul, li {
    list-style: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
ul {
    grid-area: c;
    background-color: #ffffff;
    width: calc(100% + 50px);
    border: none;
    border-radius: 0px 0px 24px 24px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    display: none;
    float: inherit;
    margin: 0px 0px 0px 0px;
    box-shadow: 0 4px 6px 0 rgba(32, 33, 36, 0.18);
    padding: 0px 0px 20px 0px;
    z-index: 1;
    opacity: 0.95;
    -webkit-transition: all 150ms ease-in 0s;
    -o-transition: all 150ms ease-in 0s;
    transition: all 150ms ease-in 0s;
}
ul:hover {
    -webkit-opacity: 1;
    opacity: 1;
    box-shadow: 0 4px 6px 0 rgba(32, 33, 36, 0.28);
}
ul li a {
    z-index: 1;
    display: block;
    text-decoration: none;
    color: #333;
    padding: 5px 10px 5px 33px;
}
ul li a:hover {
    background: #EEEEEE;
}
.fanyili, .mathli{
    position: relative;
}
.fanyili::after, .mathli::after{
    font-family: iconfont!important;
    display: block;
    right: 10px;
    top: 10px;
    position:absolute;
    color: rgb(138, 138, 138);
    font-size: 16px;
    letter-spacing: 4px;
    content:"\e6ba";
}
.fanyili::after{
    content:"\e6ba";
}
.mathli::after{
    content:"\e703";
}

/*一言模块容器*/
#yiyanbox{
    position: absolute;
    display: block;
    bottom:150px;
    cursor: default;
    width: 100%;
    background-color: rgba(203, 203, 203, 0.18);
    /* opacity: 0.1; */
    transition: all .45s;
}
#yiyanbox:hover {
    background-color: rgba(203, 203, 203, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* background: rgba(255, 255, 255, .83); */
}
#hitokoto,#yiyanauthor{
    text-align: center;
    letter-spacing: 4px;
    font-size: 12px;
    color: rgba(255,255,255,.9);
    text-shadow: 0 0 20px rgba(0,0,0,.8);
    transition: all .25s;
}
/*页脚*/
.site-footer {
    font-size: 9px;
    color: #CACACA;
    position: absolute;
    bottom:50px;
    width:100%;
    text-align: center;
    padding: 10px 10px;
}
.site-footer:hover {
    text-shadow: 2px 5px 6px 0 rgba(32, 33, 36, 0.28);
}
@font-face {
    font-family: 'iconfont';  /* Project id 2249672 */
    src: url('//at.alicdn.com/t/font_2249672_3upc7xqv7au.woff2?t=1632365499672') format('woff2'),
         url('//at.alicdn.com/t/font_2249672_3upc7xqv7au.woff?t=1632365499672') format('woff'),
         url('//at.alicdn.com/t/font_2249672_3upc7xqv7au.ttf?t=1632365499672') format('truetype');
  }
.iconfont {
    font-family:iconfont !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
}
/*不可选元素*/
.unselect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}
/*超链接*/
.links {
    text-decoration: none;
    color: rgba(255,255,255,.6);
    cursor: default;
    background-color: #565656;
    padding: 5px 10px;
    border-radius: 5px;
}
.fontA{
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",SimSun,sans-serif;
}
.fontB{
    font-family: microsoft yahei light,microsoft yahei,PingFangSC-Regular,Helvetica,sans-serif,等线;
}
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: white;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #d8d8d8;
}
/*响应式移动端处理（屏幕高度小于600像素）*/
@media screen and (max-height: 600px) {
    #searchbox{top: 5vh;}
    #yiyanbox {bottom:80px !important;}
    .site-footer {bottom:10px !important;}
}
/*响应式移动端处理（屏幕宽度小于1000像素）*/
@media screen and (max-width: 1024px) {
    #searchbox{ width: 72%; left: auto; }
    .iconbox{ margin: 0px 5px;font-size: 18px;}
}
/*响应式移动端处理（屏幕宽度小于768像素）*/
@media screen and (max-width: 768px) {
    #searchbox{ width: 75%; left: auto;}
    .s_input {padding: 0 75px 0 25px;}
    #s_form{gap: 0 0;}
    .s_inputBtn {border-radius: 0px 24px 24px 0px; box-shadow: none; width: 70px;}
    ul {width: calc(100% + 100px);opacity: 0.95;}
    #hitokoto,#yiyanauthor{letter-spacing: 3px;}
    .iconbox{ margin: 0px 1px;font-size: 17px;}
    #enginebox{margin: 10px auto; width: 80%; display: flex; align-items: center; }
}

/*响应式移动端处理（屏幕宽度小于600像素）*/
@media screen and (max-width: 600px) {
    .iconbox{ margin: 0 1px;padding: 3px 16px;font-size: 14px;}
}
/*响应式移动端处理（屏幕宽度小于488像素）*/
@media screen and (max-width: 488px) {
    #searchbox{width: 95%;left: auto;}
    .s_input {padding: 0 75px 0 25px;}
    #s_form{gap: 0 0;}
    .s_inputBtn { border-radius: 0px 24px 24px 0px; box-shadow: none; width: 70px;}
    ul { width: calc(100% + 100px); opacity: 0.95;}
    #hitokoto,#yiyanauthor{ font-size: 8px!important; letter-spacing: 1px; }
    .iconbox{ margin: 0;padding: 3px 15px;font-size: 13px;}
}
/**适配深色模式*/
@media (prefers-color-scheme: dark){
    #cover {background-image: radial-gradient(rgba(0,0,0,0) 0%,rgba(0,0,0,0.5) 130%),radial-gradient(rgba(0,0,0,0) 90%,rgba(0,0,0,0.3) 366%);}
    .s_input {color: #EEEEEE; background-color:  #2c2c2cb6; box-shadow: 0px 0px 7px 1px rgba(65, 66, 70, 0.5);}
    .s_inputBtn,.s_input:focus,.s_input:hover,ul li a,ul {color: #EEEEEE; background-color:  #36383b;}
    ul li a:hover {background-color:  #4b4b4bb6;}
    .iconbox:hover {background-color:  #7c7c7c56;}
    .iconselect{background-color:  #35353596 !important;}
    .engineicon{color: #1d1d1de5;}
    #yiyanbox {background-color: rgba(56, 56, 56, 0.38);}
    #yiyanbox:hover {background-color: rgba(32, 33, 36, 0.48);}
}

.graynode {
    filter: grayscale(100%);
}