* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }
    
    body {
    background-image: url("background.jpg");
    background-size: cover;
    background-position: center;
    font-family: Arial, sans-serif;
    }

header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20rem;
    background-color: transparent;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin: 0;
    color: white;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.box {
    width: 327px;
    height: 421px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    color: #7F7F7F;
    text-decoration: none;
    font-size: 2rem;
    transition: color 0.3s;
}

.box a:hover {
    color: #555555;
}

.box a span {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    }
    
    /* 媒体查询，使网站在不同屏幕宽度下呈现不同的布局 */
    @media screen and (max-width: 768px) {
    .container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    }
    .box {
        width: 100%;
        height: auto;
    }
    
    .box img {
        width: 100%;
        height: auto;
    }
    
    .box a span {
        font-size: 1rem;
        padding: 0.5rem;
    }
    }

    
