/*
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;
    }

/* 
扩展的8个徽章颜色样式 - 基于Bootstrap4 

<span class="badge badge-orange">橙色</span>
<span class="badge badge-purple">紫色</span>
<span class="badge badge-cyan">青色</span>
<span class="badge badge-pink">粉色</span>
<span class="badge badge-light-gray">浅灰色</span>
<span class="badge badge-forest">深绿</span>
<span class="badge badge-navy">深蓝</span>
<span class="badge badge-gold">金色</span>

*/

/* 1. 橙色徽章 - 警告/提醒 */
.badge-orange {
    color: #fff;
    background-color: #fd7e14;
}

.badge-orange[href]:hover,
.badge-orange[href]:focus {
    color: #fff;
    background-color: #e8650e;
    text-decoration: none;
}

/* 2. 紫色徽章 - 高级/VIP */
.badge-purple {
    color: #fff;
    background-color: #6f42c1;
}

.badge-purple[href]:hover,
.badge-purple[href]:focus {
    color: #fff;
    background-color: #59359a;
    text-decoration: none;
}

/* 3. 青色徽章 - 信息/通知 */
.badge-cyan {
    color: #fff;
    background-color: #20c997;
}

.badge-cyan[href]:hover,
.badge-cyan[href]:focus {
    color: #fff;
    background-color: #1aa179;
    text-decoration: none;
}

/* 4. 粉色徽章 - 特殊/推荐 */
.badge-pink {
    color: #fff;
    background-color: #e83e8c;
}

.badge-pink[href]:hover,
.badge-pink[href]:focus {
    color: #fff;
    background-color: #d91a72;
    text-decoration: none;
}

/* 5. 浅灰色徽章 - 中性/默认 */
.badge-light-gray {
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.badge-light-gray[href]:hover,
.badge-light-gray[href]:focus {
    color: #495057;
    background-color: #e9ecef;
    text-decoration: none;
}

/* 6. 深绿色徽章 - 环保/自然 */
.badge-forest {
    color: #fff;
    background-color: #198754;
}

.badge-forest[href]:hover,
.badge-forest[href]:focus {
    color: #fff;
    background-color: #146c43;
    text-decoration: none;
}

/* 7. 深蓝色徽章 - 稳重/商务 */
.badge-navy {
    color: #fff;
    background-color: #0d47a1;
}

.badge-navy[href]:hover,
.badge-navy[href]:focus {
    color: #fff;
    background-color: #083570;
    text-decoration: none;
}

/* 8. 金色徽章 - 高端/奖励 */
.badge-gold {
    color: #212529;
    background-color: #ffc107;
}

.badge-gold[href]:hover,
.badge-gold[href]:focus {
    color: #212529;
    background-color: #e0a800;
    text-decoration: none;
}

/* 徽章尺寸变体 */
.badge-lg {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.badge-sm {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

/* 徽章动画效果 */
.badge-pulse {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 徽章阴影效果 */
.badge-shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.badge-shadow:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
