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

/* 主容器样式 */
.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 table {
    margin: auto;
}
    .article-body td {
        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%;
}

/* ========== 机构设置页面特殊样式 ========== */

/* 部门分组样式 - 简化版 */
.department-group {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

/* 部门标题样式 - 简化版 */
.department-title {
    background:#f5f5f5;
    color: #004098;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.department-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #004098;
}

/* 部门内容区域 */
.department-content {
    padding: 20px;
}

/* 职位列表样式 */
.position-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.position-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

/* 职位名称样式 */
.position-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    min-width: 100px;
    margin-right: 15px;
}

.position-name::after {
    content: '：';
    color: #004098;
}

/* 人员姓名样式 */
.position-people {
    color: #004098;
    font-size: 16px;
    flex: 1;
}

/* 子部门样式 */
.sub-department {
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid #e0e0e0;
}

.sub-department-title {
    font-size: 16px;
    font-weight: 600;
    color: #004098;
    margin-bottom: 10px;
}

.sub-department-title::before {
    content: '★';
    color: #d4af37;
    margin-right: 5px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .department-title {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .department-content {
        padding: 15px;
    }
    
    .position-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }
    
    .position-name {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 15px;
    }
    
    .sub-department {
        padding-left: 10px;
    }
}

/* ========== 现任领导页面样式 ========== */

/* 领导卡片容器 */
.leaders-container {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* 领导卡片 */
.leader-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leader-card:last-child {
    margin-bottom: 0;
}

/* 领导照片区域 */
.leader-photo {
    width: 200px;
    height: 250px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* 领导信息区域 */
.leader-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 领导标题栏 */
.leader-title-bar {
    background: #004098;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    margin: -20px -20px 20px -20px;
    position: relative;
}

.leader-title-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #d4af37;
}

/* 领导详细信息 */
.leader-details {
    flex: 1;
}

.detail-item {
    margin-bottom: 15px;
    line-height: 1.6;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    display: inline-block;
    min-width: 80px;
}

.detail-value {
    color: #004098;
    font-size: 16px;
    line-height: 1.6;
}

/* 现任领导模式下的特殊样式 */
.leaders-layout .read-content {
    background: #f5f8fc;
    padding: 20px;
}

.leaders-layout .article-body {
    background: transparent;
    padding: 0;
}

.leaders-layout .normal-content {
    display: none;
}

.leaders-layout .organization-container {
    display: none !important;
}

.leaders-layout .leaders-container {
    display: block !important;
}

/* 响应式设计 - 现任领导页面 */
@media screen and (max-width: 768px) {
    .leaders-container {
        padding: 15px;
    }
    
    .leader-card {
        flex-direction: column;
    }
    
    .leader-photo {
        width: 100%;
        height: 200px;
    }
    
    .leader-info {
        padding: 15px;
    }
    
    .leader-title-bar {
        margin: -15px -15px 15px -15px;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .detail-label {
        font-size: 15px;
        min-width: 70px;
    }
    
    .detail-value {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .leaders-container {
        padding: 10px;
    }
    
    .leader-photo {
        height: 180px;
    }
    
    .leader-info {
        padding: 12px;
    }
    
    .leader-title-bar {
        margin: -12px -12px 12px -12px;
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .detail-label {
        font-size: 14px;
        min-width: 60px;
    }
    
    .detail-value {
        font-size: 14px;
    }
}

/* ========== 历史沿革页面样式 ========== */

/* 历史沿革容器 */
.history-container {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

/* 时间轴容器 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #004098;
    transform: translateX(-50%);
}

/* 时间轴项目 */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    min-height: 100px;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* 年份 */
.timeline-year {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #004098;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 64, 152, 0.3);
}

/* 时间轴圆点 */
/* .timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #004098;
    border-radius: 50%;
    z-index: 3;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #004098;
} */

/* 时间轴内容 */
.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    width: 35%;
    min-width: 200px;
    max-width: 300px;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    min-height: 80px;
    vertical-align: middle;
}

/* 左侧内容 */
.timeline-item:nth-child(odd) .timeline-content {
    position: absolute;
    right: 60%;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    justify-content: flex-end;
}

/* 右侧内容 */
.timeline-item:nth-child(even) .timeline-content {
    position: absolute;
    left: 60%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    justify-content: flex-start;
}

/* 内容箭头 */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* 历史沿革模式下的特殊样式 */
.history-layout .read-content {
    background: #f5f8fc;
    padding: 20px;
}

.history-layout .article-body {
    background: transparent;
    padding: 0;
}

.history-layout .normal-content {
    display: none;
}

.history-layout .organization-container {
    display: none !important;
}

.history-layout .leaders-container {
    display: none !important;
}

.history-layout .history-container {
    display: block !important;
}

/* 响应式设计 - 历史沿革页面 */
@media screen and (max-width: 768px) {
    .history-container {
        padding: 20px 15px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
    }
    
    .timeline-year {
        left: 30px;
        transform: translateX(-50%);
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .timeline-item::before {
        left: 30px;
        transform: translate(-50%, -50%);
    }
    
    .timeline-content {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
        text-align: left !important;
    }
    
    .timeline-content::after {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .history-container {
        padding: 15px 10px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-year {
        left: 25px;
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .timeline-item::before {
        left: 25px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-content {
        padding: 15px;
        font-size: 15px;
    }
}

/* 时间轴动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 页面模式切换样式 ========== */

/* 模式切换按钮样式 */
.page-mode-switcher {
    margin-bottom: 20px;
    text-align: center;
}

.mode-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 10px 25px;
    margin: 0 5px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.mode-btn.active {
    background: #004098;
    color: #fff;
    border-color: #004098;
    box-shadow: 0 2px 8px rgba(0, 64, 152, 0.2);
}

.mode-btn::before {
    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;
}

.mode-btn:hover::before {
    left: 100%;
}

/* 机构设置模式下的特殊样式 */
.organization-layout .read-content {
    background: #f5f8fc;
    padding: 20px;
}

.organization-layout .article-body {
    background: transparent;
    padding: 0;
}

.organization-layout .normal-content {
    display: none;
}

.organization-layout .organization-container {
    display: block !important;
}

/* 新闻模式下的样式 */
.normal-layout .normal-content {
    display: block;
}

.normal-layout .organization-container {
    display: none !important;
}

/* 响应式设计 - 模式切换按钮 */
@media screen and (max-width: 768px) {
    .mode-btn {
        padding: 8px 20px;
        font-size: 13px;
        margin: 0 3px;
    }
}

@media screen and (max-width: 480px) {
    .mode-btn {
        padding: 6px 15px;
        font-size: 12px;
        margin: 0 2px;
    }
}