@font-face {
    font-family: 'Mukta Bold';
    src: url('./Mukta-Bold.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Mukta Regular';
    src: url('./Mukta-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'Mukta SemiBold';
    src: url('./Mukta-SemiBold.ttf');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'Mukta Medium';
    src: url('./Mukta-Medium.ttf');
    font-weight: normal;
    font-style: normal;
}


:root {
    --leftWidth: 300px;
    /* --rightWidth: 334px; */
    --rightWidth: 223px;
    --headerHeight: 80px;
    --logoWidth: 160px;
    --transition: 0.4s ease-in-out;
    --middleMaxWidth: 1536px;
    --middleFontSize: 16px;
    --indent: 2em;
}

* {
    padding: 0;
    margin: 0;
}

body {
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
}

.header {
    height: var(--headerHeight);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(calc(100% - var(--middleMaxWidth)) / 2);
    width: 100%;
    border-bottom: 1px solid rgba(151, 151, 151, 0.1);
}

.header .logo {
    width: var(--leftWidth);
    display: inline-block;
    text-align: center;
    padding-left: 30px;

}

.header .logo img {
    width: var(--logoWidth);
}

.header .clickImg {
    width: 44px;
    display: none;
}

.header .doucment-title {
    display: none;
    font-family: 'Mukta Bold';
    font-weight: bold;
    font-size: 36px;
    color: #130F35;
    margin: auto;
    margin-left: 20px;
}

/* --------------------- */


.page-content {
    width: 100%;
    height: calc(100% - var(--headerHeight));
    box-sizing: border-box;
    display: flex;
    max-width: var(--middleMaxWidth);
    margin: auto;
}

.loading {
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9;
}

.loading svg {
    height: 42px;
    width: 42px;
    animation: loading-rotate 2s linear infinite;
}

.loading circle {
    animation: loading-dash 1.5s ease-in-out infinite;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-width: 2;
    stroke: #409eff;
    stroke-linecap: round;
}

@keyframes loading-rotate {
    100% {
        transform: rotate(1turn);
    }
}


/* ------------------------------------------------------------------------------ */
.content-left {
    width: var(--leftWidth);
    height: 100%;
    overflow-y: auto;
    border-right: 1px solid #F2F2F2;
    order: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    align-content: baseline;
    user-select: none;
    box-sizing: border-box;
    overflow-x: hidden;
    font-size: 18px;
}

.content-left>* {
    font-family: 'Mukta Bold';
}

.content-left .documents {
    color: #000000;
    margin-top: 53px;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 52px;
    height: 52px;
    box-sizing: border-box;
    display: block;
    font-size: 22px;
    width: 230px;
    padding-left: 30px;
}

.content-left .logo-close {
    display: none;
}

.content-left::-webkit-scrollbar {
    display: none;
}

.content-left .sdk-ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;

    margin: 5px 0;
    width: 230px;
    height: 50px;
    line-height: 50px;
    padding-left: 30px;
    box-sizing: border-box;
    font-family: 'Mukta Bold';
    font-weight: bold;
    font-size: 18px;
    color: #868595;
    font-family: 'Mukta Bold';
}

.content-left .sdk-ul .openImg {
    display: none;
}

.content-left .sdk-li {
    height: 50px;
    line-height: 50px;
    margin: 5px 0;
    cursor: pointer;

    width: 230px;
    padding-left: 30px;
    box-sizing: border-box;
    font-weight: bold;
    font-size: 18px;
    color: #868595;
    border-radius: 4px;
    text-decoration: none;
    display: block;
}

.content-left .sdk-li:hover,
.content-left .sdk-li.select {
    background: #FF9E00;
    color: #fff;
}

.content-left .child-sdk {
    overflow: hidden;
    transition: all var(--transition);
    height: 0;
    position: relative;
    top: -5px;
}

.content-left .child-sdk .sdk-li {
    padding-left: 45px;
    margin: 0;
    font-family: 'Mukta Medium';
    font-weight: 500;
    /* min-height: 50px;
    height: unset; */
}





/* ------------------------------------------------------------------------------ */

.content-right {
    width: var(--rightWidth);
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    order: 2;
    background-color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    font-family: 'Mukta SemiBold';
    font-size: 16px;
}

.content-right .document-sdk-title {
    font-weight: 600;
    font-size: 16px;
    color: #868595;
    min-height: 32px;
    line-height: 32px;
    border-left: 2px solid #FFE7BF;
    padding-left: 10px;
    cursor: pointer;
    padding-right: 5px;
}

.content-right .document-sdk-title.select {
    color: #FF9E00;
    border-left: 2px solid #FF9E00;
}

.content-right .document-sdk-title:hover {
    color: #FF9E00;
    border-left: 2px solid #FF9E00;
}

.content-right .document-sdk-title.h3_title {
    padding-left: 2em;
}

.content-right .right-close {
    display: none;
}

.content-right::-webkit-scrollbar {
    display: none;
}

/* ------------------------------------------------------------ */


.content-middle {
    width: calc(100% - var(--leftWidth) - var(--rightWidth));
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    order: 1;
    /* padding: 0 3rem; */
    padding: 0 6rem;
    font-family: 'Mukta Regular';
    font-size: var(--middleFontSize);
    scroll-behavior: smooth;
}

.content-middle .email-address {
    font-weight: 600;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.46);
    font-family: 'Mukta SemiBold';
    text-decoration: none;
}

