<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
    <title>{{.Title}} | Nginx UI</title>
    <style>
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            background-color: #f5f5f5;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            text-align: center;
            flex-direction: column;
        }
        
        .maintenance-container {
            max-width: 600px;
            width: 100%;
            padding: 48px 40px;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
            border: 1px solid #e8e8e8;
        }
        
        h1 {
            color: #1a1a1a;
            margin-bottom: 16px;
            font-size: 32px;
            font-weight: 600;
            letter-spacing: -0.5px;
        }
        
        p {
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 12px;
            color: #666;
        }
        
        a {
            color: #0080f7;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }
        
        a:hover {
            color: #0066cc;
        }
        
        .footer {
            margin-top: 32px;
            padding-top: 24px;
            font-size: 13px;
            color: #999;
            border-top: 1px solid #f0f0f0;
        }
        
        .footer p {
            margin: 0;
            font-size: 14px;
            color: #999;
        }
        
        .beian-info {
            font-size: 13px;
            color: #999;
            margin-top: 16px;
        }
        
        .beian-info p {
            margin: 8px 0;
            font-size: 13px;
            color: #999;
        }
        
        .beian-info a {
            color: #999;
            font-weight: 400;
        }
        
        .beian-info a:hover {
            color: #666;
        }
        
        .beian-info img {
            vertical-align: middle;
            margin-right: 6px;
        }
        
        @media (max-width: 768px) {
            .maintenance-container {
                padding: 40px 24px;
            }
            
            h1 {
                font-size: 24px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 12px;
            }
            
            .maintenance-container {
                padding: 32px 20px;
            }
            
            h1 {
                font-size: 22px;
            }
            
            p {
                font-size: 15px;
            }
        }
    </style>
</head>
<body>
    <div>
        <div class="maintenance-container">
            <h1>{{.Title}}</h1>
            <p>{{.Message}}</p>
            <p>{{.Description}}</p>
            <div class="footer">
                <p>Powered by <a href="https://nginxui.com" target="_blank">Nginx UI</a></p>
            </div>
        </div>
        <div class="beian-info">
            {{if .ICPNumber}}
            <p><a href="https://beian.miit.gov.cn/" target="_blank">{{.ICPNumber}}</a></p>
            {{end}}
            {{if .PublicSecurityNumber}}
            <p><img src="//www.beian.gov.cn/img/new/gongan.png" alt="公安备案"><a href="http://www.beian.gov.cn/portal/index" target="_blank">{{.PublicSecurityNumber}}</a></p>
            {{end}}
        </div>
    </div>
</body>
</html>
