 /* 主色调定义 */
 :root {
    --main-color: #335eea; /* 主色调 */
    --text-color: #333; /* 主要文本颜色 */
    --background-color: #f5f5f5; /* 背景颜色 */
    --card-background: #ffffff; /* 卡片背景色 */
}

html{
    font-size: .625em;
    font-size: calc(1em * .625);
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }
  body{
    background-color: var(--background-color);
    padding-top: 60px; /* 根据需要调整值，确保内容不被导航遮挡 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font: normal 300 1.4em / 1.2 'Open-sans', helvetica, sans-serif;
    color: #111;
    margin-right: auto;
    margin-left: auto;
  }
.layui-header {
    position: fixed; /* 固定在视口顶部 */
    line-height: 60px;
    top: 0; /* 距离顶部为 0 */
    left: 0; /* 距离左侧为 0 */
    width: 100%; /* 宽度为 100% */
    z-index: 1000; /* 确保在所有元素上方 */
    background-color: var(--main-color); /* 背景颜色 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 阴影效果 */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 50px;
    font-size: 2em;
    font-weight: bold;
    color: var(--card-background);
    cursor: pointer;
    letter-spacing: 5px;
}
.logo:hover{
    color: var(--card-background);
}
.site-title{
    display: none;
    color: var(--card-background);
}

nav ul {
    height: 60px;
    line-height: 60px;
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    padding: 0 15px;
}
nav ul li a{
    font-size: 1.16em;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--card-background);
    cursor: pointer;
    height: 100%;
    line-height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.navbar ul li a:hover{
    color: #fff;
}
.navbar ul li a:hover::after {
    display: inline-block;
}
.navbar ul li a::after {
    content: '';
    display: none;
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-bottom: 5px solid #fff;
    position: absolute;
    bottom: 0px;
    left: 45%;
}

.nav-link.active::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-bottom: 5px solid #fff;
    position: absolute;
    bottom: 0px;
    left: 45%;
}


.nav-icon {
    cursor: pointer;
}

.notice-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    line-height: 60px;
}

.notice-tip-icon:hover {
    color: #ffd700;
}

.notice-tip-layer {
    box-shadow: 0 2px 12px rgba(51, 94, 234, 0.15) !important;
}

.notice-tip-layer .layui-layer-content {
    padding: 0 !important;
}

.notice-tip-content {
    max-width: 280px;
    word-break: break-all;
    padding: 12px 16px;
    color: #333;
}

.notice-tip-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #335eea;
}

.notice-tip-body {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}

.notice-tip-countdown {
    font-size: 11px;
    color: #999;
    text-align: right;
}

.search {
    margin-left: 0;   
}

/* 搜索框样式 */
.search-input {
    padding: 0 35px 0 10px;
    border: none;
    border-radius: 4px;
    height: 28px;
    width: 208px;
}
.icon-search{
    font-size: 18px;
    color: #888;
}
.icon-submit:hover .icon-search{
    color: var(--main-color);
}
.icon-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    line-height: 30px;
    border: none;
    background: none;
    cursor: pointer; 
}

.layui-header .user-info .user-icon{
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.article-title {
    font-size: 1.5em;
    color: var(--main-color);
    margin-bottom: 5px; /* 减少标题与内容之间的间距 */
}

.article-item {
    transition: transform 0.2s;
    margin-bottom: 10px; /* 减少块之间的垂直间距 */
    padding: 10px; /* 可根据需要调整内边距 */
    border-radius: 6px;
}

.article-item:hover {
    transform: scale(1.005);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} 
.article-item .article-title:hover{
    color: #ff5722;
}
#password-form{
    margin-top: 21px;
}

.layui-card-body {
    line-height: 2.8em; /* 文章内容行高 */
    padding: 10px; /* 减少卡片正文的内边距 */
    background-color: var(--card-background);
}

.pagination {
    padding: 20px 0; /* 添加20px的内边距 */
    text-align: center; /* 居中显示 */
}

