/*
古典色
绛红#781200   鱼赤尾#C28861    赭石#9B5D3C
竹青#479F87   枝黄#DBC8A5       嫩灰#74787A
鸭柳青#AFC6C2 紫瓯#794824       草白#BFC2AD
泥金#D6AF6F   木红#964E3F       潭水绿#645822
*/

@font-face {
    font-family: "jinghua";
    /* 优先 OSS（cdn.booerjs.cn，bucket=booer 下 fonts/ 同名文件），失败时浏览器自动回退项目内字体兜底 */
    src: url("//cdn.booerjs.cn/woff/jinghua_v3.woff") format("woff"),
         url("fonts/jinghua_v3.woff") format("woff");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}
html,body{margin:0; padding:0;}
body *{font-family: 'jinghua' !important;}
.app-container{height: 100%;}
.container-header *{font-size: 28px !important;}
.header-logo{position: absolute;top: 0;width: 130px;left: 0;height: 60px; display: flex;z-index: 9;}
.container-main{position: relative; padding:0px;}
.container-main .container-main-comp{min-height: 500px;margin: 15px 10px;}
.container-main-comp>.el-main>.el-tabs{height: 100%;overflow: hidden;}
.sys-comp>.el-main>.el-table{max-height: 520px; overflow-y: auto;}
.header-logo img{max-width: 100%; max-height: 100%;}
.app-container .menu-vertical {display: block;z-index: 99;opacity: 0.9;padding: 20px;border: none;}
.app-container .menu-vertical li{text-align: center;}
.el-loading-spinner .circular {
    background-size: cover;
    background: url('/static/imgs/buer_simple.png') no-repeat center;
    background-size: 50%;
}
#full-width-btn{width: 100%;}
.el-drawer{width:100% !important;}
.el-drawer .el-drawer__header{margin-bottom: 0;}
#header-menu,.menu-horizontal{display: none;}
.view-image{height: auto;margin: 10px auto;position: relative;min-height: 260px;display: flex;}
.view-image-desc{position: absolute;top:0;z-index: 9;padding: 5px;}
.el-image{width: 100%;}
.el-image .el-image__error{min-height: 160px;}
.booer_video{width:100%;}
#header-menu img.header-menu-icon{width: 20px;height: 20px;align-self: center;cursor: pointer;padding: 5px;}

/**********comp-tool**********/
#comp-tool-tip{position: fixed;top: 0;left: 180px;height: 18px;width: calc(100% - 200px);display: flex;align-items: center;}
#comp-tool-tip .tool-tip-content{width: 100%;height: 100%;display: flex;overflow: hidden;white-space: nowrap;letter-spacing: 2px;}
#comp-tool-tip .tool-tip-content>small{width: 500%;animation: scroll 20s linear infinite;color: orange;}
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-100%);
}
}
#comp-tool{position: fixed; right: 20px; bottom: 70px;}
#comp-tool>div.comp-tool-bar{
background: #781200;
opacity: 0.7;
margin: 5px;
width: 30px;
height: 30px;
font-size: 1.2em;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
border-radius: 5px;
}
#comp-tool>div>.el-icon{color:#FFF;}
.sys-comp>.el-header, .sys-comp>.el-main,.sys-comp>.el-footer{margin:0px;padding:0px;}
.sys-comp>.el-header{height: 40px;}
.sys-comp>.el-main{min-height: 460px;}
.sys-el-tabs>.el-tabs__header{margin-bottom: 5px;}
.main-content-menu .el-icon.el-sub-menu__icon-arrow{display: none;}

