/* 文章列表页面样式 */
#article {
    padding: 6rem 0 8rem;
}

#article .active_title_position {
    position: relative;
    width: 42%;
}

#article .active_title_position img {
    width: 100%;
}

#article .active_title_position .active_title {
    position: absolute;
    top: 44%;
    left: 62%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    display: block;
    white-space: nowrap;
    font-size: 3rem;
    font-weight: 700;
}

#article .title {
    color: #202b47;
    font-weight: 700;
    font-size: 2rem;
    border-bottom: 3px solid #00AEEF;
    padding-left: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 2.5;
    height: 2.5em;
}

#article .article_img_border img {
    width: 100%;
    height: auto;
    display: block;
}

#article .article_text {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
}

#article .article_text .article_text_title {
    padding: 0;
    width: 100%;
}

#article .article_text .article_text_title p {
    color: #414042;
    padding-left: 20px;
    font-size: 1.2rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: 6em;
}

#article .article_text .article_text_button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
}

#article .article_text .article_text_button img {
    width: 60px;
}

/* 分页样式 */
#article .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

#article .page-link:hover {
    z-index: 2;
    color: #0056b3;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

#article .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: unset;
    gap: 5px;
}

#article .pagination .page-item.active .page-link {
    border-color: unset;
    color: #FFFFFF;
    background-image: linear-gradient(to right, #00AEEF 0%, #00AEEF 100%);
}

#article .pagination .page-item .page-link:hover {
    color: #FFFFFF;
    background-image: linear-gradient(to right, #00AEEF 0%, #00AEEF 100%);
}

#article .pagination li a {
    height: 31px;
    min-width: 31px;
    padding: 6px 3px;
    color: rgba(48, 80, 130, 0.7);
}

/* 响应式设计 - 平板和手机 */
@media (max-width: 991px) {
    #article {
        padding: 3rem 0;
    }

    #article .container_title {
        width: 92%;
        margin: 0 auto 2rem;
    }

    #article .container_title .active_title_position {
        position: relative;
        width: 58%;
    }

    #article .container_title .active_title_position img {
        width: 100%;
    }

    #article .container_title .active_title_position .active_title {
        position: absolute;
        top: 48%;
        left: 62%;
        transform: translate(-50%, -50%);
        color: #FFFFFF;
        display: block;
        white-space: nowrap;
        font-size: 1.2rem;
        font-weight: 700;
    }

    #article .article_img_border {
        width: 80%;
        margin: 0 auto;
    }

    #article .article_text {
        width: 80%;
        margin: 0 auto;
    }

    #article .article_text .article_text_title .title {
        font-size: 1.6rem;
        padding-left: 0;
    }

    #article .article_text .article_text_title p {
        padding-left: 0;
    }

    #article .article_text .article_text_button {
        padding-left: 0;
    }

    #article .article_text .article_text_button img {
        width: 30px;
    }
}

/* 分类选择器样式 */
#article .select-wrapper {
    position: relative;
    display: inline-block;
}

#article .select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #00AEEF;
    pointer-events: none;
}

#article .form-control {
    border: 1px solid #00AEEF;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 1rem;
    color: #414042;
}

#article .custom-select-arrow {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    cursor: pointer;
}

#article .form-control:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.25);
    outline: none;
}

/* 文章卡片悬停效果 */
#article .article_img_border a {
    display: block;
    transition: transform 0.3s ease;
}

#article .article_img_border a:hover {
    transform: scale(1.05);
}

#article .article_text_button a {
    transition: opacity 0.3s ease;
}

#article .article_text_button a:hover {
    opacity: 0.8;
}
