/* 保留基本的重置样式 */
body{
    margin: 0;
    font-family: "微软雅黑", sans-serif;
    line-height: 1.6;
    color: #333;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    border: none;
}

/* 第一行头部样式 */
.first-header {
    position: relative;
    background-color: #c89c9d;
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
}

.first-header li {
    display: inline-block;
}

.fir-left {
    float: left;
    position: absolute;
    left: 30px;
}

.fir-left li {
    margin-right: 20px;
}

.fir-right {
    float: right;
    position: absolute;
    right: 75px;
}

.fir-right li {
    margin-left: 50px;
}

.first-header a {
    color: white;
}

.first-header-icon {
    padding-right: 10px;
    vertical-align: middle;
}

/* 第二行头部样式 */
.wrap {
    height: 60px;
    background-color: #fff;
}

.wrap1 {
    height: 60%;
    width: 100%;
    margin: 0 auto;
}

.wrap2 {
    position: relative;
}

.second-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background-color: #fff;
    padding: 0;
}

.sec-mainNav {
    display: inline-block;
}

/* 左侧 logo 和导航区域 */
.logo {
    display: inline-block;
    width: 280px;
    height: 60px;
    line-height: 60px;
    position: relative;
}

.logo img {
    width: 150px;
}

/* 主导航样式 */
.main-nav {
    display: flex;
    list-style: none;
}

.main-nav>li {
    width: 154px;
    margin-right: 30px;
    position: relative;
    height: 60px;
}

.main-nav a {
    color: black;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 52px;
    padding-top: 18px;
    transition: all 0.2s;
}

.nav-en {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
    font-family: Arial;
}

/* 子导航样式 */
.sub-nav {
    position: absolute;
    display: block;
    top: 60px;
    left: 0;
    width: 154px;
    min-width: 100px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
}

.sub-nav ul {
    background: rgba(255, 255, 255, 0.85);
    list-style: none;
    padding: 0;
    width: 100%;
}

.sub-nav li {
    width: 100%;
    height: 60px;
    line-height: 60px;
    padding: 0;
}

.sub-nav li:hover {
    background-color: #94060a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sub-nav a {
    font-size: 16px;
    display: block;
    text-align: center;
    padding-top: 0;
}

.main-nav li:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 2000px;
}

.main-nav li:hover .sub-nav li:nth-child(1) {
    transition-delay: 0.1s;
}

.main-nav li:hover .sub-nav li:nth-child(2) {
    transition-delay: 0.2s;
}

.main-nav li:hover .sub-nav li:nth-child(3) {
    transition-delay: 0.3s;
}

.main-nav li:hover .sub-nav li {
    transform: translateY(0);
    opacity: 1;
}

