#archives {
    margin: auto;
    margin-top: 100px;
    padding: 20px;
}
#archives .categories-tags {
    margin: auto;
    margin-bottom: 50px;
    max-width: 900px;
    text-align: center;
    width: 100%;
}
#archives .categories-tags span {
    display: inline-block;
    margin: 10px;
}
#archives .categories-tags span .icon {
    color: #fff;
    margin-left: 0;
    margin-right: 10px;
}
#archives .categories-tags span a {
    border: #ffffff80 1px solid;
    border-radius: 10px;
    color: #fff;
    padding: 10px 15px;
    transition: background 0.25s, border 0.25s, color 0.25s;
}
#archives .categories-tags span a:hover {
    background: #fff !important;
    border: #f6c873 1px solid;
    color: #2b1c0f;
}
#archives .category,
#archives .tags .tag,
.article .info .category,
.article .info .tags,
.article .info .tags .tag {
    display: inline-block;
    margin-right: 10px;
}
#archives h3 {
    margin: 10px 0;
}
#crypto {
    margin: 50px 0;
}
#crypto.failure {
    border-color: #ea4a5a;
    color: #ea4a5a;
}
#crypto.failure:focus {
    box-shadow: 0 0 0 3px #ea4a5a4d;
}
#crypto.success {
    border-color: #34d058;
    color: #34d058;
}
#footer {
    font-size: 14px;
    margin-top: 150px;
    padding-bottom: 20px;
    text-align: center;
    width: 100%;
}
#footer #footer-icon {
    color: #f6c873;
    display: inline-block;
    font-size: 18px;
    margin: 0 10px;
}
#footer #footer-wrap {
    border-top: 1px solid #3b2b18;
    color: #f0e0c2;
    margin: auto;
    width: 900px;
}
#footer #footer-wrap div {
    margin: 15px;
}
#home-card {
    width: 300px;
    flex-shrink: 0;
}
#home-card #card-style {
    background: #1c140c;
    border: 1px solid #3b2b18;
    border-radius: 14px;
    box-shadow: 0 16px 34px #00000070;
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    justify-content: center;
    overflow: auto;
    position: sticky;
    text-align: center;
    top: 10vh;
    width: 300px;
}
#home-card #card-div {
    overflow: auto;
    padding: 25px 0;
}
#home-card #card-div .avatar {
    border: #f1f1f1 solid 3px;
    border-radius: 50%;
    height: 140px;
    margin: auto;
    text-align: center;
    width: 140px;
}
#home-card #card-div .avatar img {
    border-radius: 50%;
    height: 100%;
    width: 100%;
}
#home-card #card-div .avatar:hover img {
    transform: rotate(360deg);
}
#home-card #card-div .description {
    margin: 20px auto;
    width: 85%;
}
#home-card #card-div .friend-links .friend-link {
    margin-bottom: 5px;
}
#home-card #card-div .friend-links a {
    border-radius: 5px;
    color: #f5e7cd;
    display: block;
    padding: 8px 0;
}
#home-card #card-div .icon-links .icon-link {
    margin: 5px;
}
#home-card #card-div .icon-links a {
    border-radius: 5px;
    color: #f5e7cd;
    font-size: 18px;
    padding: 5px;
}
#home-card #card-div .icon-links a:hover,
#home-card #card-div .friend-links a:hover,
#home-card #card-div .icon-links,
#home-card #card-div .friend-links {
    border-top: #3b2b18 solid 1px;
    margin: 10px auto;
    padding-top: 10px;
    width: 85%;
}
#home-card #card-div .name {
    font-size: 16px;
    font-weight: bold;
    margin: 20px auto;
}
#home-head,
#home-background,
#home-info {
    display: none;
}

.header-v4 {
    position: relative;
    z-index: 1;
}

@media print {
    .header-v4 {
        display: none;
    }
}

.header-v4__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.header-v4__container--main {
    padding-top: 65px;
    min-height: 160px;
}

@media (min-width: 900px) {
    .header-v4__container--main {
        padding-top: 65px;
        min-height: 160px;
    }
}

.header-v4__content {
    width: 100%;
    max-width: 1000px;
    color: hsl(45, 40%, 100%);
    position: relative;
}

@media (min-width: 900px) {
    .header-v4__content {
        width: calc(100% - 40px);
        max-width: 1000px;
    }
}

