@import url(https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif; /* 使用中文字体 */
}

body {
    background-color: #f0f0f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url(../images/wallpapers/wallhaven-3lvgod.jpg) no-repeat center center fixed;
    background-size: cover;
}

.icon-container {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    max-width: 900px;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.icon-box {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: 150px;
    height: auto; /* 修改为自动高度 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    overflow: hidden; /* 防止文本溢出 */
}

.icon-box:hover {
    transform: scale(1.05);
}

.icon-box img {
    width: 50px;
    height: 50px;
}

.icon-box a {
    display: block;
    margin: 10px 0;
    font-weight: 500; /* 加粗链接文本 */
    color: #333; /* 链接颜色 */
    text-decoration: none;
}

.icon-box a:hover {
    text-decoration: underline; /* 添加悬停效果 */
}

h1 {
    margin: 10px;
}

p {
    text-indent: 2em;
    line-height: 1.5;
    text-align: justify;
    font-size: 14px; /* 调整字体大小 */
}

@media (max-width: 768px) {
    .icon-box {
        width: 100%; /* 让图标盒子在手机上占满宽度 */
        height: auto; /* 自动调整高度 */
    }

    .icon-container {
        flex-direction: column; /* 在小屏幕上垂直排列 */
        align-items: center;
    }
}

