/* -------------------------------------------------------主页面部分公共样式------------------------------------------------------- */

/* -------网站整体为方格背景-------*/
* {
    margin: 0;
}
body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgba(250, 246, 246, 0.8);
    /* background-color: #d3eec1; */
    /* 方格背景 */
    background: linear-gradient(90deg, rgba(209, 204, 204, 0.1) 3%, transparent 0),
        linear-gradient(rgba(209, 204, 204, 0.1) 3%, transparent 0);
    background-size: 20px 20px;
}
/* -------网站整体为方格背景 end-------*/

/* -------隐藏的侧边导航栏-------*/
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fcfbf0;
    /* background-color: rgba(228, 227, 227, 0.8); */
    /* background-color: rgb(208, 213, 169); */
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    /* 永远保持在最上层 */
    z-index: 2;
}

.sidebar li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 侧边栏链接样式 */
.sidebar a {
    text-align: center;
    /* a标签左右居中 */
    padding: 10px 15px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* 当鼠标悬停在链接上时的样式 */
.sidebar a:hover {
    background-color: rgba(224, 247, 245, 0.8);
    color: rgb(228, 172, 135);
}

/* 二级导航样式 */
.sidebar button {
    width: 100%;
    padding: 10px 0px;
    background-color: #fcfbf0;
    border: none;
    /* text-align: center;a标签左右居中 */
    font-size: 15px;
    color: #818181;
    display: block;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
}

.sidebar button:hover {
    cursor: pointer;
}

.sidebar button .bj {
    margin-left: 75px;
    font-size: 25px;
}

.sidebar button .jt {
    width: 35px;
    height: 35px;
    font-size: 25px;
    padding-top: 3px;
    margin-right: 15px;
    /* 给箭头添加动画效果 */
    fill: #818181;
    transition: transform 0.3s linear 0s;
}

.sidebar button:hover {
    background-color: rgba(224, 247, 245, 0.8);
    color: rgb(228, 172, 135);
}

.sidebar button:hover .jt {
    fill: rgb(228, 149, 135);
}

.sidebar .twonav {
    max-height: 300px;
    overflow-y: auto;
    display: none;
    transition: transform 0.5s ease;
}

.sidebar .twonav a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    overflow-x: auto;
    text-align: left;
    margin-left: 70px;
    /* text-align: right; */
    padding: 10px;
    font-size: 18px;
    /* border-left: 1px solid red; */
    /* background-color: #faf8e3; */
}

.sidebar .twonav a::-webkit-scrollbar {
    display: none;
}

.sidebar .twonav a:hover {
    background-color: #fcfbf0;
    color: red;
}

/* -------隐藏的侧边导航栏 end------- */

/* -------隐藏的侧边导航栏触发按钮样式 ------- */
/* 触发按钮的样式 */
.toggle-btn {
    font-size: 30px;
    cursor: pointer;
    position: fixed;
    top: 0px;
    left: 0px;
    color: #111;
}

/* 关闭按钮的样式 */
.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 0px;
}

.sidebar .closebtn:hover {
    color: red;
    background-color: #fff;
}

.sidebar img {
    margin-left: 32%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* 主内容部分的样式 */
#mainContent {
    transition: 0.5s;
}

/* -------隐藏的侧边导航栏触发按钮样式 end------- */

/* -------头部样式 ------- */
.herd {
    width: 100%;
    height: 100%;
    text-align: center;
    padding-top: 60px;
    margin-bottom: 10px;
    /* background-color: rgb(228, 172, 135); */
}