.header-v4__row {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.header-v4__row--bar {
    background-color: hsl(45, 20%, 20%);
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 900px) {
    .header-v4__row--bar {
        margin-left: -50px;
        margin-right: -50px;
        padding-left: 50px;
        padding-right: 50px;
    }
}

.header-v4__row--title {
    background-color: hsl(45, 20%, 15%);
    font-size: 14px;
    height: 55px;
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 900px) {
    .header-v4__row--title {
        margin-left: -50px;
        margin-right: -50px;
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 900px) {
    .header-v4__row--title {
        font-size: 20px;
        height: 55px;
    }
}

.header-v4__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff8c00'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    align-self: stretch;
    width: 40px;
    margin-right: 10px;
    flex: none;
    background-size: 75%;
}

.header-v4--help .header-v4__icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff8c00'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

.header-v4__title {
    display: none;
}

@media (min-width: 900px) {
    .header-v4__title {
        display: flex;
    }
}

/* Header Nav V4 Styles */
.header-nav-v4 {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 12px;
    position: relative;
}

@media (min-width: 900px) {
    .header-nav-v4 {
        font-size: 14px;
    }
}

.header-nav-v4--breadcrumb {
    display: flex;
}

.header-nav-v4__item {
    display: flex;
    align-items: baseline;
}

.header-nav-v4--breadcrumb .header-nav-v4__item + .header-nav-v4__item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding-right: 10px;
    color: hsl(45, 40%, 90%);
}

.header-nav-v4__link {
    align-items: baseline;
    display: flex;
    gap: 2px 5px;
    padding: 6px 0;
    position: relative;
    color: hsl(45, 40%, 100%);
    text-decoration: none;
}

@media (min-width: 900px) {
    .header-nav-v4__link {
        padding: 2px 0;
    }
}

.header-nav-v4__link--active {
    color: hsl(45, 40%, 100%);
    font-weight: normal;
}

.header-nav-v4__link::before {
    display: none;
}

@media (min-width: 900px) {
    .header-nav-v4__link::before {
        content: "";
        position: absolute;
        bottom: -2px;
        height: 5px;
        width: 100%;
        border-radius: 10000px;
        background-color: hsl(45, 50%, 45%);
        z-index: 1;
        transition: inherit;
        display: block;
        transform: scaleY(0);
    }
    
    .header-nav-v4__link--active::before {
        transform: scaleY(1);
    }
}

.fake-bold {
    font-weight: normal;
}

