body {
    font-family:'Microsoft JhengHei UI'
}

code {
    color: red;
    display: inline-block;
    background-color: #f8f8f8;
    /*padding-top: 2px;*/
    /*padding-bottom: 2px;*/
    padding-left: 5px;
    padding-right: 5px;
}
:root[theme-mode=dark] code {
    background-color: var(--td-gray-color-11);
}

[class*=tdesign-demo-item--grid] .t-col:nth-of-type(2n) > div {
    background: var(--td-brand-color-4);
}

[class*=tdesign-demo-item--grid] .t-col > div {
    min-height: 40px;
    margin-top: 8px;
    margin-bottom: 8px;
    background: var(--td-brand-color-6);
    color: #fff;
    text-align: center;
    line-height: 40px;
}

.t-head-menu__inner {
    padding: 0 24px;
}

.tdesign-demo-item--layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 204px;
    padding: 40px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    overflow: auto;
    background: #ddd;
}

[class*=tdesign-demo-item--layout] > div:not(:first-child) {
    margin-top: 24px;
}

.tdesign-demo-item--layout .t-layout__header, .tdesign-demo-item--layout .t-layout__footer {
    text-align: center;
    color: #fff;
    background-color: var(--td-brand-color-4);
    font-size: var(--td-font-size-body-large);
    line-height: 64px;
}

.tdesign-demo-item--layout .t-layout__content {
    text-align: center;
    color: #fff;
    background: var(--td-brand-color-5);
    height: 100px;
    font-size: var(--td-font-size-body-large);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tdesign-demo-item--layout .t-layout__sider {
    background-color: var(--td-brand-color-6);
    color: #fff;
    font-size: var(--td-font-size-body-large);
    display: flex;
    align-items: center;
    justify-content: center;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url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YxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.demo-wrapper {
    min-height: calc(100vh - var(--footer-height));
    color: var(--text-primary);
    padding-right: var(--content-padding-right);
    border: 1px solid var(--td-border-level-1-color);
    border-radius: 5px;
}

    .demo-wrapper > .content {
        min-height: 150px;
        padding: 40px;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        overflow: auto;
    }
        .demo-wrapper > .content.code{
            padding:30px;
        }

        .demo-wrapper > .content.code-collapse {
            transition-duration: .8s;
            max-height: 0px;
            transition-timing-function: ease;
            overflow: hidden;
        }

        .demo-wrapper > .content.code-expand {
            transition-duration: .8s;
            max-height: 560px;
            transition-timing-function: cubic-bezier(0.82, 0, 1, 0.9);
        }

    .demo-wrapper > .footer {
        border-radius: 0px 0px 5px 5px;
    }

    .demo-wrapper .footer > .btn {
        height: 48px;
        padding: 8px;
        display: flex;
        justify-content: flex-end;
        column-gap: 8px;
        align-items: center;
        box-sizing: border-box;
    }

        .demo-wrapper .footer > .btn > .action {
            height: 32px;
            width: 32px;
            padding: 8px;
            box-sizing: border-box;
            border-radius: var(--border-radius);
            cursor: pointer;
            user-select: none;
            transition: all 0.1s ease 0s;
            display: inline-flex;
            color: var(--text-secondary);
        }

            .demo-wrapper .footer > .btn > .action.active {
                color: var(--text-primary);
                background-color: var(--td-bg-color-container-active);
            }

    .demo-wrapper .code, .demo-wrapper .code pre {
        background-color: #f8f8f8;
    }

:root[theme-mode=dark] .demo-wrapper .code {
    background-color: var(--td-gray-color-11);
}


/* 暗黑模式切换 */
.TDesign-theme-tabs {
    box-sizing: border-box;
    border-radius: var(--td-radius-default);
    background: var(--td-bg-color-component);
    position: relative;
    display: flex;
    justify-content: space-between;
}
    .TDesign-theme-tabs .item{
        padding:2px;
    }
    .TDesign-theme-tabs .t-radio-group .t-radio-button {
        border: none;
    }
    .TDesign-theme-tabs .t-radio-button__label {
        justify-content: center;
        display: flex;
    }
    .TDesign-theme-tabs .t-radio-group.t-radio-group__outline .t-radio-button.t-is-checked {
        background-color: #fff;
        box-shadow: rgb(0 0 0 / 15%) 0px 2px 4px;
        border-radius: var(--td-radius-default);
    }
    .TDesign-theme-tabs .t-radio-group.t-radio-group__outline .sun .t-radio-button.t-is-checked {
        color: rgb(255, 189, 46);
    }
    .TDesign-theme-tabs .t-radio-group.t-radio-group__outline .moon .t-radio-button.t-is-checked {
        color: var(--text-anti);
        background-color: var(--td-gray-color-10);
    }

.t-layout__header .t-head-menu {
    box-shadow: inset 0 -1px 0 var(--td-gray-color-3);
}
:root[theme-mode=dark] .t-layout__header .t-head-menu {
    box-shadow: inset 0 -1px 0 var(--td-gray-color-11);
}
/*.t-layout__content > div {
    background-color: var(--td-bg-color-container)
}*/


.t-layout {
    background-color: var(--td-bg-color-container)
}


*::-webkit-scrollbar { /*滚动条整体样式*/
    width: 8px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
    color: transparent;
}

*::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
    border-radius: 6px;
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    background: var(--td-scrollbar-color);
    opacity: 0.5;
}

*::-webkit-scrollbar-track { /*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    border-radius: 10px;
    background: var(--td-bg-color-page);
    opacity: 0.5;
}

main > div > h2 {
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    margin: 48px 0 8px;
    display: flex;
    align-items: center;
}

main > div > p {
    font-size: 14px;
    line-height: 22px;
    margin: 16px 0 8px;
}