
    * { margin: 0; padding: 0; box-sizing: border-box; }
    :root {
      --primary: #1677ff;
      --success: #52c41a;
      --danger: #ff4d4f;
      --warning: #fa8c16;
      --bg: #f0f2f5;
      --card: #fff;
      --border: #e5e7eb;
      --sidebar-bg: #001529;
      --sidebar-active: #1677ff;
    }
    body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); min-height: 100vh; }

    /* ===== LOGIN ===== */
    #login-screen {
      position: fixed; inset: 0; z-index: 9999;
      background: linear-gradient(135deg, #0d1b2a 0%, #1677ff 60%, #06b6d4 100%);
      display: flex; align-items: center; justify-content: center;
    }
    #login-screen.hidden { display: none !important; }
    .login-box {
      background: rgba(255,255,255,0.97); border-radius: 16px; padding: 44px 40px;
      width: 400px; box-shadow: 0 32px 80px rgba(0,0,0,0.35);
      animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
    }
    @keyframes popIn { from{opacity:0;transform:scale(0.85) translateY(24px)} to{opacity:1;transform:scale(1) translateY(0)} }
    .login-brand { text-align: center; margin-bottom: 32px; }
    .login-brand .icon { font-size: 48px; }
    .login-brand h1 { font-size: 22px; color: #1a1a2e; margin-top: 8px; }
    .login-brand p { font-size: 13px; color: #888; margin-top: 4px; }
    .lf-item { margin-bottom: 16px; }
    .lf-item label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 500; }
    .lf-item input {
      width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
      padding: 11px 14px; font-size: 14px; outline: none; transition: border-color 0.2s;
    }
    .lf-item input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,0.1); }
    .login-btn {
      width: 100%; background: var(--primary); color: #fff; border: none; border-radius: 8px;
      padding: 12px; font-size: 15px; cursor: pointer; font-weight: 600;
      transition: all 0.2s; margin-top: 6px;
    }
    .login-btn:hover { background: #0958d9; }
    .login-btn:disabled { background: #aaa; cursor: not-allowed; }
    .login-err { background: #fff1f0; border: 1px solid #ffccc7; border-radius: 6px; padding: 8px 12px; font-size: 12px; color: #cf1322; margin-bottom: 12px; display: none; }
    .login-err.show { display: block; }

    /* ===== LAYOUT ===== */
    #app-layout { display: flex; min-height: 100vh; }
    .sidebar {
      width: 220px; background: var(--sidebar-bg); color: #c8d3dd;
      flex-shrink: 0; display: flex; flex-direction: column;
    }
    .sidebar-brand {
      padding: 20px 18px; background: #000c17;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .sidebar-brand h2 { font-size: 14px; color: #fff; }
    .sidebar-brand p { font-size: 11px; color: #556; margin-top: 2px; }
    .sidebar-brand .admin-badge {
      display: inline-block; background: #1677ff; color: #fff;
      font-size: 10px; border-radius: 3px; padding: 1px 5px; margin-top: 5px;
    }
    nav { flex: 1; padding-top: 8px; }
    .nav-item {
      display: flex; align-items: center; gap: 10px;
      padding: 11px 18px; cursor: pointer; font-size: 13px;
      transition: all 0.2s; color: #a0aab5;
    }
    .nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
    .nav-item.active { background: var(--primary); color: #fff; }
    .nav-icon { font-size: 15px; width: 18px; text-align: center; }
    .nav-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 4px 0; }
    .nav-section { font-size: 10px; color: #44566; padding: 10px 18px 4px; text-transform: uppercase; letter-spacing: 1px; }
    .sidebar-footer { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.05); }
    .sidebar-footer .logout-btn {
      width: 100%; background: rgba(255,77,79,0.15); color: #ff4d4f;
      border: 1px solid rgba(255,77,79,0.3); border-radius: 6px;
      padding: 7px; font-size: 12px; cursor: pointer; transition: all 0.2s;
    }
    .sidebar-footer .logout-btn:hover { background: rgba(255,77,79,0.25); }

    /* ===== MAIN ===== */
    .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
    .main-header {
      background: #fff; padding: 0 24px; height: 56px;
      display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .main-header h2 { font-size: 16px; color: #1a1a2e; }
    .header-meta { display: flex; align-items: center; gap: 12px; }
    .env-badge { background: #e6f4ff; color: #1677ff; border: 1px solid #91caff; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
    .stat-badge { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
    .main-body { flex: 1; overflow-y: auto; padding: 20px 24px; }

    /* ===== PAGE ===== */
    /* 多页模式下，每文件只展示一个板块，无需 .page 隐藏 */

    /* ===== CARDS ===== */
    .stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
    .stat-card {
      background: #fff; border-radius: 10px; padding: 18px 20px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid var(--border);
    }
    .stat-card .label { font-size: 13px; color: #888; margin-bottom: 8px; }
    .stat-card .val { font-size: 28px; font-weight: 700; color: #1a1a2e; }
    .stat-card .val.blue { color: var(--primary); }
    .stat-card .val.green { color: var(--success); }
    .stat-card .val.orange { color: var(--warning); }
    .stat-card .val.red { color: var(--danger); }

    /* ===== SECTION ===== */
    .section {
      background: #fff; border-radius: 10px; padding: 20px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid var(--border);
      margin-bottom: 20px;
    }
    .section-title { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
    .section-title span { font-size: 16px; }

    /* ===== FORM ===== */
    .form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .form-item { display: flex; flex-direction: column; gap: 5px; }
    .form-item label { font-size: 12px; color: #666; font-weight: 500; }
    .form-item input, .form-item select {
      border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px;
      font-size: 13px; outline: none; transition: border-color 0.2s;
    }
    .form-item input:focus, .form-item select:focus { border-color: var(--primary); }
    .form-item input[readonly] { background: #f5f5f5; color: #888; }
    .form-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

    /* ===== BUTTONS ===== */
    .btn { border: none; border-radius: 6px; padding: 8px 18px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; font-weight: 500; }
    .btn-primary { background: var(--primary); color: #fff; }
    .btn-primary:hover { background: #0958d9; }
    .btn-success { background: var(--success); color: #fff; }
    .btn-success:hover { background: #389e0d; }
    .btn-danger { background: var(--danger); color: #fff; }
    .btn-danger:hover { background: #cf1322; }
    .btn-warning { background: var(--warning); color: #fff; }
    .btn-outline { background: #fff; color: #555; border: 1px solid var(--border); }
    .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
    .btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .btn-sm { padding: 5px 12px; font-size: 12px; }
    .btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 4px; }

    /* ===== TABLE ===== */
    .table-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 13px; }
    thead th { background: #fafafa; padding: 10px 12px; text-align: left; font-weight: 600; color: #555; border-bottom: 1px solid var(--border); font-size: 12px; }
    tbody td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; color: #333; }
    tbody tr:hover { background: #fafcff; }
    tbody tr:last-child td { border-bottom: none; }

    /* ===== STATUS TAGS ===== */
    .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
    .tag-unused { background: #e6f4ff; color: #1677ff; }
    .tag-used { background: #f6ffed; color: #389e0d; }
    .tag-disabled { background: #f5f5f5; color: #999; }
    .tag-expired { background: #fff1f0; color: #cf1322; }
    .tag-active { background: #f6ffed; color: #389e0d; }
    .tag-banned { background: #fff1f0; color: #cf1322; }
    .tag-pending { background: #fff7e6; color: #fa8c16; }

    /* ===== PAGINATION ===== */
    .pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; }
    .page-btn { border: 1px solid var(--border); background: #fff; border-radius: 4px; padding: 4px 10px; font-size: 12px; cursor: pointer; transition: all 0.2s; }
    .page-btn:hover { border-color: var(--primary); color: var(--primary); }
    .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
    .page-info { font-size: 12px; color: #888; }

    /* ===== FILTER BAR ===== */
    .filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
    .filter-bar input, .filter-bar select {
      border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px;
      font-size: 13px; outline: none; transition: border-color 0.2s;
    }
    .filter-bar input:focus, .filter-bar select:focus { border-color: var(--primary); }
    .filter-bar input { width: 200px; }

    /* ===== MODAL ===== */
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
    .modal-overlay.hidden { display: none; }
    .modal { background: #fff; border-radius: 12px; width: 480px; box-shadow: 0 24px 60px rgba(0,0,0,0.2); animation: popIn 0.3s ease; }
    .modal-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
    .modal-title { font-size: 15px; font-weight: 600; }
    .modal-close { cursor: pointer; color: #888; font-size: 18px; }
    .modal-body { padding: 20px; }
    .modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

    /* ===== TOAST ===== */
    #toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
    .toast { background: #1a1a2e; color: #fff; border-radius: 8px; padding: 10px 16px; font-size: 13px; min-width: 240px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); animation: slideIn 0.3s ease; }
    .toast.success { background: #389e0d; }
    .toast.error { background: #cf1322; }
    .toast.warning { background: #d46b08; }
    @keyframes slideIn { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }

    /* ===== CONFIG PAGE ===== */
    .config-section { max-width: 680px; }
    .config-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
    .config-row label { font-size: 13px; color: #555; min-width: 120px; font-weight: 500; }
    .config-row input, .config-row select {
      flex: 1; border: 1px solid var(--border); border-radius: 6px;
      padding: 9px 12px; font-size: 13px; outline: none;
    }
    .config-row input:focus { border-color: var(--primary); }
    .config-row input[type="password"] { letter-spacing: 2px; }
    .config-hint { font-size: 12px; color: #aaa; margin-top: -8px; margin-bottom: 6px; padding-left: 134px; }

    /* ===== COPY AREA ===== */
    .code-box {
      background: #1a1a2e; color: #52c41a; border-radius: 8px; padding: 14px 16px;
      font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.8;
      max-height: 280px; overflow-y: auto; white-space: pre-wrap; word-break: break-all;
    }

    /* ===== EMPTY ===== */
    .empty { text-align: center; padding: 40px; color: #aaa; font-size: 14px; }
    .empty .empty-icon { font-size: 40px; margin-bottom: 10px; }

    /* ===== LOADING ===== */
    .loading { text-align: center; padding: 30px; color: #888; font-size: 13px; }
    .spin { display: inline-block; width: 20px; height: 20px; border: 2px solid #e5e7eb; border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ===== PRODUCT IMAGES ===== */
    .product-img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
    .product-title { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* ===== USER PRODUCTS CARD GRID (合并自 user-cloud.html) ===== */
    .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 4px; }
    .product-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden; transition: all 0.25s; position: relative; border: 1px solid rgba(0,0,0,0.04); }
    .product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); border-color: var(--primary); }
    .card-img-wrap { position: relative; width: 100%; padding-top: 100%; overflow: hidden; background: #f8fafc; display: block; cursor: pointer; }
    .card-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
    .product-card:hover .card-img-wrap img { transform: scale(1.05); }
    .card-img-count { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; }
    .card-body { padding: 12px; }
    .card-title { font-size: 13px; color: #1e293b; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; font-weight: 500; }
    .card-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
    .card-price { color: #ef4444; font-size: 18px; font-weight: 700; }
    .card-del-btn { position: absolute; top: 8px; left: 8px; z-index: 3; background: rgba(255,77,79,0.9); color: #fff; border: none; border-radius: 4px; padding: 3px 8px; font-size: 11px; cursor: pointer; }
    .card-del-btn:hover { background: #cf1322; }
  
.nav-item { text-decoration: none; color: inherit; }