/* Osu Page Styles - 完全按照 osu! 源代码实现 */
.osu-page {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    flex: none;
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

@media (min-width: 900px) {
    .osu-page {
        width: calc(100% - 40px);
        max-width: 1000px;
    }
}

.osu-page--wiki {
    background-color: hsl(45, 10%, 15%);
    color: hsl(45, 40%, 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    font-size: 14px;
}

.osu-page--wiki-main {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
}

@media (min-width: 900px) {
    .osu-page--wiki-main {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Wiki Page Styles */
.wiki-page {
    display: grid;
}

.wiki-page__content {
    min-width: 0;
    padding: 20px 10px;
}

@media (min-width: 900px) {
    .wiki-page__content {
        padding: 20px 50px;
    }
}

/* About Page Styles */
.about-content {
    color: hsl(45, 40%, 100%);
    line-height: 1.7;
    margin-bottom: 40px;
}

.about-content h1 {
    color: hsl(45, 40%, 100%);
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 20px;
}

.about-content h2 {
    color: hsl(45, 40%, 100%);
    font-size: 20px;
    font-weight: 300;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-content h3 {
    color: hsl(45, 40%, 100%);
    font-size: 18px;
    font-weight: 300;
    margin-top: 20px;
    margin-bottom: 10px;
}

.about-content p {
    color: hsl(45, 40%, 100%);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Developer Cards Styles */
.developer-cards {
    display: grid;
    grid-gap: 20px;
    margin-top: 40px;
}

@media (min-width: 900px) {
    .developer-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.developer-card {
    background: hsl(45, 10%, 20%);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    padding: 30px;
    text-align: center;
    transition: box-shadow 0.25s, transform 0.25s;
}

.developer-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.developer-card__avatar {
    margin-bottom: 20px;
}

.developer-card__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid hsl(45, 50%, 45%);
}

.developer-card__info {
    color: hsl(45, 40%, 100%);
}

.developer-card__name {
    color: hsl(45, 100%, 70%);
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 8px;
}

.developer-card__role {
    color: hsl(45, 40%, 90%);
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 15px;
}

.developer-card__description {
    color: hsl(45, 40%, 100%);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Archive Page Styles */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.archive-item {
    background: hsl(45, 10%, 20%);
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.25s, transform 0.25s;
}

.archive-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.archive-item__date {
    color: hsl(45, 40%, 90%);
    font-size: 13px;
    margin-bottom: 10px;
}

.archive-item__title {
    margin: 0 0 10px 0;
}

.archive-item__title a {
    color: hsl(45, 40%, 100%);
    font-size: 18px;
    font-weight: 300;
    text-decoration: none;
}

.archive-item__title a:hover {
    color: hsl(45, 100%, 70%);
}

.archive-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.archive-item__category a,
.archive-item__tags a {
    color: hsl(45, 100%, 70%);
    text-decoration: none;
}

.archive-item__category a:hover,
.archive-item__tags a:hover {
    color: hsl(45, 100%, 80%);
}

/* Category Page Styles */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-item {
    background: hsl(45, 10%, 20%);
    border-radius: 10px;
    padding: 25px;
}

.category-item__title {
    margin: 0 0 20px 0;
}

.category-item__title a {
    color: hsl(45, 100%, 70%);
    font-size: 24px;
    font-weight: 300;
    text-decoration: none;
}

.category-item__title a:hover {
    color: hsl(45, 100%, 80%);
}

.category-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-post {
    padding: 15px;
    background: hsl(45, 10%, 15%);
    border-radius: 8px;
    transition: background-color 0.25s;
}

.category-post:hover {
    background: hsl(45, 10%, 18%);
}

.category-post__date {
    color: hsl(45, 40%, 90%);
    font-size: 12px;
    margin-bottom: 8px;
}

.category-post__title {
    margin: 0;
}

.category-post__title a {
    color: hsl(45, 40%, 100%);
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
}

.category-post__title a:hover {
    color: hsl(45, 100%, 70%);
}

/* Tag Page Styles */
.tag-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tag-item {
    background: hsl(45, 10%, 20%);
    border-radius: 10px;
    padding: 25px;
}

.tag-item__title {
    margin: 0 0 20px 0;
}

.tag-item__title a {
    color: hsl(45, 100%, 70%);
    font-size: 24px;
    font-weight: 300;
    text-decoration: none;
}

.tag-item__title a:hover {
    color: hsl(45, 100%, 80%);
}

.tag-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tag-post {
    padding: 15px;
    background: hsl(45, 10%, 15%);
    border-radius: 8px;
    transition: background-color 0.25s;
}

.tag-post:hover {
    background: hsl(45, 10%, 18%);
}

.tag-post__date {
    color: hsl(45, 40%, 90%);
    font-size: 12px;
    margin-bottom: 8px;
}

.tag-post__title {
    margin: 0;
}

.tag-post__title a {
    color: hsl(45, 40%, 100%);
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
}

.tag-post__title a:hover {
    color: hsl(45, 100%, 70%);
}

/* Article Page Styles */
.wiki-article {
    color: hsl(45, 40%, 100%);
}

.wiki-article__header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid hsl(45, 10%, 25%);
}

.wiki-article__title {
    color: hsl(45, 40%, 100%);
    font-size: 30px;
    font-weight: 300;
    margin: 0 0 15px 0;
}

.wiki-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: hsl(45, 40%, 90%);
}

.wiki-article__date,
.wiki-article__category a,
.wiki-article__tags a {
    color: hsl(45, 40%, 90%);
    text-decoration: none;
}

.wiki-article__category a:hover,
.wiki-article__tags a:hover {
    color: hsl(45, 100%, 70%);
}

.wiki-article__content {
    line-height: 1.7;
    font-size: 14px;
}

.wiki-article__content .content {
    color: hsl(45, 40%, 100%);
}

.wiki-article__content h1,
.wiki-article__content h2,
.wiki-article__content h3,
.wiki-article__content h4,
.wiki-article__content h5,
.wiki-article__content h6 {
    color: hsl(45, 40%, 100%);
    font-weight: 300;
    margin-top: 25px;
    margin-bottom: 15px;
}

.wiki-article__content h1 {
    font-size: 28px;
}

.wiki-article__content h2 {
    font-size: 24px;
}

.wiki-article__content h3 {
    font-size: 20px;
}

.wiki-article__content a {
    color: hsl(45, 100%, 70%);
    text-decoration: none;
}

.wiki-article__content a:hover {
    color: hsl(45, 100%, 80%);
    text-decoration: underline;
}

.wiki-article__content code {
    background: hsl(45, 10%, 25%);
    color: hsl(45, 100%, 70%);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.wiki-article__content pre {
    position: relative;
    background: #ffffff;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 25px 0;
}

.wiki-article__content pre::before {
    content: attr(data-lang);
    display: block;
    background: hsl(45, 50%, 45%);
    color: hsl(45, 40%, 100%);
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px 10px 0 0;
    text-transform: uppercase;
}

.wiki-article__content pre code {
    display: block;
    background: #ffffff;
    color: #333333;
    padding: 15px 20px;
    margin: 0;
    overflow-x: auto;
    font-family: "Fira Code", "Consolas", "Monaco", monospace;
    font-size: 14px;
    line-height: 1.6;
}

.wiki-article__content pre .copycode {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    color: hsl(45, 50%, 45%);
    font-size: 14px;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 10;
}

.wiki-article__content pre .copycode:hover {
    background: hsl(45, 50%, 45%);
    color: hsl(45, 40%, 100%);
    transform: scale(1.05);
}

.wiki-article__content pre .copycode:active {
    transform: scale(0.95);
}

.wiki-article__content blockquote {
    border-left: 4px solid hsl(45, 50%, 45%);
    padding-left: 20px;
    margin: 20px 0;
    color: hsl(45, 40%, 90%);
}

.wiki-article__content ul,
.wiki-article__content ol {
    padding-left: 30px;
    margin: 15px 0;
}

.wiki-article__content li {
    margin: 8px 0;
}

.wiki-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.wiki-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.wiki-article__content th,
.wiki-article__content td {
    padding: 10px;
    border: 1px solid hsl(45, 10%, 25%);
    text-align: left;
}

.wiki-article__content th {
    background: hsl(45, 10%, 20%);
    font-weight: 300;
}

.wiki-article__comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid hsl(45, 10%, 25%);
}

/* Wiki Search Styles */
.wiki-search {
    padding-top: 10px;
    z-index: 1;
    position: relative;
}

.wiki-search__bar {
    display: flex;
    flex-direction: row;
    font-size: 18px;
    background-color: hsl(45, 10%, 10%);
    border: 1px solid hsl(45, 10%, 10%);
}

.wiki-search__bar:focus-within {
    box-shadow: 0 0 10px hsl(45, 50%, 45%);
    border: 1px solid hsl(45, 50%, 45%);
}

.wiki-search__input {
    background: none;
    border: none;
    outline: none;
    color: hsl(45, 40%, 100%);
    flex: 1;
    padding: 13px 0 13px 20px;
    font-size: 18px;
}

.wiki-search__input::placeholder {
    color: hsl(45, 40%, 90%);
}

.wiki-search__button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    outline: none;
    color: hsl(45, 40%, 100%);
    margin: 0 20px 0 10px;
    cursor: pointer;
    padding: 0;
}

.wiki-search__button i {
    font-size: 18px;
}

/* Wiki Main Page Styles */
.wiki-main-page__blurb {
    font-size: 12px;
    text-align: center;
    font-weight: 300;
    color: hsl(45, 40%, 100%);
    padding-top: 30px;
}

.wiki-main-page__panels {
    display: grid;
    grid-gap: 7px;
    padding-top: 45px;
}

@media (min-width: 900px) {
    .wiki-main-page__panels {
        grid-template-columns: 1fr 1fr;
    }
}

.wiki-content {
    width: 100%;
}

.wiki-content #home-posts {
    width: 100%;
    margin: 0;
    display: grid;
    grid-gap: 7px;
}

@media (min-width: 900px) {
    .wiki-content #home-posts {
        grid-template-columns: 1fr 1fr;
    }
}

.wiki-pagination {
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
}

.wiki-pagination .page-current {
    align-items: center;
    display: flex;
    font-weight: bold;
    justify-content: center;
    text-align: center;
    width: 100%;
}

#home-posts .page-current {
    align-items: center;
    display: flex;
    font-weight: bold;
    justify-content: center;
    margin-top: 50px;
    text-align: center;
    width: 100%;
}
.wiki-pagination .page-current .current,
#home-posts .page-current .current {
    border-radius: 5px;
    color: hsl(45, 40%, 100%);
    background: hsl(45, 50%, 45%);
    display: inline-block;
    height: 35px;
    line-height: 35px;
    margin: 0 7px;
    padding: 5px;
    width: 35px;
    transition: background-color 0.2s, transform 0.2s;
}

