 

/* 全局字体设置 - 整站采用宋体 */
* {
    font-family: "SimSun", "宋体", serif !important;
}

body {
    font-family: "SimSun", "宋体", serif !important;
}

/* font标签样式设置 */
font[face="宋体"] {
    font-family: "SimSun", "宋体", serif !important;
} 

/* 针对size=5的font标签设置字体大小为22px */
font[face="宋体"][size="5"] {
    font-size: 22px !important;
}

/* 文章标题和时间的样式 */
.article-title {
    padding-left: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.article-time {
    padding-right: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .article-title {
        padding-left: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .article-time {
        padding-right: 15px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}
  

/*模板三*/

.home-zqyt-category-list{
    width: 100%;
    background-color: #fff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid #eee;  /*底部加一条灰色横线*/
    box-shadow: none;
    position: fixed;
    top: 0;
    z-index: 10000;
}

.home-zqyt-category-list-ul{
    display: flex;
    justify-content: flex-end; /* 确保菜单项右对齐 */
    flex-wrap: nowrap;
    font-size: 16px;
    line-height: 40px;
    margin:10px 0 0 0; /* 移除底部margin，确保菜单项能紧贴底部 */
    overflow-x: hidden;
    text-align: right; /* 添加文本右对齐 */
}
.home-zqyt-category-list-ul li{
    min-width: 80px;
    height: 70px; /* 增加高度，确保有足够空间显示下划线 */
    text-align: center;
    cursor: pointer;
    margin: 0 4px; /* 将百分比间距改为固定像素，减小间距 */
    list-style: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0; /* 移除额外的padding，因为下划线已经紧贴底部 */
    position: relative; /* 确保伪元素定位正确 */
}

@media screen and (max-width: 768px) {
    .home-zqyt-category-list-ul li {
        min-width: auto;
        width: auto;
        height: 40px; /* 移动端下减小高度 */
        flex-shrink: 1;
        position: relative;
        padding-bottom: 0; /* 移除额外的padding，因为下划线已经紧贴底部 */
    }
    .home-zqyt-category-list-ul li a {
        padding: 0 5px;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 40px; /* 与移动端li高度一致 */
    }
    .home-zqyt-category-list-ul li:active::after,
    .home-zqyt-category-list-ul li:hover::after,
    .liActive::after {
        content: '';
        display: block;
        width: 30px; /* 小屏幕下宽度稍微缩小 */
        height: 3px;
        margin-bottom: 0; /* 调整下划线位置 */
        background: linear-gradient(to right, #d4a675, #e2c9a6);
        border-radius: 2px;
        position: absolute;
        bottom: -1px; /* 调整为-1px使下划线紧贴底部灰色线 */
        left: 50%;
        transform: translateX(-50%);
        z-index: 1; /* 确保下划线在最上层 */
    }
}

.home-zqyt-category-list-ul li a{
    color:#C0A082;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 60px; /* 与li高度一致，使文字垂直居中 */
}

.liActive a {
    color:#C0A082!important;
    font-weight: bold;
}


.home-zqyt-category-list-ul li:active,.home-zqyt-category-list-ul li:hover,.liActive{
    background: transparent;
    color: #C0A082!important;
    position: relative;
    font-weight: bold;
}

/* 确保菜单项在所有屏幕尺寸下都有正确的悬停和激活样式 */
.home-zqyt-category-list-ul li {
    position: relative;
}

.home-zqyt-category-list-ul li:active::after,
.home-zqyt-category-list-ul li:hover::after,
.liActive::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    /* margin: 0 auto; */
    margin-bottom: 0;
    background: linear-gradient(to right, #d4a675, #e2c9a6);
    border-radius: 2px;
    position: absolute;
    bottom: -1px; /* 调整为-1px使下划线紧贴底部灰色线 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1; /* 确保下划线在最上层 */
}
 
.home-zqyt-category-list-ul li a:hover{
    color: #C0A082!important;
    /* 不需要额外的样式，因为下划线是通过li的伪元素实现的 */
}

.home-zqyt-head-logo-category{ 
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 改为顶部对齐，确保菜单项能延伸到底部 */
    flex-wrap: nowrap;
    text-align: right; /* 确保菜单容器右对齐 */
}

@media screen and (max-width: 768px) {
    .home-zqyt-head-logo-category {
        justify-content: space-between;
    }
    .home-zqyt-head-logo-category .head-logo {
        flex-shrink: 0;
        min-width: 120px;
    }
}

.home-zqyt-head-logo-category img{
    height: 60px;
    margin: 10px 0;
}

/* 重写common.css中的媒体查询代码 */
.layui-container {
    color: #4d4d4d;
}

@media screen and (min-width: 2500px) {
    .layui-container {
        width: 2350px;
        color: #4d4d4d;
    }
}

@media screen and (min-width: 1900px) {
    .layui-container {
        width: 1800px;
        color: #4d4d4d;
    }
}

@media screen and (min-width: 1600px) {
    .layui-container {
        width: 1550px;
        color: #4d4d4d;
    }
}

