:root {
--primary-color: #7f2628;
--text-color: #2d3436;
--light-bg: #f9f9f9;
--shadow: 0 10px 20px rgba(0,0,0,0.1);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}
        
.error-container {
    max-width: 600px;
    width: 90%;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    transform: translateY(0);
    transition: all 0.3s ease;
}
        
.error-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
        
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
        
.error-code {
    font-size: 120px;
    font-weight: 700;
    color: #7f2628;
    margin: 0;
    line-height: 1;
    position: relative;
    display: inline-block;
}
        
.error-code:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: #7f2628;
    bottom: -15px;
    left: 0;
    border-radius: 5px;
}
        
h2 {
    margin-top: 30px;
    font-size: 28px;
    color: var(--text-color);
}
        
p {
    font-size: 16px;
    margin: 20px 0;
    color: #636e72;
    line-height: 1.6;
}
        
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #7f2628;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}
        
.btn:hover {
    background: #7f2628;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4);
}
        
.links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
        
.link-item {
    color: #2d3436;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
        
.link-item:hover {
    color: var(--primary-color);
}
        
.illustration {
    max-width: 250px;
    margin: 30px auto;
    display: block;
}