.wiki-pagination .page-current .page-num,
.wiki-pagination .page-current .page-omit,
#home-posts .page-current .page-num,
#home-posts .page-current .page-omit {
    border-radius: 5px;
    display: inline-block;
    height: 35px;
    line-height: 35px;
    margin: 0 7px;
    padding: 5px;
    width: 35px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.wiki-pagination .page-current a,
#home-posts .page-current a {
    color: hsl(45, 40%, 90%);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.wiki-pagination .page-current a:hover,
#home-posts .page-current a:hover {
    color: hsl(45, 100%, 70%);
    background-color: hsl(45, 10%, 25%);
    transform: scale(1.1);
}

.wiki-pagination .page-current a:active,
#home-posts .page-current a:active {
    transform: scale(0.95);
    background-color: hsl(45, 50%, 45%);
    color: hsl(45, 40%, 100%);
}
#home-posts .post {
    background: hsl(45, 10%, 20%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
    padding: 15px;
    text-align: center;
}
#home-posts .post .category-and-date {
    color: hsl(45, 40%, 100%);
    margin-top: 8px;
    text-align: center;
    width: 100%;
    font-size: 13px;
}
#home-posts .post .category-and-date .category {
    display: inline-block;
    margin-right: 25px;
}
#home-posts .post .category-and-date .category a,
#archives a,
#archives .tag-icon,
#archives .item-time,
#archives .categories-tags span a:hover .icon,
.article .info a {
    color: hsl(45, 100%, 70%);
}
#home-posts .post .category-and-date .date,
#archives .tags,
#menu #desktop-menu a span {
    display: inline-block;
}
#home-posts .post .category-and-date .special {
    display: inline-block;
    margin-left: 25px;
}
#home-posts .post .go-post {
    display: none;
}
#home-posts .post .description {
    padding: 8px 0 !important;
    font-size: 13px;
    font-weight: 700;
    color: hsl(45, 40%, 100%);
    text-align: left;
    line-height: 1.5;
    margin: 0;
    max-height: 7.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
