* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    overflow: -moz-scrollbars-horizontal;
}

html, body, .main {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/*顶部导航栏*/
.header {
    position: relative;
    height: 60px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.header ul {
    height: 60px;
}

.header ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 120px;
    float: right;
    list-style: none;
    text-align: center;
    font-size: 18px;
}

.header ul li a {
    line-height: 60px;
    width: 100%;
    text-decoration: none;
}

.header a:link, .header a:visited {
    color: #eaeaea;
}

.header a:hover, .header a:active {
    background: -webkit-linear-gradient(left, pink, skyblue);
    color: black;
}


/*主功能区域大盒子*/
.box {
    width: 85%;
    height: 85%;
    min-height: 300px;
    max-height: 800px;
    min-width: 320px;
    max-width: 900px;
    border-radius: 20px;
    margin: 0 auto;
}

.logo { /*logo*/
    height: 65%;
    display: flex;
}


.logo img {
    height: 100%;
    margin: 0 auto;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.box-son1 {
    height: 35%;
    border-radius: 20px 20px 0 0;
}

.box-son2 {
    height: 65%;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 0 0 20px 20px;
}

.input_box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 35%;
}

.input_box form {
    position: relative;
    border-radius: 10px;
    height: 50%;
    width: 85%;
    max-width: 650px;
    min-width: 250px;
    background: white;
    padding-left: 10px;
    transition: all 0.3s;
}

.input_box form input { /*搜索框*/
    border: none;
    display: inline-block;
    font-size: 20px;
    height: 100%;
    width: calc(100% - 55px);
    outline: none;
}

.input_box button {
    position: absolute;
    right: 0;
    border: none;
    width: 50px;
    height: 100%;
    background: url("../media/img/search.png") no-repeat center center;
    background-size: 35px;
}

/* 书签和搜索引擎区域*/

.select-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    background: white;
    display: flex;
    border-radius: 20px;
    width: 220px;
    line-height: 30px;
    cursor: pointer;
    text-align: center;
    transition: all 0.1s;
}

.select-btn span:nth-child(1) {
    flex: 1;
}

.select-btn span:nth-child(2) {
    flex: 1;
}

.select-btn span:nth-child(3) {
    position: absolute;
    left: 0;
    height: 30px;
    width: 110px;
    border-radius: 20px;
    background: -webkit-linear-gradient(left, deeppink, skyblue);
    background: -moz-linear-gradient(left, deeppink, skyblue);
    z-index: -1;
    transition: all 0.2s;
}

.bgc1 { /* 点击时移动 */
    transform: translateX(100%);
}

/*常用网站box*/
.bookmark {
    position: relative;
    display: flex;
    overflow-x: hidden;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    height: 90%;
    width: 90%;
    border-radius: 20px;
    margin: 55px auto 45px;
}


.mark, .search_engine {
    position: absolute;
    top: 0;
    left: 0;
    overflow: -moz-scrollbars-horizontal;
    overflow: auto;
    width: 100%;
    text-align: center;
    padding: 5px;
    flex-shrink: 0;
    white-space: nowrap;
    height: 100%;
    transition: all .2s;
}

.mark div { /*常用列表*/
    float: left;
    width: 12.5%;
    margin-bottom: 5px;
}


.mark div img {
    border-radius: 30%;
    height: 50px;
    width: 50px;
    transition: all 0.2s;
}

.mark a:hover img {
    transform: scale(1.07);
}

.mark a {
    display: inline-block;
    width: 70px;
    height: 100%;
    text-decoration: none;
    color: #eaeaea;
    margin: 0 auto;
}

.search_engine {
    transform: translateX(100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    opacity: .8;
}

.search_engine div { /*搜索引擎列表*/
    display: inline-block;
    height: 90px;
    width: 25%;
    cursor: pointer;
}

.search_engine div:hover {
    border: 1px solid gray;
    box-shadow: 0 0 10px #a2a2a2;
}

.search_engine img {
    width: 70%;
}

/*侧边菜单*/
.menu {
    position: fixed;
    height: 100%;
    z-index: 99;
    width: 400px;
    transform: translateX(-100%);
    background: #053135;
    transition: all .3s;
}

.menu ul {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.menu ul li {
    float: left;
    width: 27%;
    display: inline-block;
    list-style: none;
    text-align: center;
    line-height: 30px;
    margin: 10px 12px;
}

.menu ul .group {
    margin: 10px auto;
    width: 100%;
    display: block;
    color: white;
    font-size: large;
}

.menu a {
    display: inline-block;
    border-radius: 5px;
    width: 100px;
    height: 30px;
    background: #293550;
}

.menu img {
    border-radius: 5px;
    height: 20px;
    vertical-align: text-bottom;
}

.menu a:link, .menu a:visited {
    text-decoration: none;
    color: white;
}

.menu a:hover, .menu a:active {
    color: white;
    background: -webkit-linear-gradient(left, deeppink, skyblue);
    background: -moz-linear-gradient(left, deeppink, skyblue);
}

/*菜单按钮*/
.menu_btn {
    position: absolute;
    z-index: 99;
    top: 12px;
    right: -45px;
    line-height: 35px;
    width: 40px;
    font-size: 40px;
    text-align: center;
    border-radius: 10px;
    background: -webkit-linear-gradient(left, pink, skyblue);
    background: -moz-linear-gradient(left, pink, skyblue);
    opacity: .8;
    cursor: pointer;
    transition: all .3s;
}

::-webkit-scrollbar {
    display: none; /* Chrome Safari */
}

/*搜索提示框隐藏*/
#search_list {
    display: none;
}

@media screen and (max-width: 960px) {
    .mark div {
        width: 14%;
    }

    .search_engine div {
        width: 33.33%;
    }
}

@media screen and (max-width: 800px) {
    .mark div {
        width: 16%;
    }
}

@media screen and (max-width: 540px) {
    .mark div {
        width: 20%;
    }

    .menu {
        width: 70%;
    }

    .menu ul li {
        width: 40%;
    }

    .search_engine div {
        width: 50%;
    }
}

@media screen and (max-width: 420px) {
    .mark div {
        width: 25%;
    }

    .logo img {
        width: 320px;
    }
}

@media screen and (max-width: 320px) {
    .mark div {
        width: 33%;
    }

    .logo img {
        width: 25px;
    }

    .menu ul li {
        width: 100%;
    }

    .search_engine div {
        width: 100%;
    }
}

@media screen and (max-height: 450px) {
    .bookmark {
        display: none;
    }

    .box-son1 {
        height: 80%;
    }

    .box-son2 {
        height: 20%;
    }

    .logo img {
        height: 80%;
    }
}

@media screen and (max-height: 550px) and (min-height: 449px) {
    .input_box form {
        height: 80%;
    }
}

.bg {
    position: fixed;
    top: 0;
    right: 0;
    z-index: -100;
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.changeBgBtn {
    position: fixed;
    z-index: 99;
    font-size: 16px;
    cursor: pointer;
    border: none;
    bottom: 20px;
    right: 20px;
    height: 35px;
    width: 120px;
    opacity: .7;
    background: white;
    text-align: center;
    line-height: 35px;
}
.changeBgBtn div {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    background: -webkit-linear-gradient(left, pink, skyblue);
    background: -moz-linear-gradient(left, pink, skyblue);
}