.herd p {
    font-weight: bold;
    font-size: 60px;
    color: rgb(247, 166, 166);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.herd span {
    color: #bfbfbf;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
}

/* -------头部样式 end------- */

/* -------搜索部分 -------*/
.search-container {
    /* width: 100%; */
    margin-top: 10px;
    height: 100px;
    /* background-color: #f1d2d2; */
    /* border: 1px solid red; */
}

.search-container .inp {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border: 1px solid rgba(219, 214, 214, 0.63);
}

.search-container .inp input {
    width: 90%;
    height: 50px;
    font-size: 20px;
    border: none;
}

.search-container .inp button {
    width: 10%;
    border: none;
    background-color: #fff;
    cursor: pointer;
}

.search-container .inp button .icon {
    width: 15px;
    height: 15px;
    fill: rgba(219, 214, 214, 0.63);
}

.search-container .inp button:hover .icon {
    fill: red;
}

.search-prompt {
    margin-top: 10px;
    line-height: 30px;
    text-align: center;
    border-radius: 15px;
    background-color: rgba(219, 214, 214, 0.63);
    color: #888;
}

.search-prompt .red {
    margin: 0px 5px 0px 5px;
    color: red;
}

.classification {
    /* display: flex;
    flex-direction: row; */
    max-width: 100%;
    white-space: nowrap;
    /* 禁止换行 */
    overflow-x: auto;
    /* 超出部分显示水平滑动条 */
    color: rgba(189, 177, 177, 0.8);
}

.classification button {
    line-height: 30px;
    margin-right: 10px;
    border: none;
    background-color: #fff;
    color: rgba(189, 177, 177, 0.8);
}

.classification button:hover {
    cursor: pointer;
    color: red;
}

/* -------搜索部分 end -------*/

/* -------展览台样式 ------- */
.nrr {
    /* 这部分的作用是把展览台设置成一个整体，然后设置内容垂直居中 */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.nr {
    width: 80%;
    /* 改用限制最大长度，从而满足手机屏幕自适应 */
    max-width: 1000px;
    /* background-color: #eeeeec; */
    border-radius: 15px;    /* 边框圆角 */
    padding: 20px;
}

.nr a {
    text-decoration: none;
}

.item {
    width: 100%;
    /* height: 300px; */
    /* padding: 10px 30px; */
    border-radius: 15px;
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    border: 1px solid #fff;
    background-color: #fff;
    box-shadow: 2px 2px 20px -2px rgb(197, 196, 196);
    /* white-space: nowrap; */
    overflow: hidden;
    /* 2. 隐藏超出容器的部分 */
}

.item:hover {
    border: 1px solid rgb(197, 196, 196);
    box-shadow: 1px 20px 20px -2px rgb(197, 196, 196);
}

.item img {
    width: 20%;
    /* height: 90%; */
    border-radius: 5px;
    margin: 10px;
}

.item .desc {
    width: 100%;
    padding: 30px;
    border-radius: 15px;
    color: black;
    display: flex;
    flex-direction: column;
    /* background-color: #eec7c7; */
}

.item .desc a {
    color: black;
    text-decoration: none;
}

.item .desc a:hover {
    color: red;
}

.item .desc .title {
    /* margin-top: 10px; */
    font-size: 20px;
    font-weight: bolder;
    /* font-size: 30px; 标题文字大小 */
    text-align: center;
    /* 标题居中 */
}

.item .desc .spanicon {
    color: #989898;
}

.item .desc .spanicon .icon {
    width: 15px;
    height: 15px;
}

.item .desc .api a {
    color: rgb(134, 196, 247);
    font-size: 15px;
}

.item .desc .api a:hover {
    color: red;
}

/* -------展览台样式 end------- */

/* -------图标部分样式 end------- */
.iconbox {
    display: flex;
    justify-content: center;
    /* margin-top: 10px; */
    /* background-color: #e6b3b3; */
}

.iconbox .icon {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    fill: #bfbfbf;
}

.iconbox .icon:hover {
    fill: #ac9898;
}

.iconbox button {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: none;
}

.iconbox button .icon {
    width: 30px;
    height: 30px;
    fill: #bfbfbf;
}

.iconbox button:hover {
    cursor: pointer;
}
/* -------图标部分样式 end------- */

/* -------分页部分样式 ------- */
.pagination {
    width: 100%;
    height: 50px;
    margin-top: 50px;
    /* background-color: #f7cdcd; */
    display: flex;
    justify-content: center;
}

.pagination a {
    display: block;
    width: 80px;
    line-height: 50px;
    font-size: 13px;
    color: black;
    text-decoration: none;
    background-color: #fff;
    text-align: center;
}

.pagination a:hover {
    color: red;
}

.pagination span {
    display: block;
    width: 80px;
    background-color: #fff;
    text-align: center;
    line-height: 50px;
}

/* -------分页部分样式 end------- */

/* -------工具栏样式 ------- */
/* 回到顶部按钮样式 */
#backToTop {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: none;
    /* 默认隐藏 */
    color: white;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    border-radius: 25%;
    cursor: pointer;
}

#backToTop:hover {
    background-color: #c8f2f8;
}

