/* 404页面样式 */
.error-404-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f6f6f6 100%);
}

/* 装饰性圆形元素 */
.error-404-container::before,
.error-404-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.7;
    animation: float 15s ease-in-out infinite;
}

.error-404-container::before {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(0, 87, 255, 0.1), rgba(13, 202, 240, 0.1));
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.error-404-container::after {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(244, 130, 31, 0.1), rgba(255, 159, 67, 0.1));
    bottom: -80px;
    right: -80px;
    animation-delay: 2s;
    animation-direction: reverse;
}

/* 中间装饰点 */
.error-404-container .container::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(244, 130, 31, 0.08), rgba(0, 87, 255, 0.08));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.5;
    animation: pulse 8s ease-in-out infinite;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* 404内容容器 */
.error-404-container .container {
    position: relative;
    z-index: 2;
}

/* 错误内容区域 */
.error-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 4rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.error-content:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* 错误代码 */
.error-code {
    font-size: 8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, var(--accent-color), #4d8aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: bounceIn 1s ease-out;
}

/* 弹跳动画 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* 错误标题 */
.error-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 1rem 0 1.5rem;
    color: var(--dark-gray);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 错误消息 */
.error-message {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* 公司宣传语 */
.company-slogan {
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.slogan-text {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin: 0;
    padding: 1rem 2rem;
    background: rgba(0, 87, 255, 0.05);
    border-radius: 50px;
    display: inline-block;
}

/* 操作按钮区域 */
.error-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    animation: fadeInUp 0.8s ease-out 0.8s both !important;
    z-index: 100 !important;
    position: relative !important;
    margin-top: 2rem !important;
}

/* 通用按钮样式 */
.error-actions a.btn {
    padding: 0.875rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 150px !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 101 !important;
    cursor: pointer !important;
    background-image: none !important;
}

/* 修复返回首页按钮 */
.error-actions a.btn-primary-gradient {
    background: #0057FF !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 87, 255, 0.3) !important;
    border: none !important;
}

.error-actions a.btn-primary-gradient:hover {
    background: #0045cc !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 87, 255, 0.4) !important;
}

/* 修复返回上页按钮 */
.error-actions a.btn-outline-primary {
    background: transparent !important;
    color: #0057FF !important;
    box-shadow: 0 4px 15px rgba(0, 87, 255, 0.1) !important;
    border: 2px solid #0057FF !important;
}

.error-actions a.btn-outline-primary:hover {
    background: #0057FF !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 87, 255, 0.4) !important;
}

/* 按钮图标 */
.error-actions .btn i {
    transition: transform 0.3s ease;
}

.error-actions .btn:hover i {
    transform: translateX(3px);
}

/* 动画延迟 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo样式 */
.error-logo {
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.logo-img {
    max-width: 220px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-message {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .error-content {
        padding: 3rem 1.5rem;
        margin: 0 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* 调整装饰元素大小 */
    .error-404-container::before {
        width: 200px;
        height: 200px;
        top: -50px;
        left: -50px;
    }
    
    .error-404-container::after {
        width: 180px;
        height: 180px;
        bottom: -40px;
        right: -40px;
    }
    
    .error-404-container .container::before {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.75rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .slogan-text {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .error-content {
        padding: 2.5rem 1rem;
    }
}

/* 额外的装饰效果 */
.error-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

/* 闪光动画 */
@keyframes shine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}
