:root {
            --primary: #2563eb;
            --primary-hover: #1d4ed8;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --gray-50: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-600: #475569;
            --gray-800: #1e293b;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
            --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: #f4f6f9;
            color: #334155;
            margin: 0;
            padding-bottom: 60px;
        }

        /* 顶部导航与横幅 */
        .top-navbar {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            color: #fff;
            padding: 24px 0 28px 0;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .brand-title {
            font-size: 24px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.5px;
        }
        .brand-badge {
            font-size: 11px;
            font-weight: 600;
            background: rgba(37, 99, 235, 0.4);
            color: #93c5fd;
            padding: 3px 8px;
            border-radius: 9999px;
            border: 1px solid rgba(147, 197, 253, 0.3);
        }
        .brand-subtitle {
            color: #94a3b8;
            font-size: 13px;
            margin-top: 6px;
        }
        .nav-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            height: 100%;
        }
        .nav-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 500;
            border-radius: 6px;
            transition: all 0.2s ease;
            text-decoration: none;
            cursor: pointer;
            border: none;
        }
        .nav-btn-outline {
            background: rgba(255, 255, 255, 0.08);
            color: #f1f5f9;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }
        .nav-btn-outline:hover {
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
            text-decoration: none;
        }
        .nav-btn-primary {
            background: #2563eb;
            color: #fff;
        }
        .nav-btn-primary:hover {
            background: #1d4ed8;
            color: #fff;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        /* 主体操作区与表格卡片 */
        .content-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            border: 1px solid #e2e8f0;
            padding: 24px;
            margin-top: 24px;
        }

        /* 筛选工具栏 */
        .filter-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding-bottom: 20px;
            border-bottom: 1px solid #f1f5f9;
            margin-bottom: 20px;
        }
        .filter-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .filter-pill {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            background: #f1f5f9;
            color: #64748b;
            border: 1px solid transparent;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .filter-pill:hover {
            background: #e2e8f0;
            color: #1e293b;
        }
        .filter-pill.active {
            background: #2563eb;
            color: #fff;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
        }

        .search-box {
            position: relative;
            min-width: 280px;
        }
        .search-input {
            width: 100%;
            padding: 8px 14px 8px 36px;
            font-size: 13px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            background: #f8fafc;
            outline: none;
            transition: all 0.2s ease;
        }
        .search-input:focus {
            background: #fff;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }
        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 14px;
            pointer-events: none;
        }

        /* 现代表格设计 */
        .gateway-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }
        .gateway-table th {
            background: #f8fafc;
            color: #475569;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 12px 16px;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
            text-align: left;
            white-space: nowrap;
        }
        .gateway-table td {
            padding: 14px 16px;
            font-size: 13px;
            border-bottom: 1px solid #f1f5f9;
            vertical-align: middle;
            transition: background 0.15s ease;
        }
        .gateway-table tr:hover td {
            background: #f8fafc;
        }

        /* 徽章 Badge 样式 */
        .badge-flow {
            display: inline-block;
            font-size: 11px;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 4px;
            font-family: Consolas, monospace;
        }
        .badge-str2str { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
        .badge-file2str { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
        .badge-str2file { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
        .badge-file2file { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 500;
            padding: 4px 10px;
            border-radius: 9999px;
        }
        .status-pass {
            background: #ecfdf5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }
        .status-fail {
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }
        .status-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            display: inline-block;
        }
        .status-pass .status-dot { background: #10b981; }
        .status-fail .status-dot { background: #ef4444; }

        .latency-pill {
            font-size: 11px;
            color: #64748b;
            background: #f1f5f9;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: Consolas, monospace;
            margin-left: 4px;
        }

        /* 操作按钮组 */
        .action-group {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            white-space: nowrap;
        }
        .btn-action {
            display: inline-block;
            white-space: nowrap;
            padding: 4px 10px;
            font-size: 12px;
            font-weight: 500;
            border-radius: 4px;
            text-decoration: none;
            cursor: pointer;
            border: none;
            line-height: 1.4;
            transition: all 0.15s ease;
        }
        .btn-action-primary {
            background: #2563eb;
            color: #fff;
        }
        .btn-action-primary:hover {
            background: #1d4ed8;
            color: #fff;
            text-decoration: none;
        }
        .btn-action-test {
            background: #f8fafc;
            color: #334155;
            border: 1px solid #cbd5e1;
        }
        .btn-action-test:hover {
            background: #e2e8f0;
            color: #0f172a;
            text-decoration: none;
        }



        /* 消息轻提示 Toast */
        .toast-msg {
            position: fixed;
            top: 24px;
            right: 24px;
            padding: 12px 20px;
            background: #1e293b;
            color: #fff;
            border-radius: 8px;
            font-size: 13px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
            z-index: 2000;
            display: none;
            animation: fadeIn 0.2s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }
