/* * {
    margin: 0;
    padding: 0;
} */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

.h_container {
    max-width: 850px;
    margin: 0 auto;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #015792;
    color: #fff;
    text-align: center;
    /* padding: 10px 0; */
    height: 50px;

}

.logo_pack {
    float: left;
    display: block;
    margin-left: 20px;
    margin-top: 10px;
}

.logo_img {
    display: block;
    width: 85px;
    height: 30px;
}

.header_tools {
    float: left;
    margin-left: 50px;
}

.header_tool_list {
    display: inline;
}

.header_tool_list li {
    float: left;
    margin-right: 20px;
}

.header_tool_list li>a {
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    color: #FFF;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
}

.header_right {
    display: inline;
    float: right;
}

.login_btn>a {
    display: block;
    width: 70px;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    font-weight: bold;
    color: #FFF;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
}

.m_container {
    margin: 60px auto;
}

main {
    max-width: 850px;
    margin: 10px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

main .line {
    width: 100%;
    height: 1px;
    margin-top: 20px;
    background-color: #ccc;
}

main h2 {
    color: #333;
    display: inline;
}

main ul {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
    list-style-type: none;
    padding: 0;
}

main ul li {
    margin-bottom: 10px;
}

main ul li a {
    color: #007bff;
    text-decoration: none;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #f5f5f5;
    color: #333333;
    font-size: 13px;
}

footer a {
    color: #333333;
    text-decoration: none;
}

/* 长文本显示... */
.long_text {
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moreitems {
    display: flex;
    width: 100px;
    font-size: 14px;
    color: #fff;
}

/* 弹出菜单相关 start */
.submenu {
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.submenu:hover {
    overflow: visible;
    background: #015792;
    color: white;
    z-index: 999;
    cursor: pointer;
}

.drop {
    background: #015792;
    text-align: center;
    font-size: 14px;
    overflow: hidden;

}

.droplist a {
    display: block;
    height: 40px;
    line-height: 40px;
}

.drop:hover {
    background-color: #4792c4;
    cursor: pointer;
}

/* 弹出菜单相关 end */

/* 搜索框 */
.search-box {
    position: relative;
    float: right;
    margin: 4px 0px 0px 20px;
}

.search-box input[type="text"] {
    padding: 10px 15px;
    border: 2px solid rgba(204, 204, 204, 0.5);
    margin-right: 40px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
    width: 100px;
}

.search-box input[type="text"]:hover {
    border-color: rgba(0, 123, 255, 0.6);
}

.search-box input[type="text"]:focus {
    border-color: rgba(0, 123, 255, 0.8);
}

/* 搜索框结束 */


@media screen and (max-width: 700px) {
    .header_tools {
        margin-left: 20px;
    }

    .login_btn>a span {
        font-size: 12px;
    }

    .header_tool_list li {
        margin-right: 5px;
    }

    .header_tool_list li>a span {
        font-size: 8px;
    }

    .logo_pack {
        margin-left: 50px;
    }

    .long_text {
        width: 140px;
    }
}

@media screen and (max-width: 550px) {
    .header_right {
        margin-right: 20px;
    }

    .moreitems {
        width: 80px;
    }

    .search-box input[type="text"] {
        margin-right: 10px;
    }
}

@media screen and (max-width: 475px) {
    .logo_pack {
        margin-left: 20px;
    }

    .long_text {
        width: 100px;
    }

    .header_tool_list li>a {
        font-size: 12px;
    }

    .moreitems {
        font-size: 12px;
    }

}

/* 不显示登录功能 */
@media screen and (min-width: 431px) {
    .droplogin {
        display: none;
    }
}

@media screen and (max-width: 430px) {
    .header_right {
        display: none;
    }

    /* 登录显示在更多功能里 */
    .droplogin {
        display: block;
    }

    .header_tool_list li a {
        font-size: 10px;
    }

    .moreitems {
        font-size: 10px;
    }
}

@media screen and (max-width: 400px) {

    .search-box {
        display: none;
    }

}

@media screen and (max-width: 330px) {

    .header_tool_list li a {
        font-size: 8px;
    }

    .moreitems {
        font-size: 8px;
    }

    .logo_pack {
        margin-left: 20px;
    }

    .long_text {
        width: 40px;
    }

}