* {
    margin: 0px;
    padding: 0px;
    list-style: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
}

@font-face {
    font-family: 'font1';
    src: url('../font/SourceHanSerifCN-SemiBold-7.otf')
}

@font-face {
    font-family: 'font2';
    src: url('../font/XinDiZhaoMeng.ttf')
}

html,
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'sans-serif';
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    touch-action: manipulation;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-user-select: none;
}

img {
    border: 0;
    vertical-align: middle;
}

@font-face {
    font-family: "font";
    src: url('./static/font/font.ttf');
}

::-webkit-scrollbar {
    opacity: 0;
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #E6D6C4;
}

::-webkit-scrollbar-thumb {
    background: #a8a8a8;
    border-radius: 8px;
}

body {
    width: 100vw;
    background: #E6D6C4;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.topBg {
    width: 100%;
}

.topBg img {
    width: 100%;
}

.mainBody {
    width: 100%;
    padding: 3vw 36px 0;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    overflow: hidden;
    background: url(../image/else/bg_ornament.png) repeat center #E6D6C4;
    background-size: 100%;
    background-attachment: fixed; /* 背景固定 */
}
.PrefaceBox,.ConclusionBox {
    background: url(../image/else/PrefaceBg.png) no-repeat center;
    background-size: cover;
    padding: 5.5vw 0 1vw;
    position: relative;
}
.ConclusionBox {
    background: #86503C;
}
.Conclusion_ornament {
    width: 25%;
    height: auto;
    position: absolute;
    right: 2rem;
    bottom: 3rem;
    object-fit: contain;
}
.Preface_ornament {
    position: absolute;
}
.Preface_ornament_top,.Preface_ornament_bottom  {
    width: 100%;
}
.Preface_ornament_top {
    top: 0;
}
.Preface_ornament_bottom {
    bottom: 0;
}
.titText {
    text-align: center;
}

.titText img {
    width: 12%;
    min-width: 150px;
}

.titInfo {
    padding: .7vw;
    /* width: calc(84% - 4vw); */
    width: 84%;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}
.titInfo::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    z-index: -1;
}
.titInfoInner {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    box-sizing: border-box;
}



.titInfo li {
    font-family: 'font1';
    color: #e2cfb6;
    text-indent: 2em;
    line-height: 1.8;
    text-align: justify;
    /* word-break: break-word;
    letter-spacing: normal; */
    font-size: calc(100vw * 20 / 1920);
}

