/* 新闻详情页面样式 - 基于教师页面布局 */

/* 主容器样式 */
.read-container {
    background: #f5f8fc;
    min-height: 100vh;
    padding: 20px 0;
}

.read-layout {
    display: flex;
    gap: 20px;
/*    background: #fff;*/
    border-radius: 8px;
/*    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    overflow: hidden;
}

/* 左侧边栏样式 */
.read-sidebar {
    width: 250px;
    background: #004098;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border-radius: 8px 0 0 8px;
}

.sidebar-title {
    background: #003579;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover a,
.menu-item.active a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.menu-item .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    opacity: 0.7;
}

.menu-item.active .arrow {
    opacity: 1;
}

/* 右侧内容区域样式 */
.read-content {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-radius: 0 8px 8px 0;
}

/* 面包屑导航样式 */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #004098;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #003579;
}

.breadcrumb .separator {
    color: #999;
    margin: 0 8px;
    font-size: 14px;
}

.breadcrumb .current {
    color: #666;
    font-size: 14px;
}

/* 文章头部样式 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.article-title {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 20px 0;
    text-align: center;
    position: relative;
}

.article-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #004098, #d4af37);
    border-radius: 2px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: #004098;
    color: #fff;
}

.meta-item i {
    margin-right: 6px;
    font-size: 16px;
}

/* 图标样式 */
.icon-time:before { content: '🕒'; }
.icon-author:before { content: '✍️'; }
.icon-source:before { content: '📰'; }
.icon-view:before { content: '👁️'; }
.icon-print:before { content: '🖨️'; }
.icon-share:before { content: '📤'; }
.icon-collect:before { content: '⭐'; }
.icon-arrow-left:before { content: '←'; }
.icon-arrow-right:before { content: '→'; }

/* 文章内容样式 */
.article-body {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

    .article-body p {
        /*    margin-bottom: 20px;*/
        text-indent: 2em;
        text-align: justify;
        font-size:14px;
    }

/*.article-body p:first-child {
    font-size: 18px;
    font-weight: 500;
    color: #004098;
    text-indent: 0;
    text-align: center;
    padding: 15px;
    background: #f8f9ff;
    border-left: 4px solid #004098;
    border-radius: 4px;
}*/

/* 文章图片样式 */
.article-images {
    margin: 25px 0;
    text-align: center;
}

.article-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 10px;
    transition: transform 0.3s ease;
}

/*.article-images img:hover {
    transform: scale(1.02);
}
*/
.article-images img:only-child {
    margin: 0;
}

/* 文章底部样式 */
.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.action-btn:hover {
    background: #004098;
    color: #fff;
    border-color: #004098;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 64, 152, 0.3);
}

.action-btn i {
    margin-right: 6px;
    font-size: 16px;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    border: 1px solid #e9ecef;
}

.nav-link:hover {
    background: #004098;
    color: #fff;
    border-color: #004098;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 64, 152, 0.2);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
}

.nav-link i {
    font-size: 18px;
    margin: 0 8px;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .read-layout {
        flex-direction: column;
    }
    
    .read-sidebar {
        width: 100%;
        order: 2;
    }
    
    .read-content {
        order: 1;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    .menu-item {
        flex: 1;
        min-width: 150px;
    }
}

@media screen and (max-width: 768px) {
    .read-content {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .meta-item {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-body p {
        text-indent: 1.5em;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 200px;
        justify-content: center;
    }
    
    .article-nav {
        flex-direction: column;
    }
    
    .nav-link {
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .read-content {
        padding: 15px 10px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-body {
        font-size: 14px;
    }
    
    .article-body p {
        text-indent: 1em;
    }
    
    .article-images img {
        margin: 5px 0;
    }
    
    .action-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* 加载动画 */
/*.article-body p {
    animation: fadeInUp 0.6s ease-out;
}*/

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文章图片加载动画 */
/*.article-images img {
    animation: fadeIn 0.8s ease-out;
}*/

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 优化滚动条样式 */
.read-content::-webkit-scrollbar {
    width: 6px;
}

.read-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.read-content::-webkit-scrollbar-thumb {
    background: #004098;
    border-radius: 3px;
}

.read-content::-webkit-scrollbar-thumb:hover {
    background: #003579;
}

/* 特殊效果：文章段落悬停 */
/*.article-body p:hover {
    background: rgba(0, 64, 152, 0.02);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}*/

/* 文章标题特殊效果 */
.article-title {
    position: relative;
    overflow: hidden;
}

.article-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 64, 152, 0.1), transparent);
    transition: left 0.8s ease;
}

.article-title:hover::before {
    left: 100%;
}

/* 元信息项特殊效果 */
.meta-item {
    position: relative;
    overflow: hidden;
}

.meta-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.meta-item:hover::after {
    left: 100%;
}