/* 右侧样式 */
.nav-right {
    display: flex;
    align-items: center;
    padding-right: 25px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-input {
    height: 30px;
    padding-left: 7px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.english-link {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    font-size: 14px;
}

/* tsp-wrap 样式 */
.tsp-wrap {
    height: 120px;
    background-color: #94060a;
}

.tsp-box {
    width: 1450px;
    margin: 0 auto;
}

.tsp-logo {
    margin-top: 23px;
    float: left;
    text-align: left;
}

.top_font {
    float: left;
    color: #fff;
    font-size: 50px;
    font-family: SimSun, '宋体', serif;
    padding-top: 24px;
    width: 550px;
    font-weight: bold;
}

.top-image {
    float: right;
    padding-top: 0px;
    padding-right: 1px;
    width: 220px;
    height: 120px;
}








/* 文章列表样式 */
.post {
    margin: 5px 0;
    padding: 0 0;
}

.post div {
    border-bottom: 0px dashed #aaa;
    min-height: 28px;
    padding: 15px;
    margin: 0;
    overflow: hidden;
    background: #f8f8f8;
}

.post span {
    color: #CC6600;
    font-size: 14px;
    text-align: right;
    padding-top: 5px;
}

.post a {
    color: #000000;
    font-size: 16px;
    font-family: '微软雅黑';
}

/* 侧边栏样式 */
.sidebar {
    role: complementary;
}

.widget {
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #8b0000;
    padding-bottom: 6px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.widget ul {
    padding: 0;
}

.widget li {
    list-style: circle;
    margin-bottom: 10px;
}

.widget li a {
    text-decoration: none;
    color: #333;
}

/* 页脚样式 */
.footer {
    background-color: #a53736;
    color: white;
    height: 230px;
}

.footer-container {
    display: flex;
    justify-content: center;
    height: 70%;
}

.footer-left {
    height: 110%;
    width: 25%;
    border-right: 2px solid black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-left img {
    max-width: 245px;
    margin-bottom: 10px;
}

.footer-middle {
    font-size: 13px;
    width: 20%;
    height: 100%;
    padding-left: 30px;
    padding-top: 20px;
    line-height: 2.3;
    overflow: hidden;
}

.footer-right {
    position: relative;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-end;
    padding-bottom: 36px;
    width: 390px;
    font-size: 13px;
}

.footer-right img {
    position: absolute;
    width: 100px;
    right: 60px;
    bottom: 30px;
}

.footer-right p {
    position: absolute;
    right: 50%;
    bottom: 70px;
}

.footer-right .footer-content {
    display: flex;
    align-items: center;
}

.copyright {
    background-color: #91040a;
    height: 25%;
    text-align: center;
    line-height: 60px;
    position: relative;
    bottom: -7%;
}




.main-nav {
    display: flex;
    list-style: none;

}

.main-nav a {
    color: black;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 52px;
    padding-top: 18px;
    transition: all 0.2s;
}

.nav-en {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
    font-family: Arial;
}

/* 子导航样式保持原样 */
.sub-nav {
    position: absolute;
    display: block;
    top: 60px;
    left: 0;
    width: 154px;
    min-width: 100px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
}

.sub-nav ul {
    background: rgba(255, 255, 255, 0.85);
    list-style: none;
    padding: 0;
    width: 100%;
}

.sub-nav li {
    width: 100%;
    height: 60px;
    /* 与主菜单同高 */
    line-height: 60px;
    /* 垂直居中 */
    padding: 0;
}

.sub-nav li:hover {
    background-color: #94060a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sub-nav a {
    font-size: 16px;
    /* 与主菜单同字号 */
    display: block;
    text-align: center;
    padding-top: 0;
}

.main-nav li:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 2000px;
}

.main-nav li:hover .sub-nav li:nth-child(1) {
    transition-delay: 0.1s;
}

.main-nav li:hover .sub-nav li:nth-child(2) {
    transition-delay: 0.2s;
}

.main-nav li:hover .sub-nav li:nth-child(3) {
    transition-delay: 0.3s;
}

.main-nav li:hover .sub-nav li {
    transform: translateY(0);
    opacity: 1;
}

/* 右侧样式保持原样 */
.nav-right {
    display: flex;
    align-items: center;
    padding-right: 25px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-input {
    height: 30px;
    padding-left: 7px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.english-link {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    font-size: 14px;
}




.level2 {
    position: relative;
}

.third-sub-nav {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 140px;
    background-color: #f8f8f8;
    border-left: 1px solid #94060a;
    z-index: 9999;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.level2:hover>.third-sub-nav {
    display: block;
}

.third-sub-nav li {
    position: relative;
}

.fourth-sub-nav {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 120px;
    background-color: #fefefe;
    border-left: 1px solid #e4393c;
    z-index: 10000;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.third-sub-nav li:hover>.fourth-sub-nav {
    display: block;
}

.sub-nav {
    overflow: visible !important;
}

.main-nav {
    overflow: visible !important;
}

.site-content .page-wrapper {
    background: rgb(247, 247, 247);
}

.home .site-content .page-wrapper {
    background: rgb(255, 255, 255);
}

.site-content .page-wrapper .container {
    background: #fff;
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
}

.page-wrapper {}

.page-wrapper article {
    padding-bottom: 43px;
    margin-bottom: 30px;
    position: relative;
}

.page-wrapper article:hover footer.entry-footer {
    -webkit-transition: all 200ms ease-out;
    -moz-transition: all 200ms ease-out;
    -o-transition: all 200ms ease-out;
    transition: all 200ms ease-out;
}

.page-wrapper .posts-navigation a {
    background: transparent;
    font-family: 'Open Sans', sans-serif;
    padding: 12px 24px;
    border-radius: 30px;
    display: table-cell;
    float: left;
    -webkit-transition: all 200ms ease-out;
    -moz-transition: all 200ms ease-out;
    -o-transition: all 200ms ease-out;
    transition: all 200ms ease-out;
}

.page-wrapper .posts-navigation a:hover {
    color: #fff;
}

.page-wrapper .posts-navigation .nav-next {
    float: right;
}

@media (max-width: 750px) {
    .navbar .container {
        background: none !important;
    }
}

@media (max-width: 959px) {
    .elementor-container {
        max-width: none !important;
        width: 100% !important;
    }

    .container {
        width: 100% !important;
    }

    .custom-logo {
        max-width: 360px;
        width: 100% !important;
    }
}

@media (min-width: 960px) {
    .elementor-container {
        max-width: none !important;
        width: 100% !important;
    }

    .container {
        width: 100% !important;
    }

    .custom-logo {
        max-width: 400px;
    }
}

@media (min-width: 1200px) {
    .elementor-container {
        max-width: 1000px !important;
    }

    .container {
        width: 1000px !important;
    }

    .custom-logo {
        max-width: 450px;
    }
}

@media (max-width: 1200px) {
    .side-pannel {
        display: none !important;
    }
}

@media (min-width: 1300px) {
    .elementor-container {
        max-width: 1100px !important;
    }

    .container {
        width: 1100px !important;
    }

    .custom-logo {
        max-width: 500px;
    }
}

@media (min-width: 1440px) {
    .elementor-container {
        max-width: 1200px !important;
    }

    .container {
        width: 1200px !important;
    }

    .custom-logo {
        max-width: 544px;
    }
}

@media (min-width: 1800px) {
    .elementor-container {
        max-width: 1400px !important;
    }

    .container {
        width: 1400px !important;
    }
}

.home .container>div {
    padding-bottom: 0 !important;
    margin-top: 0px;
}

.home .custom-html-widget .container {
    padding: 0 !important;
}

.navbar .container {
    background: url(images/banner-bg.png) bottom right no-repeat;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.padding-top-30 {
    padding-top: 30px;
}

.padding-bottom-60 {
    padding-bottom: 60px;
}

.page-header {
    background: #e7e7e7;
    height: 55px;
    overflow: hidden;
}

.archive .page-header {
    margin-bottom: 20px !important;
}

.breadcrumbs {
    font-size: 0.8em;
    color: #666;
    margin: 0px 0 0px 0px;
    z-index: 999;
    text-align: left;
    padding-left: 0px;
    font-size: 14px;
    line-height: 55px;
    padding-left: 10px;
}

.breadcrumbs a {
    color: #333;
}
/* 页面头部样式 */
.page-header {
    border-bottom: 1px solid #e9ecef; /* 底部分隔线 */
}

/* 面包屑容器样式 */
.breadcrumbs {
    font-size: 15px;
    color: #6c757d; /* 提示文本颜色 */
}

/* 面包屑中的链接（未悬停状态） */
.breadcrumbs a {
    color: #868e96; /* 灰色链接 */
    text-decoration: none;
    transition: all 0.2s ease; /* 平滑过渡效果 */
}

/* 面包屑中的链接（悬停状态） */
.breadcrumbs a:hover {
    color: #007bff; /* 链接主题色，可替换为你的品牌色 */
    text-decoration: underline;
}

/* 分隔符样式 */
.breadcrumbs span {
    margin: 0 6px;
    color: #adb5bd; /* 分隔符颜色 */
}

/* 当前栏目样式 */
.breadcrumbs .current {
    color: #495057; /* 当前栏目文字颜色 */
    font-weight: 500;
}


.catlists {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.catlists td {
    border: none !important;
}

.catlists a {
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif !important;
}

.catlists .post {
    margin-top: 10px !important;
}

.catlists .post>div {
    height: auto !important;
    min-height: 28px;
}

.clear {
    clear: both;
}



.paginations a,
span.page-numbers.current {
    border: solid 1px #efe9e9;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    line-height: 20px;
    margin: 0 1px 0;
    padding: 9px 16px;
    transition: all 0.3s ease 0s;
    vertical-align: baseline;
    white-space: nowrap;
    border-radius: 30px;
}


.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

span.page-numbers.current {
    border: solid 1px #efe9e9;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    line-height: 20px;
    margin: 0 1px 0;
    padding: 9px 16px;
    transition: all 0.3s ease 0s;
    vertical-align: baseline;
    white-space: nowrap;
    border-radius: 30px;
}

span.page-numbers.current {
    color: #ffffff;
    border-radius: 30px;
}

/* 分页容器样式，之前已有，可不重复添加 */
.paginations {
    margin: 0px;
    text-align: center;
}

/* 分页链接和当前页码样式 */
.paginations a,
span.page-numbers.current {
    border: solid 1px #efe9e9;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    line-height: 20px;
    margin: 0 1px 0;
    padding: 9px 16px;
    transition: all 0.3s ease 0s;
    vertical-align: baseline;
    white-space: nowrap;
    border-radius: 30px;
}

/* 普通页码的字体颜色 */
.paginations a {
    color: #8c0000;
    /* 红色字体 */
}

/* 当前页码的样式 */
span.page-numbers.current {
    color: #ffffff;
    /* 白色字体 */
    background-color: #8c0000;
    /* 红色背景 */
}

/* 鼠标悬停在普通页码上的样式 */
.paginations a:hover {
    color: #ffffff;
    /* 白色字体 */
    background-color: #8c0000;
    /* 红色背景 */
}

/* 分页容器 */
.paginations {
    margin: 30px 0;
    text-align: center;
}

/* 基本分页链接样式 */
.paginations a,
.paginations span.page-numbers {
    border: solid 1px #efe9e9;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    line-height: 20px;
    margin: 0 1px;
    padding: 9px 16px;
    transition: all 0.3s ease;
    vertical-align: baseline;
    white-space: nowrap;
    border-radius: 30px;
}

.level2 {
    position: relative;
}

.third-sub-nav {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 140px;
    background-color: #f8f8f8;
    border-left: 1px solid #94060a;
    z-index: 9999;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.level2:hover>.third-sub-nav {
    display: block;
}
.nav-left {
    display: flex;
    align-items: center;
}
.third-sub-nav li {
    position: relative;
}

.fourth-sub-nav {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 120px;
    background-color: #fefefe;
    border-left: 1px solid #e4393c;
    z-index: 10000;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.third-sub-nav li:hover>.fourth-sub-nav {
    display: block;
}

.sub-nav {
    overflow: visible !important;
}

.main-nav {
    overflow: visible !important;
}

/* 普通页码样式 */
.paginations a {
    color: #8c0000;
    background-color: transparent;
}

/* 当前页码样式 */
.paginations span.page-numbers.current {
    color: #ffffff;
    background-color: #8c0000;
    border-color: #8c0000;
}

/* 鼠标悬停效果 */
.paginations a:hover {
    color: #ffffff;
    background-color: #8c0000;
    border-color: #8c0000;
}

/* 省略号样式 */
.paginations span.ellipsis {
    border: none;
    padding: 9px 5px;
    color: #333;
    cursor: default;
}

/* 页码容器 - 控制布局 */
.page-number-container {
    display: inline-flex;
    align-items: center;
    margin: 0 5px;
}

/* 默认隐藏不需要显示的页码 */
.page-number-container a:not(:nth-child(-n+3)):not(:nth-last-child(-n+3)) {
    display: none;
}

/* 默认隐藏不需要显示的省略号 */
.page-number-container span.ellipsis[data-before="true"],
.page-number-container span.ellipsis[data-after="true"] {
    display: none;
}

/* 当当前页大于等于4时显示前置省略号 */
.page-number-container a.current:nth-child(n+4)~span.ellipsis[data-before="true"] {
    display: inline-block;
}

/* 当当前页小于总页数-3时显示后置省略号 */
.page-number-container a.current:nth-last-child(n+4)~span.ellipsis[data-after="true"] {
    display: inline-block;
}

/* 动态显示当前页附近的页码 */
.page-number-container a.current,
.page-number-container a.current~a.page-numbers,
.page-number-container a.page-numbers:nth-last-child(-n+3) {
    display: inline-block;
}

/* 确保首页和末页始终显示 */
.page-number-container a:first-child,
.page-number-container a:last-child {
    display: inline-block !important;
}