/* 回到顶部按钮样式 end */
.home-tool-bar {
    position: fixed;
    bottom: 100px;
    right: 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    display: none;
    color: black;
    background-color: white;
    border-radius: 15px 15px 15px 15px;
    border: 1px solid #cac9c9;
    overflow: hidden;
}

.home-tool-bar button {
    border: none;
    background-color: white;
}

.home-tool-bar button:hover {
    cursor: pointer;
}

.home-tool-bar .home-tool-bar-box {
    padding: 5px;
    border-bottom: 1px solid #cac9c9;
}

.home-tool-bar .desc {
    opacity: 0;
    /* 初始隐藏 */
    visibility: hidden;
    /* 防止隐藏时占用空间 */
    position: fixed;
    /* 绝对定位，基于 li 的相对定位 */
    right: 70px;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    color: black;
    font-size: 15px;
    background-color: #f3f2f2;
    display: flex;
    flex-direction: row;
    /* transition: opacity 0.5s ease; 平滑显示/隐藏 */
}

.home-tool-bar .icon {
    width: 30px;
    height: 30px;
    fill: #707070;
}

/* ---- 三角形 ---- */
/* 通用样式，方便展示 */
.triangle-container {
    position: fixed;
    /* 绝对定位*/
    right: 50px;
    width: 20px;
    height: 20px;
    /* background-color: #63ee39; */
}

/* 基础三角形样式 */
.triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

/* 向右的三角形 */
.triangle-right {
    margin-top: -5px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent #f3f2f2;
}

.home-tool-bar .home-tool-bar-box:hover {
    cursor: pointer;
}

/* ---- 三角形 end ---- */

/*  */
.home-tool-bar .home-tool-bar-box:hover .desc {
    opacity: 1;
    /* 悬停时显示 */
    visibility: visible;
}

/* QRcodedesc */
.QRcodedesc {
    opacity: 0;
    /*初始隐藏 */
    visibility: hidden;
    /* 防止隐藏时占用空间 */
    position: fixed;
    /* 绝对定位，基于 li 的相对定位 */
    right: 70px;
    padding: 10px;
    bottom: 50px;
    border-radius: 5px;
    text-align: center;
    color: black;
    font-size: 15px;
    background-color: #f3f2f2;
    display: flex;
    flex-direction: row;
    /* transition: opacity 0.5s ease; 平滑显示/隐藏 */
}

.QRcodedesc .QRcodebox {
    display: flex;
    flex-direction: column;
}

.QRcodedesc .QRcodebox img {
    width: 120px;
    height: 120px;
}

.QRcodedesc .QRcodebox span {
    font-size: 10px;
}

.QRcodedesc .triangle-container {
    position: fixed;
    /* 绝对定位*/
    bottom: 110px;
    right: 50px;
    width: 20px;
    height: 20px;
    /* background-color: #63ee39; */
}

.home-tool-bar .home-tool-bar-box:hover .QRcodedesc {
    opacity: 1;
    /* 悬停时显示 */
    visibility: visible;
}

/* QRcodedesc end */
/* -------工具栏样式 end------- */

/* -------页脚样式 end------- */
.footer {
    font-size: 15px;
    color: #cac9c9;
    text-align: center;
}

.footer p {
    font-size: 15px;
    line-height: 60px;
}

.footer a {
    color: #cac9c9;
    text-decoration: none;
}

.footer a:hover {
    color: #afa9a9;
}

/* -------页脚样式 end------- */

/* -------------------------------------------------------主页面部分公共样式 end--------------------------------------------------- */