.query__label {
    color: var(--main-color);;
}
.load-all-msg-no-result{
    margin-top: 20%;
    color: var(--main-color);;
}

.layui-margin-top{
    margin-top: 20px;
}
.navbar .nav-icon {
    display: none; 
    cursor: pointer;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    z-index: 1000;
}
.layui-tips{
    font-size: 20px;
}

.nav__link__label{
        display: none;
    }


/* 隐藏菜单，在小屏幕上仅显示图标 */
@media (max-width: 993.98px) {
    .logo{
        display: block;
        font-size: 24px;
        margin-right: 20px;
    }
    .menu {
        display: none; /* 隐藏菜单 */
    }
    .search-input{
        width: 110px;
    }
    .icon-submit {
        right: 8px;
    }
    .article-title{
        font-size: 1.3em;
    }
    .article-abstract{
        font-size: 13px;
    }


    .navbar .nav-icon {
        display: inline-block;
        cursor: pointer;
        font-size: 25px;
        color: var(--card-background);
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: white;
        border: 1px solid #ddd;
        z-index: 1000;
    }

    .dropdown-menu a {
        display: block;
        padding: 0 18px;
        color: black;
        text-decoration: none;
    }

    .dropdown-menu a:hover {
        background-color: #f0f0f0;
        color:var(--main-color) !important;
    }

    .nav__links {
        display: flex;
    }

    .nav__links li a:hover{
        background-color: #FFF;
    }
    .nav__links li a{
        padding: 0 3px 0 18px!important;
    }
    .nav__link__notice{
        font-size: 12px !important;
    }
	.nav__link__full{
		display:none;
	}

    .beian,.admin{
        display: none;
    }
    .nav__link__label{
        display: block;
    }
    .lmtype{
        display: none;
    }
    .nav__link__order{
        display: none;
    }
    .nav__link{
        margin-right: 18px !important;
    }
    .about-header{
        font-size: 1.2em !important;
    }
    .about-image{
        display: none;
    }

}

.about-image{
    float: right;
    width: 380px;
    height: 200px;
    margin-top: 15px;
    cursor: pointer;
}

.mini-program-entry {
    display: block;
    position: fixed;
    bottom: 180px;
    right: 18px;
    z-index: 9999;
    height: 35px;
    line-height: 35px;
    width: 28px;
    background: var(--main-color);
    color: #fff;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
}

.mini-program-entry .layui-icon-cellphone {
    font-size: 20px;
}

.mini-program-entry:hover {
    color: #fff;
}

.mini-program-qrcode {
    display: none;
    position: absolute;
    bottom: 0;
    right: 40px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    white-space: nowrap;
}

.mini-program-qrcode img {
    width: 140px;
    height: 140px;
    display: block;
    border-radius: 4px;
}

.mini-program-qrcode span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.mini-program-entry:hover .mini-program-qrcode {
    display: block;
}

.go-to-top-btn {
    display: none;
    position: fixed;
    bottom: 140px;
    right: 18px;
    z-index: 9999;
    height: 35px;
    line-height: 35px;
    width: 28px;
    background: var(--main-color);
    color: #fff;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
}
.go-to-bottom-btn {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 18px;
    z-index: 9999;
    height: 35px;
    line-height: 35px;
    width: 28px;
    background: var(--main-color);
    color: #fff;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
}

.go-to-top-btn .layui-icon-top{
    font-size: 25px;
}
.go-to-top-btn:hover{
    color: #fff;
}

.go-to-bottom-btn:hover{
    color: #fff;
}

.footer {
    background-color: #f2f2f2; /* 底部背景 */
    color: #777; /* 字体颜色 */
    text-align: center; /* 文本居中 */
    padding: 10px 0; /* 上下内边距 */
    position: relative; /* 可以调整位置 */
    bottom: 0; /* 固定底部 */
    width: 100%; /* 保证宽度占满 */
    opacity: 0.5;
}
.beian{
    color:#777;
}

