body /* 主体样式 */
{
    background-size: cover;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 50px;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

a /* 链接样式 */
{
    color: #2498db;
    text-decoration: none;
    position: relative;
}
a::after
{
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2498db;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
a:hover::after
{
    transform: scaleX(1);
    transform-origin: bottom left;
}

s /* 删除线 */
{
    color: gray;
    font-size: smaller;
}
h1 /* 一级标题 */
{
    /* 渐变色 */
    background-image: linear-gradient(to right,#ff0000,#ff9900,#e8c414,#76e62c,#00b7ff,#8e44ad);
    color: white;
}
rainbow /* 彩虹字 */
{
    background-image: linear-gradient(to right,#ff0000,#ff9900,#e8c414,#76e62c,#00b7ff,#8e44ad);
    color: white;
}
hr /* 分割线 */
{
    /* 渐变色 */
    background-image: linear-gradient(to right, #ff0000, #ff9900, #e8c414, #76e62c, #00b7ff, #8e44ad);
    height: 3px;
    width: 100%;
    margin: 20px 0;
}
.center
{
    text-align: center;
}
hide
{
    display: none;
}

red
{
    color:#e74c3c;
}
green
{
    color:#52c41a;
}
gold
{
    color:#ffc116;
}
blue
{
    color:#2498db;
}

trans /* 翻译文字 */
{
    font-size:10px;
    color:gray
}

footer /* 页脚 */
{
    background-color: rgba(255, 255, 255, 0.60);
    text-align: center;
    border-radius: 10px;
}

tip /* 提示 */
{
    border: 2px solid;
    border-color:#333;
}

#popup /* 弹窗 */
{
    background-color: #212121;
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px;
    border-radius: 5px;
    max-width: 300px;
    display: none;
    border-color: #555;
    border: 6px solid;
}
#popup type
{
    margin-top:0;
    font-size:18px;
    display: block;
}
#popup text
{
    margin: 5px 0;
    font-size: 16px;
    display: block;
    color: #f8f8f8;
}
#popup intro
{
    margin:5px 0;
    font-size:small;
    display: block;
    color:gray;
}
@keyframes slideIn
{
    from{transform: translateX(120%);}
    to{transform: translateX(0);}
}
@keyframes slideOut
{
    from{transform: translateX(0);}
    to{transform: translateX(120%);}
}



/*
按钮样式
From: https://getcssscan.com/css-buttons-examples Button 57
*/
button
{
    position: relative;
    overflow: hidden;
    border: 1px solid #18181a;
    color: #18181a;
    display: inline-block;
    font-size: 15px;
    line-height: 15px;
    padding: 15px 50px; /* 调整按钮的内边距来改变大小 */
    text-decoration: none;
    cursor: pointer;
    background: #fff;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
button span:first-child
{
    position: relative;
    transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 10;
}
button span:last-child
{
    color: white;
    display: block;
    position: absolute;
    bottom: 0;
    transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 100;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translateY(225%) translateX(-50%);
    height: 14px;
    line-height: 13px;
}
button:after
{
    content: "";
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    transform-origin: bottom center;
    transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
    transform: skewY(9.3deg) scaleY(0);
    z-index: 50;
}
button:hover:after
{
    transform-origin: bottom center;
    transform: skewY(9.3deg) scaleY(2);
}
button:hover span:last-child
{
    transform: translateX(-50%) translateY(-100%);
    opacity: 1;
    transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}



/* 全局 div 样式 */
div
{
    background-color: rgba(255, 255, 255, 0.60);
    margin: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

/* 图片尺寸控制 */
div img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 滚动条样式 */
#main::-webkit-scrollbar
{
	width: 10px;
}
#main::-webkit-scrollbar-track
{
	background-color: #00000000;
}
#main::-webkit-scrollbar-thumb
{
	background-color: #ffffff;
	border-radius: 6px;
	border: 2px solid #00000000;
	background-clip: content-box;
}
#main::-webkit-scrollbar-thumb:hover
{
	background-color: #00aaff;
}