/* 新闻列表页样式 */

.news-item {
    background: #FFFFFF;
    border-radius: 0;
    border: none;
    height: 100%;
    width: 100%;
}

.news-item > a {
    width: 25%;
}

.news-item a img {
    border-radius: 6px;
}


.news-item .card-body {
    padding: 0.1rem 1.5rem 0.1rem 2rem;
    width: 100%;
}

.news-item .card-title {
    font-size: 26px;
    color: #000000E0;
    margin-bottom: 1rem;
}

.news-item .card-text {
    color: #00000080;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-meta {
    color: #0C71C0;
    font-size: 20px;
}

/* 新闻详情页样式 */
.news-detail {
    padding: 2rem 0;
}

.news-detail article {
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 2rem;
}

.news-detail h1 {
    font-size: 32px;
    color: #000000cc;
    margin-bottom: 1.5rem;
}

.news-detail .news-meta {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.news-content {
    color: #000000cc;
    font-size: 18px;
    line-height: 1.8;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.news-navigation {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.news-navigation .navigation-label {
    color: #666;
    font-weight: 500;
}

.news-link {
    color: #0C71C0;
    text-decoration: none;
    transition: color 0.3s;
}

.news-link:hover {
    text-decoration: underline;
}

.no-more {
    color: #999;
}

.prev-news, .next-news {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* src/main/resources/static/css/news.css */

/* 相关新闻样式 */
.related-news {
    margin-bottom: 40px;
}

.related-news-title {
    font-weight: bold;
    font-size: 24px;
    color: #0C71C0;
    line-height: 34px;
    margin-bottom: 25px;
}


.related-news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

.related-news-item {
    border-bottom: 1px solid #E6E6E6;
    padding: 15px 0;
}

.related-news-item:last-child,
.related-news-item:nth-last-child(2) {
    border-bottom: none;
}

.related-news-item .news-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.related-news-item .news-link:hover {
    color: #007bff;
}

.related-news-item .news-title {
    flex: 1;
    font-size: 19px;
    line-height: 1.5;
    margin-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
}

.related-news-item .news-date {
    font-size: 17px;
    white-space: nowrap;
}

.related-news-item a:hover {
    color: #0C71C0;
    text-decoration: underline;
}

/* 最新新闻区域样式 */
.latest-news-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
    background-color: #F0F9FF;
}

.latest-news-title {
    font-size: 24px;
    color: #0C71C0;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.latest-news-card {
    padding: 1rem;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 6px;
}

.latest-news-card:hover {
    background:#0C71C0;
    transform: translateY(-5px);
    .latest-news-card-des,.latest-news-card-date,
    .latest-news-card-title,.more-text{
        color: #FFFFFF;
    }
    .more-active{
        display: block;
    }
    .more-normal{
        display: none;
    }
}
.more-active{
    display: none;
}
.more-normal{
    display: block;
}
.latest-news-card .news-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    aspect-ratio: 4/3;
}

.latest-news-card-body {
    padding: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-news-card-des {
    font-size: 16px;
    color: #00000088;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2rem;
    line-height: 25px;
}

.latest-news-card-title {
    font-size: 20px;
    color: #3D3D3D;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: bold;
}

.latest-news-card-date {
    font-size: 16px;
    color: #00000088;
}

.latest-news-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .latest-news-card .news-img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        aspect-ratio: 4/3;
    }

    .related-news-list {
        grid-template-columns: 1fr;
    }

    .related-news-item:nth-last-child(2) {
        border-bottom: 1px solid #E6E6E6;
    }

    .container-fluid {
        padding: 0 10px;
    }

    .news-item.d-flex {
        flex-direction: column !important;
    }

    .news-item > a {
        width: 100%;
    }

    .news-item .card-body {
        padding: 1rem 0;
    }

    .news-section h2 {
        font-size: 28px;
    }

    .news-item .card-title {
        font-size: 20px;
    }


    .news-detail article {
        padding: 1rem;
    }

    .news-detail h1 {
        font-size: 24px;
    }

    .news-content {
        font-size: 16px;
    }

    /* src/main/resources/static/css/news.css */
    .pagination .page-link {
        color: #333;
        border: none;
        padding: 0.5rem 0.75rem;
        margin: 0 0.25rem;
        border-radius: 4px;
    }

    .pagination .page-item.active .page-link {
        background-color: #007bff;
        color: white;
    }

    .pagination .page-item.disabled .page-link {
        color: #6c757d;
        pointer-events: none;
        background-color: transparent;
    }

    .pagination .page-link:hover {
        background-color: #e9ecef;
        color: #0056b3;
    }
}