#home-posts .post .post-tags .tag {
    display: inline-block;
    font-weight: bold;
    margin-right: 10px;
}
#home-posts .post .post-tags a {
    font-size: 14px;
}
#home-posts .post .post-tags,
#archives .info,
.article .info {
    line-height: 1.7;
}
#home-posts .post-title {
    color: hsl(45, 40%, 100%);
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    font-style: normal;
    margin-bottom: 8px;
}

#home-posts .post-title a {
    color: hsl(45, 40%, 100%);
    text-decoration: none;
}

#home-posts .post-title a:hover {
    color: hsl(45, 100%, 70%);
}

#home-posts .post:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
#home-posts-wrap {
    display: none;
}
#home-posts-wrap,
#archives,
.article,
#footer #footer-wrap {
    box-sizing: border-box;
}
#loading {
    align-items: center;
    background: #0e0805;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    word-break: keep-all;
    z-index: 2147483647;
}
#loading h2,
#loading p,
#loading img {
    margin: 10px;
}
#loading img {
    border-radius: 0;
    height: 50px;
}
#loading-circle {
    align-items: center;
    border: 10px solid #f6c873;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 50vmin;
    justify-content: center;
    padding: 50px;
    text-align: center;
    width: 50vmin;
}
#main {
    margin-right: calc(100% - 100vw);
    position: relative;
}


/* Header V4 Background - 完全按照 osu! 源代码实现 */
.header-v4__bg-container {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: hsl(45, 20%, 15%);
}

.header-v4__bg {
    margin: auto;
    width: 100%;
    max-width: 1600px;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.header-v4--help .header-v4__bg {
    background-image: url("/images/wiki-header.jpg");
}

.header-v4__bg::before {
    content: "";
    background-image: linear-gradient(
        to right,
        hsl(45, 20%, 15%),
        transparent 200px,
        transparent 1400px,
        hsl(45, 20%, 15%) 1600px
    );
    background-position: center;
    height: 100%;
    width: 1600px;
    display: block;
    flex: none;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-v4--help .header-v4__bg {
        background-image: url("/images/wiki-header@2x.jpg");
    }
}
#menu {
    background: rgba(20, 15, 12, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    line-height: 50px;
    position: fixed;
    top: 0;
    transition: background 0.25s ease-out, top 0.25s ease-out;
    width: 100vw;
    z-index: 1005;
}

#menu #desktop-menu,
#menu #mobile-menu {
    position: relative;
    z-index: 1;
}
#menu #desktop-menu {
    height: 50px;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
#menu #desktop-menu .title {
    color: #ff8c00;
    display: inline-block;
    margin-right: 20px;
    font-size: 16px;
    font-weight: 600;
}
#menu #desktop-menu a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    letter-spacing: 0.02em;
    text-decoration: none;
    position: relative;
    padding: 6px 10px;
    transition: color 0.2s ease;
}

#menu #desktop-menu a i {
    color: #ffffff;
    margin-right: 6px;
}

#menu #desktop-menu a:hover {
    color: #ffffff;
}

#menu #desktop-menu a:hover i {
    color: #ffffff;
}

