/*--------------------------------*/
/* 重置样式 
/*--------------------------------*/

html,
body {
    height: 100%;
    /* 文字风格 Sans-serif 各笔画粗细相同，Serif 笔画粗细不同，monospace 等宽体，cursive草书，fantasy梦幻 */
    font-family: 'yyl-font', 'Microsoft YaHei', sans-serif, 'Helvetica Neue', Helvetica, Arial, '黑体', '宋体', Arial;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-size: 14px;
    color: #333;
}

/* 重置各标签的默认样式 */
a,
body,
center,
cite,
code,
dd,
del,
div,
dl,
dt,
em,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hr,
html,
img,
input,
label,
legend,
li,
mark,
ol,
p,
section,
span,
textarea,
time,
td,
th,
ul {
    margin: 0;
    border: 0;
    padding: 0;
    font-style: normal;
    box-sizing: border-box;
    /*  自动换行 */
    word-wrap: break-word;
    /*  强制英文单词断行 */
    word-break: break-all;
}

/*  设置标签为块级分类 */
article,
aside,
details,
fieldset,
figcaption,
figure,
footer,
header,
main,
nav,
section {
    display: block;
}

/* 去除input标签的默认样式 */
button,
input,
textarea {
    appearance: none;
    -webkit-appearance: none;
    font-family: 'yyl-font', 'Microsoft YaHei', sans-serif, 'Helvetica Neue', Helvetica, Arial, '黑体', '宋体', Arial;
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 1em;
    line-height: 1em;
    outline: none;
    background-color: transparent;
}
select {
    font-family: 'yyl-font', 'Microsoft YaHei', sans-serif, 'Helvetica Neue', Helvetica, Arial, '黑体', '宋体', Arial;
}

/*  禁止多文本框手动拖动大小 */
textarea {
    resize: none;
    appearance: none;
    -webkit-appearance: none;
}

/* 去掉按下的阴影盒子 */
input,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
}

/*  清除a标签下划线 */
a,
a:visited {
    text-decoration: none;
}

a:focus,
a:active,
a:hover {
    outline: none;
}

/*  清除列表前面的点 */
ol,
li,
ul {
    list-style: none;
}

/*  清除IE下图片的边框 */
img {
    border-style: none;
    font-size: 0;
}

/*  解决chrome浏览器默认黄色背景问题 */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/*  设置默认滚动条样式 */
::-webkit-input-placeholder {
    color: #afbdcc;
}

:-moz-placeholder {
    color: #afbdcc;
}

::-moz-placeholder {
    color: #afbdcc;
}

:-ms-input-placeholder {
    color: #afbdcc;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

::-webkit-scrollbar-track-piece {
    background-color: #f5f5f5;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 6px;
}

::-webkit-scrollbar-corner {
    background-color: #f5f5f5;
}

::-webkit-resizer {
    background-repeat: no-repeat;
    background-position: bottom right;
}

/*--------------------------------*/
/* 基础样式
/*--------------------------------*/

/* 鼠标样式 */
html,
body,
input,
label,
a:active,
select:active,
button:active,
.cursor-pointer:active {
    cursor: url('/资源/光标/默认.cur'), default !important;
}

html:active,
body:active,
input:active,
label:active,
a,
select,
button,
.cursor-pointer {
    cursor: url('/资源/光标/指针.cur'), pointer !important;
}

.bi-crosshair {
    cursor: url('/资源/光标/十字.cur'), crosshair !important;
}
.bi-crosshair:active {
    cursor: url('/资源/光标/十字.cur'), crosshair !important;
}

/* 禁止复制拖动 */
body,
a,
input,
img {
    user-drag: none;
    user-select: none;
    touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-drag: none;
    -moz-user-select: none;
    -moz-touch-callout: none;
}

/**滚动条 */
html,
.scroll-bar-none {
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
html::-webkit-scrollbar,
.scroll-bar-none::-webkit-scrollbar {
    display: none;
    width: 0;
}

textarea::-webkit-scrollbar,
.scroll-bar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
textarea::-webkit-scrollbar-track,
.scroll-bar::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0);
    box-shadow: inset 0px 0px 0px 0px #ffffff;
    border-radius: 5px;
}
textarea::-webkit-scrollbar-thumb,
.scroll-bar::-webkit-scrollbar-thumb {
    background-color: #c8c8c899;
    box-shadow: inset 0px 0px 0px 0px #ffffff;
    border-radius: 5px;
}

/* 点击特效样式 */
.click-heart {
    width: 10px;
    height: 10px;
    position: fixed;
    background: #f00;
    transform: rotate(45deg);
    z-index: 99999;
}

.click-heart:after,
.click-heart:before {
    content: '';
    width: inherit;
    height: inherit;
    background: inherit;
    border-radius: 50%;
    position: fixed;
}

.click-heart:after {
    top: -5px;
    left: 0;
}

.click-heart:before {
    top: 0;
    left: -5px;
}

/* live2d Widget Dialog 样式 */
.live2d-widget-dialog-container {
    width: 300px;
    height: 120px;
    position: absolute;
    bottom: 65%;
    right: 0;
    transform-origin: right;
    padding: 12px;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.live2d-widget-dialog {
    width: 100%;
    height: 100%;
    color: #917159;
    font-size: 16px;
    padding: 12px;
    border: 2px solid rgb(236, 203, 180);
    background: rgb(252, 248, 244);
    box-sizing: border-box;
    border-radius: 10px;
    transform: rotate(-2deg);
    opacity: 0;
    transition: 200ms opacity;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;
    animation: live2d-widget-dialog-tingle 4s ease-in-out infinite alternate;
}

@keyframes live2d-widget-dialog-tingle {
    0% {
        transform: translate(-1px, 1.5px) rotate(-2deg);
    }
    100% {
        transform: translate(1px, -1.5px) rotate(2deg);
    }
}
