/* 响应式设计样式 */

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* 调整版心宽度 */
    .container {
        width: 90%;
        margin: 0 auto;
    }

    /* 导航栏适配 */
    header .container .top {
        flex-direction: column;
        padding: 20px 0;
    }

    header .container .top .title {
        margin-bottom: 15px;
        font-size: 20px;
        text-align: center;
    }

    /* 移动端菜单按钮 */
    .menu-toggle {
        display: block;
        width: 30px;
        height: 30px;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 100;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        margin-bottom: 5px;
        transition: all 0.3s;
    }

    header .container .top .bar {
        display: none;
        width: 100%;
        background: rgba(6, 0, 151, 0.9);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 15px 0;
    }

    header .container .top .bar.active {
        display: block;
    }

    header .container .top .bar li {
        display: block;
        text-align: center;
        padding: 10px 0;
        font-size: 16px;
    }

    /* 首页横幅适配 */
    header .banner {
        flex-direction: column;
        padding: 10px 0 30px 0;
    }

    header .banner .left span {
        font-size: 24px;
        text-align: center;
    }

    header .banner .left span:last-child {
        font-size: 18px;
        padding: 8px 30px;
        margin: 20px auto 0;
    }

    header .banner .right {
        margin-top: 20px;
        width: 100%;
    }

    header .banner .right img {
        width: 100%;
        height: auto;
    }

    /* 产品展示适配 */
    #product .item ul, #youshi .item ul, #whychoiseus .item ul {
        flex-direction: column;
    }

    #product .item ul li, #youshi .item ul li, #whychoiseus .item ul li {
        width: 100%;
        margin-bottom: 20px;
    }

    /* 关于我们适配 */
    #aboutus .content {
        flex-direction: column;
    }

    #aboutus .content .right {
        margin-top: 20px;
        width: 100%;
    }

    #aboutus .content .right img {
        width: 100%;
        height: auto;
    }

    /* 联系我们适配 */
    #contentus .content {
        font-size: 32px;
    }

    /* 产品详情页适配 */
    section .container img {
        max-width: 100%;
        height: auto;
    }
}

/* 平板设备适配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 90%;
    }

    header .container .top .bar li {
        padding: 0 15px;
    }

    #product .item ul li, #whychoiseus .item ul li {
        width: 32%;
    }

    #youshi .item ul li {
        width: 19%;
    }
}

/* 大屏设备适配 */
@media screen and (min-width: 1025px) {
    .container {
        width: 1160px;
    }
}