/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    color: #1d1d1f;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 错误页面容器 */
.error-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
}

.error-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.error-content:hover {
    transform: translateY(-5px);
}

/* 标题样式 */
.error-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0071e3 0%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.error-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.error-description {
    font-size: 1rem;
    color: #86868b;
    margin-bottom: 1.5rem;
}

/* 按钮样式 */
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: #0071e3;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #0077ed;
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    border: none;
}

.btn-secondary:hover {
    background: rgba(0, 113, 227, 0.2);
    transform: scale(1.05);
}

/* 图片样式 */
.error-image {
    width: 260px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.error-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 动画效果 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .error-container {
        padding: 1rem;
    }
    
    .error-content {
        padding: 1.5rem 1rem;
    }
    
    .error-image {
        width: 220px;
    }
    
    .error-title {
        font-size: 2.5rem;
    }
    
    .error-subtitle {
        font-size: 1.2rem;
    }
    
    .error-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
    
    .url {
        gap: 0.5rem;
    }
    
    .url a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .error-image {
        width: 300px;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-subtitle {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .url {
        flex-direction: column;
        gap: 0.1rem;
        align-items: center;
    }
    
    footer {
        padding: 0.4rem;
    }
    
    .url a {
        width: 100%;
        justify-content: center;
    }
}

/* 页脚样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.url {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.url a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

.url a:hover {
    color: #0071e3;
}

.beian-icon {
    height: 16px;
    width: auto;
}