.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 气泡样式 */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -1; /* 确保在所有内容下方 */
}
.bubble-container .bubble {
    position: absolute;
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0; /* 初始透明 */
}
@keyframes float-up {
    0% {
        transform: translateY(100vh); /* 从底部外开始 */
        opacity: 0;
    }
    10% {
        opacity: 1; /* 进入视口后显示 */
    }
    90% {
        opacity: 1; /* 离开视口前保持显示 */
    }
    100% {
        transform: translateY(-20vh); /* 完全离开视口 */
        opacity: 0;
    }
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 按钮样式 */
.action-button {
    transition: all 0.3s ease;
    transform: scale(1);
}
.action-button:hover {
    transform: scale(1.03);
}
.action-button:active {
    transform: scale(0.98);
}
@media (min-width: 768px) {
    .button-container {
        flex-direction: row !important;
        gap: 1.5rem !important;
    }
    .action-button {
        flex: 1;
        max-width: 200px;
    }
}
@media (max-width: 480px) {
    .action-button {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        max-width: 100%;
    }
}

/* 页面基础样式 */
.body-404 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #1a1a1a;
    transition: opacity 0.5s ease;
    opacity: 1;
/* 临时设置为1，绕过JavaScript淡入效果 */
}

/* 夜间模式下的404页面样式 */
[data-theme="dark"] .body-404 {
    color: #f3f4f6;
}

[data-theme="dark"] .error-number {
    color: #60a5fa;
}

[data-theme="dark"] .error-description {
    color: #9ca3af;
}

[data-theme="dark"] .error-number-container {
    background-color: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .back-button {
    background-color: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
}

[data-theme="dark"] .home-button {
    background-color: #2563eb;
}

/* 已移除未使用的深色模式footer样式，使用style.css中的样式 */
/* [data-theme="dark"] .page-footer {
    color: #9ca3af;
} */

/* [data-theme="dark"] .footer-link {
    color: #9ca3af;
} */

/* 页面容器 */
.page-container {
    max-width: 48rem;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* 404图标容器 */
.error-icon-container {
    position: relative;
    margin-bottom: 2rem;
}

/* 404数字容器 */
.error-number-container {
    width: 10rem;
    height: 10rem;
    margin: 0 auto;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 404数字 */
.error-number {
    font-size: 4.5rem;
    font-weight: bold;
    color: #3B82F6;
}

/* 标题样式 */
.error-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 描述文本 */
.error-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    color: #64748B;
}

/* 操作按钮容器 */
.actions-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

/* 按钮容器 */
.button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

/* 返回上一页按钮 */
.back-button {
    background-color: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* 返回首页按钮 */
.home-button {
    background-color: #3B82F6;
    color: white;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* 底部区域样式 - 固定在页面底部 */
.footer {
    padding: var(--space-lg) var(--space-xl) var(--space-sm);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
}

/* 响应式设计 - 保留响应式设置 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .footer-stats {
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: row;
        gap: var(--space-sm);
        padding: var(--space-xs) var(--space-sm);
    }
}

@media (max-width: 480px) {
    .footer-stats {
        gap: var(--space-xs);
        padding: 6px 12px;
    }
}