/* 专门针对这个模块的容器样式 */
.mac-art-module {
    max-width: 1200px;
    width: 100%;
    height: 84px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* 修复层，用于创建磨砂效果 */
.mac-art-module .fix {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 背景磨砂图片 - 直接使用div的背景 */
.mac-art-module .fix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit; /* 继承父元素的背景 */
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.8);
    z-index: 1;
}

/* 磨砂效果遮罩 */
.mac-art-module .fix::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* 图片链接样式 */
.mac-art-module .ulink {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 前景图片样式 - 修改这里让宽度铺满 */
.mac-art-module .ulink img {
    width: 100%;
    height: 80%;
    object-fit: fill; /* 改为 fill 让图片填充整个容器 */
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .mac-art-module {
        width: 95%;
        height: 70px;
    }
    
    .mac-art-module .ulink {
        width: 380px;
        height: 95px;
    }
}

@media (max-width: 768px) {
    .mac-art-module {
        height: 60px;
    }
    
    .mac-art-module .ulink {
        width: 320px;
        height: 80px;
    }
    
    .mac-art-module .fix::before {
        filter: blur(6px) brightness(0.8);
    }
}

@media (max-width: 480px) {
    .mac-art-module {
        height: 50px;
    }
    
    .mac-art-module .ulink {
        width: 280px;
        height: 70px;
    }
    
    .mac-art-module .fix::before {
        filter: blur(4px) brightness(0.8);
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .mac-art-module {
        height: 45px;
    }
    
    .mac-art-module .ulink {
        width: 240px;
        height: 60px;
    }
}