/* 基本页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;  /* 背景暗色 */
    color: #e0e0e0;  /* 文字颜色 */
    padding: 20px;
    line-height: 1.5;
}

/* 分类标题样式 */
.category {
    margin-bottom: 40px;
}

.category h2 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

/* 网格容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);  /* 一行显示 6 个方格 */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

/* 每个网址卡片 */
.website-card {
    background-color: #333;  /* 暗色背景 */
    color: #fff;  /* 白色文字 */
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.website-card:hover {
    background-color:white;
    color: black;
    transform: translateY(-5px);  /* 悬停效果：向上浮动 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.website-card a {
    text-decoration: none;
    color: inherit;
}

.website-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.website-card p {
    font-size: 14px;
    color: #bbb;
}

/* 响应式设计：小屏幕调整为每行 3 个方格 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);  /* 更小屏设备显示 3 列 */
    }
}

/* 手机显示每行 2 个方格 */
@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);  /* 手机显示 2 列 */
    }
}
