*{margin:0;padding:0;box-sizing: border-box;font-family:  Arial, sans-serif,'Microsoft YaHei';}
body{
    background:#1a1a1a;
    padding-bottom:80px;

}
.articleWrap{
    display:flex;
}
.article_content{
    max-width:700px;
    width:100%;
    /* margin:0 auto; */
    background-color: rgba(255,255,255,0.9);
    padding:20px;
    
    margin-right:20px;
    
}
.article_content .createtime{
    margin-top:12px;
    font-size:12px;
    color:#999;
    
}
.article_content p{
    line-height:28px;
    margin:1.4em 0;
}

.article_content img{
    margin:0 auto;
    max-width:90%;
    display:block;
}
.article_content .hr{
    width:90%;
    margin:48px auto;
    height:1px;
    background-color: #ccc;
}

a{
    text-decoration: none;
}
.page{
    text-align: center;
    
}
.page a{
    text-decoration: underline;
}
.page a,span{
    /* font-size: 24px; */
    display:inline-block;
    background-color: #1a1a1a;
    padding:8px 4px;
    color: #efefef;
}
.page span{color:#ccc;}

.wrapbox{
    width:100%;
    max-width: 1200px;
    padding: 1rem 2rem;
    overflow: hidden;
    margin-left:auto;
    margin-right:auto;
    position:relative;
    z-index: 2;
}
.paddngbox{
    width:100%;
    height:100%;
    position:absolute;
    left:0;top:0;
}
.header {
    /* margin-bottom:1rem; */
}
.header a{
    /* color:#fefefe; */
    color:#333;
    line-height:40px;
    font-size:18px;
    /* background: #1a1a1a; */
}

.banner{
    width:100%;
    /* max-height:540px;
    overflow: hidden;
    margin-bottom:16px; */
    /* display: flex; */
    /* align-items: center; */
    position:fixed;
    left:0;
    top:0;
    width:100%;
    /* height:100%; */
    z-index: 1;
    display:flex;
    align-items: center;
    justify-content: center;
}
.banner:after{
    content:" ";
    height:20px;
    width:100%;
    position:absolute;
    bottom:0;
    left:0;
    background-image: linear-gradient(0deg, #1a1a1a, transparent);
}

.banner:before{
    content:" ";
    height:50px;
    width:100%;
    position:absolute;
    top:0;
    left:0;
    background-image: linear-gradient(0deg, transparent,#1a1a1a);
}

.banner img{
    /* max-width:100%; */
    /* min-width:100vw; */
    /* min-height:100vh; */
    width:100vw;
}

.wrap{
    /* margin-top:440px; */
}
.channelBox{
    margin-bottom:24px;
}
.channelBox .channelTitle{
    margin-right: 10px;
    margin-bottom:8px;
    display:flex;
    align-items: center;
    justify-content: space-between;
    
}
.channelBox .channelTitle h3{
    /* font-size: 24px; */
    /* color: #efefef;
    background-color: #1a1a1a;
    font-weight: normal; */
    padding-bottom: 0.5rem;
    color: #007BFF;
    font-size: 1.25rem;
}
.channelBox .channelTitle a{
    font-size: 14px;
    color: #007BFF;
    /* background-color: #1a1a1a; */
    text-decoration: underline;
    font-weight: normal;
}

.channelBox .channelArticleList{
    width:100%;
    overflow: hidden;
}
.channelBox .channelArticleList .articleBox{
    width:calc(50% - 16px);
    float:left;
    /* padding: 16px; */
    display:flex;
    align-items: flex-start;
    /* background-color: #efefef; */
    background-color: rgba(255,255,255,0.9);
    border-radius: 4px;
    margin-bottom:8px;
}
.channelBox .channelArticleList .articleBox:nth-child(odd){
    margin-right:8px;
}
.channelBox .channelArticleList .articleBox:nth-child(even){
    margin-left:8px;
}
.channelBox .channelArticleList .articleBox .articleCoverBox{
    display:block;
    /* width:42%; */
    width: 200px;
    /* height:115px; */
    height:130px;
    overflow: hidden;
    /* border-radius: 5px; */
}
.channelBox .channelArticleList .articleBox .articleCoverBox .imgBox{
    display:flex;
    align-items: center;
    width:100%;
    height:100%;
}
.channelBox .channelArticleList .articleBox .articleCoverBox .imgBox img{
    width:100%;
}
.channelBox .channelArticleList .articleBox .articleInfo{
    flex-grow: 1;
    padding-left:16px;
    width:calc(100% - 42%);
    /* height:115px; */
    padding:16px;
    height:130px;
    overflow: hidden;
}
.channelBox .channelArticleList .articleBox .articleInfo h3{
    margin-bottom:4px;
    word-break: break-all;
}
.channelBox .channelArticleList .articleBox .articleInfo h3 a{
    font-size:16px;
    color: #1D2736;
}
.channelBox .channelArticleList .articleBox .articleInfo a:hover{
    color:#1f7dd7
}
.channelBox .channelArticleList .articleBox .articleInfo p a{
    font-size:14px;
    color: #333;
}
.channelBox .channelArticleList .articleBox .articleInfo p{
    word-break: break-all;
}
.channelWrap{
    margin-top:50px;
    display:flex;
}
.articleSideWrap{
    flex-grow: 1;
    max-width:300px;
}
.articleSideWrap .articleSideBox{
    background-color: rgba(255,255,255,0.9);
    padding:20px;
    width:100%;
}
.articleSideWrap .articleSideBox .articleSideTitle{
    font-size: 20px;
    margin-bottom: 12px;
    color: #1d2736;
}
.articleSideWrap .articleSideBox .articleInfoBox{
    display:flex;
    margin-bottom:16px;
    align-items: flex-start;
} 
.articleSideWrap .articleSideBox .articleInfoBox .coverSide{
    width:120px;
}
.articleSideWrap .articleSideBox .articleInfoBox .articleInfo{
    margin-left:13px;
}
.articleSideWrap .articleSideBox .articleInfoBox .articleInfo .title{
    color: #303a47;
    font-size: 18px;
    margin-bottom: 4px;
}
.articleSideWrap .articleSideBox .articleInfoBox .articleInfo .sub{
    color: #999;
    font-size: 13px;
    margin-bottom:6px;
}
.articleSideWrap .articleSideBox .textLinkArticleBox{
    font-size: 13px;
    color: #2c6199;
    text-decoration: underline;
    margin-bottom:8px;
}
.articleSideWrap .articleSideBox .linkArticleBox{
    width:100%;
    position:relative;
    display:block;
    display:flex;
    align-items: center;
    justify-content: center;
    margin-bottom:8px;
    max-height: 150px;
    overflow: hidden;
} 
.articleSideWrap .articleSideBox .linkArticleBox:last-child{
    margin-bottom:0;
}
.articleSideWrap .articleSideBox .linkArticleBox .cover{
    width:100%;
}
.articleSideWrap .articleSideBox .linkArticleBox .title{
    position:absolute;
    background-color: rgba(0,0,0,0.6);
    color:#fff;
    bottom:0;
    left:0;
    width:100%;
    /* height:50px; */
    padding:8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.box404{
    background-color: rgba(255,255,255,0.9);
    font-size:16px;
    text-align: center;
    padding:20px;
    margin-top:48px;
}
.box404 p{
    font-size:24px;
    margin-bottom:12px;
}


body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fa;
}

header, footer {
    background-color: #007BFF;
    text-align: center;
    padding: 1rem;
    color: #fff;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

/* 列表页样式 */
.disease-list {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.disease-list li {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.disease-list li:hover {
    transform: translateY(-5px);
}

.disease-list a {
    text-decoration: none;
    color: #007BFF;
    display: block;
}

.disease-list a:hover {
    text-decoration: none;
}

/* 详情页样式 */
section {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h3 {
    border-bottom: 2px solid #007BFF;
    padding-bottom: 0.5rem;
    color: #007BFF;
    font-size: 1.25rem;
    margin-bottom:0.5rem;
}
section h2{
    /* margin-bottom:1rem; */
}

section p{
    margin-bottom:1rem;
    line-height:1.75rem;
}
section ul,section ol{
    margin-bottom:1rem;
    padding-left:1.5rem
}
section ul p,section ol p{
    margin-bottom:0;
}


/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a {
    color: #007BFF;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #007BFF;
    color: white;
    border: 1px solid #007BFF;
}

.pagination a:hover:not(.active) {background-color: #ddd;}


/* 疾病分类导航样式 */
.disease-categories {
    background-color: #f5f7fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e4e8;
}

.disease-categories ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
    flex-wrap:wrap;
}

.disease-categories li {
    margin: 0 1rem;
}

.disease-categories a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.disease-categories a:hover {
    background-color: #e6f7ff;
    color: #007BFF;
}

.disease-categories a.active {
    background-color: #007BFF;
    color: white;
}


/* 面包屑导航样式 */
.breadcrumb {
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #007BFF;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #6c757d;
}