<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><%= typeof pageTitle !== 'undefined' ? pageTitle + ' - ' : '' %>VPS补货监控 · 管理后台</title>
  <link rel="stylesheet" href="/css/style.css">
</head>
<body>
  <nav>
    <a href="/admin" class="brand">📦 VPS补货监控 <span class="nav-badge">管理</span></a>
    <a href="/admin/merchants">商家</a>
    <a href="/admin/products">产品</a>
    <a href="/admin/aff-links">Aff 链接</a>
    <a href="/admin/channels">TG 频道</a>
    <a href="/admin/tasks">监控任务</a>
    <a href="/admin/settings">系统设置</a>
    <div style="margin-left:auto;display:flex;gap:12px;align-items:center">
      <a href="/" style="font-size:12px;opacity:0.7">← 前台</a>
      <a href="/admin/logout" style="font-size:12px;opacity:0.7">退出</a>
    </div>
  </nav>
  <main>
