<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>暂无前端服务 Powered by CMSPRO</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f7fa; color: #333; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
        .container { text-align: center; padding: 40px 20px; }
        .icon { font-size: 64px; margin-bottom: 24px; }
        h1 { font-size: 24px; font-weight: 600; margin-bottom: 12px; color: #1a1a1a; }
        p { font-size: 16px; color: #666; line-height: 1.6; }
        .menu-links { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
        .menu-link { display: inline-block; padding: 8px 20px; background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; color: #333; text-decoration: none; font-size: 14px; transition: all .2s; }
        .menu-link:hover { border-color: #1890ff; color: #1890ff; box-shadow: 0 2px 8px rgba(24,144,255,.15); }
    </style>
</head>
<body>
    <div class="container">
        <div class="icon"><img src="{{ asset('/Images/logo-144x144.png') }}" alt="CMSPRO" style="width: 128px;"></div>
        <h1>暂无前端服务</h1>
        <p>前端服务未启用，请联系管理员启用前端应用的服务。</p>
        @if(isset($homeMenus) && $homeMenus->isNotEmpty())
        <div class="menu-links">
            @foreach($homeMenus as $menu)
                @if($menu->parent_id == 0)
                <a href="{{ menu_path($menu->path, $menu) }}" target="_blank" class="menu-link">{{ $menu->name }}</a>
                @endif
            @endforeach
        </div>
        @endif
    </div>
</body>
</html>
