/* --------------------- 基础样式 --------------------- */
* {margin: 0;padding: 0;} a {text-decoration: none !important;}

/* 隐藏滚动条     */ ::-webkit-scrollbar { display: none;}
/* 隐藏横向滚动条 */ body {overflow-x: hidden;} 
/* 平滑滚动      */ html { scroll-behavior: smooth; }



/* --------------------- 元素通用样式 --------------------- */
img { border-radius:0.25rem; border-radius: 0.25rem; vertical-align: middle;transition: all 0.3s;}
img:hover {transform: scale(1.01);transition: all 0.3s;}
p {border-radius: 0.25rem;padding: 0.25rem;}



/* --------------------- 链接样式 --------------------- */
a {
    text-decoration: none !important;
    display: inline-block;
    margin: 0.15rem 0.15rem 0.25rem;
    color: rgba(0, 0, 0, 0.9);
    background: rgba(230, 230, 230, 0.99);
    border: 0px solid rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
    padding: 1px;
    text-align: center;
    transition: all 0.3s;
}

a:visited {
    color: rgba(0, 0, 0, 0.9);
}

a:focus {
    color: greenyellow;
    background: pink;
    box-shadow: 0 0 6px 7px rgba(100, 155, 155, 0.67);
}

a:hover {
    color: blue;
    background: rgb(182, 255, 255);
    box-shadow: 0 0 6px 7px rgb(255, 160, 0);
    transform: scale(1.01);
}

a:active {
    color: greenyellow;
    background: rgb(170, 170, 170);
    border: 0px solid rgba(0, 0, 0, 0.67);
    box-shadow: 0 0 0px 0px yellowgreen;
}

/* --------------------- 输入框样式 --------------------- */
input, button {
    background-color: rgb(230, 230, 230);
    margin: 0.25rem;
    padding: 0.25rem;
    border: none;
    border-radius: 0.25rem;
    display: inline-block;
    outline: none;
    transition: 0.3s;
    cursor: pointer;
}

input:hover, button:hover {
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 6px 6px rgb(170, 170, 170);
}

input:active, button:active {
    background-color: rgba(245, 250, 255, 0.99);
    box-shadow: 0 0 3px 4px yellowgreen;
}

input:focus, button:focus {
    background-color: rgba(245, 250, 255, 0.99);
    box-shadow: 0 0 1px 2px yellowgreen;
}

/* --------------------- 列表样式 --------------------- */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

li {
    margin-right: 10px;
    border: 1px solid white;
    border-radius: 0.25rem;
    background-color: silver;
    padding: 0.25rem;
    text-align: center;
    transition: 0.25s;
    cursor: pointer;
}

li:link {
    text-decoration: none;
    margin-top: 0.25rem;
    display: inline-block;
    border-radius: 0.25rem;
    color: rgba(0, 0, 0, 0.9);
    background: rgb(221, 230, 229);
    padding: 0.25rem;
    text-align: center;
    transition: 0.25s;
}

li:visited {
    color: rgba(0, 0, 0, 0.9);
}

li:focus {
    color: deeppink;
    background: rgb(170, 170, 170);
    box-shadow: 0 0 2px 3px silver;
}

li:hover {
    color: blue;
    background-image: linear-gradient(bisque, pink, bisque);
    box-shadow: 0 0 6px 8px silver;
    transition: 0.25s;
}

li:active {
    color: greenyellow;
    background: rgb(170, 170, 170);
    box-shadow: 0 0 0px 0px rgb(170, 170, 170);
}

/* --------------------- 动画样式 --------------------- */
#bear {
    position: absolute;
    bottom: 60px;
    width: 200px;
    height: 100px;
    background: url(z/p/yet/bear.png) no-repeat;
    animation: bear-run 1.25s steps(8) infinite, move-left 3s forwards;
}

@keyframes bear-run {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -1600px 0;
    }
}

@keyframes move-left {
    0% {
        left: 0;
    }
    100% {
        left: 3%;
        transform: translateX(-10%);
    }
}