.content-middle .notes {
    color: rgba(149, 165, 166, .8);
}

.content-middle::-webkit-scrollbar {
    display: none;
}

.content-middle h1,
.content-middle h2,
.content-middle h3,
.content-middle h4,
.content-middle h5,
.content-middle h6 {
    margin: 1em 0 15px;
    font-weight: bold;
    line-height: 1.7;
    cursor: text;
}

.content-middle h1 {
    font-size: 2em;
    margin-bottom: 0;
}



.content-middle h2 {
    font-size: 1.8em;
    border-bottom: 1px solid #eee;
}

.content-middle h3 {
    font-size: 1.4em;
    margin: 1em 0 15px;
    font-weight: bold;
    cursor: text;
}

.content-middle h3::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: black;
    line-height: 1.5em;
    border-radius: 100%;
    position: relative;
    top: -2px;
    margin-right: 10px;
}

/* .content-middle p, */
.content-middle blockquote,
.content-middle ul,
.content-middle ol,
.content-middle dl,
.content-middle table,
.content-middle pre {
    margin: 10px 0;
}





.content-middle blockquote {
    border-left: 4px solid #DDD;
    padding: 0 15px;
    color: #777;
}


.content-middle .tableBox {
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

.content-middle table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.content-middle thead {
    text-align: left;
}

.content-middle table tr {
    border-top: 1px solid #ccc;
    background-color: #fff;
}

.content-middle table th,
.content-middle table td {
    border: 1px solid #ddd;
    padding: 6px 13px;
}

.content-middle table th {
    font-weight: bold;
}

.content-middle table tr:nth-child(2n) {
    background-color: #f8f8f8;
}

.content-middle pre {
    word-wrap: normal;
}

.content-middle li,
.content-middle p {
    line-height: 2;
    /* word-break: break-all; */
}

.content-middle>p,
.content-middle>h4 {
    text-indent: var(--indent);
}

.content-middle>pre {
    margin-left: var(--indent);
}

.content-middle .highlight pre,
.content-middle pre,
.content-middle li>code,
.content-middle h4>code,
.content-middle p>code {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    font-size: 13px;
    line-height: 19px;
    overflow: auto;
    padding: 3px 10px;
    border-radius: 3px;
    /* white-space: pre; */

}

/* .content-middle p>code, */
.content-middle li>code,
.content-middle h4>code {
    display: inline-grid;
    word-break: break-all;
}



.content-middle ul,
.content-middle ol {
    padding-left: 30px;
}

.content-middle img {
    max-width: 100%;
}


.content-middle>*:last-child {
    margin-bottom: 30px;
}

.content-middle blockquote {
    border-left: 5px solid #0969DA;
    margin-left: var(--indent);
}

/* ------------------------------------------------------------ */



/* 屏幕小于 768px */
@media screen and (max-width: 768px) {
    :root {
        --leftWidth: 0;
        --rightWidth: 0;
        --headerHeight: 60px;
        --logoWidth: 120px;
    }

    .header {
        background-color: #f9f9f9;
        padding: 0 30px;
    }

    .header .clickImg {
        width: 20px;
        display: unset;
    }

    .header .logo {
        display: none;
    }

    .header .doucment-title {
        display: inline-block;
        font-size: 20px;
    }

    .page-content {
        /* padding-top: var(--headerHeight); */
    }

    .content-left {
        position: fixed;
        width: 70%;
        max-width: 369px;
        min-width: 230px;
        padding: 0 15px;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 1;
        background: #F9F9F9;
        box-shadow: 1px 1px 13px 0px rgba(64, 68, 73, 0.2);
        transition: left var(--transition);
    }

    .content-left.open {
        left: 0;
    }

    .content-left .documents {
        display: none;
    }

    .content-left .logo-close {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 25px;
        margin-bottom: 40px;
        width: 70%;
        max-width: 369px;
        min-width: 230px;
    }

    .content-left .left-close,
    .content-left .left-logo,
    .content-right .right-close img {
        height: 25px;
    }

    .content-right {
        position: fixed;
        width: 70%;
        max-width: 369px;
        min-width: 230px;
        padding: 0 15px;
        right: -100%;
        top: 0;
        height: 100vh;
        z-index: 1;
        background: #F9F9F9;
        box-shadow: 1px 1px 13px 0px rgba(64, 68, 73, 0.2);
        transition: right var(--transition);
        padding-bottom: 15px;
    }

    .content-right.open {
        right: 0;
    }

    .content-right .right-close {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .content-middle {
        padding: 0 5%;
    }

    .content-middle h1 {
        font-size: 1.6em;
        margin-top: 0;
    }

    .content-middle h2 {
        font-size: 1.4em;
        border-bottom: 1px solid #eee;
    }

    .content-middle h3 {
        font-size: 1.2em;
    }


}