<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面遇到问题 - 迪瑞医疗</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            color: #333;
        }
        
        .container {
            max-width: 800px;
            width: 100%;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        
        .header {
            background: #2c3e50;
            color: white;
            padding: 25px;
            text-align: center;
        }
        
        .header h1 {
            font-size: 28px;
            margin-bottom: 10px;
        }
        
        .header p {
            opacity: 0.9;
        }
        
        .content {
            padding: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .error-icon {
            font-size: 80px;
            color: #e74c3c;
            margin-bottom: 20px;
        }
        
        .error-details {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
            width: 100%;
            border-left: 4px solid #e74c3c;
        }
        
        .error-details h3 {
            color: #2c3e50;
            margin-bottom: 15px;
        }
        
        .error-info {
            margin-bottom: 10px;
            display: flex;
        }
        
        .error-info label {
            font-weight: 600;
            min-width: 120px;
        }
        
        .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
            margin-top: 30px;
            width: 100%;
        }
        
        .btn {
            padding: 12px 25px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: #3498db;
            color: white;
        }
        
        .btn-primary:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }
        
        .btn-secondary {
            background: #ecf0f1;
            color: #2c3e50;
        }
        
        .btn-secondary:hover {
            background: #dfe6e9;
            transform: translateY(-2px);
        }
        
        .btn i {
            margin-right: 8px;
        }
        
        .footer {
            background: #f8f9fa;
            padding: 20px;
            text-align: center;
            color: #7f8c8d;
            font-size: 14px;
            border-top: 1px solid #eaecef;
        }
        
        .contact {
            margin-top: 10px;
        }
        
        @media (max-width: 600px) {
            .header h1 {
                font-size: 24px;
            }
            
            .error-icon {
                font-size: 60px;
            }
            
            .actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1><i class="fas fa-exclamation-triangle"></i> 页面遇到问题</h1>
            <p>抱歉，在处理您的请求时出现了错误</p>
        </div>
        
        <div class="content">
            <div class="error-icon">
                <i class="fas fa-bug"></i>
            </div>
            
            <h2>很抱歉，我们遇到了一些技术问题</h2>
            <p>我们的技术团队已经收到通知，正在努力解决这个问题。</p>
            
            <div class="error-details">
                <h3><i class="fas fa-info-circle"></i> 错误信息</h3>
                <div class="error-info">
                    <label>错误类型:</label>
                    <span>HTTP 404 找不到文件或目录</span>
                </div>
                <div class="error-info">
                    <label>时间戳:</label>
                    <span id="timestamp"></span>
                </div>
                <div class="error-info">
                    <label>错误ID:</label>
                    <span>#ERR-<span id="error-id"></span></span>
                </div>
                <p style="margin-top: 15px; font-style: italic;">
                    此错误信息已记录，不会向用户暴露服务器物理路径或其他敏感信息。
                </p>
            </div>
            
            <div class="actions">
                <a href="/" class="btn btn-primary"><i class="fas fa-home"></i> 返回首页</a>
                <a href="javascript:history.back();;" class="btn btn-secondary"><i class="fas fa-arrow-left"></i> 返回上一页</a>
            </div>
        </div>
        
        <div class="footer">
            <p>Copyright©2010-2019Dirui.AllRightsReserved.</p>
            <p class="contact">互联网药品信息服务资格证书[(吉)-非经营性-2018-0018]吉ICP备11002852号</p>
        </div>
    </div>

    <script>
        // 生成时间戳和随机错误ID
        document.getElementById('timestamp').textContent = new Date().toLocaleString();
        document.getElementById('error-id').textContent = Math.floor(Math.random() * 10000).toString().padStart(4, '0');
        
        // 添加返回上一页功能
        document.querySelectorAll('.btn-secondary')[1].addEventListener('click', function(e) {
            e.preventDefault();
            window.history.back();
        });
    </script>
</body>
</html>
