/*1.字体设置*/
@font-face {
    /* 为载入的字体取名字(随意) */
    font-family: 'MarioFont';
    /* 字体文件地址(相对或者绝对路径都可以) */
    src: url(../font/PingFang SC.ttf) format("truetype");
    /* 定义加粗样式(加粗多少) */
    font-weight: normal;
    /* 定义字体样式(斜体/非斜体) */
    font-style: normal;
    /* 定义显示样式 */
    font-display: block;
}
body {
    font-weight: 600;
}
/*2.一图流设置 页脚与头图透明*/
#footer {
    background: transparent !important;
}
#page-header {
    background: transparent !important;
}

/*3.页面设置*/
:root {
    --theme-color: rgb(49, 119, 220);
    --navfont-color: rgb(255, 255, 255);
    --trans-light: rgba(255, 255, 255, 0.88);
    --trans-dark: rgb(116, 212, 248);
    --border-style: 1px solid rgb(49, 119, 220);
    --backdrop-filter: blur(5px) saturate(150%);
}
/* 首页文章卡片 */
#recent-posts > .recent-post-item {
    background: var(--trans-light);
    backdrop-filter: var(--backdrop-filter);
    border-radius: 15px;
    border: var(--border-style);
}

/* 首页侧栏卡片 */
#aside-content .card-widget {
    background: var(--trans-light);
    backdrop-filter: var(--backdrop-filter);
    border-radius: 15px;
    border: var(--border-style);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    padding: 15px 17px;
    max-width: 318px;
    min-width: 300px;
}
/* 侧边公告栏 欢迎信息 */
#welcome-info {
    background: linear-gradient(45deg, #ffffff, #ffffff);
    border-radius: 18px;
    padding: 8px;
    overflow: hidden;
}
[data-theme="dark"] #welcome-info {
    background: #212121;
}

/* 文章页、归档页、普通页面 */
div#post,
div#page,
div#archive {
    background: var(--trans-light);
    backdrop-filter: var(--backdrop-filter);
    border: var(--border-style);
    border-radius: 16px;
    width: 1000px;
}
/* 全局宽度 */
.layout {
    padding: 40px 15px;
    max-width: 1400px;
}
/* 平板尺寸自适应(不启用侧边栏宽度限制) */
@media screen and (max-width: 900px) {
    .aside-content {
        max-width: none !important;
        padding: 0 5px 0 5px;
    }
}
/* 阅读模式 */
.read-mode #aside-content .card-widget {
    background: rgba(158, 204, 171, 0.5) !important;
}
.read-mode div#post {
    background: rgba(158, 204, 171, 0.5) !important;
}
/* 夜间模式遮罩 */
[data-theme="dark"] #recent-posts > .recent-post-item,
[data-theme="dark"] #aside-content .card-widget,
[data-theme="dark"] div#post,
[data-theme="dark"] div#archive,
[data-theme="dark"] div#page {
    background: var(--trans-dark);
}

