/* 基础样式还原 */
    .service-content-area {
        background: #fff;
        font-family: "Microsoft YaHei", sans-serif;
    }

    .service-content-area .w1200 {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
    }

    .service-content-area .clear::after {
        content: "";
        display: block;
        clear: both;
    }

    p {
        margin: 0px;
    }

    /* 整体布局 */
    .service-content-area .ny_cp_bg {
        padding: 40px 0 60px;
    }

    .service-content-area .ny_cp_fl {
        width: 240px;
        float: left;
        border: 1px solid #e5e5e5;
        background: transparent;
    }

    .service-content-area .ny_cp_lb {
        width: 924px;
        float: right;
    }

    /* 左侧导航 */
    /* 新增：左侧栏顶部"检测服务"可点击标题+下划线（宽度=左侧栏宽度，不会延伸到右侧） */
    .service-content-area .ny_cp_fl .sidebar-cat-title {
        padding: 16px 20px 14px;
        border-bottom: 2px solid #0066cc;
        margin-bottom: 0;
    }
    .service-content-area .ny_cp_fl .sidebar-cat-title a {
        display: block;
        font-size: 20px;
        font-weight: bold;
        color: #666666;
        text-decoration: none;
        transition: color 0.3s;
    }
    .service-content-area .ny_cp_fl .sidebar-cat-title a:hover {
        color: #3385ff;
    }

    .service-content-area .ny_cp_fl .bt {
        height: 60px;
        line-height: 60px;
        background: #0066cc;
        color: #ffffff;
        font-size: 18px;
        padding: 0 20px;
        font-weight: bold;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 4px rgba(0,102,204,0.2);
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .service-content-area .ny_cp_fl .bt .nav-close {
        display: none;
        cursor: pointer;
        font-size: 20px;
        color: #666666;
    }

    .service-content-area .ny_cp_fl .nav-close {
        display: none;
    }

    .service-content-area .ny_cp_fl ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .service-content-area .ny_cp_fl ul li {
        border-bottom: 1px solid #e5e5e5;
    }

    .service-content-area .ny_cp_fl ul li p {
        margin: 0;
    }

    .service-content-area .ny_cp_fl ul li a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #666666;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.3s;
        position: relative;
    }

    .service-content-area .ny_cp_fl ul li a span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .service-content-area .ny_cp_fl ul li a i {
        font-size: 12px;
        color: #666666;
        margin-left: 10px;
        flex-shrink: 0;
    }

    .service-content-area .ny_cp_fl ul li a:hover {
        background: #f8f9fa;
        color: #3385ff;
    }

    .service-content-area .ny_cp_fl ul li a.active {
        background: #dbe8fa;
        color: #3385ff;
        font-weight: 600;
        border-left: 4px solid #0066cc;
        padding-left: 16px;
        box-shadow: 0 2px 4px rgba(0,102,204,0.15);
    }

    .service-content-area .ny_cp_fl ul li a:hover i {
        color: #3385ff;
    }
    
    .service-content-area .ny_cp_fl ul li a.active i {
        color: #3385ff;
        transform: translateX(3px);
        transition: transform 0.3s;
    }

    .service-content-area .ny_cp_fl .cnb1 {
        height: 20px;
    }

    .service-content-area .ny_cp_fl .rx {
        padding: 15px 20px 25px;
        border-top: 1px solid #e5e5e5;
    }

    .service-content-area .ny_cp_fl .rx span {
        display: block;
        font-size: 14px;
        color: #666666;
        margin-bottom: 5px;
    }

    .service-content-area .ny_cp_fl .rx p {
        margin: 0;
        font-size: 14px;
        color: #666666;
        line-height: 1.8;
        font-weight: bold;
    }

    /* 右侧内容头部 - 原ny_cp_bt已移除，标题已移至左侧栏 */
    /* 移动端"展开分类"按钮（桌面端隐藏） */
    .service-content-area .ny_cp_lb .ny_cp_bt_mobile {
        display: none;
        margin-bottom: 20px;
    }
    .service-content-area .ny_cp_lb .ny_cp_bt_mobile .ml2 {
        display: inline-flex;
        cursor: pointer;
        align-items: center;
        color: #666666;
        font-size: 14px;
        border: 1px solid #e5e5e5;
        padding: 6px 12px;
        border-radius: 4px;
    }
    .service-content-area .ny_cp_lb .ny_cp_bt_mobile .ml2 i {
        margin-right: 5px;
        font-size: 18px;
    }

    /* 文章卡片列表 - 3列网格 一排3个 共3排 */
    .service-content-area .ny_cp ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .service-content-area .ny_cp ul li {
        margin: 0;
        padding: 0;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        overflow: hidden;
        background: #fff;
        transition: all 0.3s;
    }

    .service-content-area .ny_cp ul li:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
        border-color: #cce0ff;
    }

    .service-content-area .ny_cp ul li a {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
        height: 100%;
    }

    .service-content-area .ny_cp .img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border: none;
        border-bottom: 1px solid #e5e5e5;
        overflow: hidden;
        flex-shrink: 0;
    }

    .service-content-area .ny_cp .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
        display: block;
    }

    .service-content-area .ny_cp ul li a:hover .img img {
        transform: scale(1.08);
    }

    .service-content-area .ny_cp .td {
        flex: 1;
        padding: 16px 18px 18px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .service-content-area .ny_cp .td .ml1 {
        font-size: 16px;
        color: #333333;
        font-weight: bold;
        margin-bottom: 10px;
        transition: color 0.3s;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.4;
        min-height: 44px;
    }

    .service-content-area .ny_cp ul li a:hover .td .ml1 {
        color: #3385ff;
    }

    .service-content-area .ny_cp .td .ml2 {
        font-size: 13px;
        color: #888888;
        line-height: 1.6;
        margin-bottom: 14px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .service-content-area .ny_cp .td .ml3 {
        margin-top: auto;
        font-size: 13px;
        color: #3385ff;
        font-weight: bold;
    }

    /* 分页 */
    .service-content-area .pagination {
        margin-top: 30px;
        text-align: center;
    }

    .service-content-area .pagination ul {
        display: inline-flex;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 8px;
    }

    .service-content-area .pagination ul li a,
    .service-content-area .pagination ul li span {
        display: block;
        padding: 8px 15px;
        border: 1px solid #e5e5e5;
        color: #0066cc;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s;
    }

    .service-content-area .pagination ul li.active span,
    .service-content-area .pagination ul li a:hover {
        background: #0066cc;
        color: #ffffff;
        border-color: #0066cc;
    }

    /* 响应式样式 */
    @media screen and (max-width: 1240px) {
        .service-content-area .w1200 {
            width: 95%;
        }

        .service-content-area .ny_cp_lb {
            width: calc(100% - 270px);
        }
    }

    @media screen and (max-width: 992px) {
        .service-content-area .ny_cp_bg {
            padding: 20px 0 40px;
        }

        .service-content-area .ny_cp_fl {
            position: fixed;
            left: -100%;
            top: 0;
            width: 280px;
            height: 100%;
            z-index: 10001;
            background: #fff;
            float: none;
            border: none;
            transition: left 0.3s ease;
            display: block;
        }

        .service-content-area.nav-open .ny_cp_fl {
            left: 0;
        }

        .service-content-area .ny_cp_lb {
            width: 100%;
            float: none;
        }

        .service-content-area .ny_cp_lb .ny_cp_bt_mobile {
            display: block;
        }
        .service-content-area .ny_cp_lb .ny_cp_bt_mobile .ml2 {
            display: inline-flex;
            align-items: center;
        }

        .service-content-area .ny_cp_fl {
            padding-top: 60px;
        }
        
        .service-content-area .ny_cp_fl::before {
            content: '<?php echo addslashes($main_category->name); ?>';
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            line-height: 60px;
            background: #0066cc;
            color: #ffffff;
            font-size: 18px;
            padding: 0 20px;
            font-weight: bold;
            border: 1px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 4px rgba(0,102,204,0.2);
            z-index: 10;
        }
        
        .service-content-area .nav-close {
            display: flex !important;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            font-size: 26px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            color: #666666;
            box-shadow: 0 2px 4px rgba(31, 38, 135, 0.1);
            transition: all 0.3s;
            margin: 0;
            position: absolute;
            top: 8px;
            right: 20px;
            z-index: 11;
        }
        
        .service-content-area .nav-close:hover {
            background: #fff;
            box-shadow: 0 4px 8px rgba(31, 38, 135, 0.15);
        }

        .service-content-area .nav-overlay-mask {
            display: none;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 10000;
        }

        .service-content-area.nav-open .nav-overlay-mask {
            display: block;
        }
    }

    @media screen and (max-width: 640px) {
        .service-content-area .ny_cp ul {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .service-content-area .ny_cp .td .ml1 {
            font-size: 15px;
            min-height: auto;
            -webkit-line-clamp: 2;
        }

        .service-content-area .ny_cp .td .ml2 {
            -webkit-line-clamp: 2;
            margin-bottom: 12px;
        }
    }