/* reset */
html,
body,
div,
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
input,
legend,
table,
caption,
tbody,
tfoot,
thead,
textarea,
article,
aside,
audio,
canvas,
figure,
footer,
header,
mark,
menu,
nav,
section,
time,
video {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal
}

body {
    font-size: 14px;
    font-family: 'PingFangSC-Regular', 'PingFang SC', "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
}

article,
aside,
dialog,
figure,
footer,
header,
hgroup,
nav,
section,
blockquote {
    display: block;
}

ul,
ol {
    list-style: none;
}

img {
    border: 0 none;
    vertical-align: top;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

strong,
em,
i {
    /* font-style: normal; */
    /* font-weight: normal; */
}

ins {
    text-decoration: underline;
}

del {
    text-decoration: line-through;
}

mark {
    background: none;
}

input::-ms-clear {
    display: none !important;
}

input,
select,
textarea,
button {
    vertical-align: middle;
    outline: none;
    border: 0;
}

input {
    border-radius: 0;
    box-shadow: none;
}

input[type="button"],
input[type="submit"],
input[type="reset"],
button {
    -webkit-appearance: none;
}

textarea {
    -webkit-appearance: none;
    overflow-y: auto;
    overflow-x: hidden;
    resize: none;
}

/* 如果需要去除掉select元素的默认样式，放开下面的注释即可 */
select {
    appearance: none;
    -ms-appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

select::-ms-expand {
    display: none;
}

a:link,
a:visited {
    text-decoration: none;
    color: #333;
}

a:hover,
a:active {
    text-decoration: none;
}

input:foucs {
    outline: none
}

* {
    box-sizing: border-box;
    word-break: break-all;
}

.w {
    width: 1240px;
    padding: 0 20px;
    margin: 0 auto;
}

 
.flex{
    display: flex;
}
.flex-c{
    align-items: center;
}
.flex-j{
    justify-content: center;
}
.hover:hover {
    color: #0182FF;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.y-button {
    text-align: center;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    transition: all .3s;
    border: 1px solid transparent;
    color: #606266;
    background-color: transparent;
}

.y-button.round {
    border-radius: 20px;
}

.y-button[type='primary'] {
    background: #0182FF;
    color: #fff;
}

.y-button[type='primary']:hover {
    background: #42a1ff;

}

.y-button[type='def']:hover {
    background: #fff;
    border-color: #409eff;
    color: #409eff;
}

.y-button[type='primary']:active {
    background: #006edb;
    opacity: 1;
}

.y-button[type='def'] {
    border-color: #dcdfe6;
}

.y-button[type='def']:hover {
    background: #fff;
    border-color: #409eff;
    color: #409eff;
}

.y-button[type='def']:active {
    border-color: #3a8ee6;
    color: #3a8ee6;
}

/* .y-button[type='def']:focus{
    background: #fff;
    border-color: #3a8ee6;
    color: #3a8ee6;
} */
.y-input {
    border: 1px solid #dcdfe6;
}

.y-input:hover {
    border-color: #c0c4cc;
}

.y-input:focus {
    border-color: #0182FF;
}

.pointer {
    cursor: pointer;
}

.y-message {
    position: fixed;
    left: 50%;
    top: 20px;
    font-size: 14px;
    transform: translateX(-50%);
    max-width: 500px;
    padding: 10px 15px 10px 20px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid transparent;
    z-index: 9999;
    animation: gradually .3s;
    display: flex;
    align-items: center;
}

.y-message i {
    font-size: 20px;
    margin-right: 6px;
}

.y-message-success {
    background-color: #f0f9eb;
    border-color: #e1f3d8;
    color: #67c23a;
}

.y-message-error {
    background-color: #fef0f0;
    border-color: #fde2e2;
    color: #f56c6c;

}

@keyframes gradually {
    from {
        top: 0;
    }

    to {
        top: 20px;
    }
}