* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 80px 15px 60px;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),*/
    background: url('../images/bg3.jpg') center/cover no-repeat;
    opacity: 0.9;
    z-index: -1;
}

.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: rgba(255, 255, 255, 0.2);*/
    border-radius: 8px;
    padding: 5px;
}

.logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.title {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-size: 24px;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    padding: 0 15px;
    width: 100%;
}

.cards-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    width: 100%;
    max-width: 240px;
    height: 300px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.card:hover::before {
    left: 100%;
}

.card-content {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.card-title {
    color: white;
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.card-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.card-image {
    height: 55%;
    width: 100%;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 15%,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.9) 50%,
    rgba(0, 0, 0, 1) 70%);
    -webkit-mask-image: -webkit-linear-gradient(to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 15%,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.9) 50%,
    rgba(0, 0, 0, 1) 70%);
    opacity: 0.9;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
}

.gitlab-card .card-image {
    background: url('../images/xbg5.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
}

.zentao-card .card-image {
    background: url('../images/xbg6.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
}

.seafile-card .card-image {
    background: url('../images/xbg7.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (min-width: 768px) {
    body {
        padding: 90px 20px 60px;
    }

    .logo {
        top: 30px;
        left: 30px;
        width: 120px;
        height: 60px;
    }

    .title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .cards-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 25px;
    }

    .card {
        width: 280px;
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .cards-container {
        gap: 30px;
    }

    .card {
        width: 300px;
        height: 340px;
    }
}
