:root {
            --primary-color: #6366f1;
            --primary-light: #a5b4fc;
            --secondary-color: #8b5cf6;
            --accent-color: #06b6d4;
            --light-color: #f8fafc;
            --light-gray: #f1f5f9;
            --medium-gray: #cbd5e1;
            --dark-gray: #64748b;
            --text-dark: #334155;
            --text-light: #64748b;
            --sidebar-width: 240px;
            --card-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
            --hover-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
            --border-radius: 10px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Segoe UI', sans-serif;
        }
        
        html, body {
            height: 100%;
            overflow: hidden;
        }
        
        body {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            color: var(--text-dark);
            display: flex;
            flex-direction: column;
            line-height: 1.6;
        }
        
        /* 顶部导航栏 - 紧凑设计 */
        .header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            color: var(--text-dark);
            padding: 12px 20px;
            border-bottom: 1px solid rgba(203, 213, 225, 0.3);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            height: 70px;
            position: sticky;
            top: 0;
            z-index: 100;
                box-shadow: 0px 1.67px 3.33px rgba(0, 0, 0, 0.05);
        }
        
        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            min-width: 180px;
        }
        
        .logo img{
            max-width: 180px;
            max-height: 30px;
        }
        
        .icon-xc{
            background: url(xc.svg);background-size: cover;width: 16px;height: 16px;
        }
        .icon-sx{
            background: url(sx.svg);background-size: cover;width: 16px;height: 16px;
        }
        
        /* 分类筛选 - 紧凑设计 */
        .categories {
            display: flex;
            gap: 6px;
            flex: 1;
            justify-content: center;
            margin: 0 20px;
            max-width: 500px;
        }
        
        .category-btn {
            padding: 8px 16px;
            background: var(--light-gray);
            border: none;
            border-radius: 20px;
            color: var(--text-dark);
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        .category-btn img{
            width: 16px;height: 16px;
        }
        .category-btn:hover {
            background: var(--primary-light);
            color: var(--primary-color);
            transform: translateY(-1px);
        }
        
        .category-btn.active {
            background: -webkit-linear-gradient(1deg, #0746ff 3.7%, #7153fb 74.98%);
            background: -moz-linear-gradient(1deg,#0746ff 3.7%,#7153fb 74.98%);
            background: -o-linear-gradient(1deg,#0746ff 3.7%,#7153fb 74.98%);
            background: linear-gradient(89deg, #0746ff 3.7%, #7153fb 74.98%);
            color: white;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
        }
        
        /* 布局控制 - 紧凑设计 */
        .layout-controls {
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--light-gray);
            padding: 5px;
            border-radius: 10px;
            justify-content: flex-end;
        }
        
        .layout-btn {
            background: white;
            color: var(--text-light);
            border: none;
            width: 34px;
            height: 34px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            position: relative;
        }
        
        .layout-btn:hover {
            background: var(--primary-light);
            color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
        }
        
        .layout-btn.active {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
        }
        
        /* 布局图标特殊样式 */
        .layout-btn[data-layout="one"] i {background: url(1.svg);background-size: cover;width: 22px;height: 22px;}
        .layout-btn[data-layout="two"] i {background: url(2.svg);background-size: cover;width: 22px;height: 22px;}
        .layout-btn[data-layout="three"] i {background: url(3.svg);background-size: cover;width: 22px;height: 22px;}
        .layout-btn[data-layout="four"] i {background: url(4.svg);background-size: cover;width: 22px;height: 22px;}
        .layout-btn[data-layout="quad"] i {background: url(5.svg);background-size: cover;width: 22px;height: 22px;}
        
        /* 移动端菜单按钮 - 移除顶部的 */
        .menu-toggle {
            display: none;
        }
        
        /* 主内容区域 - 全屏高度 */
        .main-container {
            display: flex;
            flex: 1;
            overflow: hidden;
            padding: 0;
            height: calc(100vh - 70px);
        }
        
        /* 侧边栏 - 简洁设计 */
        .sidebar {
            width: var(--sidebar-width);
            background-color: white;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border-right: 1px solid rgba(203, 213, 225, 0.3);
            transition: var(--transition);
            flex-shrink: 0;
            background: url(leftbg.svg);
            background-size: cover;
        }
        
        .sidebar.hidden {
            width: 0;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-20px);
        }
        
        /* PC端侧边栏内容 */
        .pc-sidebar-content {
            display: flex;
            flex-direction: column;
            height: 100%;
            padding-top: 110px;
        }
        
        /* 当前分类标题 */
        .current-category-title {
            padding: 15px 20px;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        
        .current-category-title i {
            color: var(--primary-color);
            font-size: 1rem;
        }
        
        /* AI列表容器 - 带滚动条 */
        .ai-list-container {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }
        
        /* 自定义滚动条样式 */
        .ai-list-container::-webkit-scrollbar {
            width: 6px;
        }
        
        .ai-list-container::-webkit-scrollbar-track {
            background: rgba(203, 213, 225, 0.1);
            border-radius: 3px;
        }
        
        .ai-list-container::-webkit-scrollbar-thumb {
            background: rgba(99, 102, 241, 0.4);
            border-radius: 3px;
        }
        
        .ai-list-container::-webkit-scrollbar-thumb:hover {
            background: rgba(99, 102, 241, 0.6);
        }
        
        /* 移动端菜单容器 */
        .mobile-menu-container {
            display: none;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
            padding-top: 110px;
        }
        
        /* 移动端父菜单 - 垂直列表 */
        .mobile-parent-menu {
            padding: 15px;
            border-bottom: 1px solid rgba(203, 213, 225, 0.3);
            flex-shrink: 0;
            display: none;
        }
        
        .mobile-parent-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 15px;
            padding-left: 5px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .mobile-parent-title .back-btn {
            background: none;
            border: none;
            color: var(--primary-color);
            font-size: 0.85rem;
            cursor: pointer;
            display: none;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            border-radius: 6px;
            transition: var(--transition);
        }
        
        .mobile-parent-title .back-btn:hover {
            background: rgba(99, 102, 241, 0.1);
        }
        
        .mobile-parent-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .mobile-parent-item {
            padding: 15px 15px;
            border-radius: 8px;
            color: var(--text-dark);
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: space-between;
            text-align: left;
            width: 100%;
            border: 1px solid transparent;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(5px);
        }
        
        .mobile-parent-item:hover {
            background: rgba(99, 102, 241, 0.1);
            transform: translateX(3px);
        }
        
        .mobile-parent-item.active {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
        }
        
        .mobile-parent-item .parent-icon {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }
        
        .mobile-parent-item .parent-count {
            font-size: 0.8rem;
            color: var(--text-light);
            background: rgba(255, 255, 255, 0.3);
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 5px;
        }
        
        .mobile-parent-item.active .parent-count {
            color: white;
            background: rgba(255, 255, 255, 0.2);
        }
        
        .mobile-parent-item .parent-arrow {
            font-size: 0.9rem;
            opacity: 0.6;
            margin-left: 10px;
        }
        
        /* AI列表 */
        .ai-list {
            list-style: none;
        }
        
        .ai-item {
            padding: 14px 16px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: var(--transition);
            margin-bottom: 18px;
            border: 1px solid transparent;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(5px);
        }
        
        .ai-item:hover {
            background: rgba(99, 102, 241, 0.08);
            border-color: rgba(99, 102, 241, 0.1);
            transform: translateX(3px);
        }
        
        .ai-item.active {
            background: rgba(99, 102, 241, 0.12);
            border-color: var(--primary-light);
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
        }
        
        .ai-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: var(--primary-color);
            font-size: 1rem;
            transition: var(--transition);
            flex-shrink: 0;
        }
        
        .ai-icon .sidebar-item-icon{
            width: 24px;
            height: 24px;
            border-radius: 4px;
        }
        
        .ai-info {
            flex: 1;
            min-width: 0;
        }
        
        .ai-name {
            font-size: 0.95rem;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .ai-tag {
            flex-shrink: 0;
            opacity: 0.7;
        }
        
        /* 内容区域 - 简洁设计，无头部 */
        .content-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            background-color: white;
            overflow: hidden;
            position: relative;
        }
        
        /* 一栏布局时内容区域 */
        .one-column .content-area {
            margin-left: 0;
        }
        
        /* 多栏布局时内容区域占满宽度 */
        .two-columns .content-area,
        .three-columns .content-area,
        .four-columns .content-area,
        .quad-layout .content-area {
            margin-left: 0;
            width: 100%;
        }
        
        /* iframe容器 - 无头部 */
        .iframe-container {
            flex: 1;
            position: relative;
            overflow: hidden;
        }
        
        .content-frame {
            width: 100%;
            height: 100%;
            border: none;
            background-color: white;
        }
        
        /* 多栏布局时iframe顶部控制栏 */
        .iframe-controls {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(203, 213, 225, 0.3);
            padding: 10px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 10;
            height: 50px;
            transition: var(--transition);
        }
        
        .iframe-controls:hover {
            background: rgba(255, 255, 255, 0.98);
        }
        
        .iframe-select {
            flex: 1;
            margin: 0 10px;
            max-width: 300px;
        }
        
        .iframe-select select {
            width: 100%;
            padding: 6px 10px;
            border-radius: 6px;
            border: 1px solid var(--medium-gray);
            background: white;
            color: var(--text-dark);
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .iframe-select select:hover {
            border-color: var(--primary-light);
        }
        
        .iframe-select select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
        }
        
        .iframe-actions {
            display: flex;
            gap: 8px;
        }
        
        .iframe-action-btn {
            background: white;
            border: 1px solid var(--medium-gray);
            border-radius: 6px;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .iframe-action-btn:hover {
            background: var(--primary-light);
            color: var(--primary-color);
            border-color: var(--primary-light);
        }
        
        /* 多栏布局样式 - 修正2x2田字格布局 */
        
        /* 两栏布局 (1x2) */
        .two-columns .content-area {
            flex-direction: row;
            background: transparent;
            gap: 15px;
            padding: 15px;
        }
        
        .two-columns .iframe-container {
            width: calc(50% - 8px);
            height: 100%;
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(203, 213, 225, 0.3);
            background: #f7f8f8;
            overflow: hidden;
            position: relative;
        }
        
        /* 三栏布局 (1x3) */
        .three-columns .content-area {
            flex-direction: row;
            background: transparent;
            gap: 15px;
            padding: 15px;
        }
        
        .three-columns .iframe-container {
            width: calc(33.333% - 10px);
            height: 100%;
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(203, 213, 225, 0.3);
            background: #f7f8f8;
            overflow: hidden;
            position: relative;
        }
        
        /* 四栏布局 (1x4) */
        .four-columns .content-area {
            flex-direction: row;
            background: transparent;
            gap: 15px;
            padding: 15px;
        }
        
        .four-columns .iframe-container {
            width: calc(25% - 12px);
            height: 100%;
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(203, 213, 225, 0.3);
            background: #f7f8f8;
            overflow: hidden;
            position: relative;
        }
        
        /* 四格布局 (2x2) - 田字格 */
        .quad-layout .content-area {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 15px;
            padding: 15px;
            background: transparent;
        }
        
        .quad-layout .iframe-container {
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(203, 213, 225, 0.3);
            background: #f7f8f8;
            overflow: hidden;
            position: relative;
            height: 100%;
            width: 100%;
        }
        
        /* 返回菜单按钮 - 多栏布局时显示，移动端也使用这个按钮 */
        .show-menu-btn {
            display: none;
            position: absolute;
            top: 100px;
            left: 20px;
            z-index: 1001;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
            transition: var(--transition);
            align-items: center;
            justify-content: center;
        }
        
        .show-menu-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
        }
        
        .show-menu-btn i{
            width: 22px;
            height: 22px;
            background: url(cd.svg);
            background-size: cover;
        }
        
        
        
        /* 无内容时的提示 */
        .no-ai-message {
            padding: 60px 20px;
            text-align: center;
            color: var(--text-light);
            width: 100%;
        }
        
        .no-ai-message i {
            font-size: 3rem;
            margin-bottom: 20px;
            color: var(--medium-gray);
        }
        
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .sidebar {
                width: 240px;
            }
            
            .categories {
                max-width: 500px;
            }
            
            .iframe-select {
                max-width: 160px;
            }
        }
        
        /* 响应式设计 - 移动端 */
        @media (max-width: 992px) {
            .header {
                padding: 10px 15px;
                height: 60px;
                flex-wrap: nowrap;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 1000;
            }
            
            /* 移动端隐藏分类栏 */
            .categories {
                display: none !important;
            }
            
            .logo {
                min-width: auto;
                font-size: 1.3rem;
                flex: 1;
                justify-content: left;
                margin: 0 10px;
            }
            
            .logo img {
                max-width: 140px;
                max-height: 30px;
            }
            
            .layout-controls {
                order: 2;
                min-width: auto;
            }
            
            /* 移动端显示菜单容器，隐藏PC端内容 */
            .mobile-menu-container {
                display: flex;
            }
            
            .pc-sidebar-content {
                display: none !important;
            }
            
            /* 移动端显示父菜单 */
            .mobile-parent-menu {
                display: block;
            }
            
            /* 移动端始终显示菜单按钮 */
            .show-menu-btn {
                display: flex;
                top: 100px;
                left: 15px;
                z-index: 10001;
                background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
                color: white;
                border: none;
                border-radius: 50%;
                width: 44px;
                height: 44px;
                cursor: pointer;
                box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
                transition: var(--transition);
                align-items: center;
                justify-content: center;
            }
            
            /* 修改：移除body的高度限制，允许滚动 */
            html, body {
                overflow-x: hidden;
                overflow-y: auto;
                height: auto;
                min-height: 100vh;
            }
            
            .main-container {
                height: auto;
                min-height: calc(100vh - 60px);
                margin-top: 60px;
                display: flex;
                flex-direction: column;
                overflow: visible;
            }
            
            .content-area {
                overflow: visible;
                min-height: 500px; /* 确保内容区域有足够高度 */
            }
            
            /* 移动端侧边栏样式 */
            .sidebar {
                position: fixed;
                left: 0;
                top: 0;
                height: 100vh;
                z-index: 1002;
                transform: translateX(-100%);
                width: 280px;
                box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
                transition: transform 0.3s ease;
            }
            
            .sidebar.active {
                transform: translateX(0);
                z-index: 99999;
            }
            
            /* 移动端AI列表项样式 */
            .ai-item {
                padding: 12px 14px;
                margin-bottom: 8px;
            }
            
            .ai-icon .sidebar-item-icon {
                width: 22px;
                height: 22px;
            }
            
            .ai-name {
                font-size: 0.9rem;
            }
            
            /* 移动端iframe高度优化 */
            .iframe-container {
                overflow: auto;
                min-height: 500px; /* 增加移动端iframe最小高度 */
                height: auto;
            }
            
            .content-frame {
                min-height: 500px;
                height: 100%;
            }
            
            /* 响应式多栏布局调整 - 改为垂直排列 */
            .two-columns .content-area,
            .three-columns .content-area,
            .four-columns .content-area {
                flex-direction: column;
                gap: 20px;
                padding: 15px;
                min-height: auto;
            }
            
            .two-columns .iframe-container,
            .three-columns .iframe-container,
            .four-columns .iframe-container {
                width: 100%;
                height: 500px; /* 固定高度，允许内部滚动 */
                min-height: 500px;
                flex-shrink: 0;
            }
            
            /* 移动端2x2布局调整为垂直排列 */
            .quad-layout .content-area {
                grid-template-columns: 1fr;
                grid-template-rows: auto;
                gap: 20px;
                padding: 15px;
            }
            
            .quad-layout .iframe-container {
                min-height: 480px;
                height: auto;
            }
            
            /* 优化iframe控制栏 */
            .iframe-controls {
                position: sticky;
                top: 0;
                z-index: 10;
                padding: 8px 12px;
                height: 45px;
            }
        }
        
        @media (max-width: 768px) {
            .logo-text {
                display: none;
            }
            
            .logo-subtitle {
                display: none;
            }
            
            /* 进一步调整小屏幕的iframe高度 */
            .two-columns .iframe-container,
            .three-columns .iframe-container,
            .four-columns .iframe-container,
            .quad-layout .iframe-container {
                height: auto;
                min-height: 500px;
                background: #fff;
            }
            
            #mainIframeContainer {
                min-height: 480px;
                height: auto;
            }
            
            .content-frame {
                height: 100%;
                min-height: 600px;
            }
            
            .iframe-container {
                flex: unset;
            }
            
            .iframe-container,
            .content-frame {
                min-height: 500px;
            }
            
            /* 优化控制栏在小屏幕的显示 */
            .iframe-title span {
                display: none;
            }
            
            .iframe-select {
                max-width: 120px;
            }
            
            .iframe-select select {
                font-size: 0.8rem;
                padding: 5px 8px;
            }
            
            .show-menu-btn {
                top: 100px;
                width: 40px;
                height: 40px;
                display: flex;
            }
        }
        
        /* PC端显示PC侧边栏内容，隐藏移动端内容 */
        @media (min-width: 993px) {
            .pc-sidebar-content {
                display: flex !important;
            }
            
            .mobile-menu-container {
                display: none !important;
            }
            
            /* PC端隐藏返回按钮 */
            .mobile-parent-title .back-btn {
                display: none !important;
            }
            
            /* PC端一栏布局时不显示菜单按钮 */
            .one-column .show-menu-btn {
                display: none !important;
            }
        }
        
        /* 辅助类 */
        .hidden {
            display: none !important;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.4);
            z-index: 999;
            display: none;
            backdrop-filter: blur(4px);
        }
        
        .overlay.active {
            display: block;
        }
        
        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .ai-item {
            animation: fadeIn 0.3s ease-out forwards;
        }
        
        /* 统计信息 - 隐藏 */
        .stats-info {
            display: none;
        }