/***guide***/
#app-main-guide .grid-content{display: flex;align-items: center;overflow: hidden;border-radius: 4px;background: rgba(255, 253, 248, 0.82);color: #5f584e;border: 1px solid #e8e1d2;margin: 10px;cursor: pointer;}
#app-main-guide .grid-content:hover{background-image: url(/static/imgs/select.png);background-repeat: no-repeat;background-position: right bottom;background-size: 60px;border: 1px solid #b7a887;}
#app-main-guide .grid-content-guide-img{width: 68px;height: 100%;display: flex;justify-content: center;align-items: center;}
#app-main-guide .grid-content-guide-img .thumb-img{max-width: 80%;height: 50%;padding:0 10px;}
#app-main-guide .grid-content-guide-name{width: calc(100% - 68px);text-align: left;}
/***time***/
.el-timeline-item .el-timeline-item__content .el-card{margin:10px;}
.el-timeline-item__timestamp.is-top {color: #9a6a5d;font-weight: normal;font-size: 22px;}
.comp_time_title {font-size: 20px;font-weight: normal;color: #5f584e;}
.booer_title_click{color:#9a6a5d;}
.booer_title_click:hover{cursor: pointer;text-decoration-line: underline;}

/***view***/
#app-main-view{display: flex;}
.pdf-aside{position: relative;width: 0;transition: width 1s ease-in-out;border-right: 1px solid #e4ded0;}
.pdf-aside.pdf-aside-show{width: 300px;height: 100%;overflow: hidden;position: absolute;top: 0;left: 0;z-index: 999;background: #faf8f2;}
.pdf-aside .aside-title{width: 100%;height: 60px;line-height: 60px;color:#5f584e;font-weight: normal;font-size: 1.6em;}
.pdf-aside .aside-catalog{width:100%;height: calc(100% - 60px);overflow: auto;}
#app-main-view .el-icon-show{position: fixed;left:0;top:10px;cursor: pointer;font-size: 2.2em;z-index:999;color: #9a6a5d;background: #faf8f2;padding: 0;}
#app-main-view .el-icon-show.el-icon-fold{left: 301px;}
.catalog-level-1{font-weight: bold;font-size: 14px;}
.catalog-level-2{font-weight: bold;font-size: 12px;}
.catalog-level-3,.catalog-page{font-size: 12px;}
.pdf-catalog{display: flex;padding: 0px 20px 5px 15px;justify-content: space-between;cursor: pointer;}
.pdf-catalog:hover,.pdf-catalog.current{color: #9a6a5d;}
.pdf-page{color:#7b8f7c;position: fixed;top: 15px;right: 5px;font-size: 1.2em;margin: 5px;}
/* z-index 提到目录抽屉(.pdf-aside-show:999)之上：移动端打开目录时翻页按钮不再被盖住看不到；
   容器 pointer-events:none + 按钮 auto，避免这条全宽透明容器拦截底部其它区域的点击 */
.pdf-toolbar{position: fixed;bottom: 60px;width: 100%;display: flex;justify-content: center;z-index: 1000;pointer-events: none;}
.pdf-toolbar .el-button{display: flex;margin: 10px 30px;opacity: 0.8;pointer-events: auto;}
.pdf-content{width: 100%;height: 100%;}

#app-main-view .pdf-zoom-bar{
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid #e4ded0;
    border-radius: 4px;
}

#app-main-view .view-image{
    width: 100%;
    max-width: none;
    height: calc(100vh - 10px);
    margin: 0 auto;
    overflow: auto;
}

#app-main-view .view-image .el-image{
    width: 100%;
    height: 100%;
}

#app-main-view .view-image .el-image img{
    object-fit: contain;
    padding-top: 50px;
}

@media screen and (min-width:900px) {
    .menu-horizontal{display: flex;}
    #header-menu{display: none;}
    .view-image{width: 60%;}
}
@media screen and (max-width:900px) {
    #header-menu{display: flex;justify-content: space-between;;height: 100%;align-content: center;background: rgba(249, 247, 241, 0.94);border-bottom: 1px solid #e4ded0;padding: 0 10px;}
    .menu-horizontal {
        display: none;
    }
    #header-menu *{color:#4a463f;}
    .view-image{width: 98%;}
}

:root {
    --el-color-primary: #9a6a5d;
    --el-color-success: #7b8f7c;
    --el-color-warning: #b7a887;
    --el-color-danger: #a56e62;
    --el-color-error: #a56e62;
    --buer-cinnabar: #9a6a5d;
    --buer-gold: #b7a887;
    --buer-bamboo: #7b8f7c;
    --buer-ink: #3b3a36;
    --buer-ivory: #f6f3ec;
}

html, body {
    background: var(--buer-ivory);
}

#app-main {
    background: var(--buer-ivory);
}
/* 背景图用伪元素铺底（background-image 不支持透明度，
   伪元素方案只降图片透明度、不影响上层内容），#app-main 在 main.jsp 已是 position:relative */
#app-main::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("//cdn.booerjs.cn/webp/ggbwy_hjfcsjtj.webp?x-oss-process=image/quality,q_85/format,webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}
#app-main > * {
    position: relative;
    z-index: 1;
}
/* loading 遮罩与 #app-main 背景图保持一致：
   上层叠 70% 象牙白渐变压淡图片（效果等同图片透明度 0.3），图片加载失败时回退象牙白底色 */
/*.el-loading-mask {
    background-color: var(--buer-ivory);
    background-image: linear-gradient(rgba(255, 253, 248, 0.7), rgba(255, 253, 248, 0.7)),
                      url("//cdn.booerjs.cn/webp/ggbwy_hjfcsjtj.webp?x-oss-process=image/quality,q_85/format,webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}*/

.container-header {
    position: relative;
    background: rgba(249, 247, 241, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e4ded0;
    box-shadow: none;
}

.main-content-menu .el-menu.menu-horizontal,
.app-container .menu-vertical {
    background: transparent !important;
    border-bottom: none !important;
}

.app-container .menu-vertical {
    --el-menu-bg-color: rgba(249, 247, 241, 0.97) !important;
    --el-menu-text-color: #4a463f !important;
    --el-menu-hover-bg-color: transparent !important;
    --el-menu-active-color: #9a6a5d !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    background: rgba(249, 247, 241, 0.97) !important;
    background-color: rgba(249, 247, 241, 0.97) !important;
    border: 1px solid #e4ded0 !important;
}

.main-content-menu .el-menu.menu-horizontal .el-sub-menu__title {
    background: transparent !important;
}

.submenu-title-link {
    cursor: pointer;
}

.main-content-menu .el-menu.menu-horizontal .el-menu-item,
.main-content-menu .el-menu.menu-horizontal .el-sub-menu__title,
.app-container .menu-vertical .el-menu-item,
.app-container .menu-vertical .el-sub-menu__title {
    color: #4a463f !important;
}

.main-content-menu .el-menu.menu-horizontal .el-menu-item:hover,
.main-content-menu .el-menu.menu-horizontal .el-menu-item.is-active,
.main-content-menu .el-menu.menu-horizontal .el-sub-menu__title:hover,
.app-container .menu-vertical .el-menu-item:hover,
.app-container .menu-vertical .el-sub-menu__title:hover,
.app-container .menu-vertical .el-menu-item.is-active {
    color: var(--buer-cinnabar) !important;
    background: transparent !important;
}

.main-content-menu .el-menu--popup,
.el-menu--popup {
    --el-menu-bg-color: #fffdf8 !important;
    --el-menu-text-color: #4a463f !important;
    --el-menu-hover-bg-color: #f3eee3 !important;
    --el-menu-active-color: #9a6a5d !important;
    background: rgba(255, 253, 248, 0.97) !important;
    background-color: #fffdf8 !important;
    color: #4a463f !important;
    border: 1px solid #e4ded0;
    box-shadow: 0 8px 24px rgba(60, 55, 48, 0.08) !important;
}

.el-menu--popup .el-menu-item {
    color: #4a463f !important;
    background-color: transparent !important;
}

.el-menu--popup .el-menu-item:hover {
    color: var(--buer-cinnabar) !important;
    background-color: #f3eee3 !important;
}

.el-menu--popup .el-menu-item.is-active {
    color: var(--buer-cinnabar) !important;
    background-color: transparent !important;
}

.sys-logout-btn.el-button {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6f675c !important;
    font-size: 12px;
    font-weight: 400;
    height: 24px;
    min-height: 24px;
    min-width: 0;
    padding: 0 6px;
    line-height: 1;
    border: 1px solid #e4ded0;
    border-radius: 4px;
    background: rgba(255, 253, 248, 0.8);
}

.sys-logout-btn .el-icon {
    margin-right: 2px;
    font-size: 13px;
}

.comp-footer-wrap {
    position: relative;
    z-index: 1;
    background: rgba(249, 247, 241, 0.86);
    border-top: 1px solid #e4ded0 !important;
}

.comp-footer-wrap a {
    color: var(--buer-cinnabar);
    text-decoration: none;
}

.comp-footer-wrap a:hover {
    color: var(--buer-gold);
}

.doc-editor-wrap {
    width: 100%;
    background: transparent;
    border: 1px solid #e4ded0;
    border-radius: 4px;
}

.doc-editor-wrap .ql-toolbar {
    border-color: #e4ded0;
    border-radius: 4px 4px 0 0;
}

.doc-editor-wrap .ql-container {
    min-height: 420px;
    border: none;
    font-family: "jinghua", "STKaiti", "KaiTi", serif;
}

.doc-editor-wrap .ql-editor {
    min-height: 420px;
}

/* 富文本内容中图片/视频响应式布局：大中屏两列，小屏一列 */
.ql-editor>div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
@media screen and (min-width: 768px) {
    .ql-editor>div {
        grid-template-columns: 1fr 1fr;
    }
}
.ql-editor>div>img, .ql-editor>div>video, .ql-editor>div>booer-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ql-toolbar button.ql-audio {
    width: auto;
    padding: 3px 8px;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
}

.ql-editor audio,
.ql-editor video,
.ql-editor iframe {
    display: block;
    max-width: 100%;
    margin: 8px 0;
}

#app-main-fonthard {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 24px;
}

.fonthard-toolbar {
    margin-bottom: 22px;
    padding: 16px;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid #e4ded0;
    border-radius: 4px;
}

.fonthard-toolbar-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #5f584e;
    font-size: 18px;
}

.fonthard-toolbar-title small {
    color: #9a8a72;
    font-size: 12px;
}

.fonthard-label {
    display: block;
    margin-bottom: 6px;
    color: #6f675c;
    font-size: 13px;
}

.fonthard-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.fonthard-sheet {
    padding: 8mm;
    background: #fff;
    border: 1px solid #e4ded0;
    border-radius: 4px;
}

.fonthard-page {
    page-break-after: always;
    break-inside: avoid;
}

.fonthard-page:last-child {
    page-break-after: auto;
}

.fonthard-page-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4mm;
    color: #5f584e;
    font-size: 14px;
}

