/* 新增：classfily 三列卡片模块样式 */
.classfily {
    padding: 60px 0;
    background: #f5f5f5;
}

.classfily .mob-common-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}

.classfily .mob-common-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #1890ff;
    margin: 15px auto 0;
}

.classfily .classfy-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

.classfily ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.classfily li {
    flex: 1;
    max-width: 473px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.classfily li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 图片容器 - 相对定位，用于遮罩层 */
.classfily .img {
    position: relative;
    overflow: hidden;
    display: block;
}

.classfily .img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

/* hover时图片变暗 - 只作用于图片区域 */
.classfily li:hover .img img {
    filter: brightness(0.7);
}

/* 移除之前的 ::after 遮罩层 */
.classfily .img::after {
    display: none;
}

/* 移除悬浮遮罩层（mask） */
.classfily .mask {
    display: none;
}

/* 默认显示区域 - 内容居中 */
.classfily .mob-mask {
    padding: 20px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.classfily .mob-mask h1 {
    font-size: 20px;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
    width: 100%;
    transition: color 0.3s ease;
}

/* 标题 hover 变蓝 */
.classfily li:hover .mob-mask h1 {
    color: #1890ff;
}

.classfily .mob-mask .desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    text-align: center;
    width: 100%;
    transition: color 0.3s ease;
}

/* 描述 hover 变深 */
.classfily li:hover .mob-mask .desc {
    color: #333;
}

.classfily .mob-mask .more {
    text-align: center;
    width: 100%;
}

.classfily .mob-mask .more a {
    display: inline-block;
    padding: 10px 30px;
    background: #1890ff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    margin: 0 auto;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover 按钮高亮 */
.classfily li:hover .mob-mask .more a {
    background: #40a9ff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(24,144,255,0.4);
}

.classfily .mob-mask .more a:hover {
    background: #40a9ff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(24,144,255,0.4);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .classfily ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .classfily li {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }
    
    .classfily .img img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .classfily {
        padding: 30px 0;
    }
    
    .classfily .mob-common-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .classfily ul {
        gap: 10px;
    }
    
    .classfily li {
        flex: 1;
        min-width: 0;
    }
    
    .classfily .img img {
        height: 120px;
    }
    
    .classfily .mob-mask {
        padding: 12px;
    }
    
    .classfily .mob-mask h1 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .classfily .mob-mask .desc {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .classfily .mob-mask .more a {
        padding: 6px 14px;
        font-size: 12px;
    }
}
