/* 新闻详情页样式 */

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 12px 0;
    margin-bottom: 24px;
}

.breadcrumb-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    margin-right: 8px;
}

.breadcrumb-item a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item::after {
    content: ">";
    margin-left: 8px;
    color: #666;
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item:last-child {
    color: #666;
    font-size: 14px;
}

/* 新闻详情内容区域 */
.news-detail-content {
    padding: 20px 0 60px;
}

.news-layout {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

/* 左侧新闻主体内容 */
.news-main-content {
    flex: 1;
    min-width: 0;
}

.news-header {
    margin-bottom: 24px;
}

.news-title {
    font-size: 2.25rem;
    line-height: 1.2;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.news-meta {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.news-date {
    display: inline-flex;
    align-items: center;
}

/* 新闻社交分享 */
.news-share {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.share-label {
    margin-right: 12px;
    font-size: 14px;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

/* 新闻正文样式 */
.news-body {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.news-main-image {
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.news-highlights {
    background-color: #f8f9fa;
    border-left: 4px solid #0066cc;
    padding: 20px;
    margin-bottom: 32px;
    border-radius: 4px;
}

.news-highlights ul {
    margin: 0;
    padding-left: 20px;
}

.news-highlights li {
    margin-bottom: 8px;
    position: relative;
}

.news-highlights li:last-child {
    margin-bottom: 0;
}

.news-paragraphs p {
    margin-bottom: 24px;
    text-align: justify;
}

.news-paragraphs p:last-child {
    margin-bottom: 0;
}

/* 相关新闻 */
.related-news {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.related-news-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-news-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-news-item:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-news-date {
    font-size: 14px;
    color: #666;
}

.related-news-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 右侧浮动合作邮箱 */
.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.media-contact {
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.contact-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-avatar {
    margin-bottom: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* 侧边栏固定定位样式 */
.news-sidebar.fixed {
    position: fixed;
    top: 20px;
    right: calc(50% - 600px + 20px);
}

/* 响应式设计 */
@media (max-width: 1240px) {
    .news-layout {
        padding: 0 16px;
        gap: 30px;
    }
    
    .news-sidebar.fixed {
        right: 16px;
    }
}

@media (max-width: 1024px) {
    .news-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .news-sidebar {
        width: 100%;
    }
    
    .news-sidebar.fixed {
        position: static;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .breadcrumb-container {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .news-detail-content {
        padding: 16px 0 40px;
    }
    
    .news-title {
        font-size: 1.75rem;
    }
    
    .news-highlights {
        padding: 16px;
    }
    
    .related-news {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .related-news-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 8px 0;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .media-contact {
        padding: 20px;
    }
}

/* 确保侧边栏在小屏幕上不会固定 */
@media (max-width: 1024px) {
    .news-sidebar {
        position: static !important;
    }
}