/* ============================================================
   layout.css — 开场层、右侧侧边栏
   ============================================================ */

/* ---------- 开场层 ---------- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1), visibility 0s 0s;
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.splash-screen.splash-hidden {
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1), visibility 0s 0.5s;
}

.splash-logo {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.05));
}

.splash-hint {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1rem;
    color: #aaa;
    font-family: 'Minecraft-Regular', monospace, sans-serif;
    letter-spacing: 1px;
    opacity: 0.6;
    pointer-events: none;
}

/* ---------- 右侧侧边栏 ---------- */
.side-navbar {
    position: fixed;
    right: 24px;
    width: 180px;
    background: rgba(30, 25, 18, 0.88);
    backdrop-filter: blur(12px);
    border: 4px solid;
    border-color: #5a4a3a #2a1a12 #2a1a12 #5a4a3a;
    padding: 1rem 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset -2px -2px 0 0 #1a1512;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    z-index: 9999;
    transition: top 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.2s;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    border-radius: 0;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-qq-link {
    background: #4c6a3b70;
    border: 3px solid;
    border-color: #7c965b #3a5a2a #3a5a2a #7c965b;
    padding: 0.7rem 0.8rem;
    text-align: center;
    font-weight: 500;
    transition: background 0.1s;
    text-decoration: none;
    color: #f7deb4;
    display: block;
    font-size: 0.95rem;
    word-break: keep-all;
    box-shadow: inset -2px -2px 0 0 #2a3a1a;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

.side-qq-link:hover {
    background: #5b7842;
    color: #fff;
}

.side-qq-link:active {
    border-color: #3a5a2a #7c965b #7c965b #3a5a2a;
}

.side-nav-select {
    width: 100%;
    background: #3f5632;
    color: #f9f2d9;
    border: 3px solid;
    border-color: #7c965b #3a5a2a #3a5a2a #7c965b;
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f9e4b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 14px;
    border-radius: 0;
    box-shadow: inset -2px -2px 0 0 #1a2a1a;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

.side-nav-select option {
    background: #2a3a2a;
    color: #f9f2d9;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

/* 侧边栏滚动条 */
.side-navbar::-webkit-scrollbar {
    width: 5px;
}

.side-navbar::-webkit-scrollbar-track {
    background: #3f321e;
    border: 1px solid #2a1a0a;
}

.side-navbar::-webkit-scrollbar-thumb {
    background: #b88b4b;
    border: 1px solid #6a4a1a;
}

/* ---------- 响应式：侧边栏 ---------- */
@media (max-width: 640px) {
    .side-navbar {
        right: 12px;
        width: 150px;
    }
}