.news-detail-page .hero {
    background: linear-gradient(to bottom, #dbeafe, #bfdbfe);
    padding: 6rem 0 4rem;
    text-align: center;
    margin-bottom: 0;
    margin-top: 0;
}

.news-detail-page .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.news-detail-page .news-category {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
    height: 1.75rem;
    line-height: 1;
}

.news-detail-page .news-meta {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.75rem;
}

.news-detail-page .news-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 1.75rem;
    line-height: 1.75rem;
}

.news-detail-page .news-content {
    padding: 6rem 0 4rem;
    background-color: #fff;
}

.news-detail-page .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-detail-page .featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.news-detail-page .featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-detail-page .news-body {
    text-align: left;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-detail-page .news-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    color: #333;
    text-align: left;
    max-width: 100%;
}

.news-detail-page .tags {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-detail-page .tag {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.news-detail-page .sidebar {
    position: sticky;
    top: 2rem;
}

.news-detail-page .widget {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.news-detail-page .widget h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.news-detail-page .related-news {
    margin-top: 2rem;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.news-detail-page .related-news h3 {
    color: #1e40af;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.news-detail-page .related-news ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-detail-page .related-news li {
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.news-detail-page .related-news li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail-page .related-news a {
    color: #4b5563;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-detail-page .related-news a:hover {
    color: #3b82f6;
}

.news-detail-page .related-news .date {
    font-size: 0.875rem;
    color: #6b7280;
    display: block;
}

.news-detail-page .cta {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    padding: 6rem 0 4rem;
    text-align: center;
    color: #fff;
}

.news-detail-page .cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-detail-page .cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.news-detail-page .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.news-detail-page .back-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.news-detail-page .back-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .news-detail-page .content-wrapper {
        grid-template-columns: 1fr;
    }

    .news-detail-page .sidebar {
        position: static;
    }
}

@media (max-width: 992px) {
    .news-detail-page .hero h1 {
        font-size: 2rem;
    }
    
    .news-detail-page .sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .news-detail-page .hero {
        padding: 4rem 0 2rem;
    }
    
    .news-detail-page .hero h1 {
        font-size: 1.75rem;
    }
    
    .news-detail-page .news-content {
        padding: 2rem 0;
    }
    
    .news-detail-page .news-meta {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .news-detail-page .news-body p {
        font-size: 1rem;
    }

    .news-detail-page .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .news-detail-page .back-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

.content-block {
    margin-bottom: 2rem;
}

.text-block {
    font-size: 1.1rem;
    color: #333;
}

.image-block {
    margin: 2rem 0;
}

.image-block figure {
    margin: 0;
}

.image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-block figcaption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.gallery-block {
    margin: 2rem 0;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-item figcaption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: auto;
    }
}

.image-container {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    width: 100%;
    max-width: 800px;
}

.news-image {
    width: 100%;
    margin: 0;
    position: relative;
    padding-top: 75%; /* 4:3 比例 */
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.news-image figcaption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-image {
        padding-top: 75%; /* 保持 4:3 比例 */
    }
}

/* 文本内容样式 */
.news-body ul, 
.news-body ol {
    margin: 1rem 0;
    padding-left: 1.5em;
}

.news-body li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0.3rem 0;
    color: #333;
    padding-left: 0.3em;
}

.news-body ul {
    list-style-type: disc;
}

.news-body ul li::marker {
    color: #3b82f6;
    font-size: 0.8em;
}

.news-body ol {
    list-style-type: decimal;
}

.news-body ol li::marker {
    color: #3b82f6;
    font-weight: 500;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: left;
}

.tags {
    max-width: 800px;  /* 保持标签宽度不变 */
    margin: 0 auto 2rem auto;
}

.related-news {
    width: 130%;  /* 增加宽度到130% */
    max-width: 1040px;  /* 800px * 1.3 */
    margin: 2rem -15% 0 -15%;  /* 使用负边距使其居中 */
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .related-news {
        width: 100%;  /* 在小屏幕上恢复正常宽度 */
        margin: 2rem 0 0 0;
        max-width: 800px;
    }
}

.related-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.related-news-header h3 {
    margin-bottom: 0;  /* 覆盖原有的底部边距 */
}

.view-more {
    color: #3b82f6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-more:hover {
    color: #2563eb;
    transform: translateX(5px);
}

.view-more i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.view-more:hover i {
    transform: translateX(3px);
}

/* 响应式调整 */
@media (max-width: 576px) {
    .related-news-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.news-detail-page .news-article {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.news-detail-page .related-news-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.news-detail-page .related-news-item:last-child {
    border-bottom: none;
}

.news-detail-page .related-news-item a {
    text-decoration: none;
    color: #333;
}

.news-detail-page .related-news-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.news-detail-page .related-news-item a:hover h4 {
    color: #3b82f6;
}

.news-detail-page .related-news-item .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}

/* 面包屑导航样式改进 */
.news-detail-page .breadcrumb {
    background-color: #e0efff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.news-detail-page .hero .breadcrumb {
    background-color: #e0efff;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.news-detail-page .breadcrumb a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 0.1rem;
}

.news-detail-page .breadcrumb a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.news-detail-page .breadcrumb span:not(.breadcrumb-separator) {
    color: #6b7280;
    margin-left: 0.1rem;
}

/* 面包屑分隔符样式 */
.news-detail-page .breadcrumb-separator {
    color: #9ca3af;
    margin: 0 0.1rem;
}

/* 相关阅读区域整体样式 */
.news-detail-page .widget.related-news {
    background-color: #fff;
    width: 100%;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.news-detail-page .related-news {
    background-color: #fff;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.news-detail-page .widget-title {
    font-size: 1.25rem;
    color: #1e40af;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.news-detail-page .related-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
}

/* 相关文章项样式 */
.news-detail-page .related-news-item {
    background-color: #f9fafb;
    border-radius: 6px;
    padding: 0.8rem;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
}

.news-detail-page .related-news-item:hover {
    background-color: #f1f5ff;
    border-color: #e1e9ff;
}

.news-detail-page .related-news-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.news-detail-page .related-news-item h4 {
    font-size: 0.95rem;
    margin: 0 0 0.6rem 0;
    color: #111827;
    line-height: 1.4;
    font-weight: 500;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-detail-page .related-news-item a:hover h4 {
    color: #3b82f6;
}

.news-detail-page .related-news-item .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

.news-detail-page .related-news-item .category {
    display: inline-block;
    background-color: #eef2ff;
    color: #4f46e5;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

.news-detail-page .related-news-item .date {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* 联系我们小组件样式统一 */
.news-detail-page .widget.contact-widget {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
}

.news-detail-page .contact-widget p {
    margin-bottom: 1rem;
    color: #4b5563;
} 