.unitTit {
    width: 84%;
    font-size: calc(100vw * 36 / 1920);
    color: #928581;
    font-family: 'font1';
    display: flex;
    justify-content: space-evenly;
    padding: 1vw 0px;
    padding: .6vw;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    background: 
    radial-gradient(10px at 10px 10px, transparent calc(98% - 3px), #9E5443 calc(100% - 3px) 98%, transparent), 
    linear-gradient(#9E5443, #9E5443), 
    linear-gradient(#9E5443, #9E5443), 
    linear-gradient(#9E5443, #9E5443), 
    linear-gradient(#9E5443, #9E5443);
    background-position: -10px -10px, 9px 0, 9px 100%, 0 9px, 100% 9px;
    background-size: 100% 100%, calc(100% - 18px) 3px, calc(100% - 18px) 3px, 3px calc(100% - 18px), 3px calc(100% - 18px);
    background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}
.unitTit::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    z-index: -1;
    background: url(../image/else/text_bg1.png), 
                radial-gradient(circle at top left, transparent 6px, #FEF3E7 6px) top left, 
                radial-gradient(circle at top right, transparent 6px, #FEF3E7 6px) top right, 
                radial-gradient(circle at bottom right, transparent 6px, #FEF3E7 6px) bottom right, radial-gradient(circle at bottom left, transparent 6px, #FEF3E7 6px) bottom left;
    background-size: 100% 100%, 60% 60%, 60% 60%, 60% 60%, 60% 60%;
    background-repeat: no-repeat;
}
.unitTitInner {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: .3rem 0 0;
    box-sizing: border-box;
    background: 
        radial-gradient(10px at 10px 10px, transparent calc(98% - 1px), #C39284 calc(100% - 1px) 98%, transparent), 
        linear-gradient(#C39284, #C39284), 
        linear-gradient(#C39284, #C39284), 
        linear-gradient(#C39284, #C39284), 
        linear-gradient(#C39284, #C39284);
    background-position: -10px -10px, 9px 0, 9px 100%, 0 9px, 100% 9px;
    background-size: 100% 100%, calc(100% - 18px) 1px, calc(100% - 18px) 1px, 1px calc(100% - 18px), 1px calc(100% - 18px);
    background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

.unitTit li {
    width: calc(100% / 3);
    box-sizing: border-box;
    padding-top: 3px;
    transition: all .3s;
    position: relative;
    padding-bottom: 10px;

    transition: all .3s;
    transform: scale(.8);
    opacity: .6;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.unitTit .enName {
    font-size: calc(100vw * 20 / 1920);
    margin-top: -5px;
}

.unitTit .liPitch {
    transform: scale(1);
    opacity: 1;
    color: #3b2924;
}
.unitTit li .selectedLine {
    height: 1rem;
    min-height: 10px;
    max-width: 90%;
    position: static;
    width: auto;
    margin: 0;
}

.unitTit li:hover {
    cursor: pointer;
    opacity: .8;
}

.unitTit li:hover .p1 {
    display: block;
}
.unitList {
    width: 84%;
    margin: 0 auto;
    padding-top: 2rem;
}
.unitList .unitInfo {
    font-size: calc(100vw * 20 / 1920);
    color: #3b2924;
    font-family: 'font1';
    border: 1px solid #C39284;
    background: #FEF3E7;
    position: relative;
    margin-bottom: 2rem;
}
.unitInfoContent {
    text-indent: 2em;
    line-height: 1.8;
    white-space: pre-wrap;
    padding: 1rem;
}
.text_ornament {
    position: absolute;
}
.text_ornament1 {
    top: -12px;
    left: -10px;
}
.text_ornament2 {
    bottom: -18px;
    right: 5px;
}
.unitList .liNameBox {
    margin: 1.8rem auto;
    text-align: center;
}
.unitList .liNameBox img {
    height: .4rem;
    min-height: 5px;
    max-width: 90%;
    display: flex;
    margin: 2px auto;
}
.unitList .liName_CN {
    font-size: calc(100vw * 28 / 1920);
    color: #3B2924;
    font-family: 'font1';
    text-align: center;
    display: flex;
    justify-content: center;
}
.unitList .liName_EN {
    text-align: center;
    font-family: 'font1';
    font-size: calc(100vw * 20 / 1920);
    color: #3b2924;
}

.unitList .liInfo {
    margin-bottom: 1.8vw;
    font-size: calc(100vw * 20 / 1920);
    color: #3b2924;
    font-family: 'font1';
    text-indent: 2em;
    line-height: 1.8;
    white-space: pre-wrap;
    text-indent: 2em;
}

.unitList .liImgs {
    margin-bottom: 3.6vw;
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
}

.unitList .liImgs .lis {
    width: calc(48.5% - 1.6vw);
    background: #FEF3E7;
    box-shadow: 0px 8px 8px rgba(0,0,0,.1);
    padding: .8vw;
    margin-bottom: 1.8vw;
    display: flex;
    animation: lis .4s ease forwards;
    transform: translateY(30px);
    opacity: 0;
    position: relative;
}

.unitList .liImgs .lis .msk {
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
}

@keyframes lis {
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

.unitList .liImgs .lis:hover {
    cursor: pointer;
}

.unitList .liImgs .lis .leftImg {
    position: relative;
}

.unitList .liImgs .lis .leftImg p {
    position: absolute;
    top: 1.6vw;
    right: -.9vw;
    width: 1.8vw;
    height: 2px;
    border-radius: 2px;
    background: #64544f;
}

.unitList .liImgs .lis .leftImg img {
    transition: all .4s;
}

.unitList .liImgs .lis:hover .leftImg img {
    box-shadow: 0px 8px 8px #E6D6C4;
    transform: translateY(-.4vw) rotate(4deg);
}



.unitList .liImgs .lis .rightInfo {
    margin-left: 2vw;
    margin-right: .8vw;
    color: #63544f;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.unitList .liImgs .lis .rightInfo .name {
    font-size: calc(100vw * 28 / 1920);
    margin-top: .8vw;
    font-family: 'font1';
}

.unitList .liImgs .lis .rightInfo .tits {
    font-size: calc(100vw * 20 / 1920);
    margin-top: .8vw;
    line-height: 1.7;
    white-space: pre-wrap;
}
.unitList .liImgs .lis .rightInfo .time {
    font-family: 'font1';
}

.unitList .liImgs .lis .rightInfo .info {
    font-size: calc(100vw * 16 / 1920);
    line-height: 1.7;
    /* margin-top: .8vw; */
}
.unitList .liImgs .lis .rightInfo .infoBottom{
    /* margin-top: 8vw !important; */
}
.unitList .liImgs .lis .rightInfo .infoBottom .tits {
    margin-top:.3vw;
}
.endTit {
    margin-bottom: 5vw;
}

.fullBox {
    position: fixed;
    z-index: 100;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
}
.fullBox .contentBox {
    width: 25%;
    background-color: #FEF3E7;
    padding: 3vw 2vw;
    color: #594842;
    line-height: 1.8;
    box-sizing: border-box;
    color: #63554F;
    position: relative;
    transform: translateX(0);
    transition: all 0.5s ease-in-out;
    position: relative;
    z-index: 1;
}
.fullBox .contentBox .showToggle {
    position: absolute;
    right: 0;
    width: 2vw;
    height: 2vw;
    background: #954332;
    border-radius: 1vw 0 0 1vw;
    display: flex;
    align-items: center;
    justify-content: end;
    color: #fff;
    cursor: pointer;
    z-index: 3;
}
.fullBox .contentBox .showToggle img {
    width: 70%;
}
.fullBox .contentBox .hideToggle {
    right: -2vw;
    border-radius: 0 1vw 1vw 0;
    justify-content: start;
}
.fullBox .hide_contentBox {
    transform: translateX(-100%);
    transition: all 0.5s ease-in-out;
}
.fullBox .contentBox .hideToggle img {
    transform: rotate(180deg)
}
.fullBox .contentTitle,.fullBox .contentName {
    font-size: calc(100vw * 36 / 1920);
    font-family: 'font1';
}
.fullBox .contentName {
    margin-top: 4vw;
    margin-bottom: 1vw;
    border-bottom: 1px solid #9E5443;
}
.fullBox .contentTit {
    font-size: calc(100vw * 24 / 1920);
    font-family: 'font1';
    margin-top: 1vw;
}
.fullBox .time,.fullBox .content {
    font-family: 'font1';
    line-height: 1.8;
    font-size: calc(100vw * 20 / 1920);
}
.fullBox .content {
    text-indent: 2em;
    text-align: justify;
}
.fullBox .menu {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    padding: 2px 2px;
    z-index: 3;
}

.fullBox .menu li {
    padding: 16px 14px;
    cursor: pointer;
}

.fullBox .menu li img {
    transition: all .3s;
}

.fullBox .menu img:hover {
    opacity: 1;
}

.fullBox .fullImg {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    /* width: 30vw; */
    cursor: pointer;
}

.fullBox .fullImg img {
    height: 100vh;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 关键：保持宽高比，完整显示在容器内 */
    display: block;
}

.fullBox .fullImg .msk {
    position: absolute;
    z-index: 3;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.fullBox .loading {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 50px;
    animation: loading 2s linear infinite;
}

@keyframes loading {
    to {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }
}

.btn {
    width: 5.5vw;
    position: fixed;
    z-index: 1;
    right: 2vw;
    bottom: 2vw;
    cursor: pointer;
    transition: all .3s;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.btn:hover {
    opacity: .7;
}
