/* 404错误页面专用样式 */

/* 错误页面内容区域 */
.error-content {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.error-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* 错误图标 */
.error-icon {
    font-size: 80px;
    color: #ff6b6b;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 跳转进度条 */
.redirect-progress {
    margin: 20px 0 30px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 3px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 错误标题 */
.error-title {
    font-size: 120px;
    font-weight: 700;
    color: #2b3079;
    margin: 0 0 10px 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-subtitle {
    font-size: 32px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 20px 0;
}

.error-description {
    font-size: 18px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 40px;
}

/* 错误操作按钮 */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.error-btn.primary {
    background: linear-gradient(135deg, #2b3079 0%, #1a1f5c 100%);
    color: white;
    border-color: #2b3079;
}

.error-btn.primary:hover {
    background: linear-gradient(135deg, #1a1f5c 0%, #2b3079 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 48, 121, 0.3);
}

.error-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.error-btn.secondary:hover {
    background: #e9ecef;
    color: #2b3079;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.error-btn.tertiary {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.error-btn.tertiary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.error-btn.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    border-color: #ffc107;
}

.error-btn.warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* 搜索区域 */
.error-search {
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 16px;
    background: #fff;
    outline: none;
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-btn {
    padding: 12px 20px;
    background: #2b3079;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #1a1f5c;
}

/* 推荐链接 */
.error-suggestions {
    text-align: left;
}

.error-suggestions h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2b3079;
    margin-bottom: 15px;
    text-align: center;
}

.suggestion-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.suggestion-links a {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.suggestion-links a:hover {
    background: #2b3079;
    color: white;
    border-color: #2b3079;
    transform: translateY(-1px);
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .error-content {
        padding: 40px 20px;
        min-height: 60vh;
    }
    
    .error-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .error-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .error-title {
        font-size: 80px;
        margin-bottom: 5px;
    }
    
    .error-subtitle {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .error-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .error-btn {
        justify-content: center;
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 16px;
    }
    
    .suggestion-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .suggestion-links a {
        padding: 6px 8px;
        font-size: 13px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .error-container {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .error-title {
        font-size: 60px;
    }
    
    .error-subtitle {
        font-size: 20px;
    }
    
    .error-description {
        font-size: 14px;
    }
    
    .suggestion-links {
        grid-template-columns: 1fr;
    }
    
    .suggestion-links a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* 动画效果 */
.error-container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 面包屑导航样式（继承自其他页面） */
.breadcrumb-section {
    padding: 5px 0 5px 20px;
    margin-bottom: 10px;
}

.breadcrumb-nav {
    font-size: 14px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #2b3079;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #1a1f5c;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 移动端面包屑导航适配 */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 10px 0 0 10px;
    }
    
    .breadcrumb-nav {
        font-size: 13px;
    }
    
    .breadcrumb-list {
        gap: 6px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 6px;
    }
    
    .breadcrumb-item.active {
        display: none;
    }
}