html,
body {
padding: 0;
margin: 0;
font-family:
-apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Oxygen,
Ubuntu,
Cantarell,
Fira Sans,
Droid Sans,
Helvetica Neue,
sans-serif;
}
a {
color: inherit;
text-decoration: none;
}
* {
box-sizing: border-box;
}
.container {
padding: 0 2rem;
}
.main {
padding: 2rem 0;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.title {
line-height: 1.15;
font-size: 2rem;
}
.title,
.description {
text-align: center;
}
/* 彩虹标题效果 */
.title {
font-weight: 700;
background: linear-gradient(
90deg,
#ff3cac,
#784ba0,
#2b86c5,
#00d4ff,
#00ff8c,
#ffd700,
#ff3cac
);
background-size: 400% 400%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent; /* for Safari */
color: transparent;
animation: rainbow 8s linear infinite;
}
@keyframes rainbow {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
.title {
animation: none;
background-position: 50% 50% !important;
}
}
.description {
margin: 4rem 0;
line-height: 1.5;
font-size: 1.5rem;
}
.grid {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
max-width: 800px;
}
.card {
width: 100%;
margin: 1rem;
padding: 1.5rem;
text-align: left;
color: inherit;
text-decoration: none;
border: 1px solid #eaeaea;
border-radius: 10px;
transition:
color 0.15s ease,
border-color 0.15s ease;
max-width: 300px;
}
.card.pin {
background-color: whitesmoke;
}
.card:hover,
.card:focus,
.card:active {
color: #0070f3;
border-color: #0070f3;
}
.card h2 {
margin: 0;
font-size: 1.5rem;
}
.card .title-icon {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.card .title-icon img {
width: 30px;
height: 30px;
margin-right: 10px;
}
.card p {
margin: 0;
font-size: 1.25rem;
line-height: 1.5;
}
.card .single {
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
white-space: nowrap;
}
.beian {
margin-bottom: 20px;
text-align: center;
}
.beian img {
width: 14px;
height: 14px;
margin: 0 4px;
}
.beian a {
text-decoration: none;
font-size: 14px;
}
@media (max-width: 600px) {
.grid {
width: 100%;
flex-direction: column;
}
}
@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
body {
color: white;
background: black;
}
.card {
border-color: #222;
}
.pin.card {
background-color: #222;
}
}