* {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

body,
html {
    height: 100%;
}

canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
}

/* 加载界面样式 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 100;
    transition: opacity 0.5s;
}

#loading * {
    color: rgb(255, 255, 255);
}

/* 正文内容样式 */
#content {
    position: absolute;
    bottom: -100%;
    /* 初始在屏幕下方 */
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    /* 缓动效果 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    transition: margin-left 0.5s ease;
}

#sidebar {
    width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    position: fixed;
    left: -250px;
    top: 0;
    transition: all 0.5s ease;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    border-right: solid white 1px;
}

/* 大屏幕默认展开 */
@media (min-width: 701px) {
    #main-content {
        margin-left: 250px;
    }

    #sidebar.active {
        width: 250px;
        left: 0;
    }
}

/* 小屏幕全屏侧边栏 */
@media (max-width: 700px) {
    #sidebar.active {
        width: 100%;
        left: 0;
        background: rgba(0, 0, 0, 0.9);
    }
}

#main-content {
    padding: 20px;
    transition: margin-left 0.5s ease;
    padding-bottom: 100px;
}

ul {
    list-style: none;
    margin-top: 30px;
}

li {
    padding: 0px 0;
}

li a {
    color: white;
    text-decoration: none;
}

#sidebar.active {
    display: block;
}

/* 基础透明无边框按钮样式 */
.transparent-btn {
    background: rgba(0, 0, 0, 0);
    /* 透明背景 */
    border: none;
    /* 无边框 */
    color: #ffffff;
    /* 文字颜色 */
    padding: 10px 20px;
    /* 内边距 */
    font-size: 16px;
    /* 字体大小 */
    cursor: pointer;
    /* 鼠标指针样式 */
    outline: none;
    /* 移除焦点轮廓 */
    transition: all 0.3s;
    /* 过渡效果 */
    display: block;
}

/* 鼠标悬停效果 */
.transparent-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

/* 点击时的效果 */
.transparent-btn:active {
    transform: scale(0.98);
    /* 轻微缩小效果 */
}

@keyframes hidetip {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

#toggle-btn.hide {
    opacity: 0;
    transition: all 0.3s;
}

#toggle-btn {
    /*position: fixed;*/
    width: auto !important;
}

