/* ============================================================
   p5.js 画布容器样式
   ============================================================ */

/* body 使用主题变量背景（覆盖 commons.css 硬编码） */
body {
    background: var(--bg);
}

/* ---- 首页背景粒子网络 ---- */
.p5-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* 首页内容提升到背景粒子之上 */
.paper-list-content-wrap {
    position: relative;
    z-index: 1;
}

/* 文章详情页内容提升到背景粒子之上 */
.paper-detail {
    position: relative;
    z-index: 1;
}

/* 归档页内容提升到背景粒子之上 */
.archive-page {
    position: relative;
    z-index: 1;
}

/* ---- 文章阅读进度 ---- */
.p5-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 3px;
    z-index: 100;
    pointer-events: none;
}

/* ---- 404 页面 ---- */
.p5-404-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}
.p5-404-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}
.p5-404-content h1 {
    font-size: 120px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1;
}
.p5-404-content .sub-text {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 30px;
}
.p5-404-content .back-link {
    display: inline-block;
    padding: 10px 30px;
    font-size: 16px;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--card-bg);
    transition: all 0.3s linear;
}
.p5-404-content .back-link:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}
@media screen and (max-width: 768px) {
    .p5-404-content h1 {
        font-size: 72px;
    }
    .p5-404-content .sub-text {
        font-size: 15px;
    }
}