.fonthard-grid {
    display: grid;
    gap: 2px;
}

.fonthard-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border: 1px solid #a99c88;
    background-color: #fffdf8;
}

#app-main-fonthard .fonthard-grid.tian .fonthard-cell {
    background-image:
        linear-gradient(to right, transparent calc(50% - .5px), #cbbca4 calc(50% - .5px), #cbbca4 calc(50% + .5px), transparent calc(50% + .5px)),
        linear-gradient(to bottom, transparent calc(50% - .5px), #cbbca4 calc(50% - .5px), #cbbca4 calc(50% + .5px), transparent calc(50% + .5px));
}

#app-main-fonthard .fonthard-grid.mi .fonthard-cell {
    background-image:
        linear-gradient(to right, transparent calc(50% - .5px), #cbbca4 calc(50% - .5px), #cbbca4 calc(50% + .5px), transparent calc(50% + .5px)),
        linear-gradient(to bottom, transparent calc(50% - .5px), #cbbca4 calc(50% - .5px), #cbbca4 calc(50% + .5px), transparent calc(50% + .5px)),
        linear-gradient(to top right, transparent calc(50% - .5px), #cbbca4 calc(50% - .5px), #cbbca4 calc(50% + .5px), transparent calc(50% + .5px)),
        linear-gradient(to top left, transparent calc(50% - .5px), #cbbca4 calc(50% - .5px), #cbbca4 calc(50% + .5px), transparent calc(50% + .5px));
}

.fonthard-char {
    color: #4a463f;
    line-height: 1;
}

.fonthard-char.small {
    font-size: 15px;
}

.fonthard-char.medium {
    font-size: 19px;
}

.fonthard-char.large {
    font-size: 24px;
}

@media print {
    @page {
        size: A4;
        margin: 8mm;
    }
    body * {
        visibility: hidden;
    }
    #fonthard-print-sheet,
    #fonthard-print-sheet * {
        visibility: visible;
    }
    #fonthard-print-sheet {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    .fonthard-toolbar {
        display: none !important;
    }
}

@font-face {
    font-family: "jxpks";
    /* 优先 OSS（cdn.booerjs.cn，bucket=booer 下 fonts/ 同名文件），失败时回退项目内字体 */
    src: url("//cdn.booerjs.cn/woff/jxpks.woff") format("woff"),
         url("fonts/options/jxpks.woff") format("woff");
    font-display: swap;
}
@font-face {
    font-family: "jxpxk";
    src: url("//cdn.booerjs.cn/woff/jxpxk.woff") format("woff"),
         url("fonts/options/jxpxk.woff") format("woff");
    font-display: swap;
}
@font-face {
    font-family: "qgxk";
    src: url("//cdn.booerjs.cn/woff/qgxk.woff") format("woff"),
         url("fonts/options/qgxk.woff") format("woff");
    font-display: swap;
}
@font-face {
    font-family: "tyzks";
    src: url("//cdn.booerjs.cn/woff/tyzks.woff") format("woff"),
         url("fonts/options/tyzks.woff") format("woff");
    font-display: swap;
}
@font-face {
    font-family: "wysxk";
    src: url("//cdn.booerjs.cn/woff/wysxk.woff") format("woff"),
         url("fonts/options/wysxk.woff") format("woff");
    font-display: swap;
}

.fonthard-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.fonthard-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 120px);
}

