/* Font - Open Sans */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: local('Open Sans Light'),
        local('OpenSans-Light'),
        url(/assets/fonts/OpenSans/300.woff2) format('woff2'),
        url(/assets/fonts/OpenSans/300.woff) format('woff');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300;
    font-display: fallback;
    src: local('Open Sans Light Italic'),
        local('OpenSansLight-Italic'),
        url(/assets/fonts/OpenSans/300i.woff2) format('woff2'),
        url(/assets/fonts/OpenSans/300i.woff) format('woff');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: local('Open Sans'),
        local('OpenSans'),
        url(/assets/fonts/OpenSans/400.woff2) format('woff2'),
        url(/assets/fonts/OpenSans/400.woff) format('woff');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: local('Open Sans Italic'),
        local('OpenSans-Italic'),
        url(/assets/fonts/OpenSans/400i.woff2) format('woff2'),
        url(/assets/fonts/OpenSans/400i.woff) format('woff');
}

/* Lora */
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src:
        local('Lora Regular'),
        local('Lora-Regular'),
        url(/assets/fonts/Lora/400.woff2) format('woff2'),
        url(/assets/fonts/Lora/400.woff) format('woff');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src:
        local('Lora Bold'),
        local('Lora-Bold'),
        url(/assets/fonts/Lora/700.woff2) format('woff2'),
        url(/assets/fonts/Lora/700.woff) format('woff');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/*导航样式*/
.navbar-nav>.nav-item {
    padding-left: 0.5rem;
    padding-right: 0.5rem;

    a {
        color: rgba(255, 255, 255, 0.9);
    }

    a:hover {
        color: rgba(255, 255, 255, 0.75)
    }
}

#body>.archive-title {
    padding: .5rem;
}

/*帖子列表封面图*/
@media (max-width: 767px) {

    body.card #index article .post-card-title,
    body.card #archive article .post-card-title {
        font-size: 1.2rem;
    }

    #body>.archive-title {
        font-size: 1.5rem;
        padding: .5rem;
    }

    #index .post .post-title,
    #archive .post .post-title,
    #post .post .post-title {
        font-size: 1.5rem;
    }

}

@media (max-width: 991px) {
    #body>.archive-title {
        margin-top: 1.3rem;
    }
}

body.card #index article .post-card-title,
body.card #archive article .post-card-title {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

#post,#archive {
    padding: 0;
}

body,
button,
input,
optgroup,
select,
textarea {
    font-family: 'Mirages Custom', 'Merriweather', 'Open Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', 'Segoe UI Emoji', 'Segoe UI Symbol', Helvetica, Arial, sans-serif;
}

.github-box,
.github-box .github-box-title h3 {
    font-family: 'Mirages Custom', 'Merriweather', 'Open Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', 'Segoe UI Emoji', 'Segoe UI Symbol', Helvetica, Arial, sans-serif !important;
}

.aplayer {
    font-family: 'Mirages Custom', 'Myriad Pro', 'Myriad Set Pro', 'Open Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', Helvetica, arial, sans-serif !important;
}

/* Serif */
body.content-lang-en.content-serif .post-content {
    font-family: 'Lora', 'PT Serif', 'Source Serif Pro', Georgia, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', serif;
}

body.content-lang-en.content-serif.serif-fonts .post-content {
    font-family: 'Lora', 'PT Serif', 'Source Serif Pro', 'Noto Serif CJK SC', 'Noto Serif CJK', 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif', 'source-han-serif-sc', 'PT Serif', 'SongTi SC', 'MicroSoft Yahei', serif;
}

body.serif-fonts .post-content,
body.serif-fonts .blog-title {
    font-family: 'Noto Serif CJK SC', 'Noto Serif CJK', 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif', 'source-han-serif-sc', 'PT Serif', 'SongTi SC', 'MicroSoft Yahei', Georgia, serif;
}

.dark-mode-state-indicator {
    position: absolute;
    top: -999em;
    left: -999em;

    z-index: 1;
}

