/* 新闻详情页专用样式文件 */
/* News Detail Page Styles */

/* Bootstrap栅格系统基础样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-xl-8, .col-lg-8, .col-12 {
    padding: 0 15px;
}

.col-xl-4, .col-lg-4 {
    padding: 0 15px;
}

/* 大屏幕布局 */
@media (min-width: 1200px) {
    .col-xl-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    .col-xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* 中等屏幕布局 */
@media (min-width: 992px) {
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* 小屏幕布局 */
@media (max-width: 991px) {
    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 面包屑导航区域样式 */
.breadcrumb-area {
    position: relative;
    padding: 80px 0 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breadcrumb-area .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.breadcrumb-area .container {
    position: relative;
    z-index: 2;
}

.breadcrumb-title h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    display: inline-block;
}

.breadcrumb-icon {
    margin-top: 30px;
}

.breadcrumb-icon i {
    color: #ffffff;
    font-size: 24px;
    animation: bounce 2s infinite;
}

/* 弹跳动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 新闻详情页主体区域 */
.blog-details-page {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* 强制两列布局 */
.blog-details-page .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
}

.blog-details-page .col-xl-8,
.blog-details-page .col-lg-8 {
    flex: 1;
    min-width: 0;
}

.blog-details-page .col-xl-4,
.blog-details-page .col-lg-4 {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
}

/* 新闻内容区域 */
.blog-content-wrap {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.blog-content-wrap h3 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.blog-content-wrap h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #e74c3c;
}

/* 新闻内容区域 - 保持富文本内容的原有样式 */

/* 侧边栏样式 */
.blog-sidebar {
    padding-left: 30px;
}

.blog-category {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.blog-category h5 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.blog-category h5::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e74c3c;
}

.blog-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-category ul li {
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.blog-category ul li:hover {
    padding-left: 10px;
}

.blog-category ul li:last-child {
    border-bottom: none;
}

.blog-category ul li i {
    color: #3498db;
    margin-right: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-category ul li:hover i {
    color: #e74c3c;
    transform: translateX(5px);
}

.blog-category ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-category ul li a:hover {
    color: #3498db;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 991px) {
    /* 移动端恢复堆叠布局 */
    .blog-details-page .row {
        flex-wrap: wrap !important;
    }
    
    .blog-details-page .col-xl-8,
    .blog-details-page .col-lg-8,
    .blog-details-page .col-xl-4,
    .blog-details-page .col-lg-4 {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: auto !important;
    }
    
    .blog-sidebar {
        padding-left: 0;
        margin-top: 40px;
        text-align: left;
    }
    
    .blog-category {
        text-align: left;
    }
    
    .blog-category ul li {
        text-align: left;
        direction: ltr;
    }
    
    .blog-category ul li i {
        margin-left: 0;
        margin-right: 10px;
    }
    
    .blog-category ul li:hover i {
        transform: translateX(5px);
    }
    
    .breadcrumb-title h1 {
        font-size: 36px;
    }
    
    .blog-content-wrap h3 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .breadcrumb-area {
        padding: 80px 0 60px;
    }
    
    .breadcrumb-title h1 {
        font-size: 28px;
    }
    
    .blog-details-page {
        padding: 60px 0;
    }
    
    .blog-content-wrap {
        padding: 25px 15px;
    }
    
    .blog-content-wrap h3 {
        font-size: 24px;
    }
    
    .blog-category {
        padding: 20px;
    }
}

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* JavaScript功能支持样式 */

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10000;
}

.close-modal:hover {
    color: #333;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.back-to-top i {
    font-size: 20px;
}

/* 阅读进度条样式 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9998;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    width: 0%;
    transition: width 0.3s ease;
}

/* 侧边栏固定效果 */
.sticky-sidebar {
    position: sticky;
    top: 20px;
}

/* 分类悬停效果 */
.category-hover {
    background-color: #f8f9fa !important;
    border-radius: 5px;
}

.category-clicked {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* 打字机效果 */
.typing-complete {
    border-right: 2px solid #3498db;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: #3498db;
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* 动画类 */
.animated {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 移动端优化 */
@media (max-width: 767px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 18px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 15px;
    }
    
    .close-modal {
        top: 5px;
        right: 10px;
        font-size: 24px;
    }
}