.about-container{
    margin: 15px auto 70px auto;
}
.about-header{
    font-weight: bold;
    font-size: 1.5em;
    color: var(--main-color);
}

/* 针对Webkit浏览器（Chrome, Safari） */
::-webkit-scrollbar {
    width: 5px; /* 滚动条的宽度 */
}

::-webkit-scrollbar-thumb {
    background-color: #B0B0B0; /* 滚动条的滑块颜色（浅灰色） */
    border-radius: 5px; /* 滚动条滑块圆角 */
}

::-webkit-scrollbar-track {
    background-color: #E0E0E0; /* 滚动条轨道的背景颜色（浅灰色） */
    border-radius: 5px; /* 滚动条轨道圆角 */
}

/* 针对Firefox */
* {
    scrollbar-width: thin; /* 滚动条样式为细 */
    scrollbar-color: #B0B0B0 #E0E0E0; /* 滚动条的滑块颜色和轨道颜色 */
}

/* 针对Edge和Internet Explorer */
::-ms-scrollbar {
    width: 5px; /* 滚动条的宽度 */
}

::-ms-scrollbar-thumb {
    background-color: #B0B0B0; /* 滚动条的滑块颜色（浅灰色） */
    border-radius: 5px; /* 滚动条滑块圆角 */
}

::-ms-scrollbar-track {
    background-color: #E0E0E0; /* 滚动条轨道的背景颜色（浅灰色） */
    border-radius: 5px; /* 滚动条轨道圆角 */
}

.layui-breadcrumb{
    height: 20px;
    display: inline-block;
    background: #eee;
    padding: 2px 8px;
    border-radius: 6px;
    margin: 15px 0px;
    line-height: 22px;
    overflow: hidden;
}
.layui-btn {
    background-color: var(--main-color);
}
.layui-breadcrumb a:hover {
    color: var(--main-color) !important;
}
.article-item .layui-card-header{
    padding:0 5px;
}
.layui-text-center{
    text-align: center;
}
.layui-table{
    margin: 7px 0;
}
    

@media screen and (max-width: 767.98px) {
    .layui-container {
        padding: 0 8px;
    }
}

.flashes .error {
    list-style: none; 
    padding: 0; 
    margin: 10px 0; /* 外边距 */
    color: red; /* 错误消息文字颜色 */
}

.flashes .success {
    list-style: none; 
    padding: 0; 
    margin: 10px 0; /* 外边距 */
    color: rgb(18, 9, 99); /* 错误消息文字颜色 */
}

.layui-btn-danger {
    background-color: #ff5722;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: var(--main-color);
}
.layui-table-tool,.layui-table-page { 
    padding: 10px 15px 10px 6px;
    background: var(--card-background);
}


.layui-layer-loading-icon {
    color: var(--main-color);
}

#searchInput{
    display: inline-block;
    position: absolute;
    width: 200px;
    height: 30px;
    line-height: 30px;
}
#searchBtn{
    margin-left: 200px;
}

.user-info {
    position: relative; /* 为下拉菜单提供定位 */
}

.user-dropdown {
    display: none;
    position: absolute;
    width: 80px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    right: 0;
    top: 59px;
    border-radius: 3px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.user-info:hover .user-dropdown {
    display: block; /* 鼠标悬停时显示下拉菜单 */
}


.macy-container{
    margin-top: 60px;
}
.load-all-msg{
    color: var(--main-color);
    cursor: pointer;
    margin-top: 10px;
}
#load-more-container{
    margin: 30px 0;
}

.friend-links{
    display: flex; 
    flex-wrap: wrap; /* 允许换行 */ 
}
.friend-links li{
    margin-right: 10px;
}

#openLeaveMessage{
    float: right;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    font-weight: lighter;

}
#captchaImg{
    cursor: pointer;
    margin-left: 10px;
    border: 1px solid #eee;
}

.animation-duration-10 {
    animation-duration: 0.6s;
}