@media (prefers-color-scheme: dark) {
    .dark-mode-state-indicator {
        z-index: 11;
    }
}
/** 页面样式调整 */
.post-buttons a {
    width: -webkit-calc(100% / 2 - .3125rem);
    width: calc(100% / 2 - .3125rem);
}
@media (min-width: 1210px) {
    .navbar>.container-fluid {
        max-width: 1520px;
    }
}

.navbar-brand {
    min-width: 120px;

}

.mr-auto,
.mx-auto {
    margin-right: unset !important;
}


/*分类选中样式*/

.navbar-nav a.category-item-active {
    color: #fff;
    font-weight: 600;
}

.category-list a.category-item-active {
    color: #fff !important;
    font-weight: 600 !important;
}

.fa-sitemap-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.post-card-badge {
    display: inline-block;
    text-align: center;
    width: 200px;
    height: 30px;
    line-height: 27px;
    position: absolute;
    top: 20px;
    right: -64px;
    z-index: 2;
    overflow: hidden;
    color: #fff;
    -ms-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    border: 1px dashed;
    box-shadow: 0 0 0 1px #000, 0px 21px 5px -18px rgba(0, 0, 0, 0.6);
    background: rgb(1, 132, 127, .5);
}

.post-card-badge-red {
    border: 1px dashed;
    background: rgb(244, 63, 94, .5);
}


/*//pc推荐下拉*/
.navbar-recommend-list {
    .dropdown-item {
        height: 40px;
    }

}

@media (max-width: 767px) {
    .post-card-badge {
        top: 3px;
        right: -81px;
    }
}

#body-bottom {
    margin-right: -0.625rem;
    margin-left: 0;
}

#body-bottom>.container {
    padding-right: .4rem;
    padding-left: .4rem;
}

/* 评论及下方容器 和上方内容同宽*/
@media (max-width: 767px) {
    #body-bottom>.container {
        padding-left: .55rem;
        padding-right: .55rem;
    }
}

/*详情页内边距*/
@media (max-width: 767px) {
    .container {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    /*详情最后编辑小屏幕换行*/
    .tags-column {
        flex-direction: column;
    }
}

/*footer导航*/
.icon-item-img :hover {
    transform: scale(1.1);
}

/* 分类卡片*/
body.card.theme-dark #index article .post-card,
body.card.theme-dark #archive article .post-card {
    box-shadow: 0 22px 43px rgba(0, 0, 0, 0.15);
}

/*// pc 导航*/
@media (min-width: 1790px) {
    .navbar>.container-fluid {
        max-width: 1350px;
    }
}

/*首页logo标题*/

.container-fluid .navbar-brand {
    display: -webkit-box;
    /* 必须设置为 -webkit-box 才能使用 line-clamp */
    -webkit-box-orient: vertical;
    /* 垂直方向排列内容 */
    -webkit-line-clamp: 2;
    /* 限制显示两行 */
    overflow: hidden;
    /* 隐藏超出的文本 */
    white-space: normal;
}

body.card #index article .post-card-mask,
body.card #archive article .post-card-mask {
    background: rgba(0, 0, 0, 0.15);
}

/** 分页的输入框等样式 */
.page-navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 公共样式 */
.page-input-li.jump-to-page-li {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 4px 8px;
    list-style: none;
}

/* 标签文字 */
.jump-to-label {
    margin-right: 6px;
    color: #fff;
    white-space: nowrap;
    font-size: 18px;
}

/* 输入框样式 */
.page-jumper-input {
    padding: 10px 16px;
    border: 1px solid #ccc;
    background-color: transparent;
    border-radius: 6px;
    font-size: 18px;
    color: #fff;
    text-align: center;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .page-navigator .btn-primary a {
        padding: 5px 16px;
    }

    .page-input-li.jump-to-page-li {
        align-items: center;
        font-size: 13px;
    }

    .jump-to-label {
        margin-right: 5px;
        font-size: 15px;
    }
    .page-jumper-input {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        font-size: 16px;
        padding: 6px 12px;
    }
    .page-navigator .next {
        margin-right: 0.6rem;
    }
}