/*
 * 手机端响应式适配
 * 这个文件只在小屏幕下覆盖原来的固定宽度样式，电脑端布局不受影响。
 */

@media screen and (max-width: 768px) {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body {
        background-size: auto 220px;
        background-position: center top;
    }

    img,
    video,
    iframe,
    table {
        max-width: 100%;
    }

    img {
        height: auto;
    }

    .header {
        width: 100%;
        padding: 24px 15px 0;
        margin: 0 auto;
    }

    .header h1 {
        font-size: 28px;
        line-height: 1.2;
        word-break: break-word;
    }

    .header h1 a:hover {
        padding-left: 0;
    }

    .header p {
        margin-top: 10px;
        line-height: 1.6;
    }

    .b_nav {
        height: auto;
        min-height: 50px;
        margin-top: 78px;
        background-size: cover;
        background-position: center;
    }

    .navswf {
        width: 100%;
        margin-top: 15px;
        position: relative;
    }

    #nav {
        position: static;
        width: 100%;
        height: auto;
        line-height: 1.4;
    }

    #nav ul {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 8px 10px;
    }

    #nav ul li {
        float: none;
        display: block;
        width: auto;
    }

    #nav ul li a {
        display: block;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 0 24px;
    }

    #nav ul li a:hover,
    #nav ul li a#nav_current {
        border-radius: 0 24px;
    }

    .main {
        width: calc(100% - 24px);
        max-width: 100%;
        margin: 15px auto 0;
        padding: 15px;
        border-radius: 12px;
        overflow: hidden;
    }

    .left,
    .right,
    .w760,
    .w300,
    .bloglist,
    .lis,
    .nwes_li,
    .weather,
    .position span,
    .arrow_box,
    .tu_title {
        width: 100% !important;
        max-width: 100% !important;
    }

    .left,
    .right,
    .lis,
    .nwes_li,
    .tu,
    .tu_title,
    .news_thumb,
    .bolg_n,
    .time_n,
    .read_n,
    .page,
    .page1,
    .next span {
        float: none !important;
    }

    .right {
        margin-top: 24px;
    }

    .banner,
    #slide-runner {
        width: 100% !important;
        height: 180px !important;
        position: relative;
        overflow: hidden;
    }

    #slide-holder img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover;
    }

    #slide-controls {
        width: 100% !important;
        left: 0;
        bottom: 0;
    }

    #slide-controls p.text {
        max-width: 55%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .left_news {
        margin-top: 20px;
    }

    .news_title span {
        display: block;
        float: none;
        margin: 6px 0 0;
        font-size: 14px;
    }

    .lis {
        padding: 15px 0;
    }

    .news_thumb {
        width: 100% !important;
        margin-bottom: 12px;
    }

    .news_thumb img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: cover;
    }

    .nwes_li {
        padding: 0;
    }

    .txt {
        height: auto;
        line-height: 1.8;
    }

    .data li,
    .bolg_n,
    .time_n,
    .read_n {
        display: inline-block;
        margin: 4px 8px 4px 0;
    }

    .weather {
        padding: 8px;
        border-radius: 18px;
    }

    .r_news {
        height: auto;
        min-height: 0;
    }

    .r_news li {
        height: auto;
        line-height: 1.7;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .tag {
        height: auto;
    }

    .r_news2 li {
        height: auto;
        overflow: hidden;
        padding-bottom: 10px;
    }

    .tu {
        margin: 0 10px 8px 0;
    }

    .position {
        height: auto;
        line-height: 1.8;
        padding: 0 0 8px;
    }

    .position span {
        padding-left: 20px;
        background-position: left 6px;
    }

    .c_title {
        font-size: 17px;
        line-height: 1.6;
    }

    .update {
        height: auto;
        line-height: 1.7;
        padding: 8px;
    }

    .content,
    .content_about,
    .content_txt {
        width: 100%;
        max-width: 100%;
    }

    .content_about {
        margin: 15px 0;
    }

    .content_txt {
        padding: 0;
        text-indent: 0;
        line-height: 1.9;
    }

    .next {
        height: auto;
        line-height: 1.8;
        margin-top: 30px;
        padding-bottom: 8px;
    }

    .next span {
        display: block;
    }

    .bloglist {
        background: none;
        margin: 0;
    }

    .arrow_box {
        padding: 15px;
        margin: 15px 0;
    }

    .arrow_box::before,
    .arrow_box::after {
        display: none;
    }

    .arrow_box img {
        float: none;
        display: block;
        width: 100%;
        max-height: 220px;
        object-fit: cover;
        margin: 0 0 12px;
    }

    .arrow_box p {
        padding: 0 0 12px;
    }

    .dateview {
        position: static;
        display: inline-block;
        width: auto;
        margin-top: 8px;
        padding: 0 12px;
        line-height: 28px;
    }

    #message,
    .form-row input[type="text"] {
        max-width: 100%;
    }

    .message-meta {
        display: block;
        line-height: 1.7;
    }

    .page,
    .page1 {
        text-align: center;
    }

    .page li,
    .page1 li {
        float: none;
        display: inline-block;
        margin: 4px;
    }
}

@media screen and (max-width: 480px) {
    body {
        background-size: auto 190px;
    }

    .header {
        padding-top: 20px;
    }

    .header h1 {
        font-size: 24px;
    }

    .b_nav {
        margin-top: 62px;
    }

    #nav ul {
        padding: 7px 8px;
        gap: 5px;
    }

    #nav ul li a {
        padding: 7px 9px;
        font-size: 13px;
    }

    .main {
        width: calc(100% - 18px);
        padding: 12px;
    }

    .banner,
    #slide-runner,
    #slide-holder img {
        height: 150px !important;
    }

    #slide-controls p.text {
        display: none;
    }

    .news_thumb img,
    .arrow_box img {
        max-height: 180px;
    }
}
