/* 公共布局样式 - v2.33 优化顶部栏 */

/* ========== Logo区域 - 古典国学风格 ========== */
.logo {
    height: 160px;
    background: url(../../images/header_pic.jpg) no-repeat top center;
    background-size: cover;
    position: relative;
}

/* 顶部中式瓦片装饰边框 */
.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: url(../../images/header_pic.jpg) no-repeat top center;
    background-size: cover;
    z-index: 3;
}

/* Logo内容区域 — 左对齐站名，与下方导航内容起点对齐 */
.logo .logo_in {
    height: 160px;
    padding-top: 35px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.logo .logo_in h1 {
    margin: 0;
    text-align: left;
    line-height: 1;
}

.logo .logo_in h1 img,
.logo .logo_in > img {
    display: none;
}

.logo .logo_in h1 a {
    display: inline-block;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-size: 58px;
    color: #4a2d0d;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 6px;
    text-shadow: 
        1px 1px 0px rgba(255, 255, 255, 0.5), 
        2px 2px 4px rgba(74, 45, 13, 0.1);
    transition: all 0.3s ease;
    line-height: 1.1;
}

.logo .logo_in h1 a:hover {
    color: #b36d41;
    text-shadow: 0 0 12px rgba(179, 109, 65, 0.25);
}

/* 响应式：大屏幕 */
@media screen and (min-width: 1920px) {
    .logo {
        background-size: 100% auto;
    }
}

/* ========== 导航栏（对齐正式环境 base1.css） ========== */
.nav {
    background: #603811;
    width: 100%;
    /* Must be visible so dropdown menus aren't clipped by the global `.w_100 { overflow:hidden; }` utility. */
    overflow: visible !important;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    margin-bottom: 0;
    position: relative;
    z-index: 1000;
    box-shadow: none;
}

.nav::after {
    display: none;
}

.nav .nav_in {
    height: 40px;
    display: block;
}

.nav .nav_in > li {
    float: left;
    display: block;
    height: 40px;
    line-height: 40px;
    width: 12.5%;
    position: relative;
    padding: 0;
    margin: 0;
}

.nav .nav_in > li > a {
    width: 100%;
    height: 40px;
    color: #ffffff;
    font-size: 17px;
    line-height: 40px;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    text-align: center;
    display: block;
    padding: 0;
    letter-spacing: 0;
    transition: none;
}

.nav .nav_in > li > a:hover,
.nav .nav_in > li.current > a {
    color: #ffffff;
    background: #b36d41;
}

/* !important so leftover jQuery inline display cannot keep multiple menus open */
.nav .nav_in > li > ul {
    width: 100%;
    background: #ffffff;
    opacity: 0.7;
    filter: alpha(opacity=70);
    display: none !important;
    overflow: hidden;
    z-index: 100;
    position: absolute;
    left: 0;
    top: 40px;
    transform: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav .nav_in > li:hover > ul {
    display: block !important;
}

.nav .nav_in > li > ul > li {
    background-image: none !important;
    line-height: 40px;
    height: 40px;
    float: none !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: none;
    transition: none;
    position: static;
}

.nav .nav_in > li > ul > li:last-child {
    border-bottom: none;
}

.nav .nav_in > li > ul a {
    display: block !important;
    width: 100% !important;
    height: 40px;
    line-height: 40px;
    color: #875a3d;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-size: 17px;
    font-weight: normal;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    letter-spacing: 0;
    transition: none;
}

.nav .nav_in > li > ul a:hover {
    background: #b36d41;
    color: #ffffff !important;
    text-shadow: none;
}

/* Banner区域 - 优化与导航栏的距离 */
.banner {
    margin-top: 0;
}

/* 页脚版权区 — 瓦当贴顶、底色与 footer_bg 纸面一致，收紧底边空白 */
.copy {
    background: url(../../images/footer_bg.jpg) no-repeat center top;
    background-size: cover;
    background-color: #efefef;
    text-align: center;
    color: #875a3d;
    padding: 64px 16px 18px;
    margin: 0;
    position: relative;
    box-sizing: border-box;
}

/* 装饰已由 footer_bg 瓦当承担，不再叠加假分割线 */
.copy::before {
    display: none;
}

.copy .copy_in {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}

.copy .txt_01 {
    margin: 0 0 12px;
    color: #875a3d;
    font-size: 14px;
    font-weight: 500;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    letter-spacing: 0.08em;
    line-height: 1.7;
}

.copy .txt_01 a {
    display: inline;
    margin: 0 0 0 12px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #a07850;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.copy .txt_01 a:first-of-type {
    margin-left: 8px;
}

.copy .txt_01 a:hover {
    color: #603811;
    border: none;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 备案信息：单行横排，窄屏自动换行 */
.copy .txt_02.beian-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 0;
    margin: 0;
    color: #a07850;
    font-size: 13px;
    font-weight: 400;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.copy .txt_02.beian-meta > * {
    display: inline-flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

.copy .txt_02 a.beian-icp,
.copy .txt_02 a.beian-gongan {
    color: inherit;
    text-decoration: none;
}

.copy .txt_02 a.beian-icp:hover,
.copy .txt_02 a.beian-gongan:hover {
    color: #603811;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.copy .txt_02 .beian-ga {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 5px 0 0;
    vertical-align: middle;
    border: 0;
    flex-shrink: 0;
}

.copy .txt_02 .beian-copy {
    margin: 0;
    color: #a07850;
}

.copy .txt_02.beian-meta > *:not(:last-child)::after {
    content: "·";
    margin: 0 14px;
    color: #c4a882;
    font-weight: 700;
    text-decoration: none;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .copy {
        padding: 52px 14px 16px;
    }

    .copy .txt_01 {
        font-size: 13px;
        letter-spacing: 0.04em;
        margin-bottom: 14px;
    }

    .copy .txt_01 a {
        font-size: 13px;
        margin-left: 8px;
    }

    .copy .txt_02.beian-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 12px;
        line-height: 1.5;
    }

    .copy .txt_02.beian-meta > *:not(:last-child)::after {
        display: none;
    }

    .copy .txt_02.beian-meta > * {
        white-space: normal;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .copy .txt_01 a {
        transition: none;
    }
}

/* 右侧悬浮菜单 */
.slide {
    width: 50px;
    height: 250px;
    position: fixed;
    top: 50%;
    margin-top: -126px;
    background: #875a3d;
    right: 0;
    border-radius: 5px 0 0 5px;
    z-index: 999;
}

.slide ul {
    list-style: none;
}

.slide .icon li {
    width: 49px;
    height: 50px;
    background: url(../../images/icon.png) no-repeat;
}

.slide .icon .up {
    background-position: -330px -120px;
}

.slide .icon li.qq {
    background-position: -385px -73px;
}

.slide .icon li.tel {
    background-position: -385px -160px;
}

.slide .icon li.wx {
    background-position: -385px -120px;
}

.slide .icon li.down {
    background-position: -330px -160px;
}

.slide .info {
    top: 50%;
    height: 165px;
    position: absolute;
    right: 100%;
    background: #875a3d;
    width: 0px;
    overflow: hidden;
    margin-top: -73.5px;
    transition: 0.5s;
    border-radius: 4px 0 0 4px;
}

.slide .info.hover {
    width: 160px;
}

.slide .info li {
    width: 160px;
    height: 165px;
    color: #CCCCCC;
    text-align: center;
}

.slide .info li p {
    font-size: 1.1em;
    padding: 15px;
    text-align: left;
    line-height: 2em;
}

.slide .info li.qq {
    margin: 12px;
}

.slide .info li.qq p {
    width: 141px;
    height: 111px;
    background: url(../../images/slide_bg_01.jpg) no-repeat;
    color: #854608;
    font-size: 14px;
    padding: 30px 0 0 0;
    text-align: center;
}

.slide .info li.qq p a {
    display: block;
    margin-top: 12px;
    width: 100px;
    height: 27px;
    line-height: 27px;
    color: #b36d41;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-bottom: 3px solid #603811;
    background: #7f450c;
    color: #fff;
    margin: 10px auto 0;
}

.slide .info li.qq p a:hover {
    color: #FFFFFF;
    border: none;
    background: #875a3d;
    height: 30px;
    line-height: 30px;
}

.slide .info li.tel {
    margin: 12px;
}

.slide .info li.tel p {
    width: 141px;
    height: 121px;
    background: url(../../images/slide_bg_01.jpg) no-repeat;
    color: #854608;
    font-size: 14px;
    padding: 20px 0 0 0;
    text-align: center;
}

.slide .info li.tel p a {
    display: block;
    margin-top: 12px;
    width: 110px;
    height: 27px;
    line-height: 27px;
    color: #b36d41;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-bottom: 3px solid #603811;
    background: #7f450c;
    color: #fff;
    margin: 5px auto 0;
}

.slide .info li.tel p a:hover {
    color: #FFFFFF;
    border: none;
    background: #875a3d;
    height: 30px;
    line-height: 30px;
}

.slide .info li div.img {
    height: 100%;
    margin: 12px;
}

.slide .info li div.img img {
    width: 141px;
    height: 141px;
}

/* 控制菜单的按钮 */
.index_cy {
    width: 30px;
    height: 30px;
    background: url(../../images/index_cy.png);
    position: fixed;
    right: 0;
    top: 50%;
    margin-top: 140px;
    background-position: 62px 0;
    cursor: pointer;
    z-index: 1000;
}

.index_cy2 {
    width: 30px;
    height: 30px;
    background: url(../../images/index_cy.png);
    position: fixed;
    right: 0;
    top: 50%;
    margin-top: 140px;
    background-position: 30px 0;
    cursor: pointer;
    z-index: 1000;
}

/* 响应式：当屏幕小于1050px时隐藏侧边菜单 */
@media screen and (max-width: 1050px) {
    .slide {
        display: none;
    }
    #btn {
        display: none;
    }
}

/* Hide Cubox browser extension injected container (prevents extra blank space at page bottom). */
#cubox-react-root {
    display: none !important;
}

/* 分页当前页数字可读性：深底必须白字（覆盖各模块误设的深色字） */
.k-page a.active,
.k-page a:hover,
.pagination a.active,
.pagination a:hover,
body.book-list-page .k-page a.active,
body.book-list-page .k-page a:hover,
body.video-page .k-page a.active,
body.video-page .k-page a:hover,
#rwsz .k-page a.active,
#rwsz .k-page a:hover {
    color: #ffffff !important;
    background: #5c4a38 !important;
    border-color: #5c4a38 !important;
}
