/* news-detail.css - Styles for news detail pages */

.news-list-banner {
    width: 100vw;
    height: 28vw;
}

.news-list-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main {
    width: 100%;
    padding: 30px 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.news-container {
    width: 940px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    overflow-y: auto;
}

.divider {
    border: none;
    height: 1px;
    background-color: #e5e5e5;
    margin: 10px 0;
}

.news-date {
    text-align: center;
    font-size: small;
    margin-top: 8px;
    color: #909399;
}

.news-title {
    text-align: center;
    margin-bottom: 10px;
}

.news-title h3 {
    padding: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.news-content {
    width: 100%;
    margin: auto;
    padding: 15px 0;
}

.news-content p {
    text-indent: 2em;
    line-height: 25px;
    margin: 0 auto;
    font-family: '楷体';
    font-size: 16px;
    color: #333;
}

.news-pic {
    text-align: center;
    margin: 15px 0;
}

.news-pic img {
    max-width: 100%;
    height: auto;
    margin: 5px;
}

.news-relate {
    padding: 10px;
    float: right;
    margin-bottom: 10px;
    margin-top: 20px;
}

.news-relate span {
    margin-right: 10px;
    font-family: '楷体';
    color: #909399;
}

/* Responsive styles */
@media (max-width: 992px) {
    .news-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .news-list-banner {
        height: 40vw;
    }

    .news-title h3 {
        font-size: 20px;
    }

    .news-pic img {
        display: block;
        margin: 10px auto;
        max-width: 100%;
    }

    .news-relate {
        float: none;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .news-relate span {
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .news-title h3 {
        font-size: 18px;
    }

    .news-content p {
        font-size: 14px;
    }
}