#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;
}

.swiper-container {
    box-sizing: border-box;
    margin-left: 0;
    width: 66.5%;
    height: 380px;
    overflow: hidden;
    border-radius: 3px;
}

#swiper-right {
    box-sizing: border-box;
    width: 32%;
    height: 380px;
    overflow: hidden;
}

.swiper-right_item {
    display: block;
    position: relative;
    width: 100%;
    height: 49%;
    overflow: hidden;
    border-radius: 3px;
}

.swiper-right_item:first-child {
    margin-bottom: 2%;
}

.swiper-right_title {
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    height: auto;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #FFFFFF;
    font-size: 14px;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.65);
    font-weight: 500;
}

.swiper-right_item img {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    text-align: center;
    font-size: 18px;
    background: #ffffff;
    overflow: hidden;
}

.swiper-pagination-bullet {
    text-align: right;
    background: #FFFFFF;
}

.swiper-container-horizontal > .swiper-pagination-bullets {
    z-index: 200;
    right: 16px;
    width: auto;
    text-align: right;
}

.slide-title > a {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.3);
}

.swiper-slide img {
    width: 100%;
    height: auto;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    position: absolute;
    left: 50%;
    top: 50%;
}

a.swiper-slide-a {
    display: inline-block;
    overflow: hidden;
    background-color: #ffffff;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 36px;
}

/* 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(82, 127, 255, 0.9);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 160px;
}

.card-title {
    font-size: 16px;
    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;
}

.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;
}

.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%;
    }

    .swiper-container {
        height: 23.5vh;
        width: 100vw;
        border-radius: 0;
    }

    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 24px;
    }

    .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;
    }
}