/* 初始化 */

a,
abbr,
acronym,
address,
applet,
area,
article,
aside,
audio,
b,
base,
basefont,
bdi,
bdo,
big,
blockquote,
body,
br,
button,
canvas,
caption,
center,
cite,
code,
col,
colgroup,
datalist,
dd,
del,
details,
dir,
div,
dfn,
dialog,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
font,
footer,
form,
frame,
frameset,
h1,
h2,
h3,
h4,
h5,
h6,
head,
header,
hr,
html,
i,
iframe,
img,
input,
ins,
isindex,
kbd,
keygen,
label,
legend,
li,
link,
map,
mark,
menu,
menuitem,
meta,
meter,
nav,
noscript,
object,
ol,
optgroup,
option,
output,
p,
param,
pre,
progress,
q,
rp,
rt,
ruby,
s,
samp,
script,
section,
select,
small,
source,
span,
strike,
strong,
style,
sub,
summary,
sup,
table,
tbody,
td,
textarea,
tfoot,
th,
thead,
time,
title,
tr,
track,
tt,
u,
ul,
var,
video,
wbr,
xmp {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font: 14px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    border: none;
}

dl,
li,
menu,
ol,
ul {
    list-style: none;
}

button,
input,
select,
textarea {
    box-sizing: border-box;
    outline: none;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    /* color: inherit; */
    color: #000;
}

/* 浮动方式 */

.fl {
    float: left;
}

.fr {
    float: right;
}

.clear {
    overflow: hidden;
    clear: both;
    height: 0;
    font-size: 0;
}

.clearfix::after {
    display: block;
    visibility: hidden;
    clear: both;
    height: 0;
    font-size: 0;
    content: "";
}

/* 定位方式 */

.pr {
    position: relative;
}

.pa {
    position: absolute;
}

.pf {
    position: fixed;
}

.center {
    margin: 0 auto;
}

/* 对齐方式 */

.tal {
    text-align: left;
}

.tac {
    text-align: center;
}

.tar {
    text-align: right;
}

.taj {
    text-align: justify;
}

/* 居中定位 */

.abs-ct {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.abs-cx {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.abs-cy {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* 弹性布局 */

.flex-ct-x {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-ct-y {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex-fs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
}

/* 动画模式 */

.td-camera {
    perspective: 1000;
}

.td-space {
    transform-style: preserve-3d;
}

.td-box {
    backface-visibility: hidden;
}

.gpu-speed {
    transform: translate3d(0, 0, 0);
}

/* 其他 */

.fullscreen {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-at {
    overflow: auto;
    width: 100%;
    height: 100%;
}

.page-fs {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.round {
    border-radius: 100%;
}

/* 滚动条样式 */

::-webkit-scrollbar {
    width: 8px;
    height: 20px;
    background: white;
}

::-webkit-scrollbar-corner,
/* 滚动条角落 */
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
    border-radius: 4px;
}

::-webkit-scrollbar-corner,
::-webkit-scrollbar-track {
    /* 滚动条轨道 */
    background-color: rgba(180, 160, 120, 0.1);
    box-shadow: inset 0 0 1px rgba(180, 160, 120, 0.5);
}

::-webkit-scrollbar-thumb {
    /* 滚动条手柄 */
    background-color: #999;
}

::-webkit-scrollbar-thumb:hover {
    /* 滚动条手柄 */
    background-color: #63c987;
}

/* 公共上中下样式 */

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    flex-shrink: 0;
    height: 0px;
}

.footer {
    flex-shrink: 0;
}

.main {
    flex-grow: 1;
    position: relative;
    width: 100%;
    margin-top: 80px;
    transition: all .2s;
    /* animation: slideUp 1s ease-in-out forwards; */
}

@keyframes slideUp {
    0% {
        -webkit-transform-origin: 0 0;
        transform-origin: 0 0;
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
    100% {
        -webkit-transform-origin: 0 0;
        transform-origin: 0 0;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}