/* -------------------------------------------------------笔记页面部分公共样式------------------------------------------------------- */
/* -------笔记页面的响应式目录------- */
.NotesCatalogBox{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.NotesCatalogBox .NotesCatalog{
    height: 100vh; /* 修改：使用vh单位更稳定 */
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    border-right: 1px solid #eeecec;
    /* z-index: 1000; 确保导航栏在内容上层 */
    transition: transform 0.3s ease; /* 新增：平滑过渡效果 */
}
.NotesCatalogBox .NotesCatalog .title{
    padding: 8px 0px 8px 30px;
    background-color: #f8f8f8;
}
.NotesCatalogBox .NotesCatalog .title .ml{
    font-size: 25px;
    color: #7c7d7e;
}
.NotesCatalogBox .NotesCatalog .list a{
    display: block;
    text-decoration: none;
    padding: 5px 0px 5px 30px;
    color: rgb(116, 114, 114);
    border-bottom: 1px solid rgb(248, 247, 247);
    white-space: nowrap;/* 禁止换行 */
    overflow: hidden;/* 超出部分隐藏 */
    text-overflow: ellipsis;/* 超出部分用...代替 */
}
.NotesCatalogBox .NotesCatalog .list a:hover{
    color: red;
}
/*  */
.NotesCatalogBox .center{
    width: 1000px;
    /* 改用限制最大长度，从而满足手机屏幕自适应 */
    max-width: 90vw;
    margin-top: 30px;
    background-color: #fff;
}
/* .NotesCatalogBox .onetitle{
    font-size: 30px;
} */
.NotesCatalogBox .twotitle{
    font-size: 20px;
    color: red;
}
.NotesCatalogBox .content {
    padding: 30px 50px 30px 50px;
    border-bottom: 2px solid #e2e8f0;
}
.NotesCatalogBox .column{
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    color: #7c7d7e;
}
.NotesCatalogBox .column img{
    width: 100%;
    height: 400px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.NotesCatalogBox .content .gdxxqkzxwd{
    font-size: 13px;
    color: rgb(221, 220, 220);
}
.NotesCatalogBox .content .gdxxqkzxwd:hover{
    color: rgb(219, 189, 189);
}
/* 各span 行间距 */
.NotesCatalogBox .column span{
    line-height: 30px;
}
.NotesCatalogBox .column .Operation_Path{
    color: rgb(97, 233, 97);
}

/* PC端 (屏幕宽度 > 768px) */
@media (min-width: 769px) {
    .openwindowbtn {
        display: none; /* 隐藏导航按钮 */
    }
    .NotesCatalog {
        transform: translateX(0); /* 显示导航栏 */
    }
    .markdown-content {
        margin-top: 60px;
        margin-left: 230px; /*给导航栏留出空间*/
    }
}

/* 手机端 (屏幕宽度 ≤ 768px) */
@media (max-width: 768px) {
    .openwindowbtn {
        display: block; /* 显示导航按钮 */
    }
    .NotesCatalog {
        transform: translateX(-100%); /* 隐藏导航栏（向左移出屏幕） */
    }
    .NotesCatalog.show {
        transform: translateX(0); /* 显示导航栏 */
    }
    .markdown-content {
        margin-left: 0; /* 内容占满宽度 */
        padding-top: 50px; /* 给按钮留出空间 */
    }
}
/* -------笔记页面的响应式目录 end ------- */
/* -------点击图片放大样式 ------- */
img {
    width: 100px;
    cursor: pointer;
    transition: 0.2s;
}

/* img:hover {
    opacity: 0.8;
} */
/* 弹窗遮罩 */
.img-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 大图 */
.modal-img {
    width: 80%;
    height: 90%;
    /* max-width: 300px; */
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* -------点击图片放大样式 end------- */

/* -------复制成功样式 ------- */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 9999;
    /* pointer-events: none; */
    display: none;
}

/* -------复制成功样式 end------- */

/* -------页脚 上/下一篇 -------*/
.foot {
    width: 100%;
    /* border: 1px solid red; */
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
}

.foot a {
    display: block;
    width: 30%;
    font-size: 15px;
    margin-left: 10px;
    margin-right: 10px;
    text-align: center;
    line-height: 50px;
    color: black;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    /* 2. 隐藏超出容器的部分 */
    text-overflow: ellipsis;
    /* 3. 将被隐藏的部分显示为省略号 */
    /* background-color: #e4e4e4;   */
}

.foot a:hover {
    color: red;
}

/* -------页脚 上/下一篇 end-------*/
/* -------------------------------------------------------笔记页面部分公共样式 end--------------------------------------------------- */