#wrapper {
    margin: 16px auto 20px;
    width: 100%;
    height: auto;
    background-color: #FFFFFF;
}

#main-top {
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1280px;
    height: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-delay-200 {
    animation-delay: 0.3s;
    opacity: 0;
}
.hero-bg {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}
.title-main {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
}
.colorful-logo {
    font-weight: 700;
}
.colorful-logo .letter-x1 {
    color: #4285F4;
}
.colorful-logo .letter-x2 {
    color: #EA4335;
}
.colorful-logo .letter-g {
    color: #FBBC04;
}
.colorful-logo .letter-space {
    margin: 0 0.15em;
}
.colorful-logo .letter-a {
    color: #34A853;
}
.colorful-logo .letter-i {
    color: #4285F4;
}

/* article cards */
.article-cards {
    margin: 30px auto;
    width: 1280px;
}

.cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    line-height: 60px;
    border-bottom: 1px solid #bed5e9;
    margin-bottom: 20px;
}

.cards-title {
    width: auto;
    border-bottom: 6px #527FFF solid;
    font-size: 20px;
    color: #444444;
    text-align: left;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.article-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 175px;
}

.card-title {
    font-size: 15px;
    color: #232323;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
    text-align: left;
}

.card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.card-time {
    color: #999;
    font-size: 12px;
}

.card-author {
    color: #999;
    font-size: 12px;
}

.article-img {
    display: inline-block;
    width: 100%;
    height: auto;
    max-height: 100%;
    vertical-align: middle;
    background-color: #ffffff;
}

@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    /*index.css*/
    #wrapper {
        margin: 82px auto 0;
    }

    #main-top {
        display: block;
        padding: 0;
        width: 100%;
    }

    .hero-bg.py-24 {
        margin-top: 8rem;
    }

    .article-cards {
        margin: 10px auto;
        width: 100%;
        padding: 0 10px;
    }

    .cards-header {
        width: 100%;
        height: 50px;
        line-height: 50px;
        margin-bottom: 15px;
    }

    .cards-title {
        font-size: 16px;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .article-card {
        border-radius: 6px;
    }

    .card-image {
        height: 140px;
    }

    .card-category {
        top: 8px;
        left: 8px;
        padding: 3px 10px;
        font-size: 11px;
    }

    .card-content {
        padding: 12px;
        height: 140px;
    }

    .card-title {
        font-size: 14px;
        margin-bottom: 8px;
        min-height: 40px;
        -webkit-line-clamp: 2;
    }

    .card-desc {
        font-size: 12px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }

    .card-footer {
        padding-top: 8px;
    }

    .card-time {
        font-size: 11px;
    }

    .card-author {
        font-size: 11px;
    }

    .article-img {
        display: inline-block;
        width: 100%;
        height: auto;
        vertical-align: middle;
    }
}