body {
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.loading {
    position: relative;
    width: 50px;
    height: 50px;
    border: 5px solid #ffffff;
    border-top-color: rgba(255, 255, 255, 0.2);
    border-right-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    border-radius: 100%;

    animation: circle infinite 1s linear;
}

@keyframes circle {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.article-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: solid white 1px;

}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.article-subtitle {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ffffff;
    font-size: 0.9rem;
    color: #ffffff;
    gap: 15px;
    /* 替代margin，更现代的间距方式 */
    border-bottom: 1px solid #ffffff;
}

.meta-item {
    flex: 1;
    /* 每个项目平等分配空间 */
    min-width: max-content;
    /* 防止内容被压缩 */
    text-align: center;
    /* 文本居中 */
    overflow-wrap: break-word;
}

/* 当只有一项时的特殊处理 */
.article-meta:has(> :only-child) .meta-item {
    flex: 0 1 auto;
    /* 取消弹性增长 */
    margin: 0 auto;
    /* 水平居中 */
}

/* 响应式处理 - 当容器太小时强制换行 */
@media (max-width: 600px) {
    .meta-item {
        flex: 1 1 100%;
        /* 小屏幕时每个项目占满一行 */
        text-align: left;
        /* 左对齐更美观 */
    }
}

@media (min-width: 768px) {
    .article-card {
        flex-direction: row;
        height: auto;
    }

    .article-image {
        height: 100%;
    }

    .article-content {
        width: 100%;
        padding: 25px;
    }
}

.transparent-input {
    background-color: transparent;
    /* 透明背景 */
    border: 2px solid #ffffff;
    /* 不透明边框 */
    padding: 10px 15px;
    font-size: 16px;
    color: #ffffff;
    /* 文字颜色 */
    outline: none;
    /* 移除聚焦时的默认轮廓 */
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.page-item {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid white;
    /* 白色边框 */
    color: white;
    /* 默认文字白色 */
    text-decoration: none;
    border-radius: 4px;
    background-color: transparent;
    /* 默认透明背景 */
    transition: all 0.3s ease;
}

/* 当前选中页样式 */
.page-item.active {
    background-color: white;
    /* 白色背景 */
    color: black;
    /* 黑色文字 */
    font-weight: bold;
}

/* 悬停效果 */
.page-item:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 禁用状态样式 */
.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 省略号样式 */
.page-item.ellipsis {
    border: none;
    padding: 8px 5px;
}

.bg_choice img {
    height: 150px;
    width: 200px;
}

.bg_choice {
    border-style: solid;
    border-width: 1px;
    border-color: white;
    padding-inline: 5px;
    padding-top: 5px;
    width: 211px;
    box-sizing: border-box;
    flex-shrink: 0;
}

i {
    padding-right: 5px;
}

#load-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 垂直居中 */
    align-items: center;
    /* 水平居中 */
    min-height: 200px;
    /* 建议设置一个最小高度，确保有足够的居中空间 */
}

.w100_btn {
    background-color: transparent;
    border-style: solid;
    border-width: 1px;
    border-color: white;
    padding-inline: 5px;
    padding-top: 5px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    height: 50px;
    margin-top: 5px;
    margin-bottom: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w100_btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Flexbox 布局 */
.flex-container {
    display: flex;
    justify-content: space-between;
    /* 左右分散对齐 */
    align-items: center;
    /* 垂直居中 */
    width: 100%;
}

/* 可选：调整间距 */
.left-align {
    margin-right: auto;
    /* 左对齐 */
}

.right-align {
    margin-left: auto;
    /* 右对齐 */
}

/* 确保按钮宽度撑满 */
.w100_btn {
    width: 100%;
}

.connect_textarea {
    background-color: transparent;
    border: solid white 2px;
    width: 100%;
    height: 200px;
    resize: vertical;
    padding: 10px;
    min-height: 100px;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 评论区域样式 */
.comments-section {
    margin: 20px 0;
    margin-top: 5px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

/* 单个评论样式 */
.comment:not(.token) {
    padding: 10px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

/* 评论作者信息 */
.comment-author {
    font-weight: bold;
    color: #ffffff;
}

/* 评论时间 */
.comment-time {
    font-size: 12px;
    color: #dadada;
    margin-left: 10px;
}

/* 评论内容 */
.comment-content {
    margin: 8px 0;
    line-height: 1.5;
}

button:hover {
    cursor: pointer;
}

#article_content code {
    background-color: rgba(0, 0, 0, 0);
    padding: 2px 5px;
    border-radius: 3px;
    color: #ffffff;
}

#article_content pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    overflow-x: auto;
    transition: all 0.3s ease;
    border: 2px solid rgb(255, 255, 255);
    border-top: none;
    margin-bottom: 5px;
}

#article_content pre:hover {
    background-color: rgb(0, 0, 0);
}

/* 代码头部样式 */
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #000000;
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.code-header:hover {
    background-color: rgb(0, 0, 0);
}

/* 语言标签样式 */
.language-label {
    font-weight: bold;
    color: rgb(255, 255, 255);
}

/* 复制按钮样式 */
.copy-btn {
    background: none;
    border: 1px solid rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: rgb(255, 255, 255);
}

input[type^="submit"] {
    border: 2px solid white;
    transition: all 0.3s ease;
}

input[type^="submit"]:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg_choice * :hover {
    cursor: pointer;
}

input[type^="radio"]:hover {
    cursor: pointer;
}

input[type^="checkbox"]:hover {
    cursor: pointer;
}

#article_content {
    white-space: normal;
    overflow-wrap: break-word;
}

article ul {
    list-style-type: disc;
    margin-top: 0px;
}

article img {
    max-width: 100%;
}

code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.language-label {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

/* PrismJS 1.30.0
此PrismJS已被修改，不要为了便捷直接下载本站此css！*/
code[class*=language-],
pre[class*=language-] {
    color: #f8f8f2;
    background: 0 0;
    text-shadow: 0 1px rgba(0, 0, 0, .3);
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 1em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none
}

pre[class*=language-] {
    padding: 1em;
    margin: 0px 0px;
    overflow: auto;
}

:not(pre)>code[class*=language-],
pre[class*=language-] {
    background: #272822
}

:not(pre)>code[class*=language-] {
    padding: .1em;
    border-radius: .3em;
    white-space: normal
}

.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
    color: #8292a2
}

.token.punctuation {
    color: #f8f8f2
}

.token.namespace {
    opacity: .7
}

.token.constant,
.token.deleted,
.token.property,
.token.symbol,
.token.tag {
    color: #f92672
}

.token.boolean,
.token.number {
    color: #ae81ff
}

.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string {
    color: #a6e22e
}

.language-css .token.string,
.style .token.string,
.token.entity,
.token.operator,
.token.url,
.token.variable {
    color: #f8f8f2
}

.token.atrule,
.token.attr-value,
.token.class-name,
.token.function {
    color: #e6db74
}

.token.keyword {
    color: #66d9ef
}

.token.important,
.token.regex {
    color: #fd971f
}

.token.bold,
.token.important {
    font-weight: 700
}

.token.italic {
    font-style: italic
}

.token.entity {
    cursor: help
}