/* 夜间模式页脚页头遮罩透明 */
[data-theme="dark"] #footer::before {
    background: transparent !important;
}
[data-theme="dark"] #page-header::before {
    background: transparent !important;
}
/*4.黑色霓虹灯*/
/* 日间模式不生效 */
[data-theme="light"] #site-name,
[data-theme="light"] #site-title {
    animation: light_20px 4s linear infinite;
}
[data-theme="light"] #site-subtitle,
[data-theme="light"] #post-info {
    animation: none;
}
/* 夜间模式生效 */
[data-theme="dark"] #site-name,
[data-theme="dark"] #site-title {
    animation: light_15px 10s linear infinite;
}
[data-theme="dark"] #site-subtitle {
    animation: light_10px 10s linear infinite;
}
[data-theme="dark"] #post-info {
    animation: light_5px 10s linear infinite;
}
/* 关键帧描述 */
@keyframes light_20px {
    0% {
        text-shadow: #49c2ef 0 0 15px;
    }
    12.5% {
        text-shadow: #6cccf2 0 0 15px;
    }
    25% {
        text-shadow: #79cff3 0 0 15px;
    }
    37.5% {
        text-shadow: #79cff3 0 0 15px;
    }
    50% {
        text-shadow: #79cff3 0 0 15px;
    }
    50% {
        text-shadow: #8bf1fb 0 0 15px;
    }
    62.5% {
        text-shadow: #a2dbf6 0 0 15px;
    }
    75% {
        text-shadow: #b6e1f5 0 0 15px;
    }
    87.5% {
        text-shadow: #b6e1f5 0 0 15px;
    }
    100% {
        text-shadow: #a2dbf6 0 0 15px;
    }
}
@keyframes light_15px {
    0% {
        text-shadow: #7d85dc 0 0 15px;
    }
    12.5% {
        text-shadow: #11ee5e 0 0 15px;
    }
    25% {
        text-shadow: #f14747 0 0 15px;
    }
    37.5% {
        text-shadow: #f1a247 0 0 15px;
    }
    50% {
        text-shadow: #f1ee47 0 0 15px;
    }
    50% {
        text-shadow: #b347f1 0 0 15px;
    }
    62.5% {
        text-shadow: #002afa 0 0 15px;
    }
    75% {
        text-shadow: #ed709b 0 0 15px;
    }
    87.5% {
        text-shadow: #39c5bb 0 0 15px;
    }
    100% {
        text-shadow: #5636ed 0 0 15px;
    }
}

@keyframes light_10px {
    0% {
        text-shadow: #5636ed 0 0 10px;
    }
    12.5% {
        text-shadow: #11ee5e 0 0 10px;
    }
    25% {
        text-shadow: #f14747 0 0 10px;
    }
    37.5% {
        text-shadow: #f1a247 0 0 10px;
    }
    50% {
        text-shadow: #f1ee47 0 0 10px;
    }
    50% {
        text-shadow: #b347f1 0 0 10px;
    }
    62.5% {
        text-shadow: #002afa 0 0 10px;
    }
    75% {
        text-shadow: #ed709b 0 0 10px;
    }
    87.5% {
        text-shadow: #39c5bb 0 0 10px;
    }
    100% {
        text-shadow: #5636ed 0 0 10px;
    }
}

@keyframes light_5px {
    0% {
        text-shadow: #5636ed 0 0 5px;
    }
    12.5% {
        text-shadow: #11ee5e 0 0 5px;
    }
    25% {
        text-shadow: #f14747 0 0 5px;
    }
    37.5% {
        text-shadow: #f1a247 0 0 15px;
    }
    50% {
        text-shadow: #f1ee47 0 0 5px;
    }
    50% {
        text-shadow: #b347f1 0 0 5px;
    }
    62.5% {
        text-shadow: #002afa 0 0 5px;
    }
    75% {
        text-shadow: #ed709b 0 0 5px;
    }
    87.5% {
        text-shadow: #39c5bb 0 0 5px;
    }
    100% {
        text-shadow: #5636ed 0 0 5px;
    }
}
/*5.个人卡片渐变色设置*/
/* 侧边栏个人信息卡片动态渐变色 */
#aside-content > .card-widget.card-info {
    background: linear-gradient(
            -45deg,
            #6d9afa,
            #d4cdf6,
            #d6ebff,
            #bb9bfd,
            #f6c5fd
    );
    box-shadow: 0 0 5px rgb(66, 68, 68);
    position: relative;
    background-size: 400% 400%;
    -webkit-animation: Gradient 10s ease infinite;
    -moz-animation: Gradient 10s ease infinite;
    animation: Gradient 10s ease infinite !important;
}
@-webkit-keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@-moz-keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* 黑夜模式适配 */
[data-theme="dark"] #aside-content > .card-widget.card-info {
    background: #191919ee;
}

