    body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* 分类电影的容器，6列布局 */
.category-movies {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 默认6列布局 */
    gap: 20px; /* 卡片间距 */
}

.movie {
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* 确保图片和文字垂直排列 */
    justify-content: flex-start; /* 顶部对齐 */
    align-items: center; /* 居中 */
}

.movie img {
    width: 100%; /* 图片宽度 */
    height: auto; /* 高度自动 */
    border-radius: 5px;
    max-height: 200px; /* 限制图片高度 */
    object-fit: cover; /* 防止图片拉伸 */
}

.movie-info {
    margin-top: 10px; /* 图片和文字之间的间距 */
    width: 100%; /* 确保文字占满宽度 */
}

.movie-info h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

.movie-info h3 a {
    text-decoration: none;
    color: #007bff;
}

.movie-info h3 a:hover {
    color: #0056b3;
}

/* 热搜标签的样式 */
.related-tag p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.related-tag ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* 标签之间的间距 */
}

.related-tag li {
    display: inline-block;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 10px 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.related-tag li:hover {
    background-color: #007BFF;
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.related-tag li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.related-tag li a:hover {
    color: #fff;
}

/* 响应式设计：调整在屏幕宽度小于768px时的显示方式 */
@media (max-width: 768px) {
    .category-movies {
        grid-template-columns: repeat(3, 1fr); /* 在小屏幕下改为3列布局 */
        gap: 15px; /* 缩小卡片间距 */
    }

    /* 电影卡片样式调整 */
    .movie {
        padding: 8px; /* 减小内边距 */
    }

    .movie img {
        max-height: 160px; /* 图片高度适应屏幕 */
    }

    .movie-info h3 {
        font-size: 14px; /* 调整标题字体大小 */
    }

    .movie-info h3 a {
        font-size: 14px; /* 调整链接字体大小 */
    }

    /* 热搜标签调整 */
    .related-tag ul {
        gap: 10px; /* 标签之间的间距缩小 */
    }

    .related-tag li {
        padding: 8px 15px; /* 标签的内边距减小 */
        font-size: 12px; /* 标签字体缩小 */
    }

    /* 标签链接字体调整 */
    .related-tag li a {
        font-size: 12px; /* 标签链接字体调整 */
    }
}

/* 更小屏幕适配（如手机或非常窄的屏幕） */
@media (max-width: 480px) {
    .category-movies {
        grid-template-columns: repeat(2, 1fr); /* 在非常小的屏幕下，改为2列布局 */
    }

    .movie img {
        max-height: 140px; /* 图片高度调整 */
    }

    .movie-info h3 {
        font-size: 12px; /* 更小的标题字体 */
    }

    .movie-info h3 a {
        font-size: 12px; /* 更小的链接字体 */
    }

    .related-tag li {
        padding: 6px 12px; /* 标签内边距再缩小 */
        font-size: 10px; /* 标签字体缩小 */
    }

    .related-tag li a {
        font-size: 10px; /* 标签链接字体缩小 */
    }
}