/* 移动端响应式样式 - 专门优化产品栏目和产品内容 */

/* 基础移动端优化 */
@media (max-width: 768px) {
    
    /* 整体布局优化 */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .maincon {
        padding: 0;
    }
    
    /* 导航栏移动端优化 */
    .themenav {
        position: relative;
        z-index: 1000;
    }
    
    .thememenu {
        display: none;
    }
    
    #sideMenu {
        display: block;
        font-size: 24px;
        padding: 15px;
        cursor: pointer;
    }
    
    #sideMenuContainer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        z-index: 9999;
    }
    
    .mxphonenav {
        background: #009d8e;
        margin: 0;
        padding: 60px 0 0 0;
        height: 100vh;
        overflow-y: auto;
    }
    
    .mxphonenav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mxphonenav li a {
        display: block;
        padding: 15px 20px;
        color: white;
        font-size: 16px;
        text-decoration: none;
    }
    
    /* 产品展示页面移动端优化 */
    .proslist .row {
        margin: 0;
    }
    
    .proslist .col-md-4,
    .proslist .col-xs-6 {
        width: 50% !important;
        padding: 5px;
        float: left;
    }
    
    .propart {
        max-width: 100%;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .proimg img {
        width: 100%;
        height: 150px !important;
        object-fit: cover;
    }
    
    .protext {
        padding: 10px 8px;
        min-height: 70px;
        background: white;
        transition: all 0.3s ease;
    }
    
    /* 移动端触摸反馈效果 */
    .propart.touch-active,
    .propart:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 157, 142, 0.3);
    }
    
    .propart.touch-active .protext,
    .propart:active .protext {
        background-color: #009d8e !important;
    }

    .propart.touch-active .protext .indexprotit,
    .propart:active .protext .indexprotit {
        color: white !important;
    }

    .propart.touch-active .protext .indexsubtitle,
    .propart:active .protext .indexsubtitle {
        color: orange !important;
    }

    .propart.touch-active .proimg img,
    .propart:active .proimg img {
        border: 2px solid #009d8e !important;
    }
    
    /* 图片加载动画 */
    .proimg img {
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .proimg img.loaded {
        opacity: 1;
    }
    
    .indexprotit {
        font-size: 13px !important;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .indexsubtitle {
        font-size: 11px !important;
        line-height: 1.2;
    }
    
    /* 左侧导航移动端优化 */
    .col-md-3 {
        width: 100%;
        margin-bottom: 20px;
        order: 2;
        transition: all 0.3s ease;
    }
    
    .col-md-9 {
        width: 100%;
        order: 1;
    }
    
    .row {
        display: flex;
        flex-direction: column;
    }
    
    /* 移动端导航切换按钮 */
    .mobile-nav-toggle {
        width: 100%;
        margin: 15px 0;
        order: 1.5;
    }
    
    .mobile-nav-toggle button {
        background: #009d8e;
        border: none;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 6px;
        color: white;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-toggle button:hover {
        background: #00b4a2;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 157, 142, 0.3);
    }
    
    /* 移动端侧边栏隐藏状态 */
    .mobile-sidebar-hidden {
        display: none !important;
    }
    
    .mobile-sidebar {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .sidbar {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }
    
    .sidbarnav {
        padding: 15px;
    }
    
    .tzggtit {
        margin-bottom: 15px;
        padding: 12px 15px;
        border-radius: 6px;
    }
    
    .ymtitle {
        padding: 0;
        margin: 0;
    }
    
    .ymtitle .cat-item {
        margin-bottom: 8px;
    }
    
    .ymtitle .parent-link {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 6px;
        position: relative;
        transition: all 0.3s ease;
    }
    
    /* 添加展开/收缩指示器 */
    .ymtitle .parent-link:after {
        content: '+';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        font-weight: bold;
        transition: all 0.3s ease;
    }
    
    .ymtitle .parent-link.active:after {
        content: '−';
        transform: translateY(-50%) rotate(0deg);
    }
    
    .third-menu {
        margin-top: 5px;
        padding-left: 0;
        background: #f8f9fa;
        border-radius: 0 0 6px 6px;
        display: none; /* 默认隐藏 */
        overflow: hidden;
    }
    
    .third-cat-item {
        list-style: none;
        border-bottom: 1px solid #eee;
    }
    
    .third-cat-item:last-child {
        border-bottom: none;
    }
    
    .third-cat-item a {
        display: block;
        padding: 10px 20px;
        color: #666;
        font-size: 13px;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .third-cat-item.current-cat a,
    .third-cat-item a:hover {
        color: #009d8e;
        background: rgba(0, 157, 142, 0.1);
        font-weight: bold;
    }
    
    /* 产品内容页面移动端优化 */
    .product-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .product-image {
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .product-image img {
        max-width: 100%;
        height: 220px;
        border-radius: 8px;
        object-fit: cover;
    }
    
    .product-info {
        width: 100%;
    }
    
    .product-title {
        font-size: 20px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .product-subtitle,
    .product-purpose {
        font-size: 14px;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .section-title {
        font-size: 18px;
        margin: 20px 0 12px;
        text-align: center;
    }
    
    .pagecontent {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .pagecontent table {
        width: 100%;
        font-size: 12px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .pagecontent img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        margin: 10px 0;
    }
    
    /* 分页导航移动端优化 */
    .page_navi {
        margin: 20px 0;
        text-align: center;
    }
    
    .page_navi a {
        display: inline-block;
        padding: 8px 12px;
        margin: 2px;
        font-size: 14px;
        border-radius: 4px;
    }
    
    /* 面包屑导航移动端优化 */
    .bread,
    .location {
        font-size: 12px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 6px;
        margin-bottom: 15px;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* 联系我们部分移动端优化 */
    .sidbarcontact {
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        margin-top: 15px;
    }
    
    .sidbarcontact p {
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
    }
    
    /* 上一篇下一篇导航移动端优化 */
    .conbottom {
        margin-top: 30px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .prenext p {
        font-size: 13px;
        margin-bottom: 8px;
        word-break: break-all;
    }
    
    /* 悬浮联系栏移动端优化 */
    .yb_conct {
        right: -100px !important;
        bottom: 20px;
    }
    
    .yb_bar {
        flex-direction: row;
        background: #009d8e;
        border-radius: 25px;
        padding: 5px;
    }
    
    .yb_bar li {
        margin: 0 5px;
        border-radius: 20px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .yb_ercode {
        display: none !important;
    }
}

/* 超小屏幕优化 (小于480px) */
@media (max-width: 480px) {
    
    .proslist .col-md-4,
    .proslist .col-xs-6 {
        width: 100% !important;
        padding: 5px 0;
    }
    
    .propart {
        display: flex;
        align-items: center;
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .proimg {
        flex: 0 0 80px;
        margin-right: 15px;
    }
    
    .proimg img {
        width: 80px;
        height: 80px !important;
        border-radius: 6px;
    }
    
    .protext {
        flex: 1;
        min-height: auto;
        padding: 0;
        text-align: left;
    }
    
    .indexprotit {
        font-size: 14px !important;
        margin-bottom: 3px;
    }
    
    .indexsubtitle {
        font-size: 12px !important;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    
    .proslist .col-md-4,
    .proslist .col-xs-6 {
        width: 33.33% !important;
    }
    
    .proimg img {
        height: 120px !important;
    }
    
    .product-header {
        flex-direction: row;
        gap: 20px;
    }
    
    .product-image {
        flex: 0 0 200px;
    }
    
    .product-info {
        flex: 1;
    }
} 