/**
 * CZS Bonsai Responsive Styles
 *
 * 响应式断点：
 * - 大屏: > 1400px (默认)
 * - 中屏: 992px - 1400px
 * - 平板: 768px - 991px
 * - 手机: < 768px
 */

/* Container宽度由bootstrap.min.css控制，保持与静态网站一致 */

/* ========== 中屏幕适配 (992px - 1400px) ========== */
@media only screen and (max-width: 1400px) {
    #cssmenu > ul > li {
        margin-left: 30px;
    }

    #cssmenu > ul > li > a {
        font-size: 14px;
    }

    .top_section #logo {
        width: 240px;
    }

    .nav_section #logo {
        width: 200px;
        margin-top: 26px;
    }

    .my_more1 {
        line-height: 40px;
        padding: 0px 24px;
        font-size: 14px;
    }

    .i_title .title_h4 {
        font-size: 40px;
        line-height: 40px;
    }
}

/* ========== 平板适配 (768px - 991px) ========== */
@media only screen and (max-width: 992px) {
    /* 隐藏桌面导航，显示移动导航 */
    #cssmenu {
        display: none !important;
    }

    header .wrapper {
        display: block;
    }

    /* 容器全宽 */
    .top_section .container,
    .nav_section .container {
        width: 100%;
        padding: 0;
    }

    /* Logo适配 */
    .top_section #logo {
        margin-top: 8px;
        margin-left: 15px;
        width: auto;
    }

    .top_section #logo img {
        max-height: 32px;
    }

    .nav_section #logo {
        margin-top: 4px;
        width: auto;
        margin-left: 15px;
    }

    .nav_section #logo img {
        height: 40px;
        width: auto;
    }

    /* Header固定高度 */
    header.small {
        background: #fff;
        height: 46px;
        box-shadow: 0px 5px 10px rgba(0,0,0,0.15);
    }

    .height {
        height: 46px;
    }

    /* 隐藏顶部社交链接 */
    .top_section .top_sns {
        display: none;
    }

    /* 搜索框适配 */
    .attr-nav .search {
        position: absolute;
        right: 46px;
        top: 0;
    }

    .attr-nav .search span {
        display: none;
    }

    .top-search {
        width: 90%;
        right: 5%;
        left: 5%;
    }

    /* 标题适配 */
    .i_title {
        margin-bottom: 20px;
    }

    .i_title .title_h4 {
        font-size: 30px;
        line-height: 30px;
        padding-top: 0;
        padding-bottom: 10px;
        background: none;
    }

    .title_l {
        text-align: center;
    }

    .i_title p {
        margin-top: 0;
    }

    /* 分类区域 */
    .cate_section {
        padding: 40px 0;
    }

    .cate_section .my_more1 {
        margin-top: 0;
    }

    .cate_section .title {
        font-size: 18px;
    }

    /* 关于我们区域 */
    .about_section {
        padding-top: 40px;
        margin-bottom: 50px;
    }

    .about_section .about_l {
        width: 100%;
        padding-right: 0;
    }

    .about_section .image {
        width: 100%;
        margin-bottom: 30px;
        padding-left: 0;
    }

    .about_section .tab-content > .tab-pane {
        height: auto;
    }

    .about_section .nav-tabs li a .icon {
        width: 60px;
        height: 60px;
    }

    .about_section .nav-tabs li a p {
        font-size: 12px;
    }

    /* 产品区域 */
    .pro_section ul li {
        width: 50%;
        float: left;
    }

    /* 种植流程区域 */
    .planting {
        background: #f5f5f5;
        padding-top: 30px;
    }

    .planting .plan_l {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .planting .i_title {
        margin-bottom: 0px;
    }

    .planting .i_title .title_h4 {
        text-align: center;
    }

    .planting .plan_r {
        width: 100%;
        margin-top: 20px;
    }

    /* 订阅区域 */
    .footer_email {
        padding: 30px 0;
    }

    .footer_email .email {
        width: 100%;
    }

    .footer_email .h4 {
        font-size: 20px;
    }

    /* Slick滑块 */
    .slick-dots {
        bottom: -30px;
    }

    .slick-prev {
        left: 0px;
    }

    .slick-next {
        right: 0px;
    }

    .slider {
        padding: 0px 40px;
    }
}

/* ========== 手机适配 (< 768px) ========== */
@media only screen and (max-width: 768px) {
    /* 分类两列 */
    .cate_section .li {
        width: 50%;
    }

    /* 关于我们Tab图标 */
    .about_section .nav-tabs li a .icon {
        float: none;
    }

    .about_section .nav-tabs li a p {
        line-height: 20px;
    }

    .numbers {
        display: none;
    }

    /* 隐藏种植流程 */
    .planting {
        display: none;
    }

    /* 产品单列 */
    .pro_section ul li {
        width: 100%;
        float: none;
    }
}

/* ========== 小屏幕适配 (< 600px) ========== */
@media only screen and (max-width: 600px) {
    .top_section .top_con {
        display: none;
    }

    .top_section .top_language {
        margin: 2px 0;
    }

    .top_section .top_language a {
        margin-left: 8px;
        font-size: 11px;
        line-height: 24px;
    }

    .top_section .top_language a img {
        width: 16px;
        height: 11px;
        margin-right: 5px;
    }
}

/* ========== 极小屏幕适配 (< 480px) ========== */
@media only screen and (max-width: 480px) {
    .banner_text {
        display: none;
    }

    .cate_section .li {
        width: 100%;
    }
}

/* ========== 浮动联系组件响应式 ========== */
@media only screen and (max-width: 768px) {
    .fixed-contact {
        display: none !important;
    }
}

/* ========== 移动端底部导航 ========== */
@media only screen and (max-width: 992px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 999999;
        padding: 8px 0;
    }

    .mobile-bottom-nav .nav-item {
        flex: 1;
        text-align: center;
    }

    .mobile-bottom-nav .nav-item a {
        display: block;
        padding: 8px 0;
        color: #333;
        font-size: 12px;
    }

    .mobile-bottom-nav .nav-item a i {
        display: block;
        font-size: 20px;
        margin-bottom: 4px;
        color: var(--primary-color);
    }

    .mobile-bottom-nav .nav-item a:hover {
        color: var(--primary-color);
    }

    /* 为页面底部留出空间 */
    body.has-mobile-nav {
        padding-bottom: 70px;
    }
}

@media only screen and (min-width: 993px) {
    .mobile-bottom-nav {
        display: none;
    }
}