#menu #desktop-menu a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 3px;
    background-color: #ff8c00;
    border-radius: 10px;
}
#menu #mobile-menu {
    min-height: 50px;
    text-align: center;
}
#menu #mobile-menu .items {
    padding: 10px 0 20px;
    z-index: 1002;
}
#menu #mobile-menu .items .item {
    display: flex;
    justify-content: center;
    margin: auto;
    min-width: 200px;
    width: 80%;
}
#menu #mobile-menu .items a {
    color: #f5e7cd;
}
#menu #mobile-menu .title {
    color: #f6c873;
    cursor: pointer;
    z-index: 1003;
}
#menu-curtain {
    background: #0003;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}
#menu.hidden {
    top: -50px;
}
#menu.menu-color {
    background: linear-gradient(90deg, #0b0704cc, #0f0a06cc);
}
#menu.menu-color #desktop-menu a,
#menu.menu-color #mobile-menu a,
#menu.menu-color #mobile-menu .title {
    color: #fff;
}
#preview {
    align-items: center;
    background-color: #fffc;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 1005;
}
#preview-content {
    box-shadow: 0 0 50px 10px #d9d9d980;
    margin: auto;
    max-height: 95%;
    max-width: 95%;
}
#search-bar {
    margin-bottom: 50px;
    z-index: 1000;
}
#timeline-wrap {
    display: flex;
    flex-direction: column-reverse;
}
:root {
    --osu-gold: #e5b45f;
    --osu-gold-strong: #f6c873;
    --osu-amber: #c68b2f;
    --osu-brown: #1a1209;
    --glass: rgba(255, 255, 255, 0.06);
    --text-main: #f5f0e6;
    --accent: var(--osu-gold-strong);
    --accent-strong: var(--osu-amber);
    --accent-dark: #2b1c0f;
    --osu-pink: var(--accent);
}
* {
    margin: 0;
    padding: 0;
    position: relative;
    scrollbar-color: #ff8c00 #1a1a1a;
    scrollbar-width: thin;
    word-wrap: break-word;
}
.article {
    font-size: 15px;
    margin: auto;
    margin-top: 100px;
    padding: 20px;
}
.article .content {
    margin: 50px 0;
}
.article .info .date {
    color: #f0e0c2;
    display: inline-block;
    margin-right: 10px;
}
.code-content {
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    padding: 15px 20px;
    white-space: pre;
    background: hsl(45, 10%, 20%);
    color: hsl(45, 40%, 100%);
    font-family: "Fira Code", "Consolas", "Monaco", monospace;
}
.comment iframe,
body::-webkit-scrollbar-track {
    border-radius: 0;
}
.content {
    transition: opacity 0.25s;
}
.content img,
.content video,
.content audio,
.content iframe {
    display: block;
    margin: 15px auto;
    max-width: 75%;
    border: 1px solid #3b2b18;
}
.copycode {
    position: absolute;
    top: 8px;
    right: 8px;
    background: hsl(45, 10%, 25%);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    color: hsl(45, 40%, 90%);
    font-size: 14px;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copycode:hover {
    background: hsl(45, 50%, 45%);
    color: hsl(45, 40%, 100%);
    transform: scale(1.05);
}

.copycode:active {
    transform: scale(0.95);
}

.copycode i {
    padding: 0;
    position: static;
    transition: opacity 0.2s, transform 0.2s;
}

.copycode.copied i {
    transform: scale(1.1);
}

.copycode.copied i:first-child,
.copycode:not(.copied) i:last-child {
    opacity: 0;
}
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s;
}
.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}
.hljs-ln-code {
    padding-left: 20px !important;
}