/*6.实现标题前图标*/
h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
}
/* 设置风车颜色 */
#content-inner.layout h1::before {
    color: #ef50a8;
    margin-left: -2.1rem;
    font-size: 1.3rem;
    margin-top: -0.23rem;
}
#content-inner.layout h2::before {
    color: #fb7061;
    margin-left: -2rem;
    font-size: 1.1rem;
    margin-top: -0.12rem;
}
#content-inner.layout h3::before {
    color: #ffbf00;
    margin-left: -1.9rem;
    font-size: 0.95rem;
    margin-top: -0.09rem;
}
#content-inner.layout h4::before {
    color: #a9e000;
    margin-left: -1.7rem;
    font-size: 0.8rem;
    margin-top: -0.09rem;
}
#content-inner.layout h5::before {
    color: #57c850;
    margin-left: -1.6rem;
    font-size: 0.7rem;
    margin-top: 0rem;
}
#content-inner.layout h6::before {
    color: #5ec1e0;
    margin-left: -1.6rem;
    font-size: 0.66rem;
    margin-top: 0rem;
}

#content-inner.layout h1:hover,
#content-inner.layout h2:hover,
#content-inner.layout h3:hover,
#content-inner.layout h4:hover,
#content-inner.layout h5:hover,
#content-inner.layout h6:hover {
    color: var(--theme-color);
}
#content-inner.layout h1:hover::before,
#content-inner.layout h2:hover::before,
#content-inner.layout h3:hover::before,
#content-inner.layout h4:hover::before,
#content-inner.layout h5:hover::before,
#content-inner.layout h6:hover::before {
    color: var(--theme-color);
}
/*设置文字之间间距，包括评论文字*/
p { margin: 0 0 0 0; }

.layout>div:first-child:not(.recent-posts) {
    -webkit-align-self: flex-start;
    align-self: flex-start;
    -ms-flex-item-align: start;
    padding: 50px 40px
}
/*7.设置头像状态*/
.card-info-avatar .author-status-box {
    position: absolute;
    bottom: 0;
    left: calc(100% - 28px);
    width: 28px;
    height: 28px;
    border: 1px solid #d0d7de;
    border-radius: 2em;
    background-color: #f8f8f8f8;
    transition: 0.4s;
    overflow: hidden;
}

[data-theme="dark"] .card-info-avatar .author-status-box {
    background-color: #222222f2;
    border: 1px solid #5c6060;
}

.card-info-avatar .author-status-box .author-status {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 5px;
}

.card-info-avatar .author-status-box:hover {
    width: 105px;
}

.card-info-avatar .author-status-box:hover .author-status span {
    width: 105px;
    margin-left: 4px;
}

.card-info-avatar .author-status-box .author-status span {
    width: 0;
    font-size: 12px;
    height: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: 0.4s;
}

.card-widget .card-info-avatar {
    display: inline-block;
    position: relative;
}
/*8.修改文章超链接的悬浮效果,修改文章内图片和注释*/
a.article-title:hover{
    background-color: #71B3F4;
    color: #fff !important;
    padding: 2px 6px 2px 6px;
    border-radius: 5px;
}
#article-container p{
    margin: 0.5rem 0;
    letter-spacing: .6px;
    font-size: 1.2rem;
    line-height: 2.2;
    font-weight: 600;
    text-align: left;
}
#article-container a{
    text-decoration: none;
}
#article-container strong{
    font-weight: bold;
    color: #0d6df3;
}
#post #article-container a:hover {
    background-color: #71B3F4;
    color: #fff !important;
    padding: 2px 6px 2px 6px;
    border-radius: 5px;
    text-decoration: none;
 }
#article-container figure:not(.highlight) { /*图注CSS样式根据需要修改,代码块也是figure元素,排除代码块的类highlight*/
    font-size: 13px;
    font-weight: normal;
    color: #808080;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}
#article-container img{
    width:60%;
    height:auto;
    margin-top: 20px;
    margin-bottom: 0;
}
/*首页换页居中显示*/
#pagination {
    width: 100%;
    margin: auto;
}

/*9.修改博客文章标题的字体大小*/
h1 {
    font-size: 200%; /* 使用百分比指定字体大小 */
}
h2 {
    font-size: 180%; /* 使用百分比指定字体大小 */
}
h3 {
    font-size: 160%; /* 使用百分比指定字体大小 */
}
h4 {
    font-size: 140%; /* 使用百分比指定字体大小 */
}
h5 {
    font-size: 120%; /* 使用百分比指定字体大小 */
}
h6 {
    font-size: 105%; /* 使用百分比指定字体大小 */
}
