* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 30px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 32px;
    color: #c0392b;
    margin-bottom: 30px;
}

.grid-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-item {
    position: relative;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.grid-item .mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.grid-item:hover .mask {
    opacity: 1;
}

.grid-item:hover img {
    transform: scale(1.08);
}

@media (max-width:900px) {
    .grid-box {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:600px) {
    .grid-box {
        grid-template-columns: 1fr;
    }
}