/* 全局样式重置和基本设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5; /* 淡灰色背景 */
    color: #333;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
}

/* 链接网格容器 */
#link-grid {
    display: grid;
    /* 响应式网格：每列最小120px，最大1fr，自动填充 */
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px; /* 网格间距 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 单个链接卡片 */
.link-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none; /* 去掉下划线 */
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 鼠标悬停效果 */
.link-card:hover {
    transform: translateY(-5px); /* 向上浮动 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 图标容器样式 */
.link-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    background-color: #e9ecef; /* 图标加载前的默认背景色 */
    border-radius: 50%; /* 圆形图标 */
    background-size: contain; /* 图标完全显示 */
    background-position: center;
    background-repeat: no-repeat;
}

.link-card span {
    font-size: 0.9rem;
    font-weight: 500;
}