/* 移动端案例列表修复样式 */

/* 案例列表适配 */
@media screen and (max-width: 768px) {
    .case_list {
        overflow: hidden;
        position: relative;
        padding: 0 15px;
        box-sizing: border-box;
        height: unset;
    }
    
    .case_list ul {
        display: flex;
        flex-wrap: nowrap;
        transition: transform 0.3s ease;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
    }
    
    .case_list ul::-webkit-scrollbar {
        display: none;
    }
    
    .case_list ul li {
        flex: 0 0 calc(50% - 8px);
        margin-right: 16px;
        margin-bottom: 20px;
        width: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    
    .case_list ul li.my_li {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        margin: 0 4px 20px 4px;
    }
    
    /* 案例列表中的图片适配 */
    .case_list ul li a.pr img {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        display: block;
        object-fit: cover;
    }
    
    /* 案例内容区域适配 */
    .case_list ul li .case_a {
        padding: 20px 15px 25px;
        background-color: #e8e8e8;
        overflow: hidden;
        z-index: 2;
        display: block;
    }
    
    .case_list ul li .case_a h2 {
        font-size: 16px;
        line-height: 1.4;
        font-weight: bold;
        color: #666;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .case_list ul li .case_a .nr {
        font-size: 13px;
        color: #666464;
        line-height: 1.5;
        height: auto;
        overflow: hidden;
        margin-top: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    
    /* 移动端左右箭头显示 - 优化版本 */
    .case_list .x_arrs {
        display: block !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px;
        height: 40px;
        background-size: 20px 20px;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.9;
        border-radius: 50%;
        background-color: rgba(231, 76, 60, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .case_list .x_arrs.prev {
        left: 5px;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3e%3c/svg%3e");
    }
    
    .case_list .x_arrs.next {
        right: 5px;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3e%3c/svg%3e");
    }
    
    .case_list .x_arrs:hover {
        opacity: 1;
        background-color: rgba(231, 76, 60, 1);
        transform: translateY(-50%) scale(1.1);
    }
    
    .case_list .x_arrs:active {
        transform: translateY(-50%) scale(0.95);
        opacity: 1;
    }
    
    /* 移动端隐藏滑动箭头，因为现在显示2列不需要滑动 */
    .case_list .x_arrs {
        display: none !important;
    }
}

/* 更小屏幕设备适配 */
@media screen and (max-width: 480px) {
    .case_list {
        padding: 0 10px;
    }
    
    .case_list ul li {
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        margin-right: 12px;
    }
    
    .case_list ul li.my_li {
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        margin: 0 3px 20px 3px;
    }
    
    .case_list ul li .case_a {
        padding: 15px 12px 20px;
    }
    
    .case_list ul li .case_a h2 {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .case_list ul li .case_a .nr {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .case_list .x_arrs {
        width: 35px;
        height: 35px;
        background-size: 18px 18px;
    }
    
    .case_list .x_arrs.prev {
        left: 3px;
    }
    
    .case_list .x_arrs.next {
        right: 3px;
    }
    
    /* 更小屏幕也隐藏滑动箭头 */
    .case_list .x_arrs {
        display: none !important;
    }
}