/*主题样式*/
@font-face {
    font-family: 'LiciumFont2022';
    src: url('./LiciumFont2022-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LiciumFont2022';
    src: url('./LiciumFont2022-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'LiciumFont2022';
    src: url('./LiciumFont2022-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}


:root {
    font-size: 16px;
    --border-radius: 8px;
}


/* Firefox 默认样式 */
html {
    scrollbar-width: thin;
    scrollbar-color: #ddd #f8f8f8;
}

/* Chrome/Safari/Edge 专用 */

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
}

::-webkit-scrollbar-track {
    background: #f8f8f8;
}



body {
    line-height: 1.5;
    font-size: 1rem;
    font-family: LiciumFont2022, sans-serif;
    overflow: auto;
    margin: 0px;
    max-width: 927px;
}

a {
    color: rgba(90, 124, 171, 1);
}

.figure-box {
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
}



img {
    max-width: 100%;
    max-height: 100%;
}

.p img, p > img, li > img {
    vertical-align: middle;
    max-height: 2em;
    margin: 0 0.15rem;
    width: auto !important;
}

.figure-box > img {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    width: auto !important;
    border-radius: var(--border-radius);
}



.article-content p,
article p,
article .p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}


.topictitle1 {
    font-size: 2.875rem;
    line-height: 4.5rem;
    margin-bottom: 4rem;
    font-weight: normal;
}

.topictitle2 {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 1.25rem;
    font-weight: normal;
}

.topictitle3 {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.topictitle4 {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}



.topictitle1 + article > .topictitle2,
.topictitle2 + article > .topictitle3,
.topictitle3 + article > .topictitle4 {
    margin-top: 0rem;
}


li .p {
    margin-top: 0rem;
    margin-bottom: 0rem;
}

ul,
ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

ul {
    padding-left: 1.2rem;
}

ol {
    padding-left: 1.5rem;
}


li ul,
li ol {
    margin-top: 0rem;
    margin-bottom: 0rem;
}


/* 如果list不用缩进 */


/*ul > li > p:first-child {
    margin-left: -1rem;
    text-indent: 1rem;
}

ul > li > p {
    margin-left: -1rem;
    text-indent: 0rem;
}


ol > li > p:first-child {
    margin-left: -1.2rem;
    text-indent: 1.2rem;
}

ol > li > p {
    margin-left: -1.2rem;
    text-indent: 0rem;
}
*/
/* -------------- */




/* 警告 */
div.note {
    background-color: rgba(248, 248, 248, 1);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
}

div.caution {
    background-color: rgba(255, 245, 238, 1);
}

div.warning {
    background-color: rgba(255, 239, 238, 1);
}

div.attention {
    background-color: rgba(238, 242, 247, 1);
}


div.note p img {
    max-height: 1.875rem;
    vertical-align: middle;
}

div.note p {
    margin-top: 0rem;
    margin-bottom: 0rem;
    color: #000;
    /*  color: rgba(102, 102, 102, 1);*/
}

div.note > p:nth-child(1) {
    font-weight: 500;
}

div.note p:nth-child(2) {
    margin-top: 1rem;
}

div.note > p:only-child {
    font-weight: normal !important;
}

div.note > *:first-child::before {
    content: '';
    width: 1.75rem;
    height: 1.75rem;
    background-image: url("../img/note.svg");
    max-height: 1.875rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    /*减去图标内部左边的空间，使得和下面的文字左边对齐 */
    margin-left: -0.3rem;
    display: inline-block;
}

div.caution > *:first-child::before {
    background-image: url("../img/caution.svg");
}

div.warning > *:first-child::before {
    background-image: url("../img/warning.svg");
}

div.attention > *:first-child::before {
    background-image: url("../img/attention.svg");
}


div.note ul:last-child,
div.note ol:last-child {
    margin-bottom: 0rem;
}

/* 图片 */

figure {
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: 0rem;
    margin-right: 0rem;
}

figcaption {
    /*    padding-top: 1rem;
    padding-bottom: 1rem;*/
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.figure-box {
    margin: 0 auto;
}

/* 表格 */

table {
    width: 100%;
    max-width: 100vw;
    border: solid 1px rgba(179, 179, 179, 1);
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: rgba(0, 0, 0, 0.9);
}

    table thead {
        background-color: rgba(26, 77, 72, 1);
        color: rgba(255, 255, 255, 1);
    }

th,
td {
    padding: 1em;
    border: solid 1px rgba(179, 179, 179, 1);
    border-collapse: collapse;
}

th {
    font-weight: bold;
}

tbody tr th {
    font-weight: normal;
}

.rowsep-1 {
    border-bottom: solid 1px rgba(179, 179, 179, 1);
}

.colsep-1 {
    border-right: solid 1px rgba(179, 179, 179, 1);
}

tbody th {
    background-color: rgba(232, 237, 237, 1);
}

table.callout tr td:nth-child(odd) {
    background-color: rgba(232, 237, 237, 1);
}


tbody tr:nth-child(2n+2) {
    background-color: rgba(232, 237, 237, 0.4);
}

table caption {
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}






/*ow和app的区别对待*/

body[data-env='app'] {
    line-height: 1.5rem;
    color: rgba(0, 0, 0, 0.6);
}

    body[data-env='app'] ol, body[data-env='app'] ul {
        line-height: 1.75rem;
    }


    body[data-env='app'] .header h2 {
        font-size: 1rem;
        line-height: 1.5rem;
    }


    body[data-env='app'] .topictitle1 + article > .topictitle2 {
        margin-top: 0rem !important;
        padding-top: 1rem;
        /*这里用padding，避免和前面的标题margin-bottom重叠*/
    }



    body[data-env='app'] .topictitle1 {
        font-size: 1.25rem;
        line-height: 2rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 500;
        color: rgba(0, 0, 0, 0.9);
    }

    body[data-env='app'] .topictitle2 {
        font-size: 1.125rem;
        line-height: 1.625rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: rgba(25, 25, 25, 1);
    }

    body[data-env='app'] .topictitle3 {
        font-size: 1.125rem;
        line-height: 1.625;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: rgba(25, 25, 25, 1);
    }

    body[data-env='app'] .topictitle4 {
        font-size: 1.125rem;
        line-height: 1.5;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: rgba(25, 25, 25, 1);
    }


    body[data-env='app'] table {
        font-size: 0.875rem;
        line-height: 1.375rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    body[data-env='app'] th,
    body[data-env='app'] td {
        padding: 0.75em;
    }



    body[data-env='app'] div.note {
        font-size: 1rem;
        line-height: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 1rem 1.5rem;
    }

        body[data-env='app'] div.note ol,
        body[data-env='app'] div.note ul {
            line-height: 1.5rem;
        }

        body[data-env='app'] div.note p:nth-child(2) {
            margin-top: 0.75rem;
        }

    body[data-env='app'] .figure-box > img {
        border-radius: 0;
    }
