/* ====== 404 SECTION ====== */
.error-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e6f0ff 100%);
}

.error-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* 404数字样式 */
.error-code {
    font-size: 15rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

/* 添加装饰性元素到404数字 */
.error-code:before,
.error-code:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.1);
    z-index: -1;
    filter: blur(40px);
}

.error-code:before {
    top: -30px;
    left: -30px;
}

.error-code:after {
    bottom: -30px;
    right: -30px;
    background: rgba(255, 107, 53, 0.1);
}

/* 错误标题 */
.error-title {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.error-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* 错误描述 */
.error-description {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--gray-color);
}

/* 错误图标 */
.error-icon {
    font-size: 8rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.error-icon:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* 按钮容器 */
.error-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

/* 搜索框样式 */
.error-search {
    max-width: 600px;
    margin: 50px auto 0;
    position: relative;
}

.error-search input {
    width: 100%;
    padding: 20px 30px;
    border-radius: 50px;
    border: 2px solid rgba(0, 102, 204, 0.2);
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
}

.error-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.2);
}

.error-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.error-search button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}

/* 有用的链接部分 */
.useful-links {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.link-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

.link-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.link-card:hover:before {
    transform: scaleX(1);
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.2);
}

.link-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.link-icon:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 160, 233, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.link-card p {
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* 404背景装饰元素 */
.error-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.05);
    animation: float 8s ease-in-out infinite;
}

.decoration-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.decoration-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    background: rgba(255, 107, 53, 0.05);
    animation-delay: 1s;
}

.decoration-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    background: rgba(0, 160, 233, 0.05);
    animation-delay: 2s;
}

.decoration-4 {
    width: 100px;
    height: 100px;
    bottom: 40%;
    left: 15%;
    background: rgba(0, 102, 204, 0.05);
    animation-delay: 3s;
}

/* 添加缺失的动画定义 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.bounce-animation {
    animation: bounce 2s infinite;
}

.shake-animation {
    animation: shake 0.8s ease-in-out;
}

/* ====== RESPONSIVE PARA 404 PAGE ====== */
@media (max-width: 1200px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .error-code {
        font-size: 12rem;
    }
    
    .error-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .error-code {
        font-size: 10rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-icon {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .error-code {
        font-size: 8rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
    
    .error-description {
        font-size: 1.1rem;
    }
    
    .error-icon {
        font-size: 5rem;
    }
    
    .error-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .error-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .error-search {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .error-search input {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .error-search button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}