/* 清除内外边距 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    user-select: none;
}

/* 滑动效果 */
html {
    scroll-behavior: smooth;
}

/* 隐藏滑动条 */
::-webkit-scrollbar {
    display: none;
}

/* 禁止图片拖拽 */
img {
    -webkit-user-drag: none;
}

/* 加载中样式 */
#loading {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

/* 加载中里面的img样式 */
#loading>img {
    width: 100%;
    max-width: 500px;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* 背景图片样式 */
#backgroundImage {
    position: fixed;
    z-index: -999;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    pointer-events: none;
}

/* 主体内容样式 */
#subject {
    width: 70%;
    min-width: 300px;
    margin: auto;
}

/* 搜索框主体 */
#search_subject {
    width: 100%;
    padding: 30px 0px;
    border-radius: 10px;
    display: flex;
    align-items: center;
}

/* 搜索框DIV */
#search_input {
    width: 90%;
    height: 50px;
    margin-right: 3px;
}

/* 搜索框样式 */
[name=search] {
    width: 100%;
    height: 100%;
    border: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding-left: 20px;
    outline: none;
    display: block;
    font-size: 18px;
}

/* 搜索按钮DIV */
#search_button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 点击搜索引擎按钮 */
#clickSearch {
    width: 100px;
    height: 50px;
    background-color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#clickSearch>img {
    width: 30px;
    margin-right: 2px;
    display: inline-block;
}

#clickSearch>span {
    font-size: 15px;
    font-weight: 600;
    font-family: '微软雅黑';
}

/* 切换搜索引擎按钮 */
#SE {
    width: 20px;
    height: 50px;
    background-color: rgb(0, 166, 255);
    border: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    font-weight: bolder;
    font-size: 17px;
}

/* 搜索选项列表外框 */
#SEList {
    position: absolute;
    top: 55px;
    right: 0;
    width: 350px;
    padding: 10px;
    background-color: white;
    flex-wrap: wrap;
    justify-content: space-around;
    border-radius: 10px;
    display: none;
}

/* 当小于 */
@media only screen and (max-width: 515px) {
    #SEList {
        width: 300px !important;
    }
}

/* 显示动画 */
@keyframes fadenumUP {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* 消失动画 */
@keyframes fadenumDN {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* 选项 */
.SEList {
    width: 100px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(231, 231, 231);
    margin-top: 5px;
    border-radius: 10px;
    transition: background-color 0.5s, color 0.5s;
}

.SEList:hover {
    background-color: blueviolet;
    color: white;
}

.SEList>img {
    width: 30px;
    margin-right: 2px;
    display: inline-block;
}

.SEList>span {
    font-size: 15px;
    font-weight: 600;
    font-family: '微软雅黑';
}

/* 标签外部框 */
#tag_element {
    padding-bottom: 100px;
}

/* 标签内部样式 */
.tag_element {
    background-color: rgba(240, 248, 255, 0.456);
    border-radius: 10px;
}

.tag_element>h2 {
    color: rgb(75, 75, 75);
    padding: 10px 20px;
    border-bottom: 2px dashed rgb(75, 75, 75);
}

/* 标签具体内容 */
.tag_element_div {
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* 当小于 */
@media only screen and (max-width: 1000px) {
    .tag_element_div div {
        width: 49% !important;
        transition: width 0.3s;
    }
}

/* 里面的 div 标签 */
.tag_element_div div {
    width: 24%;
    height: 40px;
    margin: 5px 0;
    border-radius: 10px;
    background-color: white;
    transition: width 0.3s;
}

/* 里面的 a 标签 */
.tag_element_div a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(41, 41, 41);
    font-weight: 700;
    transition: background-color 0.5s, color 0.5s;
    border-radius: 10px;
    padding-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag_element_div a:hover {
    border-radius: 10px;
    background-color: blueviolet;
    color: white;
}

/* 里面的 span 标签 */
.tag_element_div span {
    margin-left: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 里面的 img 标签 */
.tag_element_div img {
    height: 30px;
    border-radius: 5px;
}

/* 索引 */

/* 标签索引 */
.tag_element_div_index {
    padding: 10px;
    margin-bottom: 20px;
}

/* a 标签 */
.tag_element_div_index a {
    height: 40px;
    background-color: white;
    display: inline-block;
    font-weight: 700;
    color: rgb(41, 41, 41);
    transition: background-color 0.5s, color 0.5s;
    border-radius: 10px;
    padding: 10px;
    margin: 5px 5px;
    text-decoration: none;
}

.tag_element_div_index a:hover {
    background-color: rgb(205, 155, 252);
    color: white;
}

/* 回到顶部 */
#pastTop {
    position: fixed;
    width: 30px;
    height: 30px;
    bottom: 10px;
    right: 10px;
    background-color: white;
    text-decoration: none;
    text-align: center;
    line-height: 30px;
    font-weight: bolder;
    font-size: 20px;
    color: black;
    border-radius: 10px;
    transition: background-color 0.5s, color 0.5s;
}

#pastTop:hover {
    background-color: rgb(205, 155, 252);
    color: white;
}