/* style.css */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

#search {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
}

main {
    padding: 1rem;
    display: grid; /* 使用网格布局 */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /*  响应式设计*/
    gap: 1rem;
}

.link-item {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease; /* 添加 hover 效果 */
}

.link-item:hover {
    transform: scale(1.05);
}

.link-item img {
    max-width: 100px;
    max-height: 100px;
    margin: 0 auto;
    display: block; /*  使图像居中 */
}

.link-item a {
    display: block; /*  使整个链接区域可点击 */
    text-decoration: none;
    color: #333;
    margin-top: 0.5rem;
    font-weight: bold;
}

.center
{
    text-align: center;
}
/*  移动端适配 */
@media (max-width: 768px) {
    main {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .link-item img {
        max-width: 80px;
        max-height: 80px;
    }
}