@charset "utf-8";

/* 移动端适配样式 */

/* 移动菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: absolute;
    right: 15px;
    top: 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 999;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #0483b0;
    margin: 6px 0;
    transition: all 0.3s;
}

/* 汉堡菜单动画效果 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端导航样式 */
/* 平板设备断点 */
@media screen and (max-width: 992px) {
    .main_box {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    #nav li {
        padding: 0 15px;
    }
}

/* 移动设备断点 */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .main_box {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    #header {
        height: 80px;
        background-size: cover;
    }
    
    #logo_area {
        height: 80px;
        left: 15px;
    }
    
    #logo_area a img {
        max-width: 180px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Banner响应式样式 */
    #banner {
        height: auto;
    }
    
    #banner .bd ul li a {
        height: 200px;
        background-size: cover !important;
    }
    
    #banner .hd {
        bottom: 10px;
    }
    
    #banner .prev,
    #banner .next {
        display: none;
    }
    
    /* 首页内容响应式 */
    #s_main_box .f1 {
        height: auto;
        padding: 20px 0;
    }
    
    #s_main_box .f1 .left,
    #s_main_box .f1 .md,
    #s_main_box .f1 .right {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }
    
    #slide_news {
        width: 100%;
        margin: 0 auto 20px;
    }
    
    #slide_news .bd li a,
    #slide_news .bd img {
        width: 100%;
        height: auto;
    }
    
    #s_news {
        width: 100%;
        margin-left: 0;
    }
    
    /* 通知公告响应式样式 */
    .s_fast_link {
        height: auto;
        padding: 10px 0;
    }
    
    .s_fast_link dl {
        padding: 0 15px;
    }
    
    .s_fast_link dt {
        position: relative;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .s_fast_link dd {
        margin-left: 0;
        height: auto;
    }
    
    .s_fast_link .bd li .box {
        width: 100%;
    }
    
    .s_fast_link .bd a {
        width: 70%;
    }
    
    /* 导航菜单样式 */
    #nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #283c55;
        transition: all 0.3s ease;
        overflow-y: auto;
        z-index: 9999;
    }
    
    #nav.active {
        right: 0;
    }
    
    #nav ul {
        display: block;
        padding: 60px 0 0 0;
    }
    
    #nav li {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    #nav li .a strong {
        line-height: 50px;
    }
    
    #nav li .a span {
        height: 50px;
    }
    
    #nav li.on i,
    #nav li:hover i {
        height: 50px;
    }
    
    /* 下拉菜单样式 */
    #nav .list {
        position: relative;
        display: none;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        background: rgba(0,0,0,0.2);
    }
    
    #nav .list .box {
        padding: 0 15px;
    }
    
    #nav .list a {
        display: block;
        line-height: 40px;
        margin: 0;
        padding: 0 15px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: #f7f7f7;
    }
    
    #nav .list a:hover {
        background: rgba(4, 131, 176, 0.2);
    }
    
    /* 移动端下拉菜单展开按钮 */
    .mobile-dropdown-toggle {
        position: absolute;
        right: 15px;
        top: 15px;
        width: 20px;
        height: 20px;
        z-index: 10;
    }
    
    .mobile-dropdown-toggle:before,
    .mobile-dropdown-toggle:after {
        content: '';
        position: absolute;
        background-color: #fff;
        transition: transform 0.3s ease;
    }
    
    .mobile-dropdown-toggle:before {
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        margin-top: -1px;
    }
    
    .mobile-dropdown-toggle:after {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        margin-left: -1px;
    }
    
    .mobile-dropdown-toggle.active:after {
        transform: rotate(90deg);
    }
    
    /* 遮罩层 */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    /* 列表框 */
    .list_box {
        display: none;
    }
    
    /* 产品展示响应式样式 */
    #s_main_box .f2 {
        padding: 20px 0;
    }
    
    #s_main_box .f2 .title h1 {
        font-size: 24px;
    }
    
    #s_tab .hd_box .li {
        width: 100%;
        margin-bottom: 5px;
    }
    
    #s_tab .hd_box .li h1 {
        font-size: 16px;
    }
    
    #s_tab .bd_box .content section .bd ul li {
        width: 100%;
        margin-bottom: 15px;
    }
    
    #s_tab .bd_box .content section .bd ul li .pic_box,
    #s_tab .bd_box .content section .bd ul li .pic_box img {
        width: 100%;
        height: auto;
    }
    
    /* 页脚响应式样式 */
    #footer .up_box .fl {
        width: 100%;
    }
    
    #footer .up_box .fl dl dd {
        width: 100%;
        margin-bottom: 15px;
    }
    
    #footer .up_box .fr {
        width: 100%;
        margin-top: 20px;
    }
}

/* 小屏幕手机设备断点 */
@media screen and (max-width: 480px) {
    #logo_area a img {
        max-width: 150px;
    }
    
    .mobile-menu-btn {
        top: 25px;
    }
    
    #banner .bd ul li a {
        height: 150px;
    }
    
    #s_main_box .f2 .title h1 {
        font-size: 20px;
    }
    
    #s_main_box .f2 .title p {
        font-size: 14px;
    }
    
    #s_news .pic_news h1 a {
        font-size: 16px;
    }
    
    #s_news .text_news li {
        line-height: 28px;
    }
    
    #s_news .text_news a {
        font-size: 13px;
    }
}