* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: consolas;
}
 
body {
    overflow: auto; 
    background: #222;
    background-image: linear-gradient(to right,#333 1px,transparent 1px),
    linear-gradient(to bottom,#333 1px,transparent 1px);
    background-size: 4vh 4vh;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
 
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 40px 0;
}
 
.box {
    position: relative;
    display: flex;
    width: 320px;
    height: 400px;
    justify-content: center;
    align-items: center;
    margin: 40px 30px;
    transition: 0.5s;
}
 
.content {
    position: relative;
    left: 0;
    padding: 20px 40px;
    color: #fff;
    background: rgba(225, 225, 225, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1;
    transition: 0.5s;
}
 
.content h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 10px;
}
 
.content p {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.4em;
}
 
.content a {
    display: inline-block;
    font-size: 1.1em;
    color: #111;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 5px;
    transition: 0.6s;
}
 
.box:hover .content {
    left: -25px;
    padding: 60px 40px;
}
 
.content a:hover {
    background: #222;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 15px #222;
}
 
.box::before,
.box::after {
    content: "";
    position: absolute;
    background: #fff;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    border-radius: 8px;
    transition: 0.5s;
}
 
.box::before {
    text-decoration: skewX(15deg); 
    transform: skewX(15deg);
}
 
.box::after {
    filter: blur(30px);
}
 
.box:hover::before,
.box:hover::after {
    transform: skewX(0deg);
    left: 20px;
    width: calc(100% - 90px);
}
 
.box:nth-child(1)::before,
.box:nth-child(1)::after {
    background: linear-gradient(315deg, #ffbc00, #ff0058);
}
 
.box:nth-child(2)::before,
.box:nth-child(2)::after {
    background: linear-gradient(315deg, #00ff3d, #d7ff00);
}
 
.box:nth-child(3)::before,
.box:nth-child(3)::after {
    background: linear-gradient(315deg, #0043ff, #00ffa7);
}

 
.box:nth-child(4)::before,
.box:nth-child(4)::after {
    background: linear-gradient(315deg, #ff00c3, #2700ff);
}

.box:nth-child(5)::before,
.box:nth-child(5)::after {
    background: linear-gradient(315deg, #01fe8b, #56fe01);
}

.box:nth-child(6)::before,
.box:nth-child(6)::after {
    background: linear-gradient(315deg, #0c01fe, #01d5fe);
}

.box:nth-child(7)::before,
.box:nth-child(7)::after {
    background: linear-gradient(315deg, #fe0174, #a901fe);
}
 
.box:nth-child(8)::before,
.box:nth-child(8)::after {
    background: linear-gradient(315deg, #f3fe01, #fe2a01);
}
 
.box:nth-child(9)::before,
.box:nth-child(9)::after {
    background: linear-gradient(315deg, #8d01fe, #0146fe);
}
 
.box:nth-child(10)::before,
.box:nth-child(10)::after {
    background: linear-gradient(315deg, #fe0e01, #fe01c4);
}

.box:nth-child(11)::before,
.box:nth-child(11)::after {
    background: linear-gradient(315deg, #72fe01, #feb901);
}
 
.box:nth-child(12)::before,
.box:nth-child(12)::after {
    background: linear-gradient(315deg, #01f1fe, #01fe3b);
}

.box span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}
 
.box span::before,
.box span::after {
    content: "";
    position: absolute;
    background: rgba(225, 225, 225, 0.1);
    transition: 0.5s;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    animation: animate 2s ease-in-out infinite;
}
 
.box span::before {
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}
 
.box span::after {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation-delay: -1s;
}
 
.box:hover span::before {
    opacity: 1;
    top: -50px;
    left: 50px;
    width: 100px;
    height: 100px;
}
 
.box:hover span::after {
    bottom: -50px;
    right: 50px;
    width: 100px;
    height: 100px;
    opacity: 1;

}

.footer {
    margin: 0 !important; /* 覆盖其他样式 */
    padding: 20px 0; /* 上下内边距20px，左右内边距0 */
    width: 100%;
    background: rgba(225, 225, 225, 0.05); /* 半透明白色 */
    backdrop-filter: blur(3px); /* 背景模糊效果 */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1); /* 阴影效果，为页脚倒置 */
    text-align: center; /* 文本居中 */
}
 
.footer-content {
    padding: 0 20px; /* 内边距 */
    border-radius: 8px; /* 圆角 */
}
 
.footer-content h2 {
    font-size: 2em; /* 标题字体大小 */
    color: #fff; /* 白色 */
    margin-bottom: 10px; /* 底部外边距 */
}
 
.footer-content p {
    font-size: 1.2em; /* 根据需要调整字体大小 */
    color: #fff; /* 白色 */
    line-height: 1.6em; /* 行高 */
}

h1 {
    color: #fff; /* 白色 */
    font-size: 1.5em;
}

.footer .email-link {
    color: #d3d3d3;
}
 
@keyframes animate {
    0%,
    100% {
        transform: translateY(10px);
    }
    50% {
        transform: translate(-10px);
    }
}
 