﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #39c5bb;
    font-family: "Microsoft YaHei", sans-serif;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- 1. 全屏深色遮罩 (与详情页一致) --- */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: overlayFadeIn 0.4s ease forwards;
}

/* --- 2. 404 核心容器 (与详情页/弹窗风格一致) --- */
.error-wrapper {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    background: #235d5a; /* 边框色 */
    padding: 4px;
    /* 弹性弹出动画 */
    opacity: 0;
    animation: errorPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.3);
}

.error-inner {
    background: #f4f4f4;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- 3. 404 图片动效 --- */
.anime-girl {
    max-width: 200px;
    margin-bottom: 20px;
    /* 图片轻微跳动效果 */
    animation: float 3s ease-in-out infinite;
}

/* --- 4. 文字样式 --- */
.error-code {
    font-size: 48px;
    color: #235d5a;
    font-weight: 900;
    margin-bottom: 10px;
    border-bottom: 4px solid #235d5a;
    display: inline-block;
    padding: 0 10px;
}

.message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 5px;
}

/* --- 5. 还原主页样式的按钮 --- */
.btn-return {
    margin-top: 30px;
    display: inline-block;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-width: 0 45px;
    border-style: solid;
    border-image-source: url('/img/button-bg.png');
    border-image-slice: 0 40% fill;
    padding: 25px 0px 27px 0px;
    cursor: pointer;
    transition: transform 0.2s;
}

    .btn-return:hover {
        transform: scale(1.05);
    }

/* --- 动画定义 --- */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes errorPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 手机端适配 */
@media (max-width: 480px) {
    .error-code {
        font-size: 36px;
    }
}
