1
hao
2025-04-16 bc7bdca1a6a9e8d55e29c22c77f14bd373ff30f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
body {
    background-color: #f2f2f2;
    overflow: hidden; /* 禁止滚动条 */
    margin: 0;
    padding: 0;
}
 
/* 设置头部样式 */
.header {
    background-color: #333;
    color: #fff;
    height: 50px;
    padding: 10px;
    text-align: center;
}
 
/* 设置中间部分样式 */
.container {
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box; /* 设置padding不影响宽度 */
}
 
/* 设置底边样式 */
.footer {
    background-color: #333;
    color: #fff;
    height: 50px;
    padding: 10px;
    text-align: center;
}
 
#list {
    display: grid;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 78vh;
    color: #000000;
    transform: scale(2);
}
 
.grid-container {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    margin: 8px;
}
.grid-item {
    background-color: #f2f2f2;
    padding: 20px;
    text-align: center;
    font-size: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.grid-item:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.grid-item a {
    display: block;
    text-decoration: none;
    color: #333;
}
 
@media only screen and (max-width: 600px) {
    .container {
        padding: 10px;
    }
    #list {
        height: 84vh;
        transform: scale(1);
    }
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-item {
        font-size: 16px;
        padding: 10px;
    }
    .grid-item:hover {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
}