        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
            background: #f1f5f9;
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .app-header {
            background: white;
            padding: 10px 20px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            z-index: 10;
        }
        .logo { font-weight: 600; font-size: 1.2rem; color: #1e293b; }
        .badge { background: #eef2ff; color: #2563eb; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; }

        .app-layout {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        /* 竖向菜单样式 */
        .layout-vertical .menu-sidebar {
            width: 260px;
            background: white;
            border-right: 1px solid #e2e8f0;
            overflow-y: auto;
            flex-shrink: 0;
        }
        .layout-vertical .menu-list {
            display: flex;
            flex-direction: column;
            padding: 12px 0;
        }
        .layout-vertical .menu-item {
            padding: 10px 16px;
            cursor: pointer;
            font-size: 0.9rem;
            color: #334155;
            transition: background 0.2s;
            position: relative;
        }
        .layout-vertical .menu-item.has-child {
            font-weight: 500;
        }
        .layout-vertical .menu-item.has-child::after {
            content: "▶";
            float: right;
            font-size: 0.7rem;
            color: #94a3b8;
            transition: transform 0.2s;
        }
        .layout-vertical .menu-item.has-child.expanded::after {
            transform: rotate(90deg);
        }
        .layout-vertical .menu-item:hover {
            background: #f1f5f9;
        }
        .layout-vertical .submenu-level1 {
            list-style: none;
            padding-left: 32px;
            background: #fafcff;
            display: none;
        }
        .layout-vertical .submenu-level1.show {
            display: block;
        }
        .layout-vertical .submenu-item {
            padding: 10px 16px;
            cursor: pointer;
            font-size: 0.85rem;
            color: #475569;
            transition: background 0.1s;
        }
        .layout-vertical .submenu-item:hover {
            background: #eef2ff;
        }

        /* 横向菜单样式 */
        .layout-horizontal {
            flex-direction: column;
        }
        .layout-horizontal .menu-sidebar {
            width: 100%;
            background: white;
            border-bottom: 1px solid #e2e8f0;
            overflow-x: auto;
            flex-shrink: 0;
            position: relative;
        }
        .layout-horizontal .menu-list {
            display: inline-flex;
            flex-direction: row;
            padding: 0 16px;
            white-space: nowrap;
        }
        .layout-horizontal .menu-item {
            display: inline-block;
            padding: 10px 18px;
            cursor: pointer;
            font-size: 0.9rem;
            color: #334155;
            position: relative;
        }
        .layout-horizontal .menu-item.has-child::after {
            content: "▼";
            margin-left: 6px;
            font-size: 0.7rem;
            color: #94a3b8;
        }
        .layout-horizontal .menu-item:hover {
            background: #f1f5f9;
        }
        .popup-submenu {
            position: fixed;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
            border: 1px solid #e2e8f0;
            z-index: 1000;
            min-width: 180px;
            padding: 8px 0;
        }
        .popup-submenu .submenu-item {
            padding: 10px 20px;
            cursor: pointer;
            font-size: 0.85rem;
            color: #1e293b;
        }
        .popup-submenu .submenu-item:hover {
            background: #f1f5f9;
        }

        /* 标签页区域 */
        .tabs-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: #f8fafc;
        }
        .tabs-bar {
            background: white;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding: 0 8px;
            gap: 2px;
        }
        .tab-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            font-size: 0.9rem;
            white-space: nowrap;
            color: #475569;
        }
        .tab-item.active {
            border-bottom-color: #3b82f6;
            color: #2563eb;
            font-weight: 500;
        }
        .tab-item .close-btn {
            background: transparent;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: #94a3b8;
            padding: 0 4px;
        }
        .tab-item .close-btn:hover {
            background: #f1f5f9;
            color: #ef4444;
        }
        .tab-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }
        .table-wrapper {
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        @media (max-width: 768px) {
            .layout-vertical .menu-sidebar { width: 200px; }
            .layout-vertical .submenu-level1 { padding-left: 24px; }
            .tab-content { padding: 12px; }
        }