/**
 * 内页移动端专业优化
 * Inner Pages Mobile Optimization
 * 适用于：产品页、新闻页、关于我们、案例页、联系我们
 */

@media (max-width: 767px) {

    /* ==========================================
       通用内页布局
       ========================================== */
    
    /* 内页Banner */
    .nybanner {
        height: 150px !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    /* 主容器 */
    .wrapper {
        display: block !important;
        padding: 20px 0 !important;
    }
    
    /* 左侧边栏 */
    .wrapper .left {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
    }
    
    /* 右侧内容区 */
    .wrapper .content {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
    }
    
    /* 面包屑导航 */
    .location {
        padding: 15px 0 !important;
        margin-bottom: 20px !important;
    }
    
    .location h3 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .location .sitepath {
        font-size: 12px !important;
        flex-wrap: wrap;
    }

    /* ==========================================
       侧边栏菜单优化
       ========================================== */
    
    .menu {
        margin-bottom: 15px !important;
    }
    
    .menu .ey_title {
        padding: 12px 15px !important;
    }
    
    .menu .ey_title h3 {
        font-size: 16px !important;
    }
    
    .submenu .list li {
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .submenu .list li a {
        padding: 12px 15px !important;
        font-size: 14px !important;
        display: block !important;
    }
    
    /* 推荐产品 */
    .leftpro {
        display: none !important; /* 移动端隐藏，节省空间 */
    }
    
    /* 联系信息卡片 */
    .leftbox .cont {
        padding: 15px !important;
        font-size: 13px !important;
        line-height: 1.8 !important;
    }

    /* ==========================================
       产品列表页
       ========================================== */
    
    /* 产品筛选工具 */
    .product-tools {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .product-filters {
        margin-bottom: 15px !important;
    }
    
    .filter-group {
        margin-bottom: 15px !important;
    }
    
    .filter-label {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .filter-options {
        gap: 8px !important;
    }
    
    .filter-btn {
        padding: 6px 14px !important;
        font-size: 13px !important;
    }
    
    .product-search input {
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    /* 产品网格 */
    .gridlist {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .gridlist .item {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
    
    .gridlist .item .pic {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
    
    .gridlist .item .pic img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .gridlist .item .tit {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    /* ==========================================
       产品详情页
       ========================================== */
    
    .cpright {
        width: 100% !important;
    }
    
    /* 产品展示区 */
    .showcon {
        display: block !important;
    }
    
    .showcon .bigpic {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
    }
    
    .showcon .picbox {
        width: 100% !important;
        height: auto !important;
    }
    
    .showcon .picbox img {
        width: 100% !important;
        height: auto !important;
    }
    
    .showcon .piclist {
        margin-top: 10px !important;
    }
    
    .showcon .piclist ul {
        display: flex !important;
        gap: 10px !important;
        overflow-x: auto !important;
    }
    
    .showcon .piclist li {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }
    
    /* 产品信息 */
    .showcon .proinfo {
        width: 100% !important;
        float: none !important;
    }
    
    .showcon .proinfo h1 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .showcon .proinfo .prodes {
        padding: 15px !important;
    }
    
    .showcon .proinfo .prodes p {
        font-size: 13px !important;
        padding: 8px !important;
        margin: 8px 0 !important;
    }
    
    .showcon .proinfo .btns {
        display: flex !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }
    
    .showcon .proinfo .btns .btn1,
    .showcon .proinfo .btns .btn2 {
        flex: 1 !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        text-align: center !important;
    }
    
    /* 产品详情内容 */
    .prodetail {
        padding: 20px 0 !important;
    }
    
    .prodetail .section-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .prodetail .section-content {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    
    /* 规格参数表 */
    .product-specs-section {
        padding: 20px 15px !important;
        margin: 20px 0 !important;
    }
    
    .specs-table {
        overflow-x: auto !important;
    }
    
    .specs-table table {
        min-width: 100% !important;
        font-size: 12px !important;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px 8px !important;
    }
    
    .specs-table .spec-name {
        width: 45% !important;
        font-size: 13px !important;
    }

    /* ==========================================
       新闻列表页
       ========================================== */
    
    .news_list ul {
        display: block !important;
    }
    
    .news_list ul li {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        float: none !important;
    }
    
    .news_list ul li a {
        display: block !important;
    }
    
    .news_list ul li b {
        width: 100% !important;
        height: 180px !important;
        float: none !important;
        margin-bottom: 10px !important;
    }
    
    .news_list ul li b img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .news_list ul li .title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .news_list ul li p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    /* ==========================================
       新闻详情页
       ========================================== */
    
    .article-detail {
        padding: 20px 0 !important;
    }
    
    .article-detail h1 {
        font-size: 20px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }
    
    .article-detail .article-meta {
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .article-detail .article-content {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    
    .article-detail .article-content img {
        width: 100% !important;
        height: auto !important;
        margin: 15px 0 !important;
    }

    /* ==========================================
       案例列表页
       ========================================== */
    
    .case-grid {
        display: block !important;
    }
    
    .case-grid .item {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .case-grid .item .pic {
        width: 100% !important;
        height: 200px !important;
    }
    
    .case-grid .item .pic img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* ==========================================
       关于我们页面
       ========================================== */
    
    .about-content {
        padding: 20px 0 !important;
    }
    
    .about-content h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .about-content p {
        font-size: 14px !important;
        line-height: 1.8 !important;
        margin-bottom: 15px !important;
    }
    
    .about-content img {
        width: 100% !important;
        height: auto !important;
        margin: 15px 0 !important;
        border-radius: 8px !important;
    }
    
    /* 企业文化/理念 */
    .culture-grid,
    .concept-grid {
        display: block !important;
    }
    
    .culture-grid .item,
    .concept-grid .item {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* ==========================================
       联系我们页面
       ========================================== */
    
    .contact-info {
        padding: 20px 0 !important;
    }
    
    .contact-info .item {
        width: 100% !important;
        margin-bottom: 20px !important;
        padding: 15px !important;
    }
    
    .contact-info .item h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .contact-info .item p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    
    /* 留言表单 */
    .message-form {
        padding: 20px 0 !important;
    }
    
    .message-form .form-group {
        margin-bottom: 15px !important;
    }
    
    .message-form label {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .message-form input,
    .message-form textarea,
    .message-form select {
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }
    
    .message-form textarea {
        min-height: 120px !important;
    }
    
    .message-form button {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }

    /* ==========================================
       分页
       ========================================== */
    
    .pagination {
        margin-top: 30px !important;
        text-align: center !important;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px !important;
        font-size: 14px !important;
        margin: 0 3px !important;
    }

    /* ==========================================
       搜索结果页
       ========================================== */
    
    .search-results-container {
        padding: 20px 15px !important;
    }
    
    .search-header h1 {
        font-size: 20px !important;
    }
    
    .search-result-item {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .result-title {
        font-size: 16px !important;
    }
    
    .result-description {
        font-size: 13px !important;
    }

    /* ==========================================
       通用优化
       ========================================== */
    
    /* 表格响应式 */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    table {
        font-size: 13px !important;
    }
    
    table th,
    table td {
        padding: 8px !important;
        white-space: nowrap !important;
    }
    
    /* 按钮组 */
    .btn-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .btn-group .btn {
        width: 100% !important;
    }
    
    /* 标签云 */
    .tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .tags a {
        padding: 5px 12px !important;
        font-size: 12px !important;
    }
}

/* ==========================================
   小屏手机特殊优化（< 375px）
   ========================================== */
@media (max-width: 374px) {
    
    .gridlist {
        grid-template-columns: 1fr !important;
    }
    
    .showcon .proinfo .btns {
        flex-direction: column !important;
    }
    
    .showcon .proinfo .btns .btn1,
    .showcon .proinfo .btns .btn2 {
        width: 100% !important;
    }
}
