        :root {
            --sidebar-width: 260px;
            --accent-color: #3498db;
            --border-color: #dcdfe6;
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            display: flex;
            height: 100vh;
            overflow: hidden;
            font-family: "Microsoft YaHei", sans-serif;
            background: #f0f2f5;
        }

        #sidebar {
            width: var(--sidebar-width);
            background: #fff;
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            transition: margin-left 0.3s ease;
            position: relative;
            flex-shrink: 0;
            z-index: 100;
            overflow: visible;
        }

        #sidebar.collapsed {
            margin-left: calc(0px - var(--sidebar-width));
        }

        .header {
            padding: 15px;
            border-bottom: 1px solid #f0f2f5;
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: #cce5ff;
            position: relative;
            z-index: 2000;
            overflow: visible;
        }

        .search-group {
            display: flex;
            gap: 0;
            align-items: center;
            position: relative;
            z-index: 3000;
            overflow: visible;
        }

        .suggest-container {
            flex: 1;
            position: relative;
            z-index: 3000;
            overflow: visible;
        }

        #stockCode {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #ddd;
            border-radius: 4px 0 0 4px;
            outline: none;
            font-size: 14px;
        }

        .search-btn {
            padding: 8px 15px;
            background: var(--accent-color);
            color: #fff;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            font-size: 14px;
            height: 35px;
            white-space: nowrap;
            position: relative;
            z-index: 3001;
        }

        .quick-links {
            display: flex;
            gap: 12px;
            padding: 4px 0;
            border-top: 1px solid #b3d7f5;
        }

        .quick-links a {
            flex: 1;
            text-align: center;
            font-size: 13px;
            color: #1a6fa8;
            text-decoration: none;
        }

        .quick-links a:hover {
            text-decoration: underline;
        }

        .menu-scroll-wrap {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
            z-index: 30;
        }

        .menu {
            position: relative;
            z-index: 31;
        }

        .menu-group {
            border-bottom: 1px solid #f9f9f9;
            position: relative;
        }

        .menu-title {
            padding: 12px 20px;
            cursor: pointer;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            color: #333;
            background: #fff;
            position: relative;
            z-index: 32;
        }

        .submenu {
            display: none;
            background: #fafafa;
            position: relative;
            z-index: 33;
        }

        .submenu.open {
            display: block;
        }

        .menu-item {
            display: block;
            padding: 10px 35px;
            color: #666;
            text-decoration: none;
            font-size: 14px;
            cursor: pointer;
        }

        .menu-item:hover {
            color: var(--accent-color);
            background: #ecf5ff;
        }

        .menu-item.active {
    color: #d60000 !important;
    font-weight: 700;
    background: #fff1f0;
}

.menu-title.current-open {
    color: #1677c8;
    background: #eef7ff;
}

        #toggle-btn {
            position: absolute;
            right: -12px;
            top: 50%;
            width: 24px;
            height: 24px;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            cursor: pointer;
            z-index: 1001;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 2px 0 5px rgba(0,0,0,0.05);
            color: #999;
        }

        #content {
            flex: 1;
            border: none;
            background: #fff;
            position: relative;
            z-index: 1;
        }

        .astock_suggest,
        .astock_suggest table,
        .astock_suggest div {
            z-index: 99999 !important;
        }

        .suggest-container > span {
            position: absolute !important;
            width: 100%;
            z-index: 99999 !important;
        }

        #mobile-submenu-panel {
            display: none;
        }

        @media (max-width: 768px) {
            html, body {
                height: 100%;
                overflow: hidden;
            }

            body {
                flex-direction: column;
                min-height: 100vh;
                position: relative;
            }

            #sidebar {
                width: 100%;
                height: auto;
                border-right: none;
                border-bottom: 1px solid var(--border-color);
                flex-direction: column;
                margin-left: 0 !important;
                transition: none;
                position: relative;
                z-index: 9990;
                overflow: visible;
            }

            #sidebar.collapsed {
                margin-left: 0 !important;
            }

            #toggle-btn {
                display: none;
            }

            .header {
                padding: 10px 12px;
                gap: 6px;
                z-index: 10010;
                overflow: visible;
            }

            .mobile-top-row {
                display: flex;
                align-items: center;
                gap: 10px;
            }

            .search-group {
                flex: 1;
                min-width: 0;
                position: relative;
                z-index: 10020;
                overflow: visible;
            }

            .suggest-container {
                flex: 1;
                position: relative;
                z-index: 10030;
                overflow: visible;
            }

            .quick-links-wrap {
                display: flex;
                gap: 0;
                flex-shrink: 0;
            }

            .quick-links {
                border-top: none;
                border-left: 1px solid #b3d7f5;
                padding: 0 6px;
                flex-direction: column;
                gap: 4px;
            }

            .quick-links a {
                font-size: 12px;
                white-space: nowrap;
            }

            .menu-scroll-wrap {
                width: 100%;
                overflow-x: auto;
                overflow-y: hidden;
                position: relative;
                z-index: 9993;
                background: #fff;
                -webkit-overflow-scrolling: touch;
                flex: none;
            }

            .menu {
                display: flex;
                flex-direction: row;
                flex: none;
                align-items: stretch;
                border-top: 1px solid #f0f2f5;
                position: relative;
                z-index: 9994;
                min-width: max-content;
            }

            .menu-group {
                border-bottom: none;
                border-right: 1px solid #f0f2f5;
                flex-shrink: 0;
                position: relative;
            }

            .menu-title {
                padding: 8px 14px;
                font-size: 13px;
                white-space: nowrap;
                background: #fff;
                position: relative;
                z-index: 9995;
            }

            .submenu,
            .submenu.open {
                display: none !important;
            }

            #mobile-submenu-panel {
                position: relative;
                display: none;
                background: #fff;
                border-top: 1px solid #e6eef5;
                box-shadow: 0 6px 16px rgba(0,0,0,0.12);
                z-index: 10000;
            }

            #mobile-submenu-panel.show {
                display: block;
            }

            #mobile-submenu-panel .mobile-submenu-inner {
                display: flex;
                flex-wrap: wrap;
                gap: 0;
            }

            #mobile-submenu-panel .menu-item {
                padding: 10px 14px;
                font-size: 14px;
                white-space: nowrap;
                border-right: 1px solid #eef3f8;
                border-bottom: 1px solid #eef3f8;
                background: #fff;
                min-width: 96px;
                text-align: center;
            }

            #content {
    display: block;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
    border: 0;
    background: #fff;
}

            
        }