.fonthard-left canvas {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0;
    margin-bottom: 16px;
    background: #fffdf8;
    border: 1px solid #e4ded0;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(60, 55, 48, 0.08);
}

.fonthard-page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    color: #6f675c;
}

.fonthard-right {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 12px;
    padding: 16px;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid #e4ded0;
    border-radius: 4px;
}

.fonthard-tool-title {
    margin-bottom: 14px;
    color: #5f584e;
    font-size: 18px;
    font-weight: 700;
}

.fonthard-right .fonthard-label {
    display: block;
    margin: 14px 0 6px;
    color: #6f675c;
    font-size: 13px;
}

.fonthard-number-row {
    display: flex;
    gap: 8px;
}

.fonthard-number-row .el-input-number {
    width: 100%;
}

.fonthard-row {
    display: flex;
    gap: 12px;
}

.fonthard-field {
    flex: 1;
}

.fonthard-field .el-color-picker {
    width: 100%;
}

.fonthard-field .el-slider {
    margin-top: 12px;
}

@media screen and (max-width:900px) {
    .fonthard-layout {
        flex-direction: column;
    }
    .fonthard-right {
        width: 100%;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    #app-main-fonthard .fonthard-left,
    #app-main-fonthard .fonthard-left canvas {
        visibility: visible;
    }
    #app-main-fonthard .fonthard-right {
        display: none !important;
    }
    #app-main-fonthard .fonthard-left {
        display: block;
        position: static;
        width: 210mm;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    #app-main-fonthard .fonthard-left canvas {
        width: 210mm !important;
        height: 297mm !important;
        max-width: none !important;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        page-break-after: always !important;
        break-after: page !important;
        break-inside: avoid;
    }
    #app-main-fonthard .fonthard-left canvas:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }
}

