        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; background-color: #f0f4f8; min-height: 100vh; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

        /* ===== 顶部标题栏 ===== */
        .header { background: linear-gradient(135deg, #1e4d8c 0%, #2c5aa0 100%); color: white; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
        .header-row1 { padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; position: relative; }
        .header h1 { font-size: 20px; font-weight: 600; white-space: nowrap; }
        .header-right span { font-size: 14px; opacity: 0.9; white-space: nowrap; }

        /* 模块标签栏 - 居中在标题行 */
        .module-tabs { display: flex; gap: 0; position: absolute; left: 50%; transform: translateX(-50%); }
        .module-tab { display: flex; align-items: center; gap: 6px; padding: 8px 20px; cursor: pointer; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6); border-bottom: 3px solid transparent; transition: all 0.25s; position: relative; user-select: none; border-radius: 6px 6px 0 0; }
        .module-tab:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); }
        .module-tab.active { color: white; background: rgba(255,255,255,0.12); }
        .module-tab .tab-icon { font-size: 16px; line-height: 1; }
        /* 三个模块各自配色（非active态底色微调） */
        .module-tab[data-module="m1"] .tab-icon { color: #93c5fd; }
        .module-tab[data-module="m2"] .tab-icon { color: #fcd34d; }
        .module-tab[data-module="m3"] .tab-icon { color: #6ee7b7; }
        .module-tab[data-module="m4"] .tab-icon { color: #c4b5fd; }
        .module-tab.active[data-module="m1"] .tab-icon,
        .module-tab.active[data-module="m2"] .tab-icon,
        .module-tab.active[data-module="m3"] .tab-icon,
        .module-tab.active[data-module="m4"] .tab-icon { color: white; }
        /* active态左侧彩条 */
        .module-tab.active[data-module="m1"] { border-bottom-color: #60a5fa; }
        .module-tab.active[data-module="m2"] { border-bottom-color: #fbbf24; }
        .module-tab.active[data-module="m3"] { border-bottom-color: #34d399; }
        .module-tab.active[data-module="m4"] { border-bottom-color: #a78bfa; }

        /* 模块标签徽章（小圆点标记当前模块） */
        .module-badge { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
        .badge-m1 { background: #60a5fa; }
        .badge-m2 { background: #fbbf24; }
        .badge-m3 { background: #34d399; }
        .badge-m4 { background: #a78bfa; }

        /* 数据看板模块：全宽展示，隐藏侧边栏 */
        body.module-m4 .sidebar { display: none !important; }
        body.module-m4 .main-content { background: #092041; }
        html:fullscreen body.module-m4 .header { display: none; }
        html:fullscreen body.module-m4 .container { height: 100vh; }
        html:fullscreen body.module-m4 .main-content { height: 100%; }

        /* 未启用模块的提示样式 */
        .module-tab.disabled { opacity: 0.45; cursor: not-allowed; }
        .module-tag { font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-left: 4px; font-weight: 400; }
        .tag-soon { background: rgba(251,191,36,0.25); color: #fcd34d; }

        .container { display: flex; flex: 1; min-height: 0; overflow: hidden; }

        .sidebar { width: 240px; background-color: #1a365d; color: white; padding: 0; overflow-y: auto; display: flex; flex-direction: column; }

        /* 侧边栏模块标题分隔 */
        .sidebar-module-label { padding: 10px 20px; font-size: 15px; color: #67e8f9; font-weight: 700; border-top: 1px solid #2d4a6f; letter-spacing: 2px; background: linear-gradient(90deg, rgba(6,182,212,0.18) 0%, transparent 100%); display: flex; align-items: center; gap: 8px; border-left: 3px solid #06b6d4; }
        .sidebar-module-label:first-child { border-top: none; }
        .sidebar-module-label .label-icon { font-size: 16px; }

        .menu-group { border-bottom: 1px solid #2d4a6f; }
        .menu-group-title { padding: 14px 20px; cursor: default; font-size: 15px; font-weight: 600; color: #7eb8ea; display: flex; justify-content: space-between; align-items: center; user-select: none; }
        .menu-group-title .arrow { display: none; }

        .submenu { max-height: none; overflow: visible; }
        .menu-group.expanded .submenu { max-height: none; }

        .nav-subitem { padding: 10px 20px 10px 40px; cursor: pointer; font-size: 14px; color: #cbd5e1; transition: all 0.2s; position: relative; }
        .nav-subitem:hover { background-color: #2c5282; color: white; }
        .nav-subitem.active { background-color: #2c5282; color: white; border-left: 4px solid #4facfe; padding-left: 36px; }

        /* 模块二、三占位区样式 */
        .placeholder-content { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #6b7280; gap: 16px; }
        .placeholder-icon { font-size: 64px; opacity: 0.3; }
        .placeholder-title { font-size: 22px; font-weight: 600; color: #1a365d; }
        .placeholder-desc { font-size: 14px; color: #9ca3af; max-width: 400px; text-align: center; line-height: 1.8; }
        .placeholder-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 14px; border-radius: 20px; font-size: 12px; background: #fef3c7; color: #92400e; }

        .main-content { flex: 1; min-height: 0; overflow: hidden; background-color: #f0f4f8; position: relative; }
        .frame-container { width: 100%; height: 100%; min-height: 0; display: none; }
        .frame-container.active { display: block; }
        .frame-container iframe { width: 100%; height: 100%; border: none; display: block; }
