/* 引入共用样式 */
@import url('../newcss/common.css');
body{
    background-color: white;
}
main{
    background-image: none;
}

/* PC端左侧导航样式 */
.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-title {
    background-image: url(../newimages/listmenu.png);
    color: #fff;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 108px;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    background: #FCF8F8;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    position: relative;
    list-style: none;
}

.sidebar-menu li::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 75%;
    height: 1px;
    background-color: #EFEFEF;
}

.sidebar-menu a {
    display: flex;
    padding: 15px 20px;
    height: 75px;
    text-align: center;
    justify-content: center;
    color: #333;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu li.active > a,
.sidebar-menu a:hover {
    color: #882829;
    font-weight: bold;
    background-color: #f9f9f9;
}

/* PC端左侧导航活跃项的红色长条 */
@media screen and (min-width: 1200px) {
    .sidebar-menu > li.active::after {
        display: none;
    }
    
    .sidebar-submenu li.active::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 4px;
        height: 25px;
        background-color: #C13432;
    }
}

/* 二级菜单样式 */
.sidebar-menu .has-submenu > a {
    position: relative;
}

.sidebar-menu .has-submenu > a:after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 4px 0 4px;
    border-color: #999 transparent transparent transparent;
    transition: transform 0.3s ease;
}

.sidebar-menu .has-submenu.active > a:after {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #FCF8F8;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

/* 默认关闭状态 */
.sidebar-menu .has-submenu .sidebar-submenu {
    max-height: 0;
}

/* 只有active状态才展开 */
.sidebar-menu .has-submenu.active .sidebar-submenu {
    max-height: 1000px;
}

.sidebar-submenu li {
    border-bottom: 0px solid #eee;
}

.sidebar-submenu li:last-child {
    border-bottom: none;
}

.sidebar-submenu a {
    padding: 12px 20px 12px 30px;
    font-size: 14px;
    text-align: center;
}

.sidebar-submenu li.active a,
.sidebar-submenu a:hover {
    color: #882829;
    background-color: #f5f5f5;
}

/* 页面横幅 */
.page-banner {
    width: 100%;
    height: 370px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

/* 面包屑导航 */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    color: #666;
    font-size: 14px;
    background-color: #fff;
}

/* 内容布局 */
.content-wrapper {
    display: flex;
    gap: 60px;
}

/* 右侧内容列表 */
.content-list {
    flex: 1;
    background: #fff;
    padding: 20px;
}

/* PC端科研列表样式 */
@media screen and (min-width: 1200px) {
    .list-item {
        display: flex;
        align-items: flex-start;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        text-decoration: none;
        color: #333;
        flex-direction: row-reverse; /* 将日期移到右边 */
        justify-content: space-between; /* 两端对齐 */
    }
    
    .list-item:hover {
        color: #882829;
    }
    
    .list-item:hover .item-date,
    .list-item:hover .item-content h3 {
        color: #882829;
    }
    
    .item-date {
        min-width: 100px;
        color: #666;
        text-align: right; /* 日期右对齐 */
        padding-left: 20px; /* 改为左侧内边距 */
        font-size: 14px;
    }
    
    .item-content {
        position: relative;
        padding-left: 20px;
        flex: 1; /* 让内容区域占用剩余空间 */
    }
    
    .item-content:before {
        content: ""; /* 移除文本内容 */
        position: absolute;
        left: 0;
        top: 5px; /* 稍微向下调整方块位置 */
        width: 6px; /* 方块宽度 */
        height: 6px; /* 方块高度 */
        background-color: #882829; /* 红色背景 */
    }
    
    .item-content h3 {
        font-size: 16px;
        font-weight: normal;
        margin: 0;
        line-height: 1.5;
    }
    
    .item-content p {
        display: none; /* 隐藏摘要文本 */
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 60px;
    gap: 10px;
}

.pagination a {
    padding: 8px 15px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.pagination a.active, 
.pagination a:hover {
    background: #8B1F41;
    color: #fff;
}

/* 响应式设计 - 1400px以上的大屏幕 */
@media screen and (min-width: 1401px) {
    .content-wrapper {
        max-width: 1400px;
        margin: 0 auto;
        padding: 30px 0;
    }
    .content-detail {
       
        width:1020px;
    }
    .sidebar {
        width: 350px;
    }
    
    main {
        padding: 0;
    }
    
    .breadcrumb {
        padding: 15px 0px 0px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-content {
        font-size: 16px;
    }
}

/* 响应式设计 - 1200px-1400px的中等屏幕 */
@media screen and (min-width: 1200px) and (max-width: 1400px) {
    .content-wrapper {
        margin: 0 auto;
        padding: 20px;
    }
    
    .breadcrumb {
        padding: 15px 0px 0px;
    }
    
    .sidebar {
        width: 350px;
    }
    
    .content-detail {
        padding: 25px;
        width:1020px;
    }
    
    .article-title {
        font-size: 22px;
    }
}

/* 响应式设计 - 1200px以下的移动端 */
@media screen and (max-width: 1199px) {
    .bighidden{
        display: none;
    }   
    .page-banner {
        height: 150px;
    }
    
    .breadcrumb {
        display: none;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .mobile-breadcrumb {
        padding: 10px 15px;
        background-color: white;
        font-size: 12px;
        color: #666;
        /* margin-bottom: 15px; */
    }
    
    .mobile-detail {
        border-radius: 5px;
        overflow: hidden;
    }
    
    .mobile-article-title {
        font-size: 18px;
    }
    
    .mobile-article-meta {
        margin-bottom: 15px;
    }
    
    .mobile-section h2 {
        font-size: 16px;
    }
    
    .mobile-subsection h3 {
        font-size: 15px;
    }
    
    .mobile-subsection p {
        font-size: 14px;
    }
    
    .mobile-article-navigation {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #e5e5e5;
    }
    
    .list-item {
        padding: 15px;
    }
    
    .item-date {
        min-width: 60px;
    }
    
    .item-date .day {
        font-size: 24px;
    }
    
    .item-content h3 {
        font-size: 16px;
    }
    
    /* 小于768px的额外调整 */
    @media screen and (max-width: 768px) {
        .breadcrumb {
            font-size: 12px;
            padding: 10px 0;
        }
        
        .list-item {
            padding: 10px;
        }
        
        .item-content p {
            display: none; /* 在很小的屏幕上隐藏描述文本 */
        }
        
        .pagination a {
            padding: 6px 10px;
            font-size: 12px;
        }
    }
    
    /* 移动端新闻列表样式 */
    .mobile-news-list {
        background: #fff;
        margin-top: 10px;
    }
    
    .mobile-news-item {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* .mobile-news-item:first-child {
        border: 1px solid #C13432;
        box-sizing: border-box;
        border-left-width: 4px;
    } */
    
    .mobile-news-info {
        width: 100%;
    }
    
    .mobile-news-title {
        font-size: 14px !important;
        font-weight: normal !important;
        margin: 0 !important;
        line-height: 1.6 !important;
        color: #333 !important;
        text-align: left !important;
    }
    
    .item-number {
        color: #C13432 !important;
        font-weight: bold !important;
        margin-right: 5px !important;
    }
    
    .mobile-news-date {
        color: #C13432 !important;
        font-size: 14px !important;
        text-align: left !important;
        margin-top: 5px !important;
        display: block !important;
    }
}

/* 详情内容 */
.content-detail {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); */
}

.article-header {
    text-align: center;
    /* border-bottom: 1px solid #e5e5e5; */
    padding-bottom: 20px;
 
}

.article-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    border-bottom: 0px !important;
}

.meta-item {
    display: inline-block;
}

.article-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.section {
    margin-bottom: 30px;
}

.section h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    line-height: 1.5;
    margin-top: 20px;
}

.section h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: #882829;
}

.subsection {
    margin-bottom: 25px;
    padding-left: 10px;
}

.subsection h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.subsection p {
    margin-bottom: 15px;
    text-indent: 2em;
    line-height: 1.8;
}

.subsection ol {
    padding-left: 2em;
    margin-bottom: 15px;
    list-style-type: decimal;
}

.subsection li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.article-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.prev-next {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prev-link, .next-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.prev-link:before, .next-link:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.prev-link:before {
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent #882829;
    /* border-width: 6px 6px 6px 0; */
    /* border-color: transparent #882829 transparent transparent; */
}

.next-link:before {
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent #882829;
}

.prev-link:hover, .next-link:hover {
    color: #882829;
}

/* 移动端样式 */
.mobile-detail {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
}

.mobile-article-header {
    text-align: center;
    margin-bottom: 5px;
    /* border-bottom: 1px solid #e5e5e5; */
    padding-bottom: 15px;
}

.mobile-article-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.mobile-article-meta {
    display: flex;
    width: 60%;
    margin: 0  auto;
    /* flex-direction: column; */
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 12px;
}

.mobile-meta-item {
    display: block;
}

.mobile-article-content {
    font-size: 14px;
    line-height: 1.6;
}

.mobile-section {
    margin-bottom: 20px;
}

.mobile-section h2 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-left: 12px;
    line-height: 1.5;
    margin-top: 15px;
}

.mobile-section h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background-color: #882829;
}

.mobile-subsection {
    margin-bottom: 15px;
    padding-left: 10px;
}

.mobile-subsection h3 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.mobile-subsection p {
    margin-bottom: 10px;
    text-indent: 2em;
    line-height: 1.6;
}

.mobile-article-navigation {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #e5e5e5;
    padding-top: 15px;
    margin-bottom: 20px;
}

.mobile-prev-link, .mobile-next-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 15px;
    position: relative;
}

.mobile-prev-link:before, .mobile-next-link:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.mobile-prev-link:before {
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent #882829;

    /* border-width: 5px 5px 5px 0;
    border-color: transparent #882829 transparent transparent; */
}

.mobile-next-link:before {
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent #882829;
}

/* 移动端页脚样式 */
.mobile-footer {
    background: #882829;
    color: white;
    padding: 15px;
    /* margin-top: 20px; */
}

.mobile-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mobile-footer-left {
    text-align: center;
}

.mobile-footer-logo {
    width: 180px;
    height: auto;
}

.mobile-footer-info {
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

.mobile-footer-info p {
    margin: 5px 0;
}

/* 小于768px的额外调整 */
@media screen and (max-width: 768px) {
    .mobile-footer-logo {
        width: 278px;
        height: 50px;
    }
    
    .mobile-footer-info {
        font-size: 11px;
    }
} 