@page {
    size: A4;
    margin: 0;
}

#app-main-poem {
    position: relative;
}

.poem-search {
    position: fixed;
    top: 66px;
    right: 12px;
    z-index: 99;
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid #e4ded0;
    border-radius: 4px;
}

.poem-reader {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 90px;
}

.poem-reader h2 {
    margin: 0 0 6px;
    color: #3b3a36;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.poem-meta {
    margin: 0 0 24px;
    color: #8a7d6a;
    text-align: center;
}

.poem-section {
    margin-bottom: 28px;
}

.poem-section h3 {
    margin: 0 0 10px;
    color: #9a6a5d;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #ece6d8;
    padding-bottom: 6px;
}

.poem-text {
    white-space: pre-wrap;
    line-height: 2.2;
    color: #4a463f;
    font-size: 14px;
}

.poem-nav {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid #e4ded0;
    border-radius: 4px;
}

#comp-index {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 64px;
}
#sys-doc .ql-editor>div>*, #sys-doc .ql-editor>p>*{
    max-width: 600px;
}
/* 首页轮播高度自适应：item 默认绝对定位会撑不出高度，
   改为静态流布局、仅显示激活项，由内容撑开容器高度 */
#comp-index .el-carousel__container {
    height: auto !important;
}
#comp-index .el-carousel__item {
    position: static !important;
    height: auto !important;
    transform: none !important;
    display: none;
}
#comp-index .el-carousel__item.is-active {
    display: block;
}