/* Code Block Styles - 美化代码块 */
pre {
    position: relative;
    background: hsl(45, 10%, 20%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 25px 0;
    overflow: hidden;
    white-space: normal;
}

pre .language {
    position: absolute;
    top: 0;
    left: 0;
    background: hsl(45, 50%, 45%);
    color: hsl(45, 40%, 100%);
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px 0 10px 0;
    text-transform: uppercase;
    z-index: 5;
    user-select: none;
}

pre .code-content {
    background: hsl(45, 10%, 20%);
    color: hsl(45, 40%, 100%);
    padding: 15px 20px;
    margin: 0;
    overflow-x: auto;
    font-family: "Fira Code", "Consolas", "Monaco", monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
    border-radius: 0 0 10px 10px;
}

pre .hljs-ln-numbers {
    color: hsl(45, 40%, 70%);
    background: hsl(45, 10%, 15%);
    padding-right: 15px;
    text-align: right;
    user-select: none;
    border-right: 1px solid hsl(45, 10%, 25%);
}

pre .hljs-ln-code {
    padding-left: 15px !important;
    color: hsl(45, 40%, 100%);
}

/* Highlight.js 语法高亮颜色调整 */
pre .hljs-string,
pre .hljs-attr {
    color: hsl(45, 100%, 70%);
    background: hsla(45, 50%, 45%, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

pre .hljs-keyword {
    color: #ff6b9d;
    font-weight: 600;
}

pre .hljs-function,
pre .hljs-title {
    color: #c792ea;
}

pre .hljs-number {
    color: #82aaff;
}

pre .hljs-comment {
    color: hsl(45, 40%, 60%);
    font-style: italic;
}

pre .hljs-variable,
pre .hljs-params {
    color: #ffcb6b;
}

pre .hljs-built_in,
pre .hljs-builtin-name {
    color: #82aaff;
}

pre .hljs-property,
pre .hljs-attribute {
    color: #c792ea;
}

pre .hljs-literal {
    color: #ff5370;
}

pre .hljs-type {
    color: #ffcb6b;
}

.hljs-ln-numbers {
    border-right: 1px solid #ccc;
    color: #ccc;
    padding-right: 10px !important;
    text-align: right;
    vertical-align: top;
}
.icon {
    color: #f0e0c2;
    margin-right: 5px;
}
.input {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 50px;
    box-sizing: border-box;
    color: #000;
    display: block;
    font-size: 15px;
    height: 50px;
    text-indent: 20px;
    transition: background 0.25s, border 0.25s, box-shadow 0.25s;
    width: 100%;
}
.input:focus {
    background: #fff;
    border-color: #0969da;
    box-shadow: 0 0 0 3px #0969da4d;
    outline: none;
}
.input:hover {
    background: #fff;
}
.into-enter-active {
    transition: opacity 0.5s, transform 0.5s;
}
.into-enter-from {
    opacity: 0;
    transform: scale(1.1);
}
.katex {
    white-space: normal !important;
}
.language {
    background: hsl(45, 50%, 45%);
    border-radius: 10px 0 10px 0;
    color: hsl(45, 40%, 100%);
    font-size: 12px;
    font-weight: 500;
    left: 0;
    padding: 8px 15px;
    position: absolute;
    top: 0;
    text-transform: uppercase;
    z-index: 5;
    user-select: none;
}
.page-num,
.icon-link a,
.friend-link a {
    transition: background 0.25s, color 0.25s;
}
.page-num:hover,
.icon-link a:hover,
.friend-link a:hover,
.categories-tags a:hover,
.go-post:hover {
    opacity: 1;
}
.slide-enter-active,
.slide-leave-active {
    transition: margin-top 0.3s, opacity 0.3s;
}
.slide-enter-from,
.slide-leave-to {
    margin-top: -300px;
    opacity: 0;
}
.timeline {
    margin-bottom: 30px;
    transition: margin-top 0.5s, opacity 0.3s, visibility 0.3s;
}
.timeline-content {
    background: #fff;
    border: 1px solid #0002;
    border-radius: 3px;
    margin-left: 17.5px;
    padding: 24px;
    transition: box-shadow 0.5s;
}
.timeline-content:hover {
    box-shadow: 0 2px 8px #00000017;
}
.timeline-tail {
    background: #f6c873;
    border: 2px solid #3b2b18;
    border-radius: 50%;
    height: 7px;
    position: absolute;
    width: 7px;
}
::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}
::-webkit-scrollbar-thumb {
    background: #ff8c00
        linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.3) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.3) 75%,
            transparent 75%,
            transparent
        );
    border: 3px solid #1a1a1a;
    border-radius: 100px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 100px;
}
::selection {
    background-color: rgba(255, 140, 0, 0.3);
    color: unset;
}
a {
    color: #ff8c00;
    text-decoration: none;
}
a:hover,
.content .copycode:hover {
    opacity: 0.8;
}
audio,
button,
iframe,
img,
video,
#home-head,
#menu,
.categories-tags a,
.copycode,
.friend-link a,
.go-post,
.hljs-ln-numbers,
.icon-link a,
.katex,
.language,
.page-current {
    user-select: none;
}
b,
strong {
    font-weight: bold;
    line-height: 2.5;
}
blockquote {
    background: rgba(40, 40, 40, 0.5);
    border-left: 3px solid #ff8c00;
    border-radius: 3px;
    margin: 15px 0;
    overflow: auto;
    padding: 0 15px;
}
body {
    background-color: hsl(45, 10%, 10%);
    color: hsl(45, 40%, 100%);
    font: 500 14px Lexend, "Noto Sans SC", sans-serif;
    overflow-x: hidden;
    width: 100%;
}
body::after {
    display: none;
}
code {
    background: #3b2b1833;
    border-radius: 4px;
    line-height: 2.5;
    padding: 4px 8px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ff8c00;
    font-weight: bold;
    margin: 15px 0;
    word-break: keep-all;
}
h1 {
    font-size: 30px;
}
h2 {
    font-size: 27px;
}
h3 {
    font-size: 24px;
}
h4 {
    font-size: 21px;
}
h5 {
    font-size: 18px;
}
h6 {
    font-size: 15px;
}
hr {
    border-style: dashed none none;
    border-width: 1.5px;
}
img,
video,
audio,
iframe {
    border-radius: 10px;
}
mark {
    background: #fff13360;
    border-radius: 4px;
    color: unset;
    line-height: 2.5;
    padding: 4px 8px;
}
p,
ul,
ol {
    line-height: 1.7;
    margin: 15px 0;
}
pre {
    border: 1px solid #ebeef5;
    border-radius: 15px;
    box-shadow: 0 2px 12px 0 #0000001a;
    margin: 25px 0;
    overflow: hidden;
    white-space: normal;
}
code:not(pre code),
.hljs:not(pre .hljs),
.input,
.language {
    font-family: "Fira Code", "Noto Sans SC", monospace;
}
table:not(.hljs-ln) {
    margin: 15px 0;
}
table:not(.hljs-ln) td:nth-child(even) {
    background: #3b2b1830;
}
table:not(.hljs-ln) td:nth-child(odd) {
    background: #2b1c0f2e;
}
table:not(.hljs-ln) th {
    background: #3b2b18;
}
table:not(.hljs-ln) tr th,
table:not(.hljs-ln) tr td {
    border-radius: 3px;
    padding: 10px 20px;
}
ul li,
ol li {
    margin: 8px 0;
}
@keyframes loop1 {
    from {
        transform: rotate(30deg);
    }
    to {
        transform: rotate(390deg);
    }
}
@keyframes loop2 {
    from {
        transform: rotate(60deg);
    }
    to {
        transform: rotate(420deg);
    }
}
@keyframes loop3 {
    from {
        transform: rotate(90deg);
    }
    to {
        transform: rotate(450deg);
    }
}
@keyframes loop4 {
    from {
        transform: rotate(120deg);
    }
    to {
        transform: rotate(480deg);
    }
}
@media (min-width: 900px) {
    .wiki-main-panel {
        padding: 40px 50px 50px;
    }
    .wiki-content #home-posts {
        width: 100%;
    }
    .wiki-content #home-posts .post {
        margin-bottom: 0;
        padding: 15px !important;
    }
    .wiki-content #home-posts .post .description {
        padding: 8px 0 !important;
        font-size: 13px;
        font-weight: 700;
        color: hsl(45, 40%, 100%);
        text-align: left;
        line-height: 1.5;
        margin: 0;
        max-height: 7.5em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }
    #menu #desktop-menu {
        display: block;
    }
    #menu #mobile-menu {
        display: none;
    }
    .article,
    #archives,
    #footer #footer-wrap {
        width: 1040px;
    }
    ul,
    ol {
        padding-left: 40px;
    }
}
@media (min-width: 900px) and (max-width: 1200px) {
    .wiki-main-panel {
        max-width: 960px;
    }
}
@media (max-width: 900px) {
    .wiki-main-panel {
        margin: 20px auto;
        padding: 24px 20px 30px;
        width: calc(100% - 20px);
    }
    .wiki-main-search {
        padding: 14px 16px;
        max-width: 100%;
    }
    .wiki-welcome {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .wiki-content #home-posts {
        width: 100%;
        margin: 0;
    }
    .wiki-content #home-posts .post {
        margin-bottom: 0;
        padding: 15px !important;
    }
    .wiki-content #home-posts .post .description {
        padding: 8px 0 !important;
        font-size: 13px;
        font-weight: 700;
        color: hsl(45, 40%, 100%);
        text-align: left;
        line-height: 1.5;
        margin: 0;
        max-height: 7.5em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }
    .wiki-content #home-posts .post .post-tags {
        padding-right: 69px;
    }
    .article,
    #archives,
    #footer #footer-wrap {
        width: 100%;
    }
    #menu #desktop-menu,
    #home-card {
        display: none;
    }
    #menu #mobile-menu {
        display: block;
    }
    ul,
    ol {
        padding-left: 20px;
    }
}
