/* Blog Page Styles */

/* Blog Header Section */
.blog-header {
    background: linear-gradient(135deg, #6C8BE8 0%, #9798EB 100%);
    padding: 80px 0 60px;
    color: rgb(0, 0, 0);
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(108, 139, 232, 0.1);
    backdrop-filter: blur(10px);
}

.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: #E2E8FE;
}

/* News Card Styles */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(108, 139, 232, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(108, 139, 232, 0.25);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

.placeholder-image i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.placeholder-image span {
    font-weight: 500;
    opacity: 0.8;
}

/* Smart Placeholder Image Styles */
.smart-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.smart-placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.news-card:hover .smart-placeholder-image::before {
    background: rgba(255, 255, 255, 0.2);
}

.smart-placeholder-image i {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.smart-placeholder-image span {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.news-card:hover .smart-placeholder-image i {
    transform: scale(1.1) rotate(5deg);
}

.news-card:hover .smart-placeholder-image span {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .smart-placeholder-image i {
        font-size: 2rem;
    }
    
    .smart-placeholder-image span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .smart-placeholder-image i {
        font-size: 1.8rem;
    }
    
    .smart-placeholder-image span {
        font-size: 0.75rem;
    }
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* News Date Styles */
.news-date {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-date i {
    margin-right: 6px;
    color: #6C8BE8;
    font-size: 0.9rem;
}

.news-date-detail {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.95rem;
    margin: 15px 0 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.news-date-detail i {
    margin-right: 8px;
    color: #6C8BE8;
    font-size: 1rem;
}

.read-more-btn {
    color: #6C8BE8;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #9798EB;
}

/* Pagination Styles */
.pagination {
    margin-top: 50px;
}

.pagination .page-link {
    color: #6C8BE8;
    border: 2px solid #6C8BE8;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #6C8BE8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 139, 232, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: #6C8BE8;
    border-color: #6C8BE8;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 139, 232, 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    border-color: #ccc;
    background-color: #f8f9fa;
}

/* Loading and Error States */
#loading {
    color: #6C8BE8;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Blog Detail Page Styles */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 20px 0;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #6C8BE8;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #9798EB;
}

.news-detail-section {
    padding: 60px 0;
    background-color: #E2E8FE;
}

.news-article {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(108, 139, 232, 0.15);
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.news-image-container {
    text-align: center;
}

.news-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-description {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #6C8BE8;
    border-radius: 5px;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

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

.news-content h2,
.news-content h3,
.news-content h4 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Share Section */
.share-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.share-buttons .btn {
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.article-navigation {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .news-detail-title {
        font-size: 2rem;
    }
    
    .news-article {
        padding: 25px;
    }
    
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .share-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .blog-header {
        padding: 60px 0 40px;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
    
    .news-section {
        padding: 60px 0;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        margin: 0 2px;
    }
}

/* Animation for news cards loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer h5 {
    color: #6C8BE8;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 8px;
    color: #bdc3c7;
}

.footer ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #6C8BE8;
}

.footer hr {
    border-color: #34495e;
    margin: 30px 0 20px;
}

.footer .fab,
.footer .fas {
    color: #6C8BE8;
    margin-right: 8px;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #6C8BE8;
}