.index-hero {
    margin: 0 auto 18px;
    padding: 0;
    background: transparent;
    border: 1px solid #e5ded0;
    border-radius: 4px;
    box-shadow: none;
    height: 80px;
    overflow: hidden;
}

.index-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.index-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 28px 0 32px;
}

.index-title {
    margin: 0;
    color: #5f584e;
    text-align: center;
    font-size: 22px;
    font-weight: 400;
}

.index-nav-btn {
    flex: none;
    color: #9a6a5d;
    border-color: #d8c9a8;
}
.index-nav-btn:hover {
    color: #fff;
    background: #9a6a5d;
    border-color: #9a6a5d;
}

.index-scroll {
    margin: 0 auto 15px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    box-shadow: none;
}

.index-scroll-rail {
    padding: 8px;
    background: #fffdf8;
    border: 1px solid #e8e1d2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.el-table {
    background: #fffefb;
}

.el-table th.el-table__cell {
    background: #f1ecdf !important;
    color: #5f584e;
    font-weight: 500;
}

#sys-file .el-table .thumb-img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 64px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 2px;
}

.el-table td.el-table__cell,
.el-table th.el-table__cell {
    border-bottom: 1px solid #ece6d8;
}

.el-tabs__item {
    color: #6f675c;
}

.el-tabs__item.is-active {
    color: var(--buer-cinnabar);
    font-weight: 400;
}

.el-tabs__active-bar {
    background-color: var(--buer-gold);
}

.el-drawer {
    background: #faf8f2;
}

.el-drawer__header {
    color: #5f584e;
    font-weight: 400;
}

.el-form-item__label {
    color: #6f675c;
}

#comp-tool>div.comp-tool-bar {
    background: #9a6a5d;
    border: 1px solid #b7a887;
    opacity: 1;
    width: 36px;
    height: 36px;
    margin: 6px;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(60, 55, 48, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

#comp-tool>div.comp-tool-bar:hover {
    background: #7f5146;
    transform: translateY(-1px);
}

#comp-tool>div>.el-icon {
    color: #fffdf8;
}

#comp-tool {
    position: fixed;
    right: 20px;
    bottom: 70px;
    z-index: 9999;
}

@media screen and (max-width:900px) {
    .container-header {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    #header-menu {
        z-index: 9999 !important;
    }
    .app-container .menu-vertical {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 12px 16px;
        box-shadow: 0 10px 26px rgba(60, 55, 48, 0.12);
    }
    .sys-logout-btn {
        position: absolute !important;
        right: 10px;
        left: auto;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        margin: 0;
    }
    /* 【移动端·菜单字体】桌面端 .container-header * 强制 28px 在小屏过大：
       统一收到 16px；当前菜单名标题(#header-menu 首个 div)保留 18px 作层级区分 */
    .container-header *{font-size: 16px !important;}
    #header-menu > div:first-child{font-size: 18px !important;}
    /* 【移动端·阅读翻页按钮】窄屏收紧按钮间距；底部叠加安全区，避免被系统手势条/浏览器底栏遮挡 */
    .pdf-toolbar{bottom: calc(56px + env(safe-area-inset-bottom));}
    .pdf-toolbar .el-button{margin: 8px 16px;}
    /* 【移动端·阅读图片贴顶】书籍页图片 object-fit:contain 默认垂直居中，
       移动端按屏宽缩放后图片高度远小于视口高，居中会在顶部留出大片空白（实测 80px+）；
       改为顶部对齐消除空白（桌面端图片按高撑满、仍居中，不受影响） */
    #app-main-view .view-image .el-image img{object-position: center top;}
}
