:root {
    --itemsWidth:1140px;
    --searchWidth:840px;
    --background: linear-gradient(135deg, #252534, #334667, #404975);
    --background-size: 200% 200%;
    --animation: gradientAnimation 5s ease infinite;
    --font-family: "Microsoft YaHei", "PingFang SC", "PT Sans", 'Avenir', 'Segoe UI', "Hiragino Sans GB", 'STHeiti', "WenQuanYi Micro Hei", 'Microsoft Sans Serif', sans-serif;
}


body{
    overflow-x: hidden;
    width: 100%;
    /*width: auto;*/
    height: auto;
    background-color: #f2f4f6;

    padding: 0;
    margin: 0;
    font-family: "Microsoft YaHei","PingFang SC","PT Sans",'Avenir','Segoe UI',"Hiragino Sans GB",STHeiti,"WenQuanYi Micro Hei",'Microsoft Sans Serif',sans-serif;
    user-select: none;
    cursor: auto;
}

#header{
    width:auto;
    padding: 24px 0px;
    background: var(--background);
    background-size: var(--background-size);
    animation: var(--animation);
}
#headerContent {
    display: flex;
    width: var(--searchWidth);
    margin: 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#tab{
    width: 100%;
    margin: 0 auto;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
}
.tabBtn{
    height: 30px;
    width: fit-content;
    vertical-align: middle;
    background-color: transparent;/*隐藏背景色*/
    border: none; /* 移除边框 */
    padding: 0; /* 设置内边距 */
    text-align: center; /* 文字居中 */
    text-decoration: none; /* 移除下划线 */
    display: block;

    font-size: 14px; /* 设置字体大小 */
    margin: 0; /* 设置外边距 */
    cursor: pointer; /* 鼠标指针样式 */
    border-radius: 4px; /* 设置圆角半径 */

}
.tabBtn label{
    height: 30px;
    padding: 0 12px;
    cursor: pointer; /* 鼠标指针样式 */
}


#search{
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    margin:0 auto;
}

#inputSearch{
    flex:1;
    height:40px;
    font-size: 15px;
    padding: 0px 0px 0px 10px;
    color: #666;
    outline: 0;
    border: none;
    cursor: text;
}
::placeholder {
    color: #CCCCCC;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: var(--font-family);
}

#btnSearch{
    width: 100px;
    height: 40px;
    border: none;
    outline: 0;
    cursor:pointer;
    color: white;
    text-align: center;
    font-size: 16px;
    background-color: #5F85DB;
}

#btnSearch:link{text-decoration:none; background-color: #5F85DB;}
#btnSearch:visited {text-decoration:none; background-color: #5F85DB;}
#btnSearch:hover {text-decoration:none; color:#fff; background-color: #6296ef}
#btnSearch:active {text-decoration:none; color:#fff; background-color: #5F85DB}

.categoryTitle {
    /*display: none;*/
    float: left;
    width:var(--itemsWidth);
    height: 20px;
    margin: 20px 0px 0px 0px;
    padding: 0;
    /*letter-spacing: 1px;*/
}
.categoryTitle span{
    margin:0 auto;
    display: block;
    width:auto;
    font-size: 12px;
    color: #71818d;
    margin-left: 10px;
    padding: 0;
    letter-spacing: 1px;
}

#content{
    width:auto;
    padding:0;
    margin: 0;
    /*background-color: #ff6c1a;*/
}
#itemContainer {
    width: var(--itemsWidth);
    margin: 5px auto;
    flex-direction: row;
    flex-wrap: wrap;
    display: flex;
    justify-content:flex-start;
    /*background-color: #5922DB;*/
}

img{
    width: 178px;
    height: 58px;
    text-decoration:none;
    outline: 1px solid #EEEEEE;
    border-radius: 4px;
    cursor:pointer;
    margin: 5px;
}

img:hover{outline: 1px solid #DDDDDD;}
img:link{outline: 1px solid #EEEEEE;}

#footer{
    width:auto;
    height:auto;
    text-align: center;
    margin: 20px 0px 0px 0px;
    padding: 10px 0px;
    color: #999999;
    letter-spacing: 1px;
    font-size: small;

    background: var(--background);
    background-size: var(--background-size);
    animation: var(--animation);
}


/* 定义关键帧动画 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 响应式样式 */
@media  (max-width: 1200px) {
    #headerContent{
        width:auto;
    }
    .categoryTitle{
        width:auto;
    }
    #itemContainer{
        width:auto;
    }

}

