/* news.css - News list page specific styles */

/*内链*/
.news-detail-content a {
    color: #E60012;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.news-detail-content a:hover {
    color: #0A2958;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.news-banner {
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?auto=format&fit=crop&q=80&w=1600') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
}

.news-banner h1 {
    font-size: 3rem;
    color: var(--white);
}

.news-main-area {
    display: flex;
    gap: 40px;
}

.sidebar-container {
    flex: 0 0 300px;
}

.news-list-container {
    flex: 1;
}

/* News List Item */
.news-item {
    display: flex;
    gap: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.news-item__img {
    flex: 0 0 300px;
    /* height: 200px; */
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.news-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-item:hover .news-item__img img {
    transform: scale(1.1);
}

.news-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item__date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 10px;
    background: rgba(230, 0, 18, 0.05);
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.news-item__content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.news-item:hover .news-item__content h3 {
    color: var(--primary-color);
}

.news-item__excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item__more {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-item__more i {
    transition: var(--transition);
}

.news-item:hover .news-item__more i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Sidebar Recent News Helper */
.recent-news-list li {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-news-list a {
    display: block;
}

.recent-news-list h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    transition: var(--transition);
}

.recent-news-list a:hover h5 {
    color: var(--primary-color);
}

.recent-news-list span {
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 1024px) {
    .news-main-area {
        flex-direction: column;
    }

    .sidebar-container {
        flex: 1;
        order: 2;
    }
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-item__img {
        flex: 0 0 100%;
        width: 100%;
    }

    .news-banner h1 {
        font-size: 2rem;
    }
}

/* News Detail Specific Styles */
.news-detail-container {
    display: flex;
    gap: 40px;
}

.news-detail-content {
    flex: 1;
    min-width: 0;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.news-detail__header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.news-detail__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.news-detail__meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 0.9rem;
}

.news-detail__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail__meta i {
    color: var(--primary-color);
}

.news-detail__body {
    line-height: 1.8;
    color: #444;
}

.news-detail__body h2 {
    font-size: 1.75rem;
    margin: 30px 0 20px;
}

.news-detail__body h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.news-detail__body p {
    margin-bottom: 20px;
}

.news-detail__body img {
    width: 100%;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.news-detail__body ul,
.news-detail__body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-detail__body li {
    margin-bottom: 10px;
    position: relative;
    list-style: none;
    /* Reset standard list style */
}

.news-detail__body ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.news-detail__footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.news-nav-link {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.news-nav-link span {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.news-nav-link a {
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

.news-nav-link a:hover {
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .news-detail-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .news-detail-content {
        padding: 30px 20px;
    }

    .news-detail__title {
        font-size: 1.8rem;
    }
}

/* Related News Section */
.related-news-section {
    padding: 80px 0;
    background: #fbfcfe;
    border-top: 1px solid #eee;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
        .news-banner{
        height: auto;
        padding: 60px 0;
    }
    .related-news-grid {
        grid-template-columns: 1fr;
    }
}