/*
editor.md编辑器的样式配置
 */
* {
    padding: 0;
    margin: 0;
}

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    margin: 0;
    padding: 0;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
    display: block;
}

audio, canvas, video {
    display: inline-block;
}

img {
    border: none;
    vertical-align: middle;
}

.clear {
    *zoom: 1;
}

.clear:before, .clear:after {
    height: 0;
    content: "";
    font-size: 0;
    display: table;
    line-height: 0;
    visibility: hidden;
}

.clear:after {
    clear: both;
}

.hover-shadow-lg {
    transition: all 0.3s ease;
}

.hover-shadow-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

body {
    font-size: 14px;
    color: #666;
    font-family: "Microsoft YaHei", "微软雅黑", Helvetica, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", Helvetica, Tahoma, "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif;
    background: #fff;
    text-align: center;
}

#layout {
    text-align: left;
}

#layout > header, .btns {
    padding: 15px 0;
    width: 90%;
    margin: 0 auto;
}

.btns {
    padding-top: 0;
}

.btns button {
    padding: 2px 8px;
}

#layout > header > h1 {
    font-size: 20px;
    margin-bottom: 10px;
}

.btns button, .btn {
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ddd;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    cursor: pointer;
    -webkit-transition: background 300ms ease-out;
    transition: background 300ms ease-out;
}

.btns button:hover, .btn:hover {
    background: #f6f6f6;
}

.pointer-cursor {
    cursor: pointer;
}

.editormd {
    z-index: 0;
}

.editormd .CodeMirror pre.CodeMirror-placeholder {
    margin: 0px;
    z-index: 2;
    position: absolute;
}

.editormd-preview li {
    list-style: unset !important;
}

/*store template/plugin list*/
.app-list .card-img-top {
    width: 100%;
    height: 260px;
}

/* note style */
.t img {
    max-width: 100% !important;
    height: auto;
}

.t ol li {
    list-style-type: decimal !important;
}

.t ul li {
    list-style-type: disc !important;
}

#modal_t img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/*时间选择器*/
#ui-datepicker-div {
    box-shadow: 0 0 rgb(0 0 0 / 0), 0 0 rgb(0 0 0 / 0), 0 2px 12px -2px rgb(0 0 0 / .12), 0 3px 6px -3px rgb(0 0 0 / .1);
    background: #f8f9fc;
    border-radius: 8px;
}

#ui-datepicker-div a {
    font-family: inherit;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
}

#ui-datepicker-div .ui-widget-header, #ui-datepicker-div .ui-datepicker-header {
    color: #fff;
    background: #4e73df;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

#ui-datepicker-div .ui-datepicker-next span,
#ui-datepicker-div .ui-datepicker-prev span {
    display: none;
}

#ui-datepicker-div .ui-datepicker-prev, #ui-datepicker-div .ui-datepicker-next {
    font-family: 'remixicon' !important;
    font-weight: 900;
    font-size: 1rem;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#ui-datepicker-div .ui-datepicker-title {
    height: 40px;
}

#ui-datepicker-div .ui-datepicker-prev {
    float: left;
}

#ui-datepicker-div .ui-datepicker-prev:before {
    content: '<';
}

#ui-datepicker-div .ui-datepicker-next {
    float: right;
}

#ui-datepicker-div .ui-datepicker-next::before {
    content: '>';
}

#ui-datepicker-div .ui-datepicker-title {
    font-size: 0.875rem;
    line-height: 40px;
    text-align: center;
}
#ui-datepicker-div table th, #ui-datepicker-div table td:hover {
    background-color: transparent;
}

#ui-datepicker-div table td {
    padding: 0;
}

#ui-datepicker-div table th {
    padding: 10px;
    color: #fff;
}
#ui-datepicker-div table th, #ui-datepicker-div table td, #ui-datepicker-div th, #ui-datepicker-div td {
    border: 0;
}

#ui-datepicker-div table tr:first-child th:last-child,
#ui-datepicker-div table tr:first-child th:first-child {
    border-radius: 0;
}

#ui-datepicker-div table th, #ui-datepicker-div th {
    background: #718fea;
}


#ui-datepicker-div td.ui-datepicker-other-month {
    border: transparent;
}

#ui-datepicker-div td .ui-state-default {
    color: var(--muted-color);
    width: auto;
    display: block;
    padding: 6px 12px;
}

#ui-datepicker-div td .ui-state-active {
    color: #fff;
    background-color: #4e73df;
    border-radius: 5px;
    transition: all .15s ease;
}

#ui-datepicker-div td .ui-state-hover {
    color: #fff;
    background-color: #718fea;
    border-radius: 5px;
    transition: all .15s ease;
}

.ui-timepicker-div {
    padding: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.ui-timepicker-div .ui-widget-header {
    margin-bottom: 8px;
}

.ui-timepicker-div dl {
    text-align: left;
}

.ui-timepicker-div dl dt {
    float: left;
    clear: left;
    padding: 0 0 0 5px;
}

.ui-timepicker-div dl dd {
    margin: 0 10px 10px 20%;
}

.ui-timepicker-div td {
    font-size: 90%;
}

.ui-tpicker-grid-label {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.ui-timepicker-div .ui_tpicker_unit_hide {
    display: none;
}

.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input {
    background: none;
    color: inherit;
    border: none;
    outline: none;
    border-bottom: solid 1px rgba(119, 119, 119, 0.2);
    width: 95%;
}

.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input:focus {
    border-bottom-color: #aaa;
}

#ui-datepicker-div select {
    border: 1px solid rgba(119, 119, 119, 0.2);
    padding: 3px 8px;
    margin: 0 4px;
    border-radius: 5px;
    background: #fff;
}

#ui-datepicker-div .ui-datepicker-buttonpane {
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(119, 119, 119, 0.2);
}

#ui-datepicker-div .ui-datepicker-buttonpane button {
    cursor: pointer;
    margin: 0 5px;
    padding: 3px 8px;
    border: 1px solid rgba(119, 119, 119, 0.2);
    background-color: #f8f9fc;
    border-radius: 5px;
}

.scroll-to-top,
    .ai-chat-button {
        position: fixed;
        right: 1.5rem;
        width: 2rem;
        height: 2rem;
        text-align: center;
        color: #fff;
        background: #4E73DF;
        border-radius: 0.25rem;
        line-height: 2rem;
        font-size: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
        z-index: 1050;
    }

    .scroll-to-top {
        bottom: 6rem;
        display: none;
    }

    .ai-chat-button {
        bottom: 3.5rem;
    }

    .scroll-to-top:focus,
    .scroll-to-top:hover,
    .ai-chat-button:focus,
    .ai-chat-button:hover {
        color: white;
        background: #0056b3;
        transform: translateY(-0.25rem);
        text-decoration: none;
    }

    .scroll-to-top i,
    .ai-chat-button span {
        font-weight: 800;
    }

    .custom-control-input {
        cursor: pointer;
    }
    
    .custom-control-label {
        